carrierwave_direct 0.0.13 → 0.0.17

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