accountant_date 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 564f5d9d6ff8a8e8d0291918f85943bb64fa3e84
4
+ data.tar.gz: 54e784dc2c7cd467725d77cedb5b34f09112ea97
5
+ SHA512:
6
+ metadata.gz: 37c5902d03f1e2c47221cb89679a30d6002ceca0275e7c7da5e75ae4e528bd272ba1b51c1b3fa36fc95c68ced7bb9d47882eee771e35067bdaf2875818c52a46
7
+ data.tar.gz: f123e19e40ffa18e473370b5779111fbb9b4bef54b05396c4dfe2cc3c0ff942779662483e2cf62fb82940695b84d1045a09380b43a154a6abd8c1ffe90953f81
@@ -1,30 +1,70 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.8.4)
7
- bundler (~> 1.0)
4
+ addressable (2.3.6)
5
+ builder (3.2.2)
6
+ descendants_tracker (0.0.4)
7
+ thread_safe (~> 0.3, >= 0.3.1)
8
+ diff-lcs (1.2.5)
9
+ docile (1.1.5)
10
+ faraday (0.9.1)
11
+ multipart-post (>= 1.2, < 3)
12
+ git (1.2.9.1)
13
+ github_api (0.12.2)
14
+ addressable (~> 2.3)
15
+ descendants_tracker (~> 0.0.4)
16
+ faraday (~> 0.8, < 0.10)
17
+ hashie (>= 3.3)
18
+ multi_json (>= 1.7.5, < 2.0)
19
+ nokogiri (~> 1.6.3)
20
+ oauth2
21
+ hashie (3.3.2)
22
+ highline (1.6.21)
23
+ jeweler (2.0.1)
24
+ builder
25
+ bundler (>= 1.0)
8
26
  git (>= 1.2.5)
27
+ github_api
28
+ highline (>= 1.6.15)
29
+ nokogiri (>= 1.5.10)
9
30
  rake
10
31
  rdoc
11
- json (1.7.7)
12
- multi_json (1.6.0)
13
- rake (10.0.3)
14
- rdoc (3.12.1)
32
+ json (1.8.2)
33
+ jwt (1.2.1)
34
+ mini_portile (0.6.2)
35
+ multi_json (1.10.1)
36
+ multi_xml (0.5.5)
37
+ multipart-post (2.0.0)
38
+ nokogiri (1.6.6.2)
39
+ mini_portile (~> 0.6.0)
40
+ oauth2 (1.0.0)
41
+ faraday (>= 0.8, < 0.10)
42
+ jwt (~> 1.0)
43
+ multi_json (~> 1.3)
44
+ multi_xml (~> 0.5)
45
+ rack (~> 1.2)
46
+ rack (1.6.0)
47
+ rake (10.4.2)
48
+ rdoc (4.2.0)
15
49
  json (~> 1.4)
16
- rspec (2.12.0)
17
- rspec-core (~> 2.12.0)
18
- rspec-expectations (~> 2.12.0)
19
- rspec-mocks (~> 2.12.0)
20
- rspec-core (2.12.2)
21
- rspec-expectations (2.12.1)
22
- diff-lcs (~> 1.1.3)
23
- rspec-mocks (2.12.2)
24
- simplecov (0.7.1)
50
+ rspec (3.1.0)
51
+ rspec-core (~> 3.1.0)
52
+ rspec-expectations (~> 3.1.0)
53
+ rspec-mocks (~> 3.1.0)
54
+ rspec-core (3.1.7)
55
+ rspec-support (~> 3.1.0)
56
+ rspec-expectations (3.1.2)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.1.0)
59
+ rspec-mocks (3.1.3)
60
+ rspec-support (~> 3.1.0)
61
+ rspec-support (3.1.2)
62
+ simplecov (0.9.1)
63
+ docile (~> 1.1.0)
25
64
  multi_json (~> 1.0)
26
- simplecov-html (~> 0.7.1)
27
- simplecov-html (0.7.1)
65
+ simplecov-html (~> 0.8.0)
66
+ simplecov-html (0.8.0)
67
+ thread_safe (0.3.4)
28
68
 
29
69
  PLATFORMS
30
70
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: accountant_date 0.0.4 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "accountant_date"
8
- s.version = "0.0.3"
9
+ s.version = "0.0.4"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Ryan Winograd"]
12
- s.date = "2013-03-06"
14
+ s.date = "2015-01-26"
13
15
  s.description = "Accountants deals with dates that are simply months (e.g., 01/13). accountant_date parses these mm/yy style dates and allows for other shorthands."
14
16
  s.email = "ryan@thewinograds.com"
15
17
  s.extra_rdoc_files = [
@@ -32,12 +34,11 @@ Gem::Specification.new do |s|
32
34
  ]
33
35
  s.homepage = "http://github.com/rylwin/accountant_date"
34
36
  s.licenses = ["MIT"]
35
- s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.10"
37
+ s.rubygems_version = "2.2.2"
37
38
  s.summary = "Accounting-style date parsing"
38
39
 
39
40
  if s.respond_to? :specification_version then
40
- s.specification_version = 3
41
+ s.specification_version = 4
41
42
 
42
43
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
44
  s.add_development_dependency(%q<rspec>, [">= 0"])
@@ -11,7 +11,7 @@ if RUBY_VERSION >= '1.9'
11
11
 
12
12
  # Transform accountant dates into ISO dates before parsing.
13
13
  def _parse(string, comp=true)
14
- return if string.nil? or string == ''
14
+ return string if string.nil? or string == ''
15
15
  _parse_without_accountant_date(convert_accountant_to_iso(string), comp)
16
16
  end
17
17
 
@@ -21,7 +21,7 @@ if RUBY_VERSION >= '1.9'
21
21
 
22
22
  # Transform accountant dates into ISO dates before parsing.
23
23
  def parse(string, comp=true)
24
- return if string.nil? or string == ''
24
+ return string if string.nil? or string == ''
25
25
  parse_without_accountant_date(convert_accountant_to_iso(string), comp)
26
26
  end
27
27
  end
@@ -69,7 +69,7 @@ if RUBY_VERSION >= '1.9'
69
69
 
70
70
  # Transform accountant dates into ISO dates before parsing.
71
71
  def parse(string, comp=true)
72
- return if string.nil? or string == ''
72
+ return string if string.nil? or string == ''
73
73
  parse_without_accountant_date(convert_accountant_to_iso(string), comp)
74
74
  end
75
75
  end
@@ -42,8 +42,8 @@ describe "Date.parse" do
42
42
  Date.parse('1/1/1900', true).should == Date.new(1900, 1, 1)
43
43
  end
44
44
 
45
- it "should return nil for empty string" do
46
- Date.parse('').should == nil
45
+ it "should return empty string for empty string" do
46
+ Date.parse('').should == ""
47
47
  end
48
48
 
49
49
  it "should return nil for nil" do
@@ -80,8 +80,8 @@ describe "DateTime.parse" do
80
80
  DateTime.parse(' 02/2003').should == DateTime.new(2003, 2, 1)
81
81
  end
82
82
 
83
- it "should return nil for empty string" do
84
- DateTime.parse('').should == nil
83
+ it "should return empty string for empty string" do
84
+ DateTime.parse("").should == ""
85
85
  end
86
86
 
87
87
  it "should return nil for nil" do
@@ -157,8 +157,8 @@ describe "Date._parse" do
157
157
  {:year=>2003, :mon=>2, :mday=>1, :hour=>10, :min=>20, :sec=>30}
158
158
  end
159
159
 
160
- it "should return nil for empty string" do
161
- Date._parse('').should == nil
160
+ it "should return empty string for empty string" do
161
+ Date._parse("").should == ""
162
162
  end
163
163
 
164
164
  it "should return nil for nil" do
metadata CHANGED
@@ -1,71 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accountant_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Winograd
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
- requirement: &16531080 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *16531080
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rdoc
27
- requirement: &16543480 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *16543480
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: bundler
38
- requirement: &16541760 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *16541760
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: jeweler
49
- requirement: &16540400 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *16540400
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: simplecov
60
- requirement: &16539240 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *16539240
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Accountants deals with dates that are simply months (e.g., 01/13). accountant_date
70
84
  parses these mm/yy style dates and allows for other shorthands.
71
85
  email: ryan@thewinograds.com
@@ -75,8 +89,8 @@ extra_rdoc_files:
75
89
  - LICENSE.txt
76
90
  - README.rdoc
77
91
  files:
78
- - .document
79
- - .rspec
92
+ - ".document"
93
+ - ".rspec"
80
94
  - Gemfile
81
95
  - Gemfile.lock
82
96
  - LICENSE.txt
@@ -90,29 +104,25 @@ files:
90
104
  homepage: http://github.com/rylwin/accountant_date
91
105
  licenses:
92
106
  - MIT
107
+ metadata: {}
93
108
  post_install_message:
94
109
  rdoc_options: []
95
110
  require_paths:
96
111
  - lib
97
112
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
113
  requirements:
100
- - - ! '>='
114
+ - - ">="
101
115
  - !ruby/object:Gem::Version
102
116
  version: '0'
103
- segments:
104
- - 0
105
- hash: 1287419119321098970
106
117
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
118
  requirements:
109
- - - ! '>='
119
+ - - ">="
110
120
  - !ruby/object:Gem::Version
111
121
  version: '0'
112
122
  requirements: []
113
123
  rubyforge_project:
114
- rubygems_version: 1.8.10
124
+ rubygems_version: 2.2.2
115
125
  signing_key:
116
- specification_version: 3
126
+ specification_version: 4
117
127
  summary: Accounting-style date parsing
118
128
  test_files: []