Skip to content

Commit

Permalink
Merge branch 'release-0.0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Lown committed Sep 28, 2016
2 parents e407325 + 510abd9 commit e2eaf11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/edtf/humanize/interval.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module Interval
include Edtf::Humanize::Formats

def humanize
"#{apply_if_approximate(self.from)}#{simple_date_format(self.from)}#{Edtf::Humanize.configuration.interval_connector}#{simple_date_format(self.to)}"
"#{apply_if_approximate(self.from)}"\
"#{simple_date_format(self.from)}"\
"#{Edtf::Humanize.configuration.interval_connector}"\
"#{apply_if_approximate(self.to)}"\
"#{simple_date_format(self.to)}"
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/edtf/humanize/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Edtf
module Humanize
VERSION = "0.0.6"
VERSION = "0.0.7"
end
end
2 changes: 1 addition & 1 deletion test/edtf_humanize_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class HumanizeIntervalTest < ActiveSupport::TestCase
class HumanizeApproximateIntervalTest < ActiveSupport::TestCase
test "should return a humanized approximate interval string" do
d = Date.edtf('1970~/1980~')
assert_equal "circa 1970 to 1980", d.humanize
assert_equal "circa 1970 to circa 1980", d.humanize
end
end

Expand Down

0 comments on commit e2eaf11

Please sign in to comment.