timeliness 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.3.6 - 2012-03-29
2
+ * Fix bug with month_index using Integer method and leading zeroes treated as octal.
3
+
1
4
  = 0.3.5 - 2012-03-29
2
5
  * Correctly handle month value of 0. Fixes issue#4.
3
6
 
@@ -22,7 +22,7 @@ module Timeliness
22
22
  end
23
23
 
24
24
  def month_index(month)
25
- return Integer(month) rescue ArgumentError
25
+ return month.to_i if month.to_i > 0 || /0+/ =~ month
26
26
  month.length > 3 ? month_names.index(month.capitalize) : abbr_month_names.index(month.capitalize)
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Timeliness
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,24 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: timeliness
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 6
10
+ version: 0.3.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Adam Meehan
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-03-29 00:00:00.000000000Z
17
+
18
+ date: 2012-04-01 01:00:00 +11:00
19
+ default_executable:
13
20
  dependencies: []
21
+
14
22
  description: Fast date/time parser with customisable formats, timezone and I18n support.
15
23
  email: adam.meehan@gmail.com
16
24
  executables: []
25
+
17
26
  extensions: []
18
- extra_rdoc_files:
27
+
28
+ extra_rdoc_files:
19
29
  - README.rdoc
20
30
  - CHANGELOG.rdoc
21
- files:
31
+ files:
22
32
  - CHANGELOG.rdoc
23
33
  - LICENSE
24
34
  - README.rdoc
@@ -40,28 +50,39 @@ files:
40
50
  - spec/timeliness/format_spec.rb
41
51
  - spec/timeliness/parser_spec.rb
42
52
  - timeliness.gemspec
53
+ has_rdoc: true
43
54
  homepage: http://github.com/adzap/timeliness
44
55
  licenses: []
56
+
45
57
  post_install_message:
46
58
  rdoc_options: []
47
- require_paths:
59
+
60
+ require_paths:
48
61
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
50
63
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
72
  none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
61
80
  requirements: []
81
+
62
82
  rubyforge_project: timeliness
63
- rubygems_version: 1.8.6
83
+ rubygems_version: 1.5.2
64
84
  signing_key:
65
85
  specification_version: 3
66
86
  summary: Date/time parsing for the control freak.
67
87
  test_files: []
88
+