jan 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/jan/version.rb +1 -1
- data/lib/jan.rb +4 -0
- data/spec/jan_spec.rb +6 -0
- metadata +1 -2
- data/LICENSE.txt +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d6313bab8b0a5c015d808a26faa9d0630962a89
|
4
|
+
data.tar.gz: f3f60ad255e4433f22f9a226e7ff91e50788c641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849860dd769589918d645146a251e29c04b0ba46b9fe4209259df1ba76f3c99e4a4c79e54fd09806ccbd662378d52f467527b190fbe8ff32ec214dcfa12672d4
|
7
|
+
data.tar.gz: 662460f600db6d8529c0b4c5ec25e96a048a37c887278eb165177a9b689a849af4f5f536cd4fd78380ce05b10a3aafb83721e387e8a955d57527ac8e514e90ad
|
data/README.md
CHANGED
data/lib/jan/version.rb
CHANGED
data/lib/jan.rb
CHANGED
data/spec/jan_spec.rb
CHANGED
@@ -31,6 +31,12 @@ describe Jan do
|
|
31
31
|
it("should return last digit"){ is_expected.to eq(6) }
|
32
32
|
end
|
33
33
|
|
34
|
+
describe "#body" do
|
35
|
+
let(:jan){ described_class.new("4901277241126") }
|
36
|
+
subject{ jan.body }
|
37
|
+
it("should return digits without check digit"){ is_expected.to eq("490127724112") }
|
38
|
+
end
|
39
|
+
|
34
40
|
describe "#even_digits" do
|
35
41
|
let(:jan){ described_class.new("4901277241126") }
|
36
42
|
subject{ jan.even_digits }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OSA Shunsuke
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- Gemfile
|
93
93
|
- Guardfile
|
94
94
|
- LICENSE
|
95
|
-
- LICENSE.txt
|
96
95
|
- README.md
|
97
96
|
- Rakefile
|
98
97
|
- jan.gemspec
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2014 OSA Shunsuke
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|