jan 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 783fb22083cdee79514404d9dfce2db04e3f98f4
4
- data.tar.gz: 53bbdb8e75c9d5bfb0503908bda34c4260ba0af0
3
+ metadata.gz: 237a9da38380537a517fe197d1d4a68c0b09723f
4
+ data.tar.gz: d2c6fa1db69b4a3eb649ac5762130bb261643763
5
5
  SHA512:
6
- metadata.gz: ec3814c7ebb6239c3fd3fe08988150719e71b55e5335627030d175cfb20b8f32d7a4ed59f42e2513a1271e991c33ce4fa2038663bff15c6f94bd883991b00a47
7
- data.tar.gz: 2ce916f461b1c40cdfaf22461da46a57abd53a7ffa5bf2f18a9d6a417a79902ea1e3c402f77bad79c93d5a63d3148727021313a15e2f85908046573316b294cf
6
+ metadata.gz: 16a99d572b13b34529c0c00c9df7c73bf2e5b68e54b257a4f5ffd59499e45dc700cc7164c2cf40ae010760edf19ff905e379e9debd1fa7e856bcd8b440e0e2c3
7
+ data.tar.gz: a322ccaad173dc7bf4e16eef9e35f93bbdccee3efd7807dda49c35e35171dbbb9bc46a518d8f41abd4714c9fd891017220757688d153d625582046b78d9f50ae
data/lib/jan/validator.rb CHANGED
@@ -14,7 +14,7 @@ class Jan
14
14
  end
15
15
 
16
16
  def validate_check_digit(code)
17
- Parser.check_digit(code) == CheckDigitCalculator.calculate(Parser.body(code))
17
+ Parser.check_digit(code.to_s) == CheckDigitCalculator.calculate(Parser.body(code.to_s))
18
18
  end
19
19
  end
20
20
  end
data/lib/jan/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Jan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OSA Shunsuke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-13 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler