carrierwave_direct 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -0
- data/Changelog.md +94 -0
- data/Gemfile +1 -1
- data/README.md +53 -41
- data/lib/carrierwave_direct.rb +5 -6
- data/lib/carrierwave_direct/form_builder.rb +46 -11
- data/lib/carrierwave_direct/locale/nl.yml +9 -0
- data/lib/carrierwave_direct/test/capybara_helpers.rb +3 -3
- data/lib/carrierwave_direct/uploader.rb +75 -68
- data/lib/carrierwave_direct/uploader/configuration.rb +4 -2
- data/lib/carrierwave_direct/uploader/content_type.rb +28 -0
- data/lib/carrierwave_direct/uploader/direct_url.rb +18 -0
- data/lib/carrierwave_direct/validations/active_model.rb +2 -1
- data/lib/carrierwave_direct/version.rb +1 -1
- data/spec/action_view_extensions/form_helper_spec.rb +4 -5
- data/spec/data/sample_data.rb +40 -0
- data/spec/form_builder_spec.rb +139 -6
- data/spec/mount_spec.rb +13 -26
- data/spec/orm/activerecord_spec.rb +23 -4
- data/spec/support/form_builder_helpers.rb +1 -0
- data/spec/support/model_helpers.rb +7 -7
- data/spec/support/view_helpers.rb +11 -1
- data/spec/test/capybara_helpers_spec.rb +27 -24
- data/spec/test/helpers_spec.rb +9 -11
- data/spec/uploader/configuration_spec.rb +46 -0
- data/spec/uploader/content_type_spec.rb +40 -0
- data/spec/uploader/direct_url_spec.rb +56 -0
- data/spec/uploader_spec.rb +130 -169
- metadata +35 -23
metadata
CHANGED
@@ -1,125 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave_direct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Wilkie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: uuidtools
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fog
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: timecop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 3.2.12
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 3.2.12
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: capybara
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
description: Process your uploads in the background by uploading directly to S3
|
@@ -129,8 +129,9 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
- .gitignore
|
133
|
-
- .travis.yml
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
|
+
- Changelog.md
|
134
135
|
- Gemfile
|
135
136
|
- LICENSE
|
136
137
|
- README.md
|
@@ -140,15 +141,19 @@ files:
|
|
140
141
|
- lib/carrierwave_direct/action_view_extensions/form_helper.rb
|
141
142
|
- lib/carrierwave_direct/form_builder.rb
|
142
143
|
- lib/carrierwave_direct/locale/en.yml
|
144
|
+
- lib/carrierwave_direct/locale/nl.yml
|
143
145
|
- lib/carrierwave_direct/mount.rb
|
144
146
|
- lib/carrierwave_direct/orm/activerecord.rb
|
145
147
|
- lib/carrierwave_direct/test/capybara_helpers.rb
|
146
148
|
- lib/carrierwave_direct/test/helpers.rb
|
147
149
|
- lib/carrierwave_direct/uploader.rb
|
148
150
|
- lib/carrierwave_direct/uploader/configuration.rb
|
151
|
+
- lib/carrierwave_direct/uploader/content_type.rb
|
152
|
+
- lib/carrierwave_direct/uploader/direct_url.rb
|
149
153
|
- lib/carrierwave_direct/validations/active_model.rb
|
150
154
|
- lib/carrierwave_direct/version.rb
|
151
155
|
- spec/action_view_extensions/form_helper_spec.rb
|
156
|
+
- spec/data/sample_data.rb
|
152
157
|
- spec/form_builder_spec.rb
|
153
158
|
- spec/mount_spec.rb
|
154
159
|
- spec/orm/activerecord_spec.rb
|
@@ -164,6 +169,9 @@ files:
|
|
164
169
|
- spec/support/view_helpers.rb
|
165
170
|
- spec/test/capybara_helpers_spec.rb
|
166
171
|
- spec/test/helpers_spec.rb
|
172
|
+
- spec/uploader/configuration_spec.rb
|
173
|
+
- spec/uploader/content_type_spec.rb
|
174
|
+
- spec/uploader/direct_url_spec.rb
|
167
175
|
- spec/uploader_spec.rb
|
168
176
|
homepage: https://github.com/dwilkie/carrierwave_direct
|
169
177
|
licenses: []
|
@@ -174,22 +182,23 @@ require_paths:
|
|
174
182
|
- lib
|
175
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
176
184
|
requirements:
|
177
|
-
- -
|
185
|
+
- - ">="
|
178
186
|
- !ruby/object:Gem::Version
|
179
187
|
version: 1.9.0
|
180
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
189
|
requirements:
|
182
|
-
- -
|
190
|
+
- - ">="
|
183
191
|
- !ruby/object:Gem::Version
|
184
192
|
version: '0'
|
185
193
|
requirements: []
|
186
194
|
rubyforge_project: carrierwave_direct
|
187
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.2.2
|
188
196
|
signing_key:
|
189
197
|
specification_version: 4
|
190
198
|
summary: Upload direct to S3 using CarrierWave
|
191
199
|
test_files:
|
192
200
|
- spec/action_view_extensions/form_helper_spec.rb
|
201
|
+
- spec/data/sample_data.rb
|
193
202
|
- spec/form_builder_spec.rb
|
194
203
|
- spec/mount_spec.rb
|
195
204
|
- spec/orm/activerecord_spec.rb
|
@@ -205,4 +214,7 @@ test_files:
|
|
205
214
|
- spec/support/view_helpers.rb
|
206
215
|
- spec/test/capybara_helpers_spec.rb
|
207
216
|
- spec/test/helpers_spec.rb
|
217
|
+
- spec/uploader/configuration_spec.rb
|
218
|
+
- spec/uploader/content_type_spec.rb
|
219
|
+
- spec/uploader/direct_url_spec.rb
|
208
220
|
- spec/uploader_spec.rb
|