currencies 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGYxMDQxZWFiZmUwN2U3NTI5MThkMWI0MTI3NjJhN2I1YTRkMGQ2Mg==
5
+ data.tar.gz: !binary |-
6
+ MzZkMTNhMmYzMjMwMjM0ZmZkNjBhMTQ1Mzg3NWI2OTEzMWE0Y2U0Zg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YzFmYWZhYmUzNmNlNWRiMTM2MjZmZmQ1MDU3Mjg2YjFlYzg3NjA1MWQwZjI4
10
+ Mjc1NWRiNGM2MDRlNjU2MzliNGFlOTVjZGJiYTZmNTU5YjlkM2FmYTU3YTA3
11
+ NjkxYzVlYjcxZTY0M2NiYzU1MzJhNTMzMTQ5NzYxNmEzNGYwNWY=
12
+ data.tar.gz: !binary |-
13
+ ZTY0M2VlZWRhZDYzMTcyZTIyYmFhNjc3NjczMGY3Y2E1YzcxOTI3NThjODIy
14
+ ODU2ODhkYjkyYzhiYTNhNTk1Y2ZhOGVkOTlmYTMxZDg3NzMzMzBhOWY2MDQ0
15
+ ZmM5NjExM2UyN2FjYTYwYjViZGY2YzNhMjgzOTYyN2E3ODY4Njc=
@@ -29,7 +29,7 @@ class ISO4217::Currency
29
29
  end
30
30
 
31
31
  def load_exchange_rate
32
- @exchange_currency = self.class.base_currency
32
+ @exchange_currency = self.class.base_currency unless @exchange_currency
33
33
  return 1.0 if @code == @exchange_currency
34
34
  if self.class.import_exchange_rates
35
35
  http = Net::HTTP.new('download.finance.yahoo.com', 80)
@@ -1,3 +1,3 @@
1
1
  module Currencies
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -62,6 +62,9 @@ BBD:
62
62
  name: Dollars
63
63
  symbol: $
64
64
  unicode_hex: 36
65
+ BDT:
66
+ code: BDT
67
+ name: Taka
65
68
  BGN:
66
69
  code: BGN
67
70
  name: Leva
@@ -104,9 +107,6 @@ BSD:
104
107
  name: Dollars
105
108
  symbol: $
106
109
  unicode_hex: 36
107
- BTD:
108
- code: BTD
109
- name: Taka
110
110
  BTN:
111
111
  code: BTN
112
112
  name: Ngultrum
@@ -135,6 +135,9 @@ CAD:
135
135
  name: Dollars
136
136
  symbol: $
137
137
  unicode_hex: 36
138
+ CDF:
139
+ code: CDF
140
+ name: Franc
138
141
  CHF:
139
142
  code: CHF
140
143
  name: "Switzerland Francs"
@@ -219,6 +222,9 @@ EUR:
219
222
  name: Euro
220
223
  symbol: €
221
224
  unicode_hex: 8364
225
+ FJD:
226
+ code: FJD
227
+ name: Dollar
222
228
  FKP:
223
229
  code: FKP
224
230
  name: Pounds
@@ -278,6 +284,9 @@ HRK:
278
284
  unicode_hex:
279
285
  - 107
280
286
  - 110
287
+ HTG:
288
+ code: HTG
289
+ name: "Haitian Gourde"
281
290
  HUF:
282
291
  code: HUF
283
292
  name: Forint
@@ -425,6 +434,15 @@ MAD:
425
434
  MDL:
426
435
  code: MDL
427
436
  name: Lei
437
+ MKD:
438
+ code: MKD
439
+ name: "Macedonian Denar"
440
+ MGA:
441
+ code: MGA
442
+ name: Ariary
443
+ MMK:
444
+ code: MMK
445
+ name: Kyat
428
446
  MNK:
429
447
  code: MNK
430
448
  name: Kyats
@@ -633,6 +651,9 @@ SRD:
633
651
  STD:
634
652
  code: STD
635
653
  name: Dobras
654
+ SVC:
655
+ code: SVC
656
+ name: "Salvadoran Colón"
636
657
  SYP:
637
658
  code: SYP
638
659
  name: Pounds
@@ -649,6 +670,9 @@ THB:
649
670
  TJS:
650
671
  code: TJS
651
672
  name: Somoni
673
+ TMM:
674
+ code: TMM
675
+ name: Manat
652
676
  TND:
653
677
  code: TND
654
678
  name: Dollars
@@ -754,3 +778,4 @@ ZWD:
754
778
  unicode_hex:
755
779
  - 90
756
780
  - 36
781
+
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
5
- prerelease:
4
+ version: 0.4.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - hexorx
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-05-11 00:00:00.000000000 Z
12
+ date: 2013-06-07 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ! '>='
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: yard
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ! '>='
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ! '>='
45
40
  - !ruby/object:Gem::Version
@@ -81,33 +76,26 @@ files:
81
76
  - spec/spec_helper.rb
82
77
  homepage: http://github.com/hexorx/currencies
83
78
  licenses: []
79
+ metadata: {}
84
80
  post_install_message:
85
81
  rdoc_options: []
86
82
  require_paths:
87
83
  - lib
88
84
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
85
  requirements:
91
86
  - - ! '>='
92
87
  - !ruby/object:Gem::Version
93
88
  version: '0'
94
- segments:
95
- - 0
96
- hash: -3014364688897172461
97
89
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
90
  requirements:
100
91
  - - ! '>='
101
92
  - !ruby/object:Gem::Version
102
93
  version: '0'
103
- segments:
104
- - 0
105
- hash: -3014364688897172461
106
94
  requirements: []
107
95
  rubyforge_project:
108
- rubygems_version: 1.8.23
96
+ rubygems_version: 2.0.3
109
97
  signing_key:
110
- specification_version: 3
98
+ specification_version: 4
111
99
  summary: Simple gem for working with currencies. It is extracted from the countries
112
100
  gem and contains all the currency information in the ISO 4217 standard.
113
101
  test_files: