rails_polymorphic_select 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +86 -0
- data/Rakefile +21 -0
- data/lib/rails_polymorphic_select.rb +6 -0
- data/lib/rails_polymorphic_select/belongs_to_builder_extension.rb +25 -0
- data/lib/rails_polymorphic_select/engine.rb +16 -0
- data/lib/rails_polymorphic_select/form_builder.rb +36 -0
- data/lib/rails_polymorphic_select/version.rb +3 -0
- data/spec/belongs_to_builder_extension_spec.rb +46 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/animal.rb +5 -0
- data/spec/dummy/app/models/planet.rb +5 -0
- data/spec/dummy/app/models/plant.rb +3 -0
- data/spec/dummy/app/models/star.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150911212009_create_animals.rb +12 -0
- data/spec/dummy/db/migrate/20150911212401_create_plants.rb +10 -0
- data/spec/dummy/db/migrate/20150912014900_create_stars.rb +8 -0
- data/spec/dummy/db/migrate/20150912015008_create_planets.rb +9 -0
- data/spec/dummy/db/schema.rb +45 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +251 -0
- data/spec/dummy/log/test.log +1364 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/animals.rb +6 -0
- data/spec/factories/planets.rb +6 -0
- data/spec/factories/plants.rb +6 -0
- data/spec/factories/stars.rb +5 -0
- data/spec/form_builder_spec.rb +78 -0
- data/spec/rails_helper.rb +58 -0
- data/spec/spec_helper.rb +93 -0
- metadata +255 -0
metadata
ADDED
@@ -0,0 +1,255 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_polymorphic_select
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Landau
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDOjCCAiKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxicmlh
|
14
|
+
bmpsYW5kYXUxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0wNzEyMDU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|
+
wR9huisTMlESX3ReGKU=
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
date: 2015-09-14 00:00:00.000000000 Z
|
33
|
+
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rails
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.2'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.2'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: sqlite3
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.3'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.3'
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: factory_girl_rails
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.5'
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.5'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rspec-html-matchers
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.7.0
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.7.0
|
104
|
+
description: This is a simple Rails extension that allows you to create polymorphic
|
105
|
+
select inputs for relationships that are polymorphic.
|
106
|
+
email:
|
107
|
+
- brian.landau@viget.com
|
108
|
+
executables: []
|
109
|
+
extensions: []
|
110
|
+
extra_rdoc_files: []
|
111
|
+
files:
|
112
|
+
- MIT-LICENSE
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- lib/rails_polymorphic_select.rb
|
116
|
+
- lib/rails_polymorphic_select/belongs_to_builder_extension.rb
|
117
|
+
- lib/rails_polymorphic_select/engine.rb
|
118
|
+
- lib/rails_polymorphic_select/form_builder.rb
|
119
|
+
- lib/rails_polymorphic_select/version.rb
|
120
|
+
- spec/belongs_to_builder_extension_spec.rb
|
121
|
+
- spec/dummy/README.rdoc
|
122
|
+
- spec/dummy/Rakefile
|
123
|
+
- spec/dummy/app/assets/javascripts/application.js
|
124
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
125
|
+
- spec/dummy/app/controllers/application_controller.rb
|
126
|
+
- spec/dummy/app/helpers/application_helper.rb
|
127
|
+
- spec/dummy/app/models/animal.rb
|
128
|
+
- spec/dummy/app/models/planet.rb
|
129
|
+
- spec/dummy/app/models/plant.rb
|
130
|
+
- spec/dummy/app/models/star.rb
|
131
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
132
|
+
- spec/dummy/bin/bundle
|
133
|
+
- spec/dummy/bin/rails
|
134
|
+
- spec/dummy/bin/rake
|
135
|
+
- spec/dummy/bin/setup
|
136
|
+
- spec/dummy/config.ru
|
137
|
+
- spec/dummy/config/application.rb
|
138
|
+
- spec/dummy/config/boot.rb
|
139
|
+
- spec/dummy/config/database.yml
|
140
|
+
- spec/dummy/config/environment.rb
|
141
|
+
- spec/dummy/config/environments/development.rb
|
142
|
+
- spec/dummy/config/environments/production.rb
|
143
|
+
- spec/dummy/config/environments/test.rb
|
144
|
+
- spec/dummy/config/initializers/assets.rb
|
145
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
146
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
147
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
148
|
+
- spec/dummy/config/initializers/inflections.rb
|
149
|
+
- spec/dummy/config/initializers/mime_types.rb
|
150
|
+
- spec/dummy/config/initializers/session_store.rb
|
151
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
152
|
+
- spec/dummy/config/locales/en.yml
|
153
|
+
- spec/dummy/config/routes.rb
|
154
|
+
- spec/dummy/config/secrets.yml
|
155
|
+
- spec/dummy/db/development.sqlite3
|
156
|
+
- spec/dummy/db/migrate/20150911212009_create_animals.rb
|
157
|
+
- spec/dummy/db/migrate/20150911212401_create_plants.rb
|
158
|
+
- spec/dummy/db/migrate/20150912014900_create_stars.rb
|
159
|
+
- spec/dummy/db/migrate/20150912015008_create_planets.rb
|
160
|
+
- spec/dummy/db/schema.rb
|
161
|
+
- spec/dummy/db/test.sqlite3
|
162
|
+
- spec/dummy/log/development.log
|
163
|
+
- spec/dummy/log/test.log
|
164
|
+
- spec/dummy/public/404.html
|
165
|
+
- spec/dummy/public/422.html
|
166
|
+
- spec/dummy/public/500.html
|
167
|
+
- spec/dummy/public/favicon.ico
|
168
|
+
- spec/factories/animals.rb
|
169
|
+
- spec/factories/planets.rb
|
170
|
+
- spec/factories/plants.rb
|
171
|
+
- spec/factories/stars.rb
|
172
|
+
- spec/form_builder_spec.rb
|
173
|
+
- spec/rails_helper.rb
|
174
|
+
- spec/spec_helper.rb
|
175
|
+
homepage: https://github.com/vigetlabs/rails_polymorphic_select
|
176
|
+
licenses:
|
177
|
+
- MIT
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.4.5.1
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: This is a simple Rails extension that allows you to create polymorphic select
|
199
|
+
inputs for relationships that are polymorphic.
|
200
|
+
test_files:
|
201
|
+
- spec/belongs_to_builder_extension_spec.rb
|
202
|
+
- spec/dummy/app/assets/javascripts/application.js
|
203
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
204
|
+
- spec/dummy/app/controllers/application_controller.rb
|
205
|
+
- spec/dummy/app/helpers/application_helper.rb
|
206
|
+
- spec/dummy/app/models/animal.rb
|
207
|
+
- spec/dummy/app/models/planet.rb
|
208
|
+
- spec/dummy/app/models/plant.rb
|
209
|
+
- spec/dummy/app/models/star.rb
|
210
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
211
|
+
- spec/dummy/bin/bundle
|
212
|
+
- spec/dummy/bin/rails
|
213
|
+
- spec/dummy/bin/rake
|
214
|
+
- spec/dummy/bin/setup
|
215
|
+
- spec/dummy/config/application.rb
|
216
|
+
- spec/dummy/config/boot.rb
|
217
|
+
- spec/dummy/config/database.yml
|
218
|
+
- spec/dummy/config/environment.rb
|
219
|
+
- spec/dummy/config/environments/development.rb
|
220
|
+
- spec/dummy/config/environments/production.rb
|
221
|
+
- spec/dummy/config/environments/test.rb
|
222
|
+
- spec/dummy/config/initializers/assets.rb
|
223
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
224
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
225
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
226
|
+
- spec/dummy/config/initializers/inflections.rb
|
227
|
+
- spec/dummy/config/initializers/mime_types.rb
|
228
|
+
- spec/dummy/config/initializers/session_store.rb
|
229
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
230
|
+
- spec/dummy/config/locales/en.yml
|
231
|
+
- spec/dummy/config/routes.rb
|
232
|
+
- spec/dummy/config/secrets.yml
|
233
|
+
- spec/dummy/config.ru
|
234
|
+
- spec/dummy/db/development.sqlite3
|
235
|
+
- spec/dummy/db/migrate/20150911212009_create_animals.rb
|
236
|
+
- spec/dummy/db/migrate/20150911212401_create_plants.rb
|
237
|
+
- spec/dummy/db/migrate/20150912014900_create_stars.rb
|
238
|
+
- spec/dummy/db/migrate/20150912015008_create_planets.rb
|
239
|
+
- spec/dummy/db/schema.rb
|
240
|
+
- spec/dummy/db/test.sqlite3
|
241
|
+
- spec/dummy/log/development.log
|
242
|
+
- spec/dummy/log/test.log
|
243
|
+
- spec/dummy/public/404.html
|
244
|
+
- spec/dummy/public/422.html
|
245
|
+
- spec/dummy/public/500.html
|
246
|
+
- spec/dummy/public/favicon.ico
|
247
|
+
- spec/dummy/Rakefile
|
248
|
+
- spec/dummy/README.rdoc
|
249
|
+
- spec/factories/animals.rb
|
250
|
+
- spec/factories/planets.rb
|
251
|
+
- spec/factories/plants.rb
|
252
|
+
- spec/factories/stars.rb
|
253
|
+
- spec/form_builder_spec.rb
|
254
|
+
- spec/rails_helper.rb
|
255
|
+
- spec/spec_helper.rb
|