iceland 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/iceland/kennitala.rb +2 -3
- data/lib/iceland/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3fed76f7939d968794e3e4be40626061a9e36f8
|
4
|
+
data.tar.gz: 3d3ddc9c41723611d352ee1b0e157ce11ae6cdf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e148dd1e85652ccca52379d19d20bcc58f59b554d93e9f047914299d95b130cd54ae5254bb55eb17bde3ff8e67dca72b07bb12b4ed4a3b88f45d5021901567a
|
7
|
+
data.tar.gz: 73f64853ba22145672e4c201ff48ebbd2750db53984148b22a31c5eb0807b42be6ea1a80fd9c6c599cd70312c039fdb37cde0a2f6e299beaf6d77871cf3366a5
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/stefanvignir/iceland_gem.svg)](https://travis-ci.org/stefanvignir/iceland_gem)
|
1
|
+
[![Build Status](https://travis-ci.org/stefanvignir/iceland_gem.svg)](https://travis-ci.org/stefanvignir/iceland_gem)
|
2
|
+
[![Test Coverage](https://codeclimate.com/github/stefanvignir/iceland_gem/badges/coverage.svg)](https://codeclimate.com/github/stefanvignir/iceland_gem/coverage)
|
3
|
+
[![Code Climate](https://codeclimate.com/github/stefanvignir/iceland_gem/badges/gpa.svg)](https://codeclimate.com/github/stefanvignir/iceland_gem)
|
2
4
|
|
3
5
|
# The Iceland Gem
|
4
6
|
|
data/lib/iceland/kennitala.rb
CHANGED
@@ -16,8 +16,7 @@ class Kennitala
|
|
16
16
|
def entity_type
|
17
17
|
date_integer = @value[0, 2].to_i
|
18
18
|
return 'person' if date_integer < 32
|
19
|
-
return 'company' if (date_integer > 40) && (date_integer <
|
20
|
-
false
|
19
|
+
return 'company' if (date_integer > 40) && (date_integer < 72)
|
21
20
|
end
|
22
21
|
|
23
22
|
# Check if the entity is a company
|
@@ -25,7 +24,7 @@ class Kennitala
|
|
25
24
|
# @return [Boolean]
|
26
25
|
def company?
|
27
26
|
date_integer = @value[0, 2].to_i
|
28
|
-
return true if (date_integer > 40) && (date_integer <
|
27
|
+
return true if (date_integer > 40) && (date_integer < 72)
|
29
28
|
false
|
30
29
|
end
|
31
30
|
|
data/lib/iceland/version.rb
CHANGED