Skip to content
Browse files

Add specs for usage of third argument, bump version to 1.1.1

1 parent bda5441 commit 821387f6a01b352b433bf1b0de709a8542b5db86 @jeremyevans committed Oct 27, 2015
Showing with 7 additions and 1 deletion.
  1. +4 −0 CHANGELOG
  2. +1 −1 american_date.gemspec
  3. +2 −0 spec/american_date_spec.rb
View
4 CHANGELOG
@@ -1,3 +1,7 @@
+=== 1.1.1 (2015-10-27)
+
+* Support the third argument to Date/DateTime.parse (costi) (#13)
+
=== 1.1.0 (2013-03-23)
* Handle MM/DD/YYYY substrings in the middle of strings, not just the beginning (sd, clonezone, jeremyevans) (#5)
View
2 american_date.gemspec
@@ -1,6 +1,6 @@
AMERICAN_DATE_GEMSPEC = Gem::Specification.new do |s|
s.name = 'american_date'
- s.version = '1.1.0'
+ s.version = '1.1.1'
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "MIT-LICENSE"]
View
2 spec/american_date_spec.rb
@@ -5,6 +5,7 @@
describe "Date.parse" do
specify "should use american date format for dd/mm/yy" do
Date.parse('01/02/03', true).must_equal Date.new(2003, 1, 2)
+ Date.parse('01/02/03', true, Date::ITALY).must_equal Date.new(2003, 1, 2)
end
specify "should use american date format for d/m/yy" do
@@ -70,6 +71,7 @@ def o.to_str() 1 end
describe "DateTime.parse" do
specify "should use american date format for dd/mm/yy" do
DateTime.parse('01/02/03', true).must_equal DateTime.new(2003, 1, 2)
+ DateTime.parse('01/02/03', true, DateTime::ITALY).must_equal DateTime.new(2003, 1, 2)
end
specify "should use american date format for d/m/yy" do

0 comments on commit 821387f

Please sign in to comment.
Something went wrong with that request. Please try again.