chunky_plusplus 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c26c9b9ef0a7f0ef174885ce4e4f8bd6dd6c89afdff05daa8b209c940754c37
4
- data.tar.gz: ae2b4aa9754457acfb7f6ce7e58e1f0eb8fb3cb2849bcfe9a983bf8a16e71e8f
3
+ metadata.gz: e810358e81d534f02c94829efd1cfd562899ba814175a5340427a9f5ab656d6b
4
+ data.tar.gz: bb18d986651a78d235eb2b5a95b0491ea8e6542c4d90a1d764956867a2bbfe6a
5
5
  SHA512:
6
- metadata.gz: 3082e5787101d12ca3fd78c528dfdf3d55ea8d650f5ec741e65fc6535b7ba6bf9fbad8a6498428e8ab3c6285fa449c7d615aa038f10d555708bace9fdbd3206f
7
- data.tar.gz: b8f70ee131266a4ff8cbe0b0c0c1fbe770dad7661681fd625c40c29efce39b25a13142a43e2a3985a1e7b559cf1520a695161db3e75a547baf22c97677cd7011
6
+ metadata.gz: 8e2f3d10eabed3a7f32c8845fe4c6efa9d3c202924f8c4efe8869506f5b52c39e52dfe5c40224e617eb73217705edd4810df1cfa30aea6e77bebc377950cfb2d
7
+ data.tar.gz: 444ed3bbfdb0f4944a2b3a2a04a1a517350eb08e92e0d7a37362f66fc711ffe0066419c759a961cfe35386f0ada4d193b30d999d922536dc960406e6bba6c92d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chunky_plusplus (0.1.0)
4
+ chunky_plusplus (0.1.1)
5
5
  activesupport (~> 5.2)
6
6
 
7
7
  GEM
@@ -8,12 +8,8 @@ module ChunkyPlusplus
8
8
  result = []
9
9
 
10
10
  input_date = Date.parse(input_date_string)
11
- candidate_date = input_date.next
12
11
 
13
- while result.size < 10
14
- result << candidate_date.httpdate[0, 16] if candidate_date.month == input_date.month && candidate_date.day == input_date.day
15
- candidate_date += 1.day
16
- end
12
+ (1..10).to_a.map { |i| result << input_date.advance(years: i).httpdate[0, 16] }
17
13
 
18
14
  result
19
15
  end
@@ -1,3 +1,3 @@
1
1
  module ChunkyPlusplus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chunky_plusplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chunky
@@ -104,7 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.0.3
107
+ rubyforge_project:
108
+ rubygems_version: 2.7.8
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: Dates of next 10 birthdays.