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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 168f93a72d00606fc401df64800bfa8cab636a9a
4
- data.tar.gz: eb2fc15d5d72379001860f2d91f4a31412ce4a8d
3
+ metadata.gz: a3fed76f7939d968794e3e4be40626061a9e36f8
4
+ data.tar.gz: 3d3ddc9c41723611d352ee1b0e157ce11ae6cdf5
5
5
  SHA512:
6
- metadata.gz: aa6314538c3a11f0b008f08cab8f35690b3f4bf811d4589102a332589c9eb5465532866ef7bfc5547fef91d58f14350601435d5682bd51b3cc93dc211780cbbd
7
- data.tar.gz: a9148444fe0b50f9cf8972211d7ca664c796d3a795ab7c5581227065ebbcfd5bc68106668dee9086092d9582af587489bec844edde5a2e3a22da0b2dfd8f8596
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) [![Code Climate](https://codeclimate.com/github/stefanvignir/iceland_gem/badges/gpa.svg)](https://codeclimate.com/github/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
 
@@ -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 < 71)
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 < 71)
27
+ return true if (date_integer > 40) && (date_integer < 72)
29
28
  false
30
29
  end
31
30
 
@@ -1,3 +1,3 @@
1
1
  module Iceland
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.1.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iceland
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vignir