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 +4 -4
- data/README.md +5 -1
- data/iceland.gemspec +1 -0
- data/lib/iceland/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168f93a72d00606fc401df64800bfa8cab636a9a
|
4
|
+
data.tar.gz: eb2fc15d5d72379001860f2d91f4a31412ce4a8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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
|
data/lib/iceland/version.rb
CHANGED
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.
|
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:
|