countries 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,10 @@
1
1
  source :rubygems
2
2
 
3
- gem 'jeweler', '=1.4.0'
4
- gem 'rspec', '=1.3.1'
5
-
6
3
  gem 'currencies', '=0.4.0', :require => 'iso4217'
7
- gem 'yard', '=0.6.4'
4
+
5
+ group :development, :test do
6
+ gem 'jeweler', '=1.4.0'
7
+ gem 'rspec', '=1.3.1'
8
+ gem 'rake'
9
+ gem 'yard', '=0.6.4'
10
+ end
data/Gemfile.lock CHANGED
@@ -9,6 +9,7 @@ GEM
9
9
  git (>= 1.2.5)
10
10
  rubyforge (>= 2.0.0)
11
11
  json_pure (1.5.1)
12
+ rake (0.8.7)
12
13
  rspec (1.3.1)
13
14
  rubyforge (2.0.4)
14
15
  json_pure (>= 1.1.7)
@@ -20,5 +21,6 @@ PLATFORMS
20
21
  DEPENDENCIES
21
22
  currencies (= 0.4.0)
22
23
  jeweler (= 1.4.0)
24
+ rake
23
25
  rspec (= 1.3.1)
24
26
  yard (= 0.6.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
data/countries.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{countries}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hexorx"]
12
- s.date = %q{2011-02-17}
12
+ s.date = %q{2011-04-13}
13
13
  s.description = %q{All sorts of useful information about every country packaged as pretty little country objects. It includes data from ISO 3166 (countries and subdivisions), ISO 4217 (currency), and E.164 (phone numbers). As a bonus it even adds a country_select helper to rails projects.}
14
14
  s.email = %q{hexorx@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -233,7 +233,7 @@ Gem::Specification.new do |s|
233
233
  s.homepage = %q{http://github.com/hexorx/countries}
234
234
  s.rdoc_options = ["--charset=UTF-8"]
235
235
  s.require_paths = ["lib"]
236
- s.rubygems_version = %q{1.3.7}
236
+ s.rubygems_version = %q{1.6.2}
237
237
  s.summary = %q{Gives you a country object full of all sorts of useful information.}
238
238
  s.test_files = [
239
239
  "spec/country_spec.rb",
@@ -241,7 +241,6 @@ Gem::Specification.new do |s|
241
241
  ]
242
242
 
243
243
  if s.respond_to? :specification_version then
244
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
245
244
  s.specification_version = 3
246
245
 
247
246
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -3707,8 +3707,7 @@ NL:
3707
3707
  number: "528"
3708
3708
  region: Europe
3709
3709
  subregion: "Western Europe"
3710
- ? "NO"
3711
- :
3710
+ "NO":
3712
3711
  address_format: |-
3713
3712
  {{recipient}}
3714
3713
  {{street}}
@@ -3717,6 +3716,7 @@ NL:
3717
3716
  alpha2: "NO"
3718
3717
  alpha3: NOR
3719
3718
  country_code: "47"
3719
+ currency: NOK
3720
3720
  international_prefix: "00"
3721
3721
  latitude: "62 00 N"
3722
3722
  longitude: "10 00 E"
data/spec/country_spec.rb CHANGED
@@ -89,7 +89,7 @@ describe ISO3166::Country do
89
89
 
90
90
  it 'should allow access to symbol' do
91
91
  country.currency[:symbol].should == '$'
92
- end
92
+ end
93
93
  end
94
94
 
95
95
  describe "Country class" do
@@ -139,5 +139,13 @@ describe ISO3166::Country do
139
139
  names.size.should == names.uniq.size
140
140
  end
141
141
  end
142
+
143
+ describe 'Norway' do
144
+ let(:norway) { ISO3166::Country.search('NO') }
145
+
146
+ it 'should have a currency' do
147
+ norway.currency.should be_a(ISO4217::Currency)
148
+ end
149
+ end
142
150
 
143
151
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countries
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - hexorx
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-17 00:00:00 -07:00
18
+ date: 2011-04-13 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -314,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  requirements: []
315
315
 
316
316
  rubyforge_project:
317
- rubygems_version: 1.3.7
317
+ rubygems_version: 1.6.2
318
318
  signing_key:
319
319
  specification_version: 3
320
320
  summary: Gives you a country object full of all sorts of useful information.