nationality 0.0.1.pre.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99644da01acbf0ccd884debec46971ee26c05499
4
- data.tar.gz: dc46a115a84a7ca9287570fc008e1a711f5128f7
3
+ metadata.gz: 4b408ce1c4238c13517a661be263926b6a44c5e7
4
+ data.tar.gz: 505f35c1fb63958674cb6af80717a7d4d146967b
5
5
  SHA512:
6
- metadata.gz: 94b2c95e0213d65698fcef82f89e4bff14bd8d76011d358051e1fadcb5bc15d28992ac7b4dc890ee3213d61345a574f1d21cc227c3e3fef515c394bb91337c5e
7
- data.tar.gz: 73ad78c29afe88dadb527536b6ffb3cff8f1fc1fb15dcc2b90c99516ddff7c1ac7c2e2473249af4a4285d772d71977e816cc2e6f6874ce46fc2f04dbc5b68332
6
+ metadata.gz: 00b328dcf4649e9a8a3fff2592bf2d5f37e3d0efd728425bef2f74de9925522d0d075720a78c932f242d6102c25591072c2fa153c9496222d2c5a3a6f8b63bee
7
+ data.tar.gz: 7c0c1ad16b608e6bf04a813e902d12422dfab2559b2f6011cfd897b9cc8db17c186d7e5e554afd53febd64caf284188c616408837ac4fd9291d25d05a0e62ada
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in philippines.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nationality (0.0.1)
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
+ nationality!
25
+ rake (~> 0.4.8)
26
+ rspec (~> 2.13, >= 2.13.0)
27
+
28
+ BUNDLED WITH
29
+ 1.12.5
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Jose Marie Antonio Miñoza
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,35 @@
1
+ # Nationality
2
+
3
+ Provides listing of nationality that you may need in your ruby applications.
4
+
5
+ Data in this gem was taken from Github GIST and the following repos:
6
+
7
+ * [marijn/README.markdown](https://gist.github.com/marijn/274449#file-nationalities-yaml)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ gem 'nationality', '~> 0.0.1'
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install nationality
22
+
23
+ ## Usage
24
+
25
+ This gem provides the following constant arrays:
26
+
27
+ * `Nationality::NATIONALITY`
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
3
+ task :test => :spec
4
+ task :spec do sh 'bundle exec rspec' end
@@ -0,0 +1,10 @@
1
+ require "nationality/version"
2
+ require "yaml"
3
+
4
+ module Nationality
5
+
6
+ YML_NATIONALITY = YAML.load_file(File.join(File.dirname(__FILE__),"nationality", "yml", "nationality.yml"))
7
+
8
+ NATIONALITY = YML_NATIONALITY.map { |_, v| v }.flatten.compact.sort
9
+
10
+ end
@@ -0,0 +1,3 @@
1
+ module Nationality
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,202 @@
1
+ nationalities:
2
+ - "Afghan"
3
+ - "Albanian"
4
+ - "Algerian"
5
+ - "American"
6
+ - "Andorran"
7
+ - "Angolan"
8
+ - "Antiguans"
9
+ - "Argentinean"
10
+ - "Armenian"
11
+ - "Australian"
12
+ - "Austrian"
13
+ - "Azerbaijani"
14
+ - "Bahamian"
15
+ - "Bahraini"
16
+ - "Bangladeshi"
17
+ - "Barbadian"
18
+ - "Barbudans"
19
+ - "Batswana"
20
+ - "Belarusian"
21
+ - "Belgian"
22
+ - "Belizean"
23
+ - "Beninese"
24
+ - "Bhutanese"
25
+ - "Bolivian"
26
+ - "Bosnian"
27
+ - "Brazilian"
28
+ - "British"
29
+ - "Bruneian"
30
+ - "Bulgarian"
31
+ - "Burkinabe"
32
+ - "Burmese"
33
+ - "Burundian"
34
+ - "Cambodian"
35
+ - "Cameroonian"
36
+ - "Canadian"
37
+ - "Cape Verdean"
38
+ - "Central African"
39
+ - "Chadian"
40
+ - "Chilean"
41
+ - "Chinese"
42
+ - "Colombian"
43
+ - "Comoran"
44
+ - "Congolese"
45
+ - "Congolese"
46
+ - "Costa Rican"
47
+ - "Croatian"
48
+ - "Cuban"
49
+ - "Cypriot"
50
+ - "Czech"
51
+ - "Danish"
52
+ - "Djibouti"
53
+ - "Dominican"
54
+ - "Dominican"
55
+ - "Dutch"
56
+ - "Dutchman"
57
+ - "Dutchwoman"
58
+ - "East Timorese"
59
+ - "Ecuadorean"
60
+ - "Egyptian"
61
+ - "Emirian"
62
+ - "Equatorial Guinean"
63
+ - "Eritrean"
64
+ - "Estonian"
65
+ - "Ethiopian"
66
+ - "Fijian"
67
+ - "Filipino"
68
+ - "Finnish"
69
+ - "French"
70
+ - "Gabonese"
71
+ - "Gambian"
72
+ - "Georgian"
73
+ - "German"
74
+ - "Ghanaian"
75
+ - "Greek"
76
+ - "Grenadian"
77
+ - "Guatemalan"
78
+ - "Guinea-Bissauan"
79
+ - "Guinean"
80
+ - "Guyanese"
81
+ - "Haitian"
82
+ - "Herzegovinian"
83
+ - "Honduran"
84
+ - "Hungarian"
85
+ - "I-Kiribati"
86
+ - "Icelander"
87
+ - "Indian"
88
+ - "Indonesian"
89
+ - "Iranian"
90
+ - "Iraqi"
91
+ - "Irish"
92
+ - "Irish"
93
+ - "Israeli"
94
+ - "Italian"
95
+ - "Ivorian"
96
+ - "Jamaican"
97
+ - "Japanese"
98
+ - "Jordanian"
99
+ - "Kazakhstani"
100
+ - "Kenyan"
101
+ - "Kittian and Nevisian"
102
+ - "Kuwaiti"
103
+ - "Kyrgyz"
104
+ - "Laotian"
105
+ - "Latvian"
106
+ - "Lebanese"
107
+ - "Liberian"
108
+ - "Libyan"
109
+ - "Liechtensteiner"
110
+ - "Lithuanian"
111
+ - "Luxembourger"
112
+ - "Macedonian"
113
+ - "Malagasy"
114
+ - "Malawian"
115
+ - "Malaysian"
116
+ - "Maldivan"
117
+ - "Malian"
118
+ - "Maltese"
119
+ - "Marshallese"
120
+ - "Mauritanian"
121
+ - "Mauritian"
122
+ - "Mexican"
123
+ - "Micronesian"
124
+ - "Moldovan"
125
+ - "Monacan"
126
+ - "Mongolian"
127
+ - "Moroccan"
128
+ - "Mosotho"
129
+ - "Motswana"
130
+ - "Mozambican"
131
+ - "Namibian"
132
+ - "Nauruan"
133
+ - "Nepalese"
134
+ - "Netherlander"
135
+ - "New Zealander"
136
+ - "Ni-Vanuatu"
137
+ - "Nicaraguan"
138
+ - "Nigerian"
139
+ - "Nigerien"
140
+ - "North Korean"
141
+ - "Northern Irish"
142
+ - "Norwegian"
143
+ - "Omani"
144
+ - "Pakistani"
145
+ - "Palauan"
146
+ - "Panamanian"
147
+ - "Papua New Guinean"
148
+ - "Paraguayan"
149
+ - "Peruvian"
150
+ - "Polish"
151
+ - "Portuguese"
152
+ - "Qatari"
153
+ - "Romanian"
154
+ - "Russian"
155
+ - "Rwandan"
156
+ - "Saint Lucian"
157
+ - "Salvadoran"
158
+ - "Samoan"
159
+ - "San Marinese"
160
+ - "Sao Tomean"
161
+ - "Saudi"
162
+ - "Scottish"
163
+ - "Senegalese"
164
+ - "Serbian"
165
+ - "Seychellois"
166
+ - "Sierra Leonean"
167
+ - "Singaporean"
168
+ - "Slovakian"
169
+ - "Slovenian"
170
+ - "Solomon Islander"
171
+ - "Somali"
172
+ - "South African"
173
+ - "South Korean"
174
+ - "Spanish"
175
+ - "Sri Lankan"
176
+ - "Sudanese"
177
+ - "Surinamer"
178
+ - "Swazi"
179
+ - "Swedish"
180
+ - "Swiss"
181
+ - "Syrian"
182
+ - "Taiwanese"
183
+ - "Tajik"
184
+ - "Tanzanian"
185
+ - "Thai"
186
+ - "Togolese"
187
+ - "Tongan"
188
+ - "Trinidadian or Tobagonian"
189
+ - "Tunisian"
190
+ - "Turkish"
191
+ - "Tuvaluan"
192
+ - "Ugandan"
193
+ - "Ukrainian"
194
+ - "Uruguayan"
195
+ - "Uzbekistani"
196
+ - "Venezuelan"
197
+ - "Vietnamese"
198
+ - "Welsh"
199
+ - "Welsh"
200
+ - "Yemenite"
201
+ - "Zambian"
202
+ - "Zimbabwean"
Binary file
@@ -0,0 +1,24 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'nationality/version'
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "nationality"
7
+ gem.version = Nationality::VERSION
8
+ gem.authors = ["Jose Marie Antonio Miñoza"]
9
+ gem.email = ["josemarieantoniominoza@gmail.com"]
10
+ gem.description = %q{Provides listing of nationality that you may need in your ruby applications.}
11
+ gem.summary = %q{List of Nationality}
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", '~> 0.4.8'
22
+ gem.add_development_dependency 'rspec', '~> 2.13', '>= 2.13.0'
23
+
24
+ end
@@ -0,0 +1,22 @@
1
+ require "spec_helper"
2
+
3
+ describe Nationality do
4
+
5
+ context "constants" do
6
+ it { should have_constant(:NATIONALITY) }
7
+ end
8
+
9
+ context "::NATIONALITY" do
10
+ it "should be 201" do
11
+ Nationality::NATIONALITY.count.should == 201
12
+ end
13
+ end
14
+
15
+ context "::REGION_DATA" do
16
+ let(:countries) { Nationality::YML_NATIONALITY.map { |_, v| v}.flatten.sort }
17
+
18
+ it "provinces should be consistent with PROVINCES" do
19
+ countries.should == Nationality::NATIONALITY
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,8 @@
1
+ $: << File.expand_path("../../lib", __FILE__)
2
+ require "nationality"
3
+
4
+ RSpec::Matchers.define :have_constant do |const|
5
+ match do |owner|
6
+ owner.const_defined?(const)
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nationality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.3
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Marie Antonio Miñoza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-03 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.4.8
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.4.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,19 @@ email:
50
50
  executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
- files: []
53
+ files:
54
+ - Gemfile
55
+ - Gemfile.lock
56
+ - LICENSE.txt
57
+ - README.md
58
+ - Rakefile
59
+ - lib/nationality.rb
60
+ - lib/nationality/version.rb
61
+ - lib/nationality/yml/nationality.yml
62
+ - nationality-0.0.1.gem
63
+ - nationality.gemspec
64
+ - spec/nationality_spec.rb
65
+ - spec/spec_helper.rb
54
66
  homepage: https://github.com/
55
67
  licenses: []
56
68
  metadata: {}
@@ -65,13 +77,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
77
  version: 1.9.2
66
78
  required_rubygems_version: !ruby/object:Gem::Requirement
67
79
  requirements:
68
- - - ">"
80
+ - - ">="
69
81
  - !ruby/object:Gem::Version
70
- version: 1.3.1
82
+ version: '0'
71
83
  requirements: []
72
84
  rubyforge_project:
73
85
  rubygems_version: 2.5.1
74
86
  signing_key:
75
87
  specification_version: 4
76
88
  summary: List of Nationality
77
- test_files: []
89
+ test_files:
90
+ - spec/nationality_spec.rb
91
+ - spec/spec_helper.rb