country_state_select 3.0.3 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/README.md +3 -1
- data/Rakefile +1 -2
- data/app/controllers/country_state_select/cscs_controller.rb +6 -6
- data/config/routes.rb +2 -2
- data/country_state_select.gemspec +11 -11
- data/lib/country_state_select.rb +27 -36
- data/lib/country_state_select/version.rb +1 -1
- data/spec/country_state_select_spec.rb +33 -38
- data/spec/spec_helper.rb +2 -2
- metadata +3 -135
- data/test/dummy/.gitignore +0 -16
- data/test/dummy/Gemfile +0 -44
- data/test/dummy/README.rdoc +0 -3
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -19
- data/test/dummy/app/assets/javascripts/locations.coffee +0 -2
- data/test/dummy/app/assets/stylesheets/application.scss +0 -16
- data/test/dummy/app/assets/stylesheets/locations.css.scss +0 -3
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/locations_controller.rb +0 -55
- data/test/dummy/app/form/location_form.rb +0 -11
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/models/location.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -16
- data/test/dummy/app/views/locations/_form.html.erb +0 -14
- data/test/dummy/app/views/locations/index.html.erb +0 -29
- data/test/dummy/app/views/locations/new.html.erb +0 -13
- data/test/dummy/app/views/locations/show.html.erb +0 -13
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/boot.rb +0 -4
- data/test/dummy/config/database.yml +0 -24
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -29
- data/test/dummy/config/environments/production.rb +0 -80
- data/test/dummy/config/environments/test.rb +0 -36
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -12
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/simple_form.rb +0 -165
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/locales/simple_form.en.yml +0 -31
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/db/migrate/20140724080030_create_locations.rb +0 -10
- data/test/dummy/db/migrate/20151024160724_add_test_city_to_locations.rb +0 -5
- data/test/dummy/db/schema.rb +0 -24
- data/test/dummy/db/seeds.rb +0 -7
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/lib/tasks/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +0 -58
- data/test/dummy/public/422.html +0 -58
- data/test/dummy/public/500.html +0 -57
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/robots.txt +0 -5
- data/test/dummy/test/controllers/.keep +0 -0
- data/test/dummy/test/fixtures/.keep +0 -0
- data/test/dummy/test/helpers/.keep +0 -0
- data/test/dummy/test/integration/.keep +0 -0
- data/test/dummy/test/mailers/.keep +0 -0
- data/test/dummy/test/models/.keep +0 -0
- data/test/dummy/test/test_helper.rb +0 -15
- data/test/dummy/vendor/assets/javascripts/.keep +0 -0
- data/test/dummy/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9721f200c33320a2fdacc02a1633c7881b593f82
|
4
|
+
data.tar.gz: 5ccc8d878cab7fa4863f7e7a877eb2d56960dd07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19affba4514b97e47f676057d643a3c46f81a032150cc6b835869f5c26225ec5e64f92e2ee07ebfc402417de2f25d22f22cb7cda1d972556f19a5a7cca67c562
|
7
|
+
data.tar.gz: b2f49f14dd0f225a83dd2368bdc73dfc24711043f6218dadecef831febf91453343656aacd45b44ac61f5fb18ee3b135d7576e4e3cf65e10b12751367a5ba0a8
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -26,7 +26,9 @@ Then run
|
|
26
26
|
|
27
27
|
|
28
28
|
Don't forget to restart your server after you install it.
|
29
|
-
|
29
|
+
## Setup Gem
|
30
|
+
if not autoloaded than please add in your application.js
|
31
|
+
//= require country_state_select
|
30
32
|
|
31
33
|
## chosen JavaScript assets
|
32
34
|
The application makes use of the chosen-rails library for a better user experience. This can be disabled if desired.
|
data/Rakefile
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
1
|
+
# @author : Arvind Vyas
|
2
2
|
module CountryStateSelect
|
3
3
|
class CscsController < ApplicationController
|
4
4
|
def find_states
|
5
|
-
csc =
|
5
|
+
csc = CS.states(params[:country_id])
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
respond_to do |format|
|
8
|
+
format.json { render json: csc.to_a }
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -14,8 +14,8 @@ module CountryStateSelect
|
|
14
14
|
cities = CS.cities(params[:state_id].to_sym, params[:country_id].to_sym)
|
15
15
|
|
16
16
|
respond_to do |format|
|
17
|
-
|
17
|
+
format.json { render json: cities.to_a }
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
data/config/routes.rb
CHANGED
@@ -4,23 +4,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'country_state_select/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'country_state_select'
|
8
8
|
spec.version = CountryStateSelect::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
9
|
+
spec.authors = ['Arvind Vyas']
|
10
|
+
spec.email = ['arvindvyas07@gmail.com']
|
11
|
+
spec.summary = 'Dynamically select Country and State.'
|
12
|
+
spec.description = 'Country State Select is a Ruby Gem that aims to make Country and State/Province selection a cinch in Ruby on Rails environments.'
|
13
|
+
spec.homepage = 'https://github.com/arvindvyas/Country-State-Select'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
23
|
+
spec.add_development_dependency 'rspec'
|
24
24
|
spec.add_development_dependency 'pry'
|
25
25
|
|
26
26
|
spec.add_runtime_dependency 'rails'
|
data/lib/country_state_select.rb
CHANGED
@@ -1,77 +1,68 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require 'country_state_select/version'
|
2
|
+
require 'city-state'
|
3
|
+
require 'rails'
|
4
4
|
|
5
5
|
module CountryStateSelect
|
6
|
-
|
7
|
-
#Collect the Countries
|
6
|
+
# Collect the Countries
|
8
7
|
def self.countries_collection
|
9
|
-
CS.countries.except!(:COUNTRY_ISO_CODE).collect {|p| [
|
8
|
+
CS.countries.except!(:COUNTRY_ISO_CODE).collect { |p| [p[1], p[0]] }.compact
|
10
9
|
end
|
11
10
|
|
12
|
-
#Pass array of unwanted countries to get back all except those in the array
|
11
|
+
# Pass array of unwanted countries to get back all except those in the array
|
13
12
|
def self.countries_except(*except)
|
14
13
|
countries_collection.collect { |c| c unless except.include?(c[1]) }.compact
|
15
14
|
end
|
16
15
|
|
17
|
-
#Return either the State (String) or States (Array)
|
16
|
+
# Return either the State (String) or States (Array)
|
18
17
|
def self.states_collection(f, options)
|
19
18
|
states = collect_states(f.object.send(options[:country]))
|
20
|
-
return f.object.send(options[:state]) if states.
|
19
|
+
return f.object.send(options[:state]) if states.empty?
|
21
20
|
states
|
22
21
|
end
|
23
22
|
|
24
|
-
|
23
|
+
# Return either the City (String) or Cities (Array)
|
25
24
|
def self.cities_collection(f, options)
|
26
25
|
cities = collect_cities(f.object.send(options[:state]))
|
27
|
-
cities
|
28
26
|
end
|
29
27
|
|
30
|
-
|
31
|
-
#Return the collected States for a given Country
|
28
|
+
# Return the collected States for a given Country
|
32
29
|
def self.collect_states(country)
|
33
|
-
CS.states(country).collect {|p| [
|
30
|
+
CS.states(country).collect { |p| [p[1], p[0]] }.compact
|
34
31
|
end
|
35
32
|
|
36
|
-
#Return the cities of given state and country
|
33
|
+
# Return the cities of given state and country
|
37
34
|
def self.collect_cities(state_id = '', country_id = '')
|
38
|
-
if state_id.nil? || country_id.nil?
|
39
|
-
|
40
|
-
else
|
41
|
-
CS.cities(state_id.to_sym, country_id.to_sym)
|
42
|
-
end
|
35
|
+
return [] if state_id.nil? || country_id.nil?
|
36
|
+
CS.cities(state_id.to_sym, country_id.to_sym)
|
43
37
|
end
|
44
38
|
|
45
|
-
#Return a hash for use in the simple_form
|
39
|
+
# Return a hash for use in the simple_form
|
46
40
|
def self.state_options(options)
|
47
41
|
states = states_collection(options[:form], options[:field_names])
|
48
|
-
options =
|
42
|
+
options = merge_hash(options, states)
|
49
43
|
end
|
50
44
|
|
51
|
-
#Return a hash for use in the simple_form
|
45
|
+
# Return a hash for use in the simple_form
|
52
46
|
def self.city_options(options)
|
53
47
|
cities = cities_collection(options[:form], options[:field_names])
|
54
|
-
options =
|
48
|
+
options = merge_hash(options, cities)
|
55
49
|
end
|
56
50
|
|
57
51
|
# Create hash to use in the simple_form
|
58
52
|
def self.merge_hash(options, collections)
|
59
53
|
options = options.merge(collection: collections)
|
60
|
-
options = options.merge(:
|
54
|
+
options = options.merge(as: :string) if collections.class == String
|
61
55
|
options
|
62
56
|
end
|
63
|
-
|
64
57
|
end
|
65
58
|
|
66
59
|
case ::Rails.version.to_s
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
else
|
76
|
-
raise 'Unsupported rails version'
|
60
|
+
when /[4-6]/
|
61
|
+
require 'country_state_select/engine'
|
62
|
+
when /^3\.[12]/
|
63
|
+
require 'country_state_select/engine3'
|
64
|
+
when /^3\.[0]/
|
65
|
+
require 'country_state_select/railtie'
|
66
|
+
else
|
67
|
+
raise 'Unsupported rails version'
|
77
68
|
end
|
@@ -1,31 +1,29 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe CountryStateSelect do
|
4
|
-
|
5
4
|
describe '#countries_collection' do
|
6
5
|
it 'does not include :COUNTRY_ISO_CODE' do
|
7
|
-
expect(CountryStateSelect.countries_collection).not_to include([:
|
6
|
+
expect(CountryStateSelect.countries_collection).not_to include([COUNTRY_ISO_CODE: 'country_name'])
|
8
7
|
end
|
9
8
|
|
10
|
-
it
|
9
|
+
it 'returns an array' do
|
11
10
|
method_call = CountryStateSelect.countries_collection
|
12
11
|
expect(method_call.class).to eq(Array)
|
13
12
|
end
|
14
13
|
|
15
|
-
it
|
14
|
+
it 'returns the value first and the key second' do
|
16
15
|
method_call = CountryStateSelect.countries_collection
|
17
|
-
expect(method_call[0][0]).to eq(
|
16
|
+
expect(method_call[0][0]).to eq('Andorra')
|
18
17
|
expect(method_call[0][1]).to eq(:AD)
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
22
|
-
describe
|
23
|
-
let(:us) { [
|
24
|
-
let(:sm) { [
|
25
|
-
let(:exceptions) {
|
21
|
+
describe '#countries_except' do
|
22
|
+
let(:us) { ['United States', :US] }
|
23
|
+
let(:sm) { ['Saint Martin', :MF] }
|
24
|
+
let(:exceptions) { [us, sm] }
|
26
25
|
|
27
26
|
it 'does include the United States ordinarily' do
|
28
|
-
binding.pry
|
29
27
|
expect(CountryStateSelect.countries_except([])).to include(us)
|
30
28
|
end
|
31
29
|
|
@@ -37,17 +35,17 @@ describe CountryStateSelect do
|
|
37
35
|
expect(CountryStateSelect.countries_except(exceptions)).not_to include(exceptions)
|
38
36
|
end
|
39
37
|
|
40
|
-
it
|
41
|
-
expect(CountryStateSelect.countries_except
|
38
|
+
it 'returns the same result as #countries_collection if no exceptions are passed' do
|
39
|
+
expect(CountryStateSelect.countries_except).to eq(CountryStateSelect.countries_collection)
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
45
43
|
describe '#states_collection' do
|
46
|
-
let(:f) { double(
|
44
|
+
let(:f) { double(object: {}) }
|
47
45
|
let(:options) { { country: 'country_field_name', state: 'state_field_name' } }
|
48
46
|
|
49
|
-
it
|
50
|
-
expect(f.object).to receive(:country_field_name).and_return('US') #Set the form Country Field to US
|
47
|
+
it 'should return 51 elements when we query for the United States' do
|
48
|
+
expect(f.object).to receive(:country_field_name).and_return('US') # Set the form Country Field to US
|
51
49
|
|
52
50
|
method_call = CountryStateSelect.states_collection(f, options)
|
53
51
|
|
@@ -55,8 +53,8 @@ describe CountryStateSelect do
|
|
55
53
|
expect(method_call.size).to eq(51)
|
56
54
|
end
|
57
55
|
|
58
|
-
it
|
59
|
-
expect(f.object).to receive(:country_field_name).and_return('MF') #Set the form Country Field to MF for Saint Martin
|
56
|
+
it 'should return a String when we query for Saint Martin' do
|
57
|
+
expect(f.object).to receive(:country_field_name).and_return('MF') # Set the form Country Field to MF for Saint Martin
|
60
58
|
expect(f.object).to receive(:state_field_name).and_return('')
|
61
59
|
|
62
60
|
method_call = CountryStateSelect.states_collection(f, options)
|
@@ -66,27 +64,27 @@ describe CountryStateSelect do
|
|
66
64
|
end
|
67
65
|
|
68
66
|
it "should return the 'State from Form' if the Country requested returns no States" do
|
69
|
-
expect(f.object).to receive(:country_field_name).and_return('MF') #Set the form Country Field to MF for Saint Martin
|
67
|
+
expect(f.object).to receive(:country_field_name).and_return('MF') # Set the form Country Field to MF for Saint Martin
|
70
68
|
expect(f.object).to receive(:state_field_name).and_return('State from Form')
|
71
69
|
|
72
70
|
method_call = CountryStateSelect.states_collection(f, options)
|
73
71
|
|
74
|
-
expect(method_call).to eq(
|
72
|
+
expect(method_call).to eq('State from Form')
|
75
73
|
end
|
76
74
|
end
|
77
75
|
|
78
76
|
describe '#states_options' do
|
79
|
-
let(:f) { double(
|
80
|
-
let(:options) { { form: f,
|
77
|
+
let(:f) { double(object: {}) }
|
78
|
+
let(:options) { { form: f, label: 'State / Province', field_names: { country: :country_field_name, state: :state_field_name } } }
|
81
79
|
|
82
|
-
it
|
80
|
+
it 'should return a Hash' do
|
83
81
|
expect(f.object).to receive(:country_field_name).and_return('US')
|
84
82
|
|
85
83
|
method_call = CountryStateSelect.state_options(options)
|
86
84
|
expect(method_call.class).to eq(Hash)
|
87
85
|
end
|
88
86
|
|
89
|
-
it
|
87
|
+
it 'should contain a key-value pair of as: => :string if no states are returned for the country' do
|
90
88
|
expect(f.object).to receive(:country_field_name).and_return('MF')
|
91
89
|
expect(f.object).to receive(:state_field_name).and_return('')
|
92
90
|
|
@@ -102,7 +100,7 @@ describe CountryStateSelect do
|
|
102
100
|
expect(method_call).not_to have_key(:as)
|
103
101
|
end
|
104
102
|
|
105
|
-
it
|
103
|
+
it 'should have a label if one has been set' do
|
106
104
|
expect(f.object).to receive(:country_field_name).and_return('US')
|
107
105
|
|
108
106
|
method_call = CountryStateSelect.state_options(options)
|
@@ -110,7 +108,7 @@ describe CountryStateSelect do
|
|
110
108
|
expect(method_call[:label]).to eq(options[:label])
|
111
109
|
end
|
112
110
|
|
113
|
-
it
|
111
|
+
it 'should contain a collection of type Array if a country has states' do
|
114
112
|
expect(f.object).to receive(:country_field_name).and_return('US')
|
115
113
|
|
116
114
|
method_call = CountryStateSelect.state_options(options)
|
@@ -118,7 +116,7 @@ describe CountryStateSelect do
|
|
118
116
|
expect(method_call[:collection].class).to eq(Array)
|
119
117
|
end
|
120
118
|
|
121
|
-
it
|
119
|
+
it 'should contain a collection of type String if a country has no states' do
|
122
120
|
expect(f.object).to receive(:country_field_name).and_return('MF')
|
123
121
|
expect(f.object).to receive(:state_field_name).and_return('')
|
124
122
|
|
@@ -129,45 +127,42 @@ describe CountryStateSelect do
|
|
129
127
|
end
|
130
128
|
|
131
129
|
describe '#collect_states' do
|
132
|
-
it
|
130
|
+
it 'returns an array' do
|
133
131
|
method_call = CountryStateSelect.collect_states('US')
|
134
132
|
expect(method_call.class).to eq(Array)
|
135
133
|
end
|
136
134
|
|
137
|
-
it
|
135
|
+
it 'returns the diffrent value for the key and value' do
|
138
136
|
method_call = CountryStateSelect.collect_states('US')
|
139
137
|
expect(method_call[0][0]).not_to eq(method_call[0][1])
|
140
138
|
end
|
141
139
|
|
142
|
-
it
|
140
|
+
it 'returns the value part of the key-value pair' do
|
143
141
|
method_call = CountryStateSelect.collect_states('US')
|
144
|
-
expect(method_call.first.first).to eq(
|
142
|
+
expect(method_call.first.first).to eq('Alaska')
|
145
143
|
end
|
146
144
|
|
147
|
-
it
|
145
|
+
it 'returns an empty array if there are no states in that Country' do
|
148
146
|
method_call = CountryStateSelect.collect_states('MF')
|
149
147
|
expect(method_call).to eq([])
|
150
148
|
end
|
151
149
|
end
|
152
150
|
|
153
151
|
describe '#collect_cities' do
|
154
|
-
|
155
|
-
it "returns an array" do
|
152
|
+
it 'returns an array' do
|
156
153
|
method_call = CountryStateSelect.collect_cities(:mp, :in)
|
157
154
|
expect(method_call.class).to eq(Array)
|
158
155
|
end
|
159
156
|
|
160
|
-
it
|
157
|
+
it 'it should return same value if city is not duplicate with state with out sending country' do
|
161
158
|
city_without_country = CountryStateSelect.collect_cities(:mp, '')
|
162
159
|
city_with_country = CountryStateSelect.collect_cities(:mp, :in)
|
163
160
|
expect(city_without_country).to eq(city_with_country)
|
164
161
|
end
|
165
162
|
|
166
|
-
|
167
|
-
it "returns an empty array if there are no states in that Country" do
|
163
|
+
it 'returns an empty array if there are no states in that Country' do
|
168
164
|
method_call = CountryStateSelect.collect_cities('', '')
|
169
165
|
expect(method_call).to eq([])
|
170
166
|
end
|
171
167
|
end
|
172
|
-
|
173
|
-
end
|
168
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: country_state_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvind Vyas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,72 +118,6 @@ files:
|
|
118
118
|
- lib/country_state_select/version.rb
|
119
119
|
- spec/country_state_select_spec.rb
|
120
120
|
- spec/spec_helper.rb
|
121
|
-
- test/dummy/.gitignore
|
122
|
-
- test/dummy/Gemfile
|
123
|
-
- test/dummy/README.rdoc
|
124
|
-
- test/dummy/Rakefile
|
125
|
-
- test/dummy/app/assets/images/.keep
|
126
|
-
- test/dummy/app/assets/javascripts/application.js
|
127
|
-
- test/dummy/app/assets/javascripts/locations.coffee
|
128
|
-
- test/dummy/app/assets/stylesheets/application.scss
|
129
|
-
- test/dummy/app/assets/stylesheets/locations.css.scss
|
130
|
-
- test/dummy/app/controllers/application_controller.rb
|
131
|
-
- test/dummy/app/controllers/concerns/.keep
|
132
|
-
- test/dummy/app/controllers/locations_controller.rb
|
133
|
-
- test/dummy/app/form/location_form.rb
|
134
|
-
- test/dummy/app/helpers/application_helper.rb
|
135
|
-
- test/dummy/app/mailers/.keep
|
136
|
-
- test/dummy/app/models/.keep
|
137
|
-
- test/dummy/app/models/concerns/.keep
|
138
|
-
- test/dummy/app/models/location.rb
|
139
|
-
- test/dummy/app/views/layouts/application.html.erb
|
140
|
-
- test/dummy/app/views/locations/_form.html.erb
|
141
|
-
- test/dummy/app/views/locations/index.html.erb
|
142
|
-
- test/dummy/app/views/locations/new.html.erb
|
143
|
-
- test/dummy/app/views/locations/show.html.erb
|
144
|
-
- test/dummy/bin/bundle
|
145
|
-
- test/dummy/bin/rails
|
146
|
-
- test/dummy/bin/rake
|
147
|
-
- test/dummy/config.ru
|
148
|
-
- test/dummy/config/application.rb
|
149
|
-
- test/dummy/config/boot.rb
|
150
|
-
- test/dummy/config/database.yml
|
151
|
-
- test/dummy/config/environment.rb
|
152
|
-
- test/dummy/config/environments/development.rb
|
153
|
-
- test/dummy/config/environments/production.rb
|
154
|
-
- test/dummy/config/environments/test.rb
|
155
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
156
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
157
|
-
- test/dummy/config/initializers/inflections.rb
|
158
|
-
- test/dummy/config/initializers/mime_types.rb
|
159
|
-
- test/dummy/config/initializers/secret_token.rb
|
160
|
-
- test/dummy/config/initializers/session_store.rb
|
161
|
-
- test/dummy/config/initializers/simple_form.rb
|
162
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
163
|
-
- test/dummy/config/locales/en.yml
|
164
|
-
- test/dummy/config/locales/simple_form.en.yml
|
165
|
-
- test/dummy/config/routes.rb
|
166
|
-
- test/dummy/db/migrate/20140724080030_create_locations.rb
|
167
|
-
- test/dummy/db/migrate/20151024160724_add_test_city_to_locations.rb
|
168
|
-
- test/dummy/db/schema.rb
|
169
|
-
- test/dummy/db/seeds.rb
|
170
|
-
- test/dummy/lib/assets/.keep
|
171
|
-
- test/dummy/lib/tasks/.keep
|
172
|
-
- test/dummy/log/.keep
|
173
|
-
- test/dummy/public/404.html
|
174
|
-
- test/dummy/public/422.html
|
175
|
-
- test/dummy/public/500.html
|
176
|
-
- test/dummy/public/favicon.ico
|
177
|
-
- test/dummy/public/robots.txt
|
178
|
-
- test/dummy/test/controllers/.keep
|
179
|
-
- test/dummy/test/fixtures/.keep
|
180
|
-
- test/dummy/test/helpers/.keep
|
181
|
-
- test/dummy/test/integration/.keep
|
182
|
-
- test/dummy/test/mailers/.keep
|
183
|
-
- test/dummy/test/models/.keep
|
184
|
-
- test/dummy/test/test_helper.rb
|
185
|
-
- test/dummy/vendor/assets/javascripts/.keep
|
186
|
-
- test/dummy/vendor/assets/stylesheets/.keep
|
187
121
|
- vendor/assets/javascript/country_state_select.js.erb
|
188
122
|
homepage: https://github.com/arvindvyas/Country-State-Select
|
189
123
|
licenses:
|
@@ -205,76 +139,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
139
|
version: '0'
|
206
140
|
requirements: []
|
207
141
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.4.6
|
209
143
|
signing_key:
|
210
144
|
specification_version: 4
|
211
145
|
summary: Dynamically select Country and State.
|
212
146
|
test_files:
|
213
147
|
- spec/country_state_select_spec.rb
|
214
148
|
- spec/spec_helper.rb
|
215
|
-
- test/dummy/.gitignore
|
216
|
-
- test/dummy/Gemfile
|
217
|
-
- test/dummy/README.rdoc
|
218
|
-
- test/dummy/Rakefile
|
219
|
-
- test/dummy/app/assets/images/.keep
|
220
|
-
- test/dummy/app/assets/javascripts/application.js
|
221
|
-
- test/dummy/app/assets/javascripts/locations.coffee
|
222
|
-
- test/dummy/app/assets/stylesheets/application.scss
|
223
|
-
- test/dummy/app/assets/stylesheets/locations.css.scss
|
224
|
-
- test/dummy/app/controllers/application_controller.rb
|
225
|
-
- test/dummy/app/controllers/concerns/.keep
|
226
|
-
- test/dummy/app/controllers/locations_controller.rb
|
227
|
-
- test/dummy/app/form/location_form.rb
|
228
|
-
- test/dummy/app/helpers/application_helper.rb
|
229
|
-
- test/dummy/app/mailers/.keep
|
230
|
-
- test/dummy/app/models/.keep
|
231
|
-
- test/dummy/app/models/concerns/.keep
|
232
|
-
- test/dummy/app/models/location.rb
|
233
|
-
- test/dummy/app/views/layouts/application.html.erb
|
234
|
-
- test/dummy/app/views/locations/_form.html.erb
|
235
|
-
- test/dummy/app/views/locations/index.html.erb
|
236
|
-
- test/dummy/app/views/locations/new.html.erb
|
237
|
-
- test/dummy/app/views/locations/show.html.erb
|
238
|
-
- test/dummy/bin/bundle
|
239
|
-
- test/dummy/bin/rails
|
240
|
-
- test/dummy/bin/rake
|
241
|
-
- test/dummy/config.ru
|
242
|
-
- test/dummy/config/application.rb
|
243
|
-
- test/dummy/config/boot.rb
|
244
|
-
- test/dummy/config/database.yml
|
245
|
-
- test/dummy/config/environment.rb
|
246
|
-
- test/dummy/config/environments/development.rb
|
247
|
-
- test/dummy/config/environments/production.rb
|
248
|
-
- test/dummy/config/environments/test.rb
|
249
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
250
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
251
|
-
- test/dummy/config/initializers/inflections.rb
|
252
|
-
- test/dummy/config/initializers/mime_types.rb
|
253
|
-
- test/dummy/config/initializers/secret_token.rb
|
254
|
-
- test/dummy/config/initializers/session_store.rb
|
255
|
-
- test/dummy/config/initializers/simple_form.rb
|
256
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
257
|
-
- test/dummy/config/locales/en.yml
|
258
|
-
- test/dummy/config/locales/simple_form.en.yml
|
259
|
-
- test/dummy/config/routes.rb
|
260
|
-
- test/dummy/db/migrate/20140724080030_create_locations.rb
|
261
|
-
- test/dummy/db/migrate/20151024160724_add_test_city_to_locations.rb
|
262
|
-
- test/dummy/db/schema.rb
|
263
|
-
- test/dummy/db/seeds.rb
|
264
|
-
- test/dummy/lib/assets/.keep
|
265
|
-
- test/dummy/lib/tasks/.keep
|
266
|
-
- test/dummy/log/.keep
|
267
|
-
- test/dummy/public/404.html
|
268
|
-
- test/dummy/public/422.html
|
269
|
-
- test/dummy/public/500.html
|
270
|
-
- test/dummy/public/favicon.ico
|
271
|
-
- test/dummy/public/robots.txt
|
272
|
-
- test/dummy/test/controllers/.keep
|
273
|
-
- test/dummy/test/fixtures/.keep
|
274
|
-
- test/dummy/test/helpers/.keep
|
275
|
-
- test/dummy/test/integration/.keep
|
276
|
-
- test/dummy/test/mailers/.keep
|
277
|
-
- test/dummy/test/models/.keep
|
278
|
-
- test/dummy/test/test_helper.rb
|
279
|
-
- test/dummy/vendor/assets/javascripts/.keep
|
280
|
-
- test/dummy/vendor/assets/stylesheets/.keep
|