simple_form_attachments 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +33 -8
- data/lib/assets/javascripts/simple_form_attachments/simple_form_attachments.coffee.erb +19 -0
- data/lib/simple_form_attachments/version.rb +1 -1
- data/simple_form_attachments.gemspec +5 -1
- data/test/dummy/app/assets/stylesheets/test.scss +12 -0
- data/test/dummy/app/models/test.rb +2 -4
- data/test/dummy/app/views/tests/_form.html.slim +1 -0
- data/test/dummy/app/views/tests/index.html.slim +15 -0
- metadata +69 -15
- data/test/dummy/Gemfile +0 -28
- data/test/dummy/Gemfile.lock +0 -217
- data/test/dummy/app/views/tests/index.html.erb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d75e6b3bd716ff2b708efc90c72229536009042f
|
4
|
+
data.tar.gz: 1ed929c481ed76e80664fad6d8ddf50e5f222a1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e40ff6ac1fafaef82a7e82097a4855c292ea68630fb62c30cb939de605179e23823423625f7e613735f24289a8b7565ae58db26f37835f17aef635f9e2b40e9
|
7
|
+
data.tar.gz: 96bc9177b8bc4b472c5a7527bb550f17f034075f94a4a13d086900dbd2435a919c04538b3334dab09953d7ae0b56acac6d4d7f51b7f4e9722f984606dbe6287d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.2.0
|
4
|
+
|
5
|
+
* CHANGE: ensures file input ids (and label) references are unique. [Issue #20](https://github.com/tomasc/simple_form_attachments/issues/20), thanks @asgerb
|
6
|
+
|
3
7
|
## 1.1.1
|
4
8
|
|
5
9
|
* FIX: use `to_simple_form_partial_path` in the input builder, [PR #19](https://github.com/tomasc/simple_form_attachments/pull/19), thanks @asgerb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_form_attachments (1.
|
4
|
+
simple_form_attachments (1.2.0)
|
5
5
|
jquery-ui-rails (>= 5.0, < 7.0)
|
6
6
|
mongoid (> 4.0)
|
7
7
|
rails (>= 4.2)
|
@@ -58,6 +58,13 @@ GEM
|
|
58
58
|
bson (4.2.2)
|
59
59
|
builder (3.2.3)
|
60
60
|
coderay (1.1.2)
|
61
|
+
coffee-rails (4.2.2)
|
62
|
+
coffee-script (>= 2.2.0)
|
63
|
+
railties (>= 4.0.0)
|
64
|
+
coffee-script (2.4.1)
|
65
|
+
coffee-script-source
|
66
|
+
execjs
|
67
|
+
coffee-script-source (1.12.2)
|
61
68
|
concurrent-ruby (1.0.5)
|
62
69
|
coveralls (0.8.21)
|
63
70
|
json (>= 1.8, < 3)
|
@@ -72,9 +79,10 @@ GEM
|
|
72
79
|
multi_json (~> 1.0)
|
73
80
|
rack (>= 1.3)
|
74
81
|
erubi (1.6.1)
|
82
|
+
execjs (2.7.0)
|
75
83
|
ffi (1.9.18)
|
76
84
|
formatador (0.2.5)
|
77
|
-
globalid (0.4.
|
85
|
+
globalid (0.4.1)
|
78
86
|
activesupport (>= 4.2.0)
|
79
87
|
guard (2.14.1)
|
80
88
|
formatador (>= 0.2.4)
|
@@ -90,6 +98,10 @@ GEM
|
|
90
98
|
guard-compat (~> 1.2)
|
91
99
|
minitest (>= 3.0)
|
92
100
|
i18n (0.8.6)
|
101
|
+
jquery-rails (4.3.1)
|
102
|
+
rails-dom-testing (>= 1, < 3)
|
103
|
+
railties (>= 4.2.0)
|
104
|
+
thor (>= 0.14, < 2.0)
|
93
105
|
jquery-ui-rails (6.0.1)
|
94
106
|
railties (>= 3.2.16)
|
95
107
|
json (2.1.0)
|
@@ -100,12 +112,10 @@ GEM
|
|
100
112
|
loofah (2.0.3)
|
101
113
|
nokogiri (>= 1.5.9)
|
102
114
|
lumberjack (1.0.12)
|
103
|
-
mail (2.
|
104
|
-
|
115
|
+
mail (2.7.0)
|
116
|
+
mini_mime (>= 0.1.1)
|
105
117
|
method_source (0.8.2)
|
106
|
-
|
107
|
-
mime-types-data (~> 3.2015)
|
108
|
-
mime-types-data (3.2016.0521)
|
118
|
+
mini_mime (0.1.4)
|
109
119
|
mini_portile2 (2.2.0)
|
110
120
|
minitest (5.10.3)
|
111
121
|
minitest-rails (3.0.0)
|
@@ -152,7 +162,7 @@ GEM
|
|
152
162
|
rails-assets-jquery (>= 1.6)
|
153
163
|
rails-assets-blueimp-load-image (2.17.0)
|
154
164
|
rails-assets-blueimp-tmpl (3.11.0)
|
155
|
-
rails-assets-handlebars (4.0.
|
165
|
+
rails-assets-handlebars (4.0.11)
|
156
166
|
rails-assets-jquery (3.2.1)
|
157
167
|
rails-assets-numeraljs (2.0.6)
|
158
168
|
rails-controller-testing (1.0.2)
|
@@ -176,6 +186,17 @@ GEM
|
|
176
186
|
ffi (>= 0.5.0, < 2)
|
177
187
|
rb-readline (0.5.5)
|
178
188
|
ruby_dep (1.5.0)
|
189
|
+
sass (3.5.2)
|
190
|
+
sass-listen (~> 4.0.0)
|
191
|
+
sass-listen (4.0.0)
|
192
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
193
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
194
|
+
sass-rails (5.0.6)
|
195
|
+
railties (>= 4.0.0, < 6)
|
196
|
+
sass (~> 3.1)
|
197
|
+
sprockets (>= 2.8, < 4.0)
|
198
|
+
sprockets-rails (>= 2.0, < 4.0)
|
199
|
+
tilt (>= 1.1, < 3)
|
179
200
|
shellany (0.0.1)
|
180
201
|
simple_form (3.5.0)
|
181
202
|
actionpack (> 4, < 5.2)
|
@@ -214,17 +235,21 @@ PLATFORMS
|
|
214
235
|
|
215
236
|
DEPENDENCIES
|
216
237
|
bundler (~> 1.12)
|
238
|
+
coffee-rails
|
217
239
|
coveralls
|
218
240
|
database_cleaner
|
219
241
|
dragonfly
|
220
242
|
guard
|
221
243
|
guard-minitest
|
244
|
+
jquery-rails
|
222
245
|
minitest (~> 5.0)
|
223
246
|
minitest-rails
|
224
247
|
rails-controller-testing
|
225
248
|
rake (~> 10.0)
|
226
249
|
rb-readline
|
250
|
+
sass-rails
|
227
251
|
simple_form_attachments!
|
252
|
+
slim
|
228
253
|
|
229
254
|
BUNDLED WITH
|
230
255
|
1.14.6
|
@@ -30,6 +30,8 @@
|
|
30
30
|
@attachments_counter = 0
|
31
31
|
|
32
32
|
init: ->
|
33
|
+
@set_unique_ids()
|
34
|
+
|
33
35
|
@get_file_input().on 'fileuploadalways', (e) => @init_sortable() if @is_sortable()
|
34
36
|
@init_sortable() if @is_sortable()
|
35
37
|
@init_fileupload()
|
@@ -193,6 +195,23 @@
|
|
193
195
|
is_multiple: -> @get_file_input().attr('multiple') != undefined
|
194
196
|
is_sortable: -> @get_attachment_list().hasClass('<%= SimpleFormAttachments.dom_class(:attachment_list, :is_sortable) %>')
|
195
197
|
|
198
|
+
# ---------------------------------------------------------------------
|
199
|
+
|
200
|
+
set_unique_ids: ->
|
201
|
+
$input = @get_file_input()
|
202
|
+
default_id = $input.attr('id')
|
203
|
+
$label = @$element.find("[for='#{default_id}']")
|
204
|
+
$input.data('default-id', default_id)
|
205
|
+
$label.data('default-for', default_id)
|
206
|
+
new_id = "#{default_id}__#{@guid()}"
|
207
|
+
$input.attr('id', new_id)
|
208
|
+
$label.attr('for', new_id)
|
209
|
+
|
210
|
+
# ---------------------------------------------------------------------
|
211
|
+
|
212
|
+
guid: -> @s4() + @s4() + '-' + @s4() + '-' + @s4() + '-' + @s4() + '-' + @s4() + @s4() + @s4()
|
213
|
+
s4: -> Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)
|
214
|
+
|
196
215
|
# ---------------------------------------------------------------------
|
197
216
|
|
198
217
|
$.fn[pluginName] = (options) ->
|
@@ -33,13 +33,17 @@ Gem::Specification.new do |spec|
|
|
33
33
|
# ---------------------------------------------------------------------
|
34
34
|
|
35
35
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
36
|
+
spec.add_development_dependency 'coffee-rails'
|
36
37
|
spec.add_development_dependency 'coveralls'
|
37
38
|
spec.add_development_dependency 'database_cleaner'
|
39
|
+
spec.add_development_dependency 'dragonfly'
|
38
40
|
spec.add_development_dependency 'guard'
|
39
41
|
spec.add_development_dependency 'guard-minitest'
|
42
|
+
spec.add_development_dependency 'jquery-rails'
|
40
43
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
41
44
|
spec.add_development_dependency 'minitest-rails'
|
42
|
-
spec.add_development_dependency 'dragonfly'
|
43
45
|
spec.add_development_dependency 'rails-controller-testing'
|
44
46
|
spec.add_development_dependency 'rake', '~> 10.0'
|
47
|
+
spec.add_development_dependency 'sass-rails'
|
48
|
+
spec.add_development_dependency 'slim'
|
45
49
|
end
|
@@ -5,8 +5,6 @@ class Test
|
|
5
5
|
has_many_attachments :attachment_images, class_name: 'AttachmentImage', order: -> { attachment_images.id }
|
6
6
|
validates :attachment_images, length: { maximum: 2 }
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
# sort_by { |u| ids.index(u.id) }
|
11
|
-
|
8
|
+
has_many_attachments :other_attachment_images, class_name: 'AttachmentImage', order: -> { other_attachment_images.id }
|
9
|
+
validates :other_attachment_images, length: { maximum: 2 }
|
12
10
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
p#notice = notice
|
2
|
+
|
3
|
+
h1 Tests
|
4
|
+
|
5
|
+
table
|
6
|
+
tbody
|
7
|
+
- @tests.each do |test|
|
8
|
+
tr
|
9
|
+
td = link_to 'Show', test
|
10
|
+
td = link_to 'Edit', edit_test_path(test)
|
11
|
+
td = link_to 'Destroy', test, method: :delete, data: { confirm: 'Are you sure?' }
|
12
|
+
|
13
|
+
br
|
14
|
+
|
15
|
+
= link_to 'New Test', new_test_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_attachments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -143,6 +143,20 @@ dependencies:
|
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '1.12'
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: coffee-rails
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
146
160
|
- !ruby/object:Gem::Dependency
|
147
161
|
name: coveralls
|
148
162
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +185,20 @@ dependencies:
|
|
171
185
|
- - ">="
|
172
186
|
- !ruby/object:Gem::Version
|
173
187
|
version: '0'
|
188
|
+
- !ruby/object:Gem::Dependency
|
189
|
+
name: dragonfly
|
190
|
+
requirement: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
type: :development
|
196
|
+
prerelease: false
|
197
|
+
version_requirements: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
174
202
|
- !ruby/object:Gem::Dependency
|
175
203
|
name: guard
|
176
204
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,6 +227,20 @@ dependencies:
|
|
199
227
|
- - ">="
|
200
228
|
- !ruby/object:Gem::Version
|
201
229
|
version: '0'
|
230
|
+
- !ruby/object:Gem::Dependency
|
231
|
+
name: jquery-rails
|
232
|
+
requirement: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
type: :development
|
238
|
+
prerelease: false
|
239
|
+
version_requirements: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
202
244
|
- !ruby/object:Gem::Dependency
|
203
245
|
name: minitest
|
204
246
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,7 +270,7 @@ dependencies:
|
|
228
270
|
- !ruby/object:Gem::Version
|
229
271
|
version: '0'
|
230
272
|
- !ruby/object:Gem::Dependency
|
231
|
-
name:
|
273
|
+
name: rails-controller-testing
|
232
274
|
requirement: !ruby/object:Gem::Requirement
|
233
275
|
requirements:
|
234
276
|
- - ">="
|
@@ -242,7 +284,21 @@ dependencies:
|
|
242
284
|
- !ruby/object:Gem::Version
|
243
285
|
version: '0'
|
244
286
|
- !ruby/object:Gem::Dependency
|
245
|
-
name:
|
287
|
+
name: rake
|
288
|
+
requirement: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '10.0'
|
293
|
+
type: :development
|
294
|
+
prerelease: false
|
295
|
+
version_requirements: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '10.0'
|
300
|
+
- !ruby/object:Gem::Dependency
|
301
|
+
name: sass-rails
|
246
302
|
requirement: !ruby/object:Gem::Requirement
|
247
303
|
requirements:
|
248
304
|
- - ">="
|
@@ -256,19 +312,19 @@ dependencies:
|
|
256
312
|
- !ruby/object:Gem::Version
|
257
313
|
version: '0'
|
258
314
|
- !ruby/object:Gem::Dependency
|
259
|
-
name:
|
315
|
+
name: slim
|
260
316
|
requirement: !ruby/object:Gem::Requirement
|
261
317
|
requirements:
|
262
|
-
- - "
|
318
|
+
- - ">="
|
263
319
|
- !ruby/object:Gem::Version
|
264
|
-
version: '
|
320
|
+
version: '0'
|
265
321
|
type: :development
|
266
322
|
prerelease: false
|
267
323
|
version_requirements: !ruby/object:Gem::Requirement
|
268
324
|
requirements:
|
269
|
-
- - "
|
325
|
+
- - ">="
|
270
326
|
- !ruby/object:Gem::Version
|
271
|
-
version: '
|
327
|
+
version: '0'
|
272
328
|
description:
|
273
329
|
email:
|
274
330
|
- tomas.celizna@gmail.com
|
@@ -323,8 +379,6 @@ files:
|
|
323
379
|
- lib/simple_form_attachments/version.rb
|
324
380
|
- simple_form_attachments.gemspec
|
325
381
|
- test/controllers/simple_form_attachments/upload_controller_test.rb
|
326
|
-
- test/dummy/Gemfile
|
327
|
-
- test/dummy/Gemfile.lock
|
328
382
|
- test/dummy/README.rdoc
|
329
383
|
- test/dummy/Rakefile
|
330
384
|
- test/dummy/app/assets/images/.keep
|
@@ -332,6 +386,7 @@ files:
|
|
332
386
|
- test/dummy/app/assets/javascripts/attachments.coffee
|
333
387
|
- test/dummy/app/assets/javascripts/tests.coffee
|
334
388
|
- test/dummy/app/assets/stylesheets/application.css
|
389
|
+
- test/dummy/app/assets/stylesheets/test.scss
|
335
390
|
- test/dummy/app/controllers/application_controller.rb
|
336
391
|
- test/dummy/app/controllers/attachments_controller.rb
|
337
392
|
- test/dummy/app/controllers/concerns/.keep
|
@@ -348,7 +403,7 @@ files:
|
|
348
403
|
- test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
|
349
404
|
- test/dummy/app/views/tests/_form.html.slim
|
350
405
|
- test/dummy/app/views/tests/edit.html.slim
|
351
|
-
- test/dummy/app/views/tests/index.html.
|
406
|
+
- test/dummy/app/views/tests/index.html.slim
|
352
407
|
- test/dummy/app/views/tests/index.json.jbuilder
|
353
408
|
- test/dummy/app/views/tests/new.html.slim
|
354
409
|
- test/dummy/app/views/tests/show.html.slim
|
@@ -460,8 +515,6 @@ summary: A Rails engine which takes care of creating Attachments using the jQuer
|
|
460
515
|
File Upload plugin.
|
461
516
|
test_files:
|
462
517
|
- test/controllers/simple_form_attachments/upload_controller_test.rb
|
463
|
-
- test/dummy/Gemfile
|
464
|
-
- test/dummy/Gemfile.lock
|
465
518
|
- test/dummy/README.rdoc
|
466
519
|
- test/dummy/Rakefile
|
467
520
|
- test/dummy/app/assets/images/.keep
|
@@ -469,6 +522,7 @@ test_files:
|
|
469
522
|
- test/dummy/app/assets/javascripts/attachments.coffee
|
470
523
|
- test/dummy/app/assets/javascripts/tests.coffee
|
471
524
|
- test/dummy/app/assets/stylesheets/application.css
|
525
|
+
- test/dummy/app/assets/stylesheets/test.scss
|
472
526
|
- test/dummy/app/controllers/application_controller.rb
|
473
527
|
- test/dummy/app/controllers/attachments_controller.rb
|
474
528
|
- test/dummy/app/controllers/concerns/.keep
|
@@ -485,7 +539,7 @@ test_files:
|
|
485
539
|
- test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
|
486
540
|
- test/dummy/app/views/tests/_form.html.slim
|
487
541
|
- test/dummy/app/views/tests/edit.html.slim
|
488
|
-
- test/dummy/app/views/tests/index.html.
|
542
|
+
- test/dummy/app/views/tests/index.html.slim
|
489
543
|
- test/dummy/app/views/tests/index.json.jbuilder
|
490
544
|
- test/dummy/app/views/tests/new.html.slim
|
491
545
|
- test/dummy/app/views/tests/show.html.slim
|
data/test/dummy/Gemfile
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '4.2.0'
|
4
|
-
|
5
|
-
gem 'sass-rails', '~> 5.0'
|
6
|
-
gem 'uglifier', '>= 1.3.0'
|
7
|
-
gem 'coffee-rails', '~> 4.1.0'
|
8
|
-
gem 'jquery-rails'
|
9
|
-
|
10
|
-
# NOTE: For testing purposes
|
11
|
-
# gem 'jquery-ui-rails', '~> 6.0'
|
12
|
-
# gem 'jquery-ui-rails', '~> 5.0'
|
13
|
-
|
14
|
-
gem 'slim'
|
15
|
-
|
16
|
-
gem 'mongoid'
|
17
|
-
|
18
|
-
gem 'dragonfly'
|
19
|
-
gem 'dragonfly-mongoid_data_store'
|
20
|
-
|
21
|
-
gem 'simple_form_attachments', path: '../../../simple_form_attachments'
|
22
|
-
|
23
|
-
group :development, :test do
|
24
|
-
gem 'rb-readline'
|
25
|
-
gem 'byebug'
|
26
|
-
gem 'web-console', '~> 2.0'
|
27
|
-
gem 'spring'
|
28
|
-
end
|
data/test/dummy/Gemfile.lock
DELETED
@@ -1,217 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
simple_form_attachments (1.0.1)
|
5
|
-
jquery-ui-rails (>= 5.0, < 7.0)
|
6
|
-
mongoid (> 4.0)
|
7
|
-
rails (>= 4.2)
|
8
|
-
rails-assets-blueimp-file-upload (>= 9.6.0)
|
9
|
-
rails-assets-handlebars
|
10
|
-
rails-assets-numeraljs
|
11
|
-
simple_form (>= 3.0.2)
|
12
|
-
slim
|
13
|
-
|
14
|
-
GEM
|
15
|
-
remote: https://rubygems.org/
|
16
|
-
specs:
|
17
|
-
actionmailer (4.2.0)
|
18
|
-
actionpack (= 4.2.0)
|
19
|
-
actionview (= 4.2.0)
|
20
|
-
activejob (= 4.2.0)
|
21
|
-
mail (~> 2.5, >= 2.5.4)
|
22
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
-
actionpack (4.2.0)
|
24
|
-
actionview (= 4.2.0)
|
25
|
-
activesupport (= 4.2.0)
|
26
|
-
rack (~> 1.6.0)
|
27
|
-
rack-test (~> 0.6.2)
|
28
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
29
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
30
|
-
actionview (4.2.0)
|
31
|
-
activesupport (= 4.2.0)
|
32
|
-
builder (~> 3.1)
|
33
|
-
erubis (~> 2.7.0)
|
34
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
35
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
36
|
-
activejob (4.2.0)
|
37
|
-
activesupport (= 4.2.0)
|
38
|
-
globalid (>= 0.3.0)
|
39
|
-
activemodel (4.2.0)
|
40
|
-
activesupport (= 4.2.0)
|
41
|
-
builder (~> 3.1)
|
42
|
-
activerecord (4.2.0)
|
43
|
-
activemodel (= 4.2.0)
|
44
|
-
activesupport (= 4.2.0)
|
45
|
-
arel (~> 6.0)
|
46
|
-
activesupport (4.2.0)
|
47
|
-
i18n (~> 0.7)
|
48
|
-
json (~> 1.7, >= 1.7.7)
|
49
|
-
minitest (~> 5.1)
|
50
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
51
|
-
tzinfo (~> 1.1)
|
52
|
-
addressable (2.5.2)
|
53
|
-
public_suffix (>= 2.0.2, < 4.0)
|
54
|
-
arel (6.0.4)
|
55
|
-
binding_of_caller (0.7.2)
|
56
|
-
debug_inspector (>= 0.0.1)
|
57
|
-
bson (4.2.2)
|
58
|
-
builder (3.2.3)
|
59
|
-
byebug (9.1.0)
|
60
|
-
coffee-rails (4.1.1)
|
61
|
-
coffee-script (>= 2.2.0)
|
62
|
-
railties (>= 4.0.0, < 5.1.x)
|
63
|
-
coffee-script (2.4.1)
|
64
|
-
coffee-script-source
|
65
|
-
execjs
|
66
|
-
coffee-script-source (1.12.2)
|
67
|
-
concurrent-ruby (1.0.5)
|
68
|
-
debug_inspector (0.0.3)
|
69
|
-
dragonfly (1.1.3)
|
70
|
-
addressable (~> 2.3)
|
71
|
-
multi_json (~> 1.0)
|
72
|
-
rack (>= 1.3)
|
73
|
-
dragonfly-mongoid_data_store (0.1.4)
|
74
|
-
dragonfly (~> 1.0)
|
75
|
-
mongoid
|
76
|
-
mongoid-grid_fs
|
77
|
-
erubis (2.7.0)
|
78
|
-
execjs (2.7.0)
|
79
|
-
ffi (1.9.18)
|
80
|
-
globalid (0.4.0)
|
81
|
-
activesupport (>= 4.2.0)
|
82
|
-
i18n (0.8.6)
|
83
|
-
jquery-rails (4.3.1)
|
84
|
-
rails-dom-testing (>= 1, < 3)
|
85
|
-
railties (>= 4.2.0)
|
86
|
-
thor (>= 0.14, < 2.0)
|
87
|
-
jquery-ui-rails (6.0.1)
|
88
|
-
railties (>= 3.2.16)
|
89
|
-
json (1.8.6)
|
90
|
-
loofah (2.0.3)
|
91
|
-
nokogiri (>= 1.5.9)
|
92
|
-
mail (2.6.6)
|
93
|
-
mime-types (>= 1.16, < 4)
|
94
|
-
mime-types (3.1)
|
95
|
-
mime-types-data (~> 3.2015)
|
96
|
-
mime-types-data (3.2016.0521)
|
97
|
-
mini_portile2 (2.2.0)
|
98
|
-
minitest (5.10.3)
|
99
|
-
mongo (2.4.3)
|
100
|
-
bson (>= 4.2.1, < 5.0.0)
|
101
|
-
mongoid (5.2.1)
|
102
|
-
activemodel (~> 4.0)
|
103
|
-
mongo (>= 2.4.1, < 3.0.0)
|
104
|
-
origin (~> 2.3)
|
105
|
-
tzinfo (>= 0.3.37)
|
106
|
-
mongoid-grid_fs (2.3.0)
|
107
|
-
mime-types (>= 1.0, < 4.0)
|
108
|
-
mongoid (>= 3.0, < 7.0)
|
109
|
-
multi_json (1.12.2)
|
110
|
-
nokogiri (1.8.0)
|
111
|
-
mini_portile2 (~> 2.2.0)
|
112
|
-
origin (2.3.1)
|
113
|
-
public_suffix (3.0.0)
|
114
|
-
rack (1.6.8)
|
115
|
-
rack-test (0.6.3)
|
116
|
-
rack (>= 1.0)
|
117
|
-
rails (4.2.0)
|
118
|
-
actionmailer (= 4.2.0)
|
119
|
-
actionpack (= 4.2.0)
|
120
|
-
actionview (= 4.2.0)
|
121
|
-
activejob (= 4.2.0)
|
122
|
-
activemodel (= 4.2.0)
|
123
|
-
activerecord (= 4.2.0)
|
124
|
-
activesupport (= 4.2.0)
|
125
|
-
bundler (>= 1.3.0, < 2.0)
|
126
|
-
railties (= 4.2.0)
|
127
|
-
sprockets-rails
|
128
|
-
rails-assets-blueimp-canvas-to-blob (3.14.0)
|
129
|
-
rails-assets-blueimp-file-upload (9.19.1)
|
130
|
-
rails-assets-blueimp-canvas-to-blob (>= 2.1.1)
|
131
|
-
rails-assets-blueimp-load-image (>= 1.13.0)
|
132
|
-
rails-assets-blueimp-tmpl (>= 2.5.4)
|
133
|
-
rails-assets-jquery (>= 1.6)
|
134
|
-
rails-assets-blueimp-load-image (2.17.0)
|
135
|
-
rails-assets-blueimp-tmpl (3.11.0)
|
136
|
-
rails-assets-handlebars (4.0.10)
|
137
|
-
rails-assets-jquery (3.2.1)
|
138
|
-
rails-assets-numeraljs (2.0.6)
|
139
|
-
rails-deprecated_sanitizer (1.0.3)
|
140
|
-
activesupport (>= 4.2.0.alpha)
|
141
|
-
rails-dom-testing (1.0.8)
|
142
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
143
|
-
nokogiri (~> 1.6)
|
144
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
145
|
-
rails-html-sanitizer (1.0.3)
|
146
|
-
loofah (~> 2.0)
|
147
|
-
railties (4.2.0)
|
148
|
-
actionpack (= 4.2.0)
|
149
|
-
activesupport (= 4.2.0)
|
150
|
-
rake (>= 0.8.7)
|
151
|
-
thor (>= 0.18.1, < 2.0)
|
152
|
-
rake (12.1.0)
|
153
|
-
rb-fsevent (0.10.2)
|
154
|
-
rb-inotify (0.9.10)
|
155
|
-
ffi (>= 0.5.0, < 2)
|
156
|
-
rb-readline (0.5.5)
|
157
|
-
sass (3.5.1)
|
158
|
-
sass-listen (~> 4.0.0)
|
159
|
-
sass-listen (4.0.0)
|
160
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
161
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
162
|
-
sass-rails (5.0.6)
|
163
|
-
railties (>= 4.0.0, < 6)
|
164
|
-
sass (~> 3.1)
|
165
|
-
sprockets (>= 2.8, < 4.0)
|
166
|
-
sprockets-rails (>= 2.0, < 4.0)
|
167
|
-
tilt (>= 1.1, < 3)
|
168
|
-
simple_form (3.5.0)
|
169
|
-
actionpack (> 4, < 5.2)
|
170
|
-
activemodel (> 4, < 5.2)
|
171
|
-
slim (3.0.8)
|
172
|
-
temple (>= 0.7.6, < 0.9)
|
173
|
-
tilt (>= 1.3.3, < 2.1)
|
174
|
-
spring (2.0.2)
|
175
|
-
activesupport (>= 4.2)
|
176
|
-
sprockets (3.7.1)
|
177
|
-
concurrent-ruby (~> 1.0)
|
178
|
-
rack (> 1, < 3)
|
179
|
-
sprockets-rails (3.2.1)
|
180
|
-
actionpack (>= 4.0)
|
181
|
-
activesupport (>= 4.0)
|
182
|
-
sprockets (>= 3.0.0)
|
183
|
-
temple (0.8.0)
|
184
|
-
thor (0.20.0)
|
185
|
-
thread_safe (0.3.6)
|
186
|
-
tilt (2.0.8)
|
187
|
-
tzinfo (1.2.3)
|
188
|
-
thread_safe (~> 0.1)
|
189
|
-
uglifier (3.2.0)
|
190
|
-
execjs (>= 0.3.0, < 3)
|
191
|
-
web-console (2.3.0)
|
192
|
-
activemodel (>= 4.0)
|
193
|
-
binding_of_caller (>= 0.7.2)
|
194
|
-
railties (>= 4.0)
|
195
|
-
sprockets-rails (>= 2.0, < 4.0)
|
196
|
-
|
197
|
-
PLATFORMS
|
198
|
-
ruby
|
199
|
-
|
200
|
-
DEPENDENCIES
|
201
|
-
byebug
|
202
|
-
coffee-rails (~> 4.1.0)
|
203
|
-
dragonfly
|
204
|
-
dragonfly-mongoid_data_store
|
205
|
-
jquery-rails
|
206
|
-
mongoid
|
207
|
-
rails (= 4.2.0)
|
208
|
-
rb-readline
|
209
|
-
sass-rails (~> 5.0)
|
210
|
-
simple_form_attachments!
|
211
|
-
slim
|
212
|
-
spring
|
213
|
-
uglifier (>= 1.3.0)
|
214
|
-
web-console (~> 2.0)
|
215
|
-
|
216
|
-
BUNDLED WITH
|
217
|
-
1.14.6
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<h1>Listing Tests</h1>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th colspan="3"></th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
|
12
|
-
<tbody>
|
13
|
-
<% @tests.each do |test| %>
|
14
|
-
<tr>
|
15
|
-
<td><%= link_to 'Show', test %></td>
|
16
|
-
<td><%= link_to 'Edit', edit_test_path(test) %></td>
|
17
|
-
<td><%= link_to 'Destroy', test, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
18
|
-
</tr>
|
19
|
-
<% end %>
|
20
|
-
</tbody>
|
21
|
-
</table>
|
22
|
-
|
23
|
-
<br>
|
24
|
-
|
25
|
-
<%= link_to 'New Test', new_test_path %>
|