currency_list 0.0.2
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.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +29 -0
- data/LICENSE.txt +22 -0
- data/README.md +36 -0
- data/Rakefile +4 -0
- data/government.gemspec +24 -0
- data/lib/currency.rb +10 -0
- data/lib/currency/version.rb +3 -0
- data/lib/currency/yml/currency.yml +27 -0
- data/pkg/currency-0.0.2.gem +0 -0
- data/spec/currency_spec.rb +22 -0
- data/spec/spec_helper.rb +8 -0
- metadata +91 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a34f6cb72c53eda2e6d0e892abd995ccd66ffd1c
|
|
4
|
+
data.tar.gz: 6385dfc8b63276d05147e3467a36f9dd74a68c7a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ff8eeddd05eaa3751f00a6cd262709b1ed04376e0d853bd2a0bd6d19890686da3fd16906c7ea9336c7a10ad3acb094f29834fb6e793f190ab9cd01b13fc6ff3a
|
|
7
|
+
data.tar.gz: 768d422f901a7481dbbd15dc57d33584e9223daa458005ce3d45281b1860ecd595a6354c66c2ea21485b025d11a50805a98a0d6398b8f24ebf8a96c33fe35e5b
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
currency_list (0.0.2)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
diff-lcs (1.2.5)
|
|
10
|
+
rake (0.4.15)
|
|
11
|
+
rspec (2.99.0)
|
|
12
|
+
rspec-core (~> 2.99.0)
|
|
13
|
+
rspec-expectations (~> 2.99.0)
|
|
14
|
+
rspec-mocks (~> 2.99.0)
|
|
15
|
+
rspec-core (2.99.2)
|
|
16
|
+
rspec-expectations (2.99.2)
|
|
17
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
18
|
+
rspec-mocks (2.99.4)
|
|
19
|
+
|
|
20
|
+
PLATFORMS
|
|
21
|
+
ruby
|
|
22
|
+
|
|
23
|
+
DEPENDENCIES
|
|
24
|
+
currency_list!
|
|
25
|
+
rake
|
|
26
|
+
rspec (~> 2.13, >= 2.13.0)
|
|
27
|
+
|
|
28
|
+
BUNDLED WITH
|
|
29
|
+
1.13.6
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2016 Francis Mamaril Gonzales
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Currency
|
|
2
|
+
by [Francis Mamaril Gonzales](https://github.com/FrancisMG)
|
|
3
|
+
|
|
4
|
+
Provides listing of different forms of government that you may need in your ruby applications.
|
|
5
|
+
|
|
6
|
+
Data in this gem was taken from Github GIST and the following repos:
|
|
7
|
+
|
|
8
|
+
* [marijn/README.markdown](https://gist.github.com/marijn/274449#file-nationalities-yaml)
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
Add this line to your application's Gemfile:
|
|
13
|
+
|
|
14
|
+
gem 'currency', '~> 0.0.2'
|
|
15
|
+
|
|
16
|
+
And then execute:
|
|
17
|
+
|
|
18
|
+
$ bundle
|
|
19
|
+
|
|
20
|
+
Or install it yourself as:
|
|
21
|
+
|
|
22
|
+
$ gem install currency
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
This gem provides the following constant arrays:
|
|
27
|
+
|
|
28
|
+
* `Currency::CURRENCY`
|
|
29
|
+
|
|
30
|
+
## Contributing
|
|
31
|
+
|
|
32
|
+
1. Fork it
|
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
36
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/government.gemspec
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require 'currency/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |gem|
|
|
6
|
+
gem.name = "currency_list"
|
|
7
|
+
gem.version = Currency::VERSION
|
|
8
|
+
gem.authors = ["Francis Mamaril Gonzales"]
|
|
9
|
+
gem.email = ["francisgonzales.developer@gmail.com"]
|
|
10
|
+
gem.description = %q{Provides listing of currency that you may need in your ruby applications.}
|
|
11
|
+
gem.summary = %q{List of Currency}
|
|
12
|
+
gem.homepage = "https://github.com/"
|
|
13
|
+
|
|
14
|
+
gem.files = `git ls-files`.split($/)
|
|
15
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
16
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
17
|
+
gem.require_paths = ["lib"]
|
|
18
|
+
|
|
19
|
+
gem.required_ruby_version = ">= 1.9.2"
|
|
20
|
+
|
|
21
|
+
gem.add_development_dependency "rake"
|
|
22
|
+
gem.add_development_dependency 'rspec', '~> 2.13', '>= 2.13.0'
|
|
23
|
+
|
|
24
|
+
end
|
data/lib/currency.rb
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
currency:
|
|
2
|
+
- "Afghan afghani"
|
|
3
|
+
- "European euro"
|
|
4
|
+
- "Albanian lek"
|
|
5
|
+
- "Algerian dinar"
|
|
6
|
+
- "United States dollar "
|
|
7
|
+
- "Angolan kwanza"
|
|
8
|
+
- "East Caribbean dollar"
|
|
9
|
+
- "Oligarchy"
|
|
10
|
+
- "Republics"
|
|
11
|
+
- "Socialism"
|
|
12
|
+
- "Totalitarianism"
|
|
13
|
+
- "Welfare state"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe Currency do
|
|
4
|
+
|
|
5
|
+
context "constants" do
|
|
6
|
+
it { should have_constant(:CURRENCY) }
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
context "::CURRENCY" do
|
|
10
|
+
it "should be 12" do
|
|
11
|
+
Currency::CURRENCY.count.should == 12
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
context "::REGION_DATA" do
|
|
16
|
+
let(:countries) { Currency::YML_CURRENCY.map { |_, v| v}.flatten.sort }
|
|
17
|
+
|
|
18
|
+
it "provinces should be consistent with PROVINCES" do
|
|
19
|
+
countries.should == Currency::CURRENCY
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: currency_list
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Francis Mamaril Gonzales
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rake
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rspec
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.13'
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: 2.13.0
|
|
37
|
+
type: :development
|
|
38
|
+
prerelease: false
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - "~>"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '2.13'
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 2.13.0
|
|
47
|
+
description: Provides listing of currency that you may need in your ruby applications.
|
|
48
|
+
email:
|
|
49
|
+
- francisgonzales.developer@gmail.com
|
|
50
|
+
executables: []
|
|
51
|
+
extensions: []
|
|
52
|
+
extra_rdoc_files: []
|
|
53
|
+
files:
|
|
54
|
+
- Gemfile
|
|
55
|
+
- Gemfile.lock
|
|
56
|
+
- LICENSE.txt
|
|
57
|
+
- README.md
|
|
58
|
+
- Rakefile
|
|
59
|
+
- government.gemspec
|
|
60
|
+
- lib/currency.rb
|
|
61
|
+
- lib/currency/version.rb
|
|
62
|
+
- lib/currency/yml/currency.yml
|
|
63
|
+
- pkg/currency-0.0.2.gem
|
|
64
|
+
- spec/currency_spec.rb
|
|
65
|
+
- spec/spec_helper.rb
|
|
66
|
+
homepage: https://github.com/
|
|
67
|
+
licenses: []
|
|
68
|
+
metadata: {}
|
|
69
|
+
post_install_message:
|
|
70
|
+
rdoc_options: []
|
|
71
|
+
require_paths:
|
|
72
|
+
- lib
|
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: 1.9.2
|
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
requirements: []
|
|
84
|
+
rubyforge_project:
|
|
85
|
+
rubygems_version: 2.5.1
|
|
86
|
+
signing_key:
|
|
87
|
+
specification_version: 4
|
|
88
|
+
summary: List of Currency
|
|
89
|
+
test_files:
|
|
90
|
+
- spec/currency_spec.rb
|
|
91
|
+
- spec/spec_helper.rb
|