lib/copyrighter.rb in copyrighter-0.0.1 vs lib/copyrighter.rb in copyrighter-1.0.0
- old
+ new
@@ -1,15 +1,8 @@
# -*- coding: utf-8 -*-
-require './copyrighter/version'
+require 'copyrighter/version'
-require './copyrighter/railtie' if defined?(Rails)
+require 'copyrighter/railtie' if defined?(Rails)
module Copyrighter
- def ©(period, joiner = " – ")
- return case period
- when Range then [period.begin, period.end]
- when Time.now.year then [period]
- else [period, Time.now.year]
- end.compact.join(joiner)
- end
end