simple_form_attachments 0.2.4 → 0.2.5
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 +4 -4
- data/.travis.yml +2 -2
- data/Gemfile.lock +80 -86
- data/app/models/concerns/simple_form_attachments/has_attachments.rb +6 -9
- data/lib/simple_form_attachments/version.rb +1 -1
- data/simple_form_attachments.gemspec +23 -24
- metadata +25 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe4f5821eb75371cd433279fb5cb0b26d865d5a4
|
|
4
|
+
data.tar.gz: 81c3045c5cde437e35ae5461e013a936bdc103b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a7592c724ab298861a2dbbf40628ef95ba0f8e30c4fed30d4298c48d5b9c12feb91c3abd37539be3a5e6fa8ab421ee6a714da6242ab5455fe9401eb29a72acb
|
|
7
|
+
data.tar.gz: fd90d7f4bc8132acfe2a7d7ad926b574f462790d043c34c5d584ff3766e7b1ff8421e2ecd5dc6fa383c6dffbab54769739d6ae86a4dd9ee55a5a41881dc8c45d
|
data/.travis.yml
CHANGED
|
@@ -2,7 +2,7 @@ language: ruby
|
|
|
2
2
|
cache: bundler
|
|
3
3
|
script: 'bundle exec rake'
|
|
4
4
|
rvm:
|
|
5
|
-
- 2.
|
|
5
|
+
- 2.2.5
|
|
6
6
|
services:
|
|
7
7
|
- mongodb
|
|
8
8
|
|
|
@@ -12,4 +12,4 @@ notifications:
|
|
|
12
12
|
- tomas.celizna@gmail.com
|
|
13
13
|
- asger@8kilo.com
|
|
14
14
|
on_failure: change
|
|
15
|
-
on_success: never
|
|
15
|
+
on_success: never
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_form_attachments (0.2.
|
|
4
|
+
simple_form_attachments (0.2.5)
|
|
5
5
|
jquery-ui-rails
|
|
6
6
|
rails (>= 4.2)
|
|
7
7
|
rails-assets-blueimp-file-upload (>= 9.6.0)
|
|
@@ -13,36 +13,36 @@ GEM
|
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
remote: https://rails-assets.org/
|
|
15
15
|
specs:
|
|
16
|
-
actionmailer (4.2.
|
|
17
|
-
actionpack (= 4.2.
|
|
18
|
-
actionview (= 4.2.
|
|
19
|
-
activejob (= 4.2.
|
|
16
|
+
actionmailer (4.2.7.1)
|
|
17
|
+
actionpack (= 4.2.7.1)
|
|
18
|
+
actionview (= 4.2.7.1)
|
|
19
|
+
activejob (= 4.2.7.1)
|
|
20
20
|
mail (~> 2.5, >= 2.5.4)
|
|
21
21
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
22
|
-
actionpack (4.2.
|
|
23
|
-
actionview (= 4.2.
|
|
24
|
-
activesupport (= 4.2.
|
|
22
|
+
actionpack (4.2.7.1)
|
|
23
|
+
actionview (= 4.2.7.1)
|
|
24
|
+
activesupport (= 4.2.7.1)
|
|
25
25
|
rack (~> 1.6)
|
|
26
26
|
rack-test (~> 0.6.2)
|
|
27
27
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
28
28
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
29
|
-
actionview (4.2.
|
|
30
|
-
activesupport (= 4.2.
|
|
29
|
+
actionview (4.2.7.1)
|
|
30
|
+
activesupport (= 4.2.7.1)
|
|
31
31
|
builder (~> 3.1)
|
|
32
32
|
erubis (~> 2.7.0)
|
|
33
33
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
34
34
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
35
|
-
activejob (4.2.
|
|
36
|
-
activesupport (= 4.2.
|
|
35
|
+
activejob (4.2.7.1)
|
|
36
|
+
activesupport (= 4.2.7.1)
|
|
37
37
|
globalid (>= 0.3.0)
|
|
38
|
-
activemodel (4.2.
|
|
39
|
-
activesupport (= 4.2.
|
|
38
|
+
activemodel (4.2.7.1)
|
|
39
|
+
activesupport (= 4.2.7.1)
|
|
40
40
|
builder (~> 3.1)
|
|
41
|
-
activerecord (4.2.
|
|
42
|
-
activemodel (= 4.2.
|
|
43
|
-
activesupport (= 4.2.
|
|
41
|
+
activerecord (4.2.7.1)
|
|
42
|
+
activemodel (= 4.2.7.1)
|
|
43
|
+
activesupport (= 4.2.7.1)
|
|
44
44
|
arel (~> 6.0)
|
|
45
|
-
activesupport (4.2.
|
|
45
|
+
activesupport (4.2.7.1)
|
|
46
46
|
i18n (~> 0.7)
|
|
47
47
|
json (~> 1.7, >= 1.7.7)
|
|
48
48
|
minitest (~> 5.1)
|
|
@@ -52,32 +52,29 @@ GEM
|
|
|
52
52
|
arel (6.0.3)
|
|
53
53
|
bson (3.2.6)
|
|
54
54
|
builder (3.2.2)
|
|
55
|
-
coderay (1.1.
|
|
55
|
+
coderay (1.1.1)
|
|
56
56
|
concurrent-ruby (1.0.2)
|
|
57
57
|
connection_pool (2.2.0)
|
|
58
|
-
coveralls (0.8.
|
|
59
|
-
json (
|
|
60
|
-
|
|
61
|
-
simplecov (~> 0.11.0)
|
|
58
|
+
coveralls (0.8.15)
|
|
59
|
+
json (>= 1.8, < 3)
|
|
60
|
+
simplecov (~> 0.12.0)
|
|
62
61
|
term-ansicolor (~> 1.3)
|
|
63
62
|
thor (~> 0.19.1)
|
|
64
|
-
tins (
|
|
65
|
-
database_cleaner (1.5.
|
|
63
|
+
tins (>= 1.6.0, < 2)
|
|
64
|
+
database_cleaner (1.5.3)
|
|
66
65
|
docile (1.1.5)
|
|
67
|
-
domain_name (0.5.25)
|
|
68
|
-
unf (>= 0.0.5, < 1.0.0)
|
|
69
66
|
dragonfly (1.0.12)
|
|
70
67
|
addressable (~> 2.3)
|
|
71
68
|
multi_json (~> 1.0)
|
|
72
69
|
rack (>= 1.3.0)
|
|
73
70
|
erubis (2.7.0)
|
|
74
|
-
ffi (1.9.
|
|
71
|
+
ffi (1.9.14)
|
|
75
72
|
formatador (0.2.5)
|
|
76
|
-
globalid (0.3.
|
|
73
|
+
globalid (0.3.7)
|
|
77
74
|
activesupport (>= 4.1.0)
|
|
78
|
-
guard (2.
|
|
75
|
+
guard (2.14.0)
|
|
79
76
|
formatador (>= 0.2.4)
|
|
80
|
-
listen (>= 2.7,
|
|
77
|
+
listen (>= 2.7, < 4.0)
|
|
81
78
|
lumberjack (~> 1.0)
|
|
82
79
|
nenv (~> 0.1)
|
|
83
80
|
notiffany (~> 0.0)
|
|
@@ -85,31 +82,32 @@ GEM
|
|
|
85
82
|
shellany (~> 0.0)
|
|
86
83
|
thor (>= 0.18.1)
|
|
87
84
|
guard-compat (1.2.1)
|
|
88
|
-
guard-minitest (2.4.
|
|
85
|
+
guard-minitest (2.4.6)
|
|
89
86
|
guard-compat (~> 1.2)
|
|
90
87
|
minitest (>= 3.0)
|
|
91
|
-
http-cookie (1.0.2)
|
|
92
|
-
domain_name (~> 0.5)
|
|
93
88
|
i18n (0.7.0)
|
|
94
89
|
jquery-ui-rails (5.0.5)
|
|
95
90
|
railties (>= 3.2.16)
|
|
96
91
|
json (1.8.3)
|
|
97
|
-
listen (3.
|
|
98
|
-
rb-fsevent (>= 0.9.
|
|
99
|
-
rb-inotify (>= 0.9)
|
|
92
|
+
listen (3.1.5)
|
|
93
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
94
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
95
|
+
ruby_dep (~> 1.2)
|
|
100
96
|
loofah (2.0.3)
|
|
101
97
|
nokogiri (>= 1.5.9)
|
|
102
|
-
lumberjack (1.0.
|
|
98
|
+
lumberjack (1.0.10)
|
|
103
99
|
mail (2.6.4)
|
|
104
100
|
mime-types (>= 1.16, < 4)
|
|
105
101
|
method_source (0.8.2)
|
|
106
|
-
mime-types (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
mime-types (3.1)
|
|
103
|
+
mime-types-data (~> 3.2015)
|
|
104
|
+
mime-types-data (3.2016.0521)
|
|
105
|
+
mini_portile2 (2.1.0)
|
|
106
|
+
minitest (5.9.0)
|
|
107
|
+
minitest-rails (2.2.1)
|
|
110
108
|
minitest (~> 5.7)
|
|
111
109
|
railties (~> 4.1)
|
|
112
|
-
mongoid (4.0.
|
|
110
|
+
mongoid (4.0.0)
|
|
113
111
|
activemodel (~> 4.0)
|
|
114
112
|
moped (~> 2.0.0)
|
|
115
113
|
origin (~> 2.1)
|
|
@@ -118,82 +116,80 @@ GEM
|
|
|
118
116
|
bson (~> 3.0)
|
|
119
117
|
connection_pool (~> 2.0)
|
|
120
118
|
optionable (~> 0.2.0)
|
|
121
|
-
multi_json (1.
|
|
122
|
-
nenv (0.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
notiffany (0.
|
|
119
|
+
multi_json (1.12.1)
|
|
120
|
+
nenv (0.3.0)
|
|
121
|
+
nokogiri (1.6.8)
|
|
122
|
+
mini_portile2 (~> 2.1.0)
|
|
123
|
+
pkg-config (~> 1.1.7)
|
|
124
|
+
notiffany (0.1.1)
|
|
127
125
|
nenv (~> 0.1)
|
|
128
126
|
shellany (~> 0.0)
|
|
129
127
|
optionable (0.2.0)
|
|
130
|
-
origin (2.
|
|
131
|
-
|
|
128
|
+
origin (2.2.0)
|
|
129
|
+
pkg-config (1.1.7)
|
|
130
|
+
pry (0.10.4)
|
|
132
131
|
coderay (~> 1.1.0)
|
|
133
132
|
method_source (~> 0.8.1)
|
|
134
133
|
slop (~> 3.4)
|
|
135
134
|
rack (1.6.4)
|
|
136
135
|
rack-test (0.6.3)
|
|
137
136
|
rack (>= 1.0)
|
|
138
|
-
rails (4.2.
|
|
139
|
-
actionmailer (= 4.2.
|
|
140
|
-
actionpack (= 4.2.
|
|
141
|
-
actionview (= 4.2.
|
|
142
|
-
activejob (= 4.2.
|
|
143
|
-
activemodel (= 4.2.
|
|
144
|
-
activerecord (= 4.2.
|
|
145
|
-
activesupport (= 4.2.
|
|
137
|
+
rails (4.2.7.1)
|
|
138
|
+
actionmailer (= 4.2.7.1)
|
|
139
|
+
actionpack (= 4.2.7.1)
|
|
140
|
+
actionview (= 4.2.7.1)
|
|
141
|
+
activejob (= 4.2.7.1)
|
|
142
|
+
activemodel (= 4.2.7.1)
|
|
143
|
+
activerecord (= 4.2.7.1)
|
|
144
|
+
activesupport (= 4.2.7.1)
|
|
146
145
|
bundler (>= 1.3.0, < 2.0)
|
|
147
|
-
railties (= 4.2.
|
|
146
|
+
railties (= 4.2.7.1)
|
|
148
147
|
sprockets-rails
|
|
149
148
|
rails-assets-blueimp-canvas-to-blob (3.3.0)
|
|
150
|
-
rails-assets-blueimp-file-upload (9.12.
|
|
149
|
+
rails-assets-blueimp-file-upload (9.12.5)
|
|
151
150
|
rails-assets-blueimp-canvas-to-blob (>= 2.1.1)
|
|
152
151
|
rails-assets-blueimp-load-image (>= 1.13.0)
|
|
153
152
|
rails-assets-blueimp-tmpl (>= 2.5.4)
|
|
154
153
|
rails-assets-jquery (>= 1.6)
|
|
155
|
-
rails-assets-blueimp-load-image (2.6.
|
|
154
|
+
rails-assets-blueimp-load-image (2.6.2)
|
|
156
155
|
rails-assets-blueimp-tmpl (3.4.0)
|
|
157
156
|
rails-assets-handlebars (4.0.5)
|
|
158
|
-
rails-assets-jquery (
|
|
157
|
+
rails-assets-jquery (3.1.0)
|
|
159
158
|
rails-deprecated_sanitizer (1.0.3)
|
|
160
159
|
activesupport (>= 4.2.0.alpha)
|
|
161
160
|
rails-dom-testing (1.0.7)
|
|
162
161
|
activesupport (>= 4.2.0.beta, < 5.0)
|
|
163
162
|
nokogiri (~> 1.6.0)
|
|
164
163
|
rails-deprecated_sanitizer (>= 1.0.1)
|
|
165
|
-
rails-html-sanitizer (1.0.
|
|
164
|
+
rails-html-sanitizer (1.0.3)
|
|
166
165
|
loofah (~> 2.0)
|
|
167
|
-
railties (4.2.
|
|
168
|
-
actionpack (= 4.2.
|
|
169
|
-
activesupport (= 4.2.
|
|
166
|
+
railties (4.2.7.1)
|
|
167
|
+
actionpack (= 4.2.7.1)
|
|
168
|
+
activesupport (= 4.2.7.1)
|
|
170
169
|
rake (>= 0.8.7)
|
|
171
170
|
thor (>= 0.18.1, < 2.0)
|
|
172
|
-
rake (10.
|
|
173
|
-
rb-fsevent (0.9.
|
|
174
|
-
rb-inotify (0.9.
|
|
171
|
+
rake (10.5.0)
|
|
172
|
+
rb-fsevent (0.9.7)
|
|
173
|
+
rb-inotify (0.9.7)
|
|
175
174
|
ffi (>= 0.5.0)
|
|
176
|
-
|
|
177
|
-
http-cookie (>= 1.0.2, < 2.0)
|
|
178
|
-
mime-types (>= 1.16, < 3.0)
|
|
179
|
-
netrc (~> 0.7)
|
|
175
|
+
ruby_dep (1.4.0)
|
|
180
176
|
shellany (0.0.1)
|
|
181
|
-
simple_form (3.
|
|
177
|
+
simple_form (3.3.1)
|
|
182
178
|
actionpack (> 4, < 5.1)
|
|
183
179
|
activemodel (> 4, < 5.1)
|
|
184
|
-
simplecov (0.
|
|
180
|
+
simplecov (0.12.0)
|
|
185
181
|
docile (~> 1.1.0)
|
|
186
|
-
json (
|
|
182
|
+
json (>= 1.8, < 3)
|
|
187
183
|
simplecov-html (~> 0.10.0)
|
|
188
184
|
simplecov-html (0.10.0)
|
|
189
185
|
slim (3.0.7)
|
|
190
186
|
temple (~> 0.7.6)
|
|
191
187
|
tilt (>= 1.3.3, < 2.1)
|
|
192
188
|
slop (3.6.0)
|
|
193
|
-
sprockets (3.
|
|
189
|
+
sprockets (3.7.0)
|
|
194
190
|
concurrent-ruby (~> 1.0)
|
|
195
191
|
rack (> 1, < 3)
|
|
196
|
-
sprockets-rails (3.
|
|
192
|
+
sprockets-rails (3.1.1)
|
|
197
193
|
actionpack (>= 4.0)
|
|
198
194
|
activesupport (>= 4.0)
|
|
199
195
|
sprockets (>= 3.0.0)
|
|
@@ -203,27 +199,25 @@ GEM
|
|
|
203
199
|
thor (0.19.1)
|
|
204
200
|
thread_safe (0.3.5)
|
|
205
201
|
tilt (2.0.5)
|
|
206
|
-
tins (1.
|
|
202
|
+
tins (1.12.0)
|
|
207
203
|
tzinfo (1.2.2)
|
|
208
204
|
thread_safe (~> 0.1)
|
|
209
|
-
unf (0.1.4)
|
|
210
|
-
unf_ext
|
|
211
|
-
unf_ext (0.0.7.1)
|
|
212
205
|
|
|
213
206
|
PLATFORMS
|
|
214
207
|
ruby
|
|
215
208
|
|
|
216
209
|
DEPENDENCIES
|
|
217
|
-
bundler (~> 1.
|
|
210
|
+
bundler (~> 1.12)
|
|
218
211
|
coveralls
|
|
219
212
|
database_cleaner
|
|
220
213
|
dragonfly
|
|
221
214
|
guard
|
|
222
215
|
guard-minitest
|
|
216
|
+
minitest (~> 5.0)
|
|
223
217
|
minitest-rails
|
|
224
218
|
mongoid (~> 4.0)
|
|
225
|
-
rake
|
|
219
|
+
rake (~> 10.0)
|
|
226
220
|
simple_form_attachments!
|
|
227
221
|
|
|
228
222
|
BUNDLED WITH
|
|
229
|
-
1.12.
|
|
223
|
+
1.12.5
|
|
@@ -2,18 +2,16 @@ require 'mongoid'
|
|
|
2
2
|
|
|
3
3
|
module SimpleFormAttachments
|
|
4
4
|
module HasAttachments
|
|
5
|
-
|
|
6
5
|
extend ActiveSupport::Concern
|
|
7
6
|
|
|
8
7
|
module ClassMethods
|
|
9
|
-
|
|
10
8
|
def attachment_accessor_names
|
|
11
9
|
@@attachment_accessor_names ||= []
|
|
12
10
|
end
|
|
13
11
|
|
|
14
12
|
# ---------------------------------------------------------------------
|
|
15
13
|
|
|
16
|
-
def has_many_attachments
|
|
14
|
+
def has_many_attachments(accessor_name, opts = {})
|
|
17
15
|
attachment_accessor_names << accessor_name
|
|
18
16
|
|
|
19
17
|
options = {
|
|
@@ -29,7 +27,7 @@ module SimpleFormAttachments
|
|
|
29
27
|
# or at least we maintain the query and sort on the db level,
|
|
30
28
|
# but as of not it is not possible to provide custom sort function to mongodb
|
|
31
29
|
#
|
|
32
|
-
define_method
|
|
30
|
+
define_method 'sorted' do
|
|
33
31
|
target.sort_by { |attachment| base.send("#{accessor_name.to_s.singularize}_ids").index(attachment.id) }
|
|
34
32
|
end
|
|
35
33
|
end
|
|
@@ -37,13 +35,13 @@ module SimpleFormAttachments
|
|
|
37
35
|
accepts_nested_attributes_for accessor_name
|
|
38
36
|
|
|
39
37
|
define_method "mark_#{accessor_name}_permanent" do
|
|
40
|
-
|
|
38
|
+
send(accessor_name).update_all(temporary: false)
|
|
41
39
|
end
|
|
42
40
|
end
|
|
43
41
|
|
|
44
42
|
# ---------------------------------------------------------------------
|
|
45
43
|
|
|
46
|
-
def has_one_attachment
|
|
44
|
+
def has_one_attachment(accessor_name, opts = {})
|
|
47
45
|
attachment_accessor_names << accessor_name
|
|
48
46
|
|
|
49
47
|
options = {
|
|
@@ -56,7 +54,7 @@ module SimpleFormAttachments
|
|
|
56
54
|
accepts_nested_attributes_for accessor_name
|
|
57
55
|
|
|
58
56
|
define_method "mark_#{accessor_name}_permanent" do
|
|
59
|
-
|
|
57
|
+
send(accessor_name).update(temporary: false)
|
|
60
58
|
end
|
|
61
59
|
end
|
|
62
60
|
end
|
|
@@ -65,9 +63,8 @@ module SimpleFormAttachments
|
|
|
65
63
|
|
|
66
64
|
def mark_all_attachments_permanent
|
|
67
65
|
self.class.attachment_accessor_names.each do |accessor_name|
|
|
68
|
-
|
|
66
|
+
send("mark_#{accessor_name}_permanent")
|
|
69
67
|
end
|
|
70
68
|
end
|
|
71
|
-
|
|
72
69
|
end
|
|
73
70
|
end
|
|
@@ -4,41 +4,40 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
require 'simple_form_attachments/version'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name =
|
|
7
|
+
spec.name = 'simple_form_attachments'
|
|
8
8
|
spec.version = SimpleFormAttachments::VERSION
|
|
9
|
-
spec.authors = [
|
|
10
|
-
spec.email = [
|
|
11
|
-
spec.summary =
|
|
12
|
-
spec.
|
|
13
|
-
spec.
|
|
14
|
-
spec.license = "MIT"
|
|
9
|
+
spec.authors = ['Tomas Celizna', 'Asger Behncke Jacobsen']
|
|
10
|
+
spec.email = ['tomas.celizna@gmail.com', 'asger@8kilo.com']
|
|
11
|
+
spec.summary = 'A Rails engine which takes care of creating Attachments using the jQuery File Upload plugin.'
|
|
12
|
+
spec.homepage = 'https://github.com/tomasc/simple_form_attachments'
|
|
13
|
+
spec.license = 'MIT'
|
|
15
14
|
|
|
16
15
|
spec.files = `git ls-files -z`.split("\x0")
|
|
17
16
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = [
|
|
18
|
+
spec.require_paths = ['lib']
|
|
20
19
|
|
|
21
20
|
# ---------------------------------------------------------------------
|
|
22
21
|
|
|
23
|
-
spec.add_dependency
|
|
24
|
-
spec.add_dependency
|
|
22
|
+
spec.add_dependency 'rails', '>= 4.2'
|
|
23
|
+
spec.add_dependency 'simple_form', '>= 3.0.2'
|
|
25
24
|
|
|
26
|
-
spec.add_dependency
|
|
25
|
+
spec.add_dependency 'slim'
|
|
27
26
|
|
|
28
|
-
spec.add_dependency
|
|
29
|
-
spec.add_dependency
|
|
30
|
-
spec.add_dependency
|
|
27
|
+
spec.add_dependency 'jquery-ui-rails'
|
|
28
|
+
spec.add_dependency 'rails-assets-blueimp-file-upload', '>= 9.6.0'
|
|
29
|
+
spec.add_dependency 'rails-assets-handlebars'
|
|
31
30
|
|
|
32
31
|
# ---------------------------------------------------------------------
|
|
33
32
|
|
|
34
|
-
spec.add_development_dependency
|
|
35
|
-
spec.add_development_dependency
|
|
36
|
-
spec.add_development_dependency
|
|
37
|
-
spec.add_development_dependency
|
|
38
|
-
spec.add_development_dependency
|
|
39
|
-
spec.add_development_dependency
|
|
40
|
-
spec.add_development_dependency
|
|
41
|
-
spec.add_development_dependency
|
|
42
|
-
spec.add_development_dependency
|
|
43
|
-
|
|
33
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
|
34
|
+
spec.add_development_dependency 'coveralls'
|
|
35
|
+
spec.add_development_dependency 'database_cleaner'
|
|
36
|
+
spec.add_development_dependency 'guard'
|
|
37
|
+
spec.add_development_dependency 'guard-minitest'
|
|
38
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
|
39
|
+
spec.add_development_dependency 'minitest-rails'
|
|
40
|
+
spec.add_development_dependency 'dragonfly'
|
|
41
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
|
42
|
+
spec.add_development_dependency 'mongoid', '~> 4.0'
|
|
44
43
|
end
|
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: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
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: 2016-
|
|
12
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -101,14 +101,14 @@ dependencies:
|
|
|
101
101
|
requirements:
|
|
102
102
|
- - "~>"
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
version: '1.
|
|
104
|
+
version: '1.12'
|
|
105
105
|
type: :development
|
|
106
106
|
prerelease: false
|
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements:
|
|
109
109
|
- - "~>"
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
|
-
version: '1.
|
|
111
|
+
version: '1.12'
|
|
112
112
|
- !ruby/object:Gem::Dependency
|
|
113
113
|
name: coveralls
|
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -165,6 +165,20 @@ dependencies:
|
|
|
165
165
|
- - ">="
|
|
166
166
|
- !ruby/object:Gem::Version
|
|
167
167
|
version: '0'
|
|
168
|
+
- !ruby/object:Gem::Dependency
|
|
169
|
+
name: minitest
|
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
|
171
|
+
requirements:
|
|
172
|
+
- - "~>"
|
|
173
|
+
- !ruby/object:Gem::Version
|
|
174
|
+
version: '5.0'
|
|
175
|
+
type: :development
|
|
176
|
+
prerelease: false
|
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
178
|
+
requirements:
|
|
179
|
+
- - "~>"
|
|
180
|
+
- !ruby/object:Gem::Version
|
|
181
|
+
version: '5.0'
|
|
168
182
|
- !ruby/object:Gem::Dependency
|
|
169
183
|
name: minitest-rails
|
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -197,16 +211,16 @@ dependencies:
|
|
|
197
211
|
name: rake
|
|
198
212
|
requirement: !ruby/object:Gem::Requirement
|
|
199
213
|
requirements:
|
|
200
|
-
- - "
|
|
214
|
+
- - "~>"
|
|
201
215
|
- !ruby/object:Gem::Version
|
|
202
|
-
version: '0'
|
|
216
|
+
version: '10.0'
|
|
203
217
|
type: :development
|
|
204
218
|
prerelease: false
|
|
205
219
|
version_requirements: !ruby/object:Gem::Requirement
|
|
206
220
|
requirements:
|
|
207
|
-
- - "
|
|
221
|
+
- - "~>"
|
|
208
222
|
- !ruby/object:Gem::Version
|
|
209
|
-
version: '0'
|
|
223
|
+
version: '10.0'
|
|
210
224
|
- !ruby/object:Gem::Dependency
|
|
211
225
|
name: mongoid
|
|
212
226
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -221,8 +235,7 @@ dependencies:
|
|
|
221
235
|
- - "~>"
|
|
222
236
|
- !ruby/object:Gem::Version
|
|
223
237
|
version: '4.0'
|
|
224
|
-
description:
|
|
225
|
-
File Upload plugin.
|
|
238
|
+
description:
|
|
226
239
|
email:
|
|
227
240
|
- tomas.celizna@gmail.com
|
|
228
241
|
- asger@8kilo.com
|
|
@@ -369,7 +382,7 @@ files:
|
|
|
369
382
|
- test/models/concerns/simple_form_attachments/attachment_test.rb
|
|
370
383
|
- test/models/concerns/simple_form_attachments/has_attachments_test.rb
|
|
371
384
|
- test/test_helper.rb
|
|
372
|
-
homepage:
|
|
385
|
+
homepage: https://github.com/tomasc/simple_form_attachments
|
|
373
386
|
licenses:
|
|
374
387
|
- MIT
|
|
375
388
|
metadata: {}
|
|
@@ -389,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
389
402
|
version: '0'
|
|
390
403
|
requirements: []
|
|
391
404
|
rubyforge_project:
|
|
392
|
-
rubygems_version: 2.4.
|
|
405
|
+
rubygems_version: 2.4.5.1
|
|
393
406
|
signing_key:
|
|
394
407
|
specification_version: 4
|
|
395
408
|
summary: A Rails engine which takes care of creating Attachments using the jQuery
|