iceland 0.1.8 → 0.1.9

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: 779dac571e0ed045e1288117f563fac6fb3d92ce
4
- data.tar.gz: b5443b99a7dd60ef870a1699f698b6ff9557911e
3
+ metadata.gz: 168f93a72d00606fc401df64800bfa8cab636a9a
4
+ data.tar.gz: eb2fc15d5d72379001860f2d91f4a31412ce4a8d
5
5
  SHA512:
6
- metadata.gz: 6672ed5940fb3607305023a29ab82e42a39e216527dc787a87c77f214edac6c97246487bde497a46b552cdf1b112427129ad67dbf2945781836a73350bc545ba
7
- data.tar.gz: 1c4e885eb132173a4f5a370a97e1e05754be4dd2ce35fc28eed5b47ef6f6fc043d1802b54c61f0725191ce1cef34ece504f5475b1f2bc737d6df8291ae92520b
6
+ metadata.gz: aa6314538c3a11f0b008f08cab8f35690b3f4bf811d4589102a332589c9eb5465532866ef7bfc5547fef91d58f14350601435d5682bd51b3cc93dc211780cbbd
7
+ data.tar.gz: a9148444fe0b50f9cf8972211d7ca664c796d3a795ab7c5581227065ebbcfd5bc68106668dee9086092d9582af587489bec844edde5a2e3a22da0b2dfd8f8596
data/README.md CHANGED
@@ -38,6 +38,10 @@ Names of locales are provided in dative form by default as per Icelandic postal
38
38
  Iceland.all_postal_codes
39
39
  # => [{:postal_code=>101, :locale=>"Reykjavík"}, {:postal_code=>103, [...]
40
40
 
41
+ # Get the same postal codes in nomative form
42
+ Iceland.all_postal_codes false, true
43
+ # => [{:postal_code=>101, :locale=>"Reykjavík"}, {:postal_code=>103, [...]
44
+
41
45
  # Get all postal codes, including P.O. boxes
42
46
  Iceland.all_postal_codes true
43
47
  # => [{:postal_code=>101, :locale=>"Reykjavík"}, {:postal_code=>103, [...]
@@ -124,7 +128,7 @@ k.is_company?
124
128
  k.is_person?
125
129
  # => true
126
130
 
127
- # Get the birth date or registration day as a Date object
131
+ # Cast the kennitala to a Date object
128
132
  k.to_date
129
133
  # => #<Date: 1930-01-01 ((2425978j,0s,0n),+0s,2299161j)>
130
134
 
data/iceland.gemspec CHANGED
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
30
30
  spec.add_development_dependency 'rubocop', '~> 0.40.0'
31
31
  spec.add_development_dependency 'overcommit', '~> 0.33.0'
32
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.5.0'
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module Iceland
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vignir
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.33.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: codeclimate-test-reporter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.5.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.5.0
83
97
  description: Adds the Kennitala class. Figures out dates and ages, and sanitizes "kennitala"
84
98
  objects and looks up Icelandic postal codes.
85
99
  email: