feedback_with_country_state 0.0.1

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.
Files changed (89) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +34 -0
  4. data/app/assets/javascripts/feedback_with_country_state/application.js +13 -0
  5. data/app/assets/javascripts/feedback_with_country_state/users.js +20 -0
  6. data/app/assets/stylesheets/feedback_with_country_state/application.css +13 -0
  7. data/app/assets/stylesheets/feedback_with_country_state/users.css +4 -0
  8. data/app/controllers/feedback_with_country_state/application_controller.rb +4 -0
  9. data/app/controllers/feedback_with_country_state/users_controller.rb +40 -0
  10. data/app/helpers/feedback_with_country_state/application_helper.rb +4 -0
  11. data/app/helpers/feedback_with_country_state/users_helper.rb +4 -0
  12. data/app/models/feedback_with_country_state/country.rb +5 -0
  13. data/app/models/feedback_with_country_state/state.rb +5 -0
  14. data/app/models/feedback_with_country_state/user.rb +6 -0
  15. data/app/views/feedback_with_country_state/users/index.html.erb +1 -0
  16. data/app/views/feedback_with_country_state/users/new.html.erb +37 -0
  17. data/app/views/feedback_with_country_state/users/show.html.erb +28 -0
  18. data/app/views/layouts/feedback_with_country_state/application.html.erb +15 -0
  19. data/config/routes.rb +4 -0
  20. data/db/migrate/20131120142341_create_feedback_with_country_state_users.rb +13 -0
  21. data/db/migrate/20131120142358_create_feedback_with_country_state_countries.rb +10 -0
  22. data/db/migrate/20131120142405_create_feedback_with_country_state_states.rb +11 -0
  23. data/db/seeds.rb +17 -0
  24. data/lib/feedback_with_country_state.rb +4 -0
  25. data/lib/feedback_with_country_state/engine.rb +5 -0
  26. data/lib/feedback_with_country_state/version.rb +3 -0
  27. data/lib/tasks/feedback_with_country_state_tasks.rake +4 -0
  28. data/test/controllers/feedback_with_country_state/users_controller_test.rb +9 -0
  29. data/test/dummy/README.rdoc +28 -0
  30. data/test/dummy/Rakefile +6 -0
  31. data/test/dummy/app/assets/javascripts/application.js +13 -0
  32. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  33. data/test/dummy/app/controllers/application_controller.rb +5 -0
  34. data/test/dummy/app/helpers/application_helper.rb +2 -0
  35. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/test/dummy/bin/bundle +3 -0
  37. data/test/dummy/bin/rails +4 -0
  38. data/test/dummy/bin/rake +4 -0
  39. data/test/dummy/config.ru +4 -0
  40. data/test/dummy/config/application.rb +23 -0
  41. data/test/dummy/config/boot.rb +5 -0
  42. data/test/dummy/config/database.yml +25 -0
  43. data/test/dummy/config/environment.rb +5 -0
  44. data/test/dummy/config/environments/development.rb +29 -0
  45. data/test/dummy/config/environments/production.rb +80 -0
  46. data/test/dummy/config/environments/test.rb +36 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  49. data/test/dummy/config/initializers/inflections.rb +16 -0
  50. data/test/dummy/config/initializers/mime_types.rb +5 -0
  51. data/test/dummy/config/initializers/secret_token.rb +12 -0
  52. data/test/dummy/config/initializers/session_store.rb +3 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +23 -0
  55. data/test/dummy/config/routes.rb +4 -0
  56. data/test/dummy/countries.csv +246 -0
  57. data/test/dummy/db/development.sqlite3 +0 -0
  58. data/test/dummy/db/schema.rb +41 -0
  59. data/test/dummy/db/seeds.rb +17 -0
  60. data/test/dummy/db/test.sqlite3 +0 -0
  61. data/test/dummy/log/development.log +8021 -0
  62. data/test/dummy/public/404.html +58 -0
  63. data/test/dummy/public/422.html +58 -0
  64. data/test/dummy/public/500.html +57 -0
  65. data/test/dummy/public/favicon.ico +0 -0
  66. data/test/dummy/states.csv +1626 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/00a4f98286c23052abf232d6878da82a +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/0419fefceda5a67a222cb6f6478f498f +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/0ab64614ef25980ac4cf9e81a9892a44 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/0bcb67bba77f8632667ed7013faed456 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/17b435992d09784986690dfdbe6906b0 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/2560397becd6c9f617c58941ba7216db +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/30069ac6f8471fb464c289506e9ed054 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/3a8794bf66ac5ed1a9b87737368dac39 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/b2676dd62f215a196fb93a8e3e0fcfc9 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/c47eceec5a8c481e3aba47c384f198b5 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/c9c2dd6386bf37dc338ae1e7d8daaf4d +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/f71897be8009100a97eeb34ec367abbc +0 -0
  79. data/test/feedback_with_country_state_test.rb +7 -0
  80. data/test/fixtures/feedback_with_country_state/countries.yml +9 -0
  81. data/test/fixtures/feedback_with_country_state/states.yml +11 -0
  82. data/test/fixtures/feedback_with_country_state/users.yml +15 -0
  83. data/test/helpers/feedback_with_country_state/users_helper_test.rb +6 -0
  84. data/test/integration/navigation_test.rb +10 -0
  85. data/test/models/feedback_with_country_state/country_test.rb +9 -0
  86. data/test/models/feedback_with_country_state/state_test.rb +9 -0
  87. data/test/models/feedback_with_country_state/user_test.rb +9 -0
  88. data/test/test_helper.rb +15 -0
  89. metadata +226 -0
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class FeedbackWithCountryStateTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, FeedbackWithCountryState
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ name: MyString
5
+ abbreviation: MyString
6
+
7
+ two:
8
+ name: MyString
9
+ abbreviation: MyString
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ country_id: 1
5
+ name: MyString
6
+ abbreviation: MyString
7
+
8
+ two:
9
+ country_id: 1
10
+ name: MyString
11
+ abbreviation: MyString
@@ -0,0 +1,15 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ name: MyString
5
+ email: MyString
6
+ country_id: 1
7
+ state_id: 1
8
+ comment: MyText
9
+
10
+ two:
11
+ name: MyString
12
+ email: MyString
13
+ country_id: 1
14
+ state_id: 1
15
+ comment: MyText
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module FeedbackWithCountryState
4
+ class UsersHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module FeedbackWithCountryState
4
+ class CountryTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module FeedbackWithCountryState
4
+ class StateTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module FeedbackWithCountryState
4
+ class UserTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,226 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: feedback_with_country_state
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Prachi Paliwal
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-09-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 4.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: This is the feedback form which having states according to the country.
47
+ email:
48
+ - prachi.p@cisinlabs.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - app/models/feedback_with_country_state/state.rb
54
+ - app/models/feedback_with_country_state/country.rb
55
+ - app/models/feedback_with_country_state/user.rb
56
+ - app/views/layouts/feedback_with_country_state/application.html.erb
57
+ - app/views/feedback_with_country_state/users/show.html.erb
58
+ - app/views/feedback_with_country_state/users/new.html.erb
59
+ - app/views/feedback_with_country_state/users/index.html.erb
60
+ - app/assets/stylesheets/feedback_with_country_state/application.css
61
+ - app/assets/stylesheets/feedback_with_country_state/users.css
62
+ - app/assets/javascripts/feedback_with_country_state/users.js
63
+ - app/assets/javascripts/feedback_with_country_state/application.js
64
+ - app/helpers/feedback_with_country_state/application_helper.rb
65
+ - app/helpers/feedback_with_country_state/users_helper.rb
66
+ - app/controllers/feedback_with_country_state/application_controller.rb
67
+ - app/controllers/feedback_with_country_state/users_controller.rb
68
+ - config/routes.rb
69
+ - db/migrate/20131120142405_create_feedback_with_country_state_states.rb
70
+ - db/migrate/20131120142341_create_feedback_with_country_state_users.rb
71
+ - db/migrate/20131120142358_create_feedback_with_country_state_countries.rb
72
+ - db/seeds.rb
73
+ - lib/feedback_with_country_state.rb
74
+ - lib/tasks/feedback_with_country_state_tasks.rake
75
+ - lib/feedback_with_country_state/version.rb
76
+ - lib/feedback_with_country_state/engine.rb
77
+ - MIT-LICENSE
78
+ - Rakefile
79
+ - README.rdoc
80
+ - test/dummy/bin/rake
81
+ - test/dummy/bin/rails
82
+ - test/dummy/bin/bundle
83
+ - test/dummy/config.ru
84
+ - test/dummy/states.csv
85
+ - test/dummy/Rakefile
86
+ - test/dummy/config/routes.rb
87
+ - test/dummy/config/environment.rb
88
+ - test/dummy/config/boot.rb
89
+ - test/dummy/config/locales/en.yml
90
+ - test/dummy/config/application.rb
91
+ - test/dummy/config/initializers/backtrace_silencers.rb
92
+ - test/dummy/config/initializers/secret_token.rb
93
+ - test/dummy/config/initializers/mime_types.rb
94
+ - test/dummy/config/initializers/inflections.rb
95
+ - test/dummy/config/initializers/filter_parameter_logging.rb
96
+ - test/dummy/config/initializers/wrap_parameters.rb
97
+ - test/dummy/config/initializers/session_store.rb
98
+ - test/dummy/config/database.yml
99
+ - test/dummy/config/environments/development.rb
100
+ - test/dummy/config/environments/test.rb
101
+ - test/dummy/config/environments/production.rb
102
+ - test/dummy/public/500.html
103
+ - test/dummy/public/favicon.ico
104
+ - test/dummy/public/422.html
105
+ - test/dummy/public/404.html
106
+ - test/dummy/app/views/layouts/application.html.erb
107
+ - test/dummy/app/assets/stylesheets/application.css
108
+ - test/dummy/app/assets/javascripts/application.js
109
+ - test/dummy/app/helpers/application_helper.rb
110
+ - test/dummy/app/controllers/application_controller.rb
111
+ - test/dummy/README.rdoc
112
+ - test/dummy/countries.csv
113
+ - test/dummy/log/development.log
114
+ - test/dummy/tmp/cache/assets/development/sprockets/17b435992d09784986690dfdbe6906b0
115
+ - test/dummy/tmp/cache/assets/development/sprockets/c9c2dd6386bf37dc338ae1e7d8daaf4d
116
+ - test/dummy/tmp/cache/assets/development/sprockets/30069ac6f8471fb464c289506e9ed054
117
+ - test/dummy/tmp/cache/assets/development/sprockets/2560397becd6c9f617c58941ba7216db
118
+ - test/dummy/tmp/cache/assets/development/sprockets/0419fefceda5a67a222cb6f6478f498f
119
+ - test/dummy/tmp/cache/assets/development/sprockets/0ab64614ef25980ac4cf9e81a9892a44
120
+ - test/dummy/tmp/cache/assets/development/sprockets/b2676dd62f215a196fb93a8e3e0fcfc9
121
+ - test/dummy/tmp/cache/assets/development/sprockets/00a4f98286c23052abf232d6878da82a
122
+ - test/dummy/tmp/cache/assets/development/sprockets/f71897be8009100a97eeb34ec367abbc
123
+ - test/dummy/tmp/cache/assets/development/sprockets/0bcb67bba77f8632667ed7013faed456
124
+ - test/dummy/tmp/cache/assets/development/sprockets/3a8794bf66ac5ed1a9b87737368dac39
125
+ - test/dummy/tmp/cache/assets/development/sprockets/c47eceec5a8c481e3aba47c384f198b5
126
+ - test/dummy/db/development.sqlite3
127
+ - test/dummy/db/schema.rb
128
+ - test/dummy/db/seeds.rb
129
+ - test/dummy/db/test.sqlite3
130
+ - test/models/feedback_with_country_state/state_test.rb
131
+ - test/models/feedback_with_country_state/user_test.rb
132
+ - test/models/feedback_with_country_state/country_test.rb
133
+ - test/feedback_with_country_state_test.rb
134
+ - test/integration/navigation_test.rb
135
+ - test/fixtures/feedback_with_country_state/users.yml
136
+ - test/fixtures/feedback_with_country_state/states.yml
137
+ - test/fixtures/feedback_with_country_state/countries.yml
138
+ - test/helpers/feedback_with_country_state/users_helper_test.rb
139
+ - test/controllers/feedback_with_country_state/users_controller_test.rb
140
+ - test/test_helper.rb
141
+ homepage:
142
+ licenses: []
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubyforge_project:
161
+ rubygems_version: 1.8.25
162
+ signing_key:
163
+ specification_version: 3
164
+ summary: Feedback with country state
165
+ test_files:
166
+ - test/dummy/bin/rake
167
+ - test/dummy/bin/rails
168
+ - test/dummy/bin/bundle
169
+ - test/dummy/config.ru
170
+ - test/dummy/states.csv
171
+ - test/dummy/Rakefile
172
+ - test/dummy/config/routes.rb
173
+ - test/dummy/config/environment.rb
174
+ - test/dummy/config/boot.rb
175
+ - test/dummy/config/locales/en.yml
176
+ - test/dummy/config/application.rb
177
+ - test/dummy/config/initializers/backtrace_silencers.rb
178
+ - test/dummy/config/initializers/secret_token.rb
179
+ - test/dummy/config/initializers/mime_types.rb
180
+ - test/dummy/config/initializers/inflections.rb
181
+ - test/dummy/config/initializers/filter_parameter_logging.rb
182
+ - test/dummy/config/initializers/wrap_parameters.rb
183
+ - test/dummy/config/initializers/session_store.rb
184
+ - test/dummy/config/database.yml
185
+ - test/dummy/config/environments/development.rb
186
+ - test/dummy/config/environments/test.rb
187
+ - test/dummy/config/environments/production.rb
188
+ - test/dummy/public/500.html
189
+ - test/dummy/public/favicon.ico
190
+ - test/dummy/public/422.html
191
+ - test/dummy/public/404.html
192
+ - test/dummy/app/views/layouts/application.html.erb
193
+ - test/dummy/app/assets/stylesheets/application.css
194
+ - test/dummy/app/assets/javascripts/application.js
195
+ - test/dummy/app/helpers/application_helper.rb
196
+ - test/dummy/app/controllers/application_controller.rb
197
+ - test/dummy/README.rdoc
198
+ - test/dummy/countries.csv
199
+ - test/dummy/log/development.log
200
+ - test/dummy/tmp/cache/assets/development/sprockets/17b435992d09784986690dfdbe6906b0
201
+ - test/dummy/tmp/cache/assets/development/sprockets/c9c2dd6386bf37dc338ae1e7d8daaf4d
202
+ - test/dummy/tmp/cache/assets/development/sprockets/30069ac6f8471fb464c289506e9ed054
203
+ - test/dummy/tmp/cache/assets/development/sprockets/2560397becd6c9f617c58941ba7216db
204
+ - test/dummy/tmp/cache/assets/development/sprockets/0419fefceda5a67a222cb6f6478f498f
205
+ - test/dummy/tmp/cache/assets/development/sprockets/0ab64614ef25980ac4cf9e81a9892a44
206
+ - test/dummy/tmp/cache/assets/development/sprockets/b2676dd62f215a196fb93a8e3e0fcfc9
207
+ - test/dummy/tmp/cache/assets/development/sprockets/00a4f98286c23052abf232d6878da82a
208
+ - test/dummy/tmp/cache/assets/development/sprockets/f71897be8009100a97eeb34ec367abbc
209
+ - test/dummy/tmp/cache/assets/development/sprockets/0bcb67bba77f8632667ed7013faed456
210
+ - test/dummy/tmp/cache/assets/development/sprockets/3a8794bf66ac5ed1a9b87737368dac39
211
+ - test/dummy/tmp/cache/assets/development/sprockets/c47eceec5a8c481e3aba47c384f198b5
212
+ - test/dummy/db/development.sqlite3
213
+ - test/dummy/db/schema.rb
214
+ - test/dummy/db/seeds.rb
215
+ - test/dummy/db/test.sqlite3
216
+ - test/models/feedback_with_country_state/state_test.rb
217
+ - test/models/feedback_with_country_state/user_test.rb
218
+ - test/models/feedback_with_country_state/country_test.rb
219
+ - test/feedback_with_country_state_test.rb
220
+ - test/integration/navigation_test.rb
221
+ - test/fixtures/feedback_with_country_state/users.yml
222
+ - test/fixtures/feedback_with_country_state/states.yml
223
+ - test/fixtures/feedback_with_country_state/countries.yml
224
+ - test/helpers/feedback_with_country_state/users_helper_test.rb
225
+ - test/controllers/feedback_with_country_state/users_controller_test.rb
226
+ - test/test_helper.rb