currency_wiz 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -31,7 +31,6 @@ exchange_rate = CurrencyWiz.exchange_rate(country)
31
31
  1.020983
32
32
 
33
33
  ## TODO
34
- fix names for country code lookup
35
34
 
36
35
  ## Contributing
37
36
 
data/currency_wiz.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = CurrencyWiz::VERSION
9
9
  spec.authors = ["Scott Chiang"]
10
10
  spec.email = ["scott.chiang1@gmail.com"]
11
- spec.description = %q{A gem to get the current exchange rate. Sign up for an API key at https://openexchangerates.org/}
11
+ spec.description = %q{A gem to get the current exchange rate.}
12
12
  spec.summary = %q{Get the current exchange rate.}
13
13
  spec.homepage = "https://github.com/scottchiang/currency_wiz"
14
14
  spec.license = "MIT"
@@ -1,3 +1,3 @@
1
1
  module CurrencyWiz
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/currency_wiz.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "currency_wiz/version"
2
- require_relative "./currency_wiz/config"
2
+ require_relative "../lib/currency_wiz/config"
3
3
 
4
4
  require 'httparty'
5
5
 
@@ -8,26 +8,26 @@ module CurrencyWiz
8
8
 
9
9
  CURRENCY_CODES = {
10
10
  "AED"=> "United Arab Emirates Dirham",
11
- "AFN"=> "Afghan Afghani",
12
- "ALL"=> "Albanian Lek",
13
- "AMD"=> "Armenian Dram",
11
+ "AFN"=> "Afghan Afghani Afghanistan",
12
+ "ALL"=> "Albanian Lek Albania",
13
+ "AMD"=> "Armenian Dram Armenia",
14
14
  "ANG"=> "Netherlands Antillean Guilder",
15
- "AOA"=> "Angolan Kwanza",
16
- "ARS"=> "Argentine Peso",
17
- "AUD"=> "Australian Dollar",
18
- "AWG"=> "Aruban Florin",
19
- "AZN"=> "Azerbaijani Manat",
15
+ "AOA"=> "Angolan Kwanza Angola",
16
+ "ARS"=> "Argentine Peso Argentina",
17
+ "AUD"=> "Australian Dollar Australia",
18
+ "AWG"=> "Aruban Florin Aruba",
19
+ "AZN"=> "Azerbaijani Manat Azerbaijan",
20
20
  "BAM"=> "Bosnia-Herzegovina Convertible Mark",
21
- "BBD"=> "Barbadian Dollar",
22
- "BDT"=> "Bangladeshi Taka",
23
- "BGN"=> "Bulgarian Lev",
24
- "BHD"=> "Bahraini Dinar",
25
- "BIF"=> "Burundian Franc",
26
- "BMD"=> "Bermudan Dollar",
21
+ "BBD"=> "Barbadian Dollar Barbados",
22
+ "BDT"=> "Bangladeshi Taka Bangladesh",
23
+ "BGN"=> "Bulgarian Lev Bulgaria",
24
+ "BHD"=> "Bahraini Dinar Bahrain",
25
+ "BIF"=> "Burundian Franc Burundi",
26
+ "BMD"=> "Bermudan Dollar Bermuda",
27
27
  "BND"=> "Brunei Dollar",
28
28
  "BOB"=> "Bolivian Boliviano",
29
29
  "BRL"=> "Brazilian Real",
30
- "BSD"=> "Bahamian Dollar",
30
+ "BSD"=> "Bahamian Dollar Bahama",
31
31
  "BTC"=> "Bitcoin",
32
32
  "BTN"=> "Bhutanese Ngultrum",
33
33
  "BWP"=> "Botswanan Pula",
@@ -35,18 +35,18 @@ module CurrencyWiz
35
35
  "BZD"=> "Belize Dollar",
36
36
  "CAD"=> "Canadian Dollar Canada",
37
37
  "CDF"=> "Congolese Franc",
38
- "CHF"=> "Swiss Franc",
38
+ "CHF"=> "Swiss Franc Switzerland",
39
39
  "CLF"=> "Chilean Unit of Account (UF)",
40
40
  "CLP"=> "Chilean Peso",
41
- "CNY"=> "Chinese Yuan",
41
+ "CNY"=> "Chinese Yuan China",
42
42
  "COP"=> "Colombian Peso",
43
43
  "CRC"=> "Costa Rican Colon",
44
44
  "CUP"=> "Cuban Peso",
45
45
  "CVE"=> "Cape Verdean Escudo",
46
46
  "CZK"=> "Czech Republic Koruna",
47
47
  "DJF"=> "Djiboutian Franc",
48
- "DKK"=> "Danish Krone",
49
- "DOP"=> "Dominican Peso",
48
+ "DKK"=> "Danish Krone Denmark",
49
+ "DOP"=> "Dominican Peso Dominican Republic",
50
50
  "DZD"=> "Algerian Dinar",
51
51
  "EEK"=> "Estonian Kroon",
52
52
  "EGP"=> "Egyptian Pound",
@@ -54,7 +54,7 @@ module CurrencyWiz
54
54
  "EUR"=> "Euro",
55
55
  "FJD"=> "Fijian Dollar",
56
56
  "FKP"=> "Falkland Islands Pound",
57
- "GBP"=> "British Pound Sterling",
57
+ "GBP"=> "British Pound Sterling England",
58
58
  "GEL"=> "Georgian Lari",
59
59
  "GHS"=> "Ghanaian Cedi",
60
60
  "GIP"=> "Gibraltar Pound",
@@ -63,7 +63,7 @@ module CurrencyWiz
63
63
  "GTQ"=> "Guatemalan Quetzal",
64
64
  "GYD"=> "Guyanaese Dollar",
65
65
  "HKD"=> "Hong Kong Dollar",
66
- "HNL"=> "Honduran Lempira",
66
+ "HNL"=> "Honduran Lempira Honduras",
67
67
  "HRK"=> "Croatian Kuna",
68
68
  "HTG"=> "Haitian Gourde",
69
69
  "HUF"=> "Hungarian Forint",
@@ -87,14 +87,14 @@ module CurrencyWiz
87
87
  "KYD"=> "Cayman Islands Dollar",
88
88
  "KZT"=> "Kazakhstani Tenge",
89
89
  "LAK"=> "Laotian Kip",
90
- "LBP"=> "Lebanese Pound",
90
+ "LBP"=> "Lebanese Pound Lebanon",
91
91
  "LKR"=> "Sri Lankan Rupee",
92
92
  "LRD"=> "Liberian Dollar",
93
93
  "LSL"=> "Lesotho Loti",
94
94
  "LTL"=> "Lithuanian Litas",
95
95
  "LVL"=> "Latvian Lats",
96
96
  "LYD"=> "Libyan Dinar",
97
- "MAD"=> "Moroccan Dirham",
97
+ "MAD"=> "Moroccan Dirham Morocco",
98
98
  "MDL"=> "Moldovan Leu",
99
99
  "MGA"=> "Malagasy Ariary",
100
100
  "MKD"=> "Macedonian Denar",
@@ -106,13 +106,13 @@ module CurrencyWiz
106
106
  "MUR"=> "Mauritian Rupee",
107
107
  "MVR"=> "Maldivian Rufiyaa",
108
108
  "MWK"=> "Malawian Kwacha",
109
- "MXN"=> "Mexican Peso",
109
+ "MXN"=> "Mexican Peso Mexico",
110
110
  "MYR"=> "Malaysian Ringgit",
111
111
  "MZN"=> "Mozambican Metical",
112
112
  "NAD"=> "Namibian Dollar",
113
113
  "NGN"=> "Nigerian Naira",
114
114
  "NIO"=> "Nicaraguan Cordoba",
115
- "NOK"=> "Norwegian Krone",
115
+ "NOK"=> "Norwegian Krone Norway",
116
116
  "NPR"=> "Nepalese Rupee",
117
117
  "NZD"=> "New Zealand Dollar",
118
118
  "OMR"=> "Omani Rial",
@@ -121,33 +121,33 @@ module CurrencyWiz
121
121
  "PGK"=> "Papua New Guinean Kina",
122
122
  "PHP"=> "Philippine Peso",
123
123
  "PKR"=> "Pakistani Rupee",
124
- "PLN"=> "Polish Zloty",
124
+ "PLN"=> "Polish Zloty Poland",
125
125
  "PYG"=> "Paraguayan Guarani",
126
126
  "QAR"=> "Qatari Rial",
127
127
  "RON"=> "Romanian Leu",
128
128
  "RSD"=> "Serbian Dinar",
129
129
  "RUB"=> "Russian Ruble",
130
130
  "RWF"=> "Rwandan Franc",
131
- "SAR"=> "Saudi Riyal",
131
+ "SAR"=> "Saudi Riyal Saudi Arabia",
132
132
  "SBD"=> "Solomon Islands Dollar",
133
133
  "SCR"=> "Seychellois Rupee",
134
134
  "SDG"=> "Sudanese Pound",
135
- "SEK"=> "Swedish Krona",
135
+ "SEK"=> "Swedish Krona Swedan",
136
136
  "SGD"=> "Singapore Dollar",
137
137
  "SHP"=> "Saint Helena Pound",
138
138
  "SLL"=> "Sierra Leonean Leone",
139
- "SOS"=> "Somali Shilling",
139
+ "SOS"=> "Somali Shilling Somalia",
140
140
  "SRD"=> "Surinamese Dollar",
141
141
  "STD"=> "Sao Tome and Principe Dobra",
142
- "SVC"=> "Salvadoran Colon",
142
+ "SVC"=> "Salvadoran Colon El Salvador",
143
143
  "SYP"=> "Syrian Pound",
144
- "SZL"=> "Swazi Lilangeni",
145
- "THB"=> "Thai Baht",
144
+ "SZL"=> "Swazi Lilangeni Swaziland",
145
+ "THB"=> "Thai Baht Thailand",
146
146
  "TJS"=> "Tajikistani Somoni",
147
147
  "TMT"=> "Turkmenistani Manat",
148
148
  "TND"=> "Tunisian Dinar",
149
149
  "TOP"=> "Tongan Paanga",
150
- "TRY"=> "Turkish Lira",
150
+ "TRY"=> "Turkish Lira Turkey",
151
151
  "TTD"=> "Trinidad and Tobago Dollar",
152
152
  "TWD"=> "New Taiwan Dollar",
153
153
  "TZS"=> "Tanzanian Shilling",
@@ -157,7 +157,7 @@ module CurrencyWiz
157
157
  "UYU"=> "Uruguayan Peso",
158
158
  "UZS"=> "Uzbekistan Som",
159
159
  "VEF"=> "Venezuelan Bolivar Fuerte",
160
- "VND"=> "Vietnamese Dong",
160
+ "VND"=> "Vietnamese Dong Vietnam",
161
161
  "VUV"=> "Vanuatu Vatu",
162
162
  "WST"=> "Samoan Tala",
163
163
  "XAF"=> "CFA Franc BEAC",
@@ -199,4 +199,6 @@ module CurrencyWiz
199
199
 
200
200
  end
201
201
 
202
+ a = CurrencyWiz::get_code('brazil')
203
+ puts a
202
204
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currency_wiz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -75,7 +75,7 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- description: A gem to get the current exchange rate. Sign up for an API key at https://openexchangerates.org/
78
+ description: A gem to get the current exchange rate.
79
79
  email:
80
80
  - scott.chiang1@gmail.com
81
81
  executables: []