raw_date_detector 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4630f2241c8fe66d6afb1eee5a046e577603eb42b1a6f308ab98876f7691dffb
4
- data.tar.gz: af5759d19a0a1e2481af166734d68344161773934d1ef589cbb9951e1854a48c
3
+ metadata.gz: 4097bf3ffb882659bc5593b33985242467cf449bf8e322821c6381f0ec979c77
4
+ data.tar.gz: 136b63c135a07bd4309cdbdfeb407c199f06e24c297fc74577b985a0568b689e
5
5
  SHA512:
6
- metadata.gz: d74065915aae7d8ff1d27465ba027bbe82b0f5864c023407f65d8a6e5195adc81267815bf36d525d0ab2e138d772a64b3bb3efc11e7df238784076f439a07525
7
- data.tar.gz: a273c4f796a534872a1d899c26db205910e45f4971d91867bb24097e00c5e90a841096b4e57a43f5594e159bd3c92ad565c2bb7e061ded67c4ebb553af38bb5e
6
+ metadata.gz: 6c996d0c0dd30e5189965f40bc79bf0387610f2e7c371714258ef28b0e1f6c6864f97d273959d3479108003dd064ec1e7e1102184b169329f392cc37e503174f
7
+ data.tar.gz: 071ab1002a13b4cd4d01987a9256f4774e5ae0d8c8171988ca15f57f2ac9c8f87fbfd0c5ea96b01bb0b23becb1f9b4734f5e76f310f2ef0b684b31010f87c6d1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raw_date_detector (0.1.0)
4
+ raw_date_detector (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,7 +14,7 @@ GEM
14
14
  builder
15
15
  minitest (>= 5.0)
16
16
  ruby-progressbar
17
- rake (12.3.1)
17
+ rake (12.3.3)
18
18
  ruby-progressbar (1.10.1)
19
19
 
20
20
  PLATFORMS
data/README.md CHANGED
@@ -33,6 +33,11 @@ returns `true` for raw year and `false` for non raw year
33
33
 
34
34
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
35
 
36
+ <<<<<<< HEAD
37
+ Currently, it only takes date. in development for other features
38
+
39
+ =======
40
+ >>>>>>> 8b0066f4e399cd149c40ad171d49269b1b211151
36
41
 
37
42
  ## Contributing
38
43
 
@@ -2,8 +2,12 @@ require "raw_date_detector/version"
2
2
 
3
3
  module RawDateDetector
4
4
 
5
- def self.raw_year?(input)
5
+ def self.raw_arr(input)
6
6
  year_arr = input.to_s.split('').map { |digit| digit.to_i }
7
+ end
8
+
9
+ def self.raw_year?(input)
10
+ year_arr = raw_arr(input)
7
11
  first_section = year_arr[0] + year_arr[1]
8
12
  second_section = year_arr[2] + year_arr[3]
9
13
  first_section / second_section == 1 ? true : false
@@ -1,3 +1,3 @@
1
1
  module RawDateDetector
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raw_date_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Handler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-05-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: detects and returns true or false for raw life year dates. a raw year
14
14
  is any year that when the first two digits added up devided by the last two digits
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubyforge_project:
58
- rubygems_version: 2.7.10
57
+ rubygems_version: 3.1.2
59
58
  signing_key:
60
59
  specification_version: 4
61
60
  summary: Detects raw life year dates