s3_relay 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/controllers/s3_relay/uploads_controller.rb +8 -2
  4. data/app/models/s3_relay/upload.rb +1 -1
  5. data/lib/s3_relay/private_url.rb +1 -1
  6. data/lib/s3_relay/version.rb +1 -1
  7. data/test/controllers/s3_relay/uploads_controller_test.rb +17 -11
  8. data/test/dummy/{README.rdoc → README.md} +1 -5
  9. data/test/dummy/Rakefile +1 -1
  10. data/test/dummy/app/assets/config/manifest.js +3 -0
  11. data/test/dummy/app/assets/javascripts/application.js +6 -4
  12. data/test/dummy/app/assets/javascripts/cable.js +13 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +5 -5
  14. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  15. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  16. data/test/dummy/app/controllers/application_controller.rb +0 -2
  17. data/test/dummy/app/jobs/application_job.rb +2 -0
  18. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  19. data/test/dummy/app/models/application_record.rb +3 -0
  20. data/test/dummy/app/models/product.rb +1 -1
  21. data/test/dummy/app/views/layouts/application.html.erb +9 -9
  22. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  23. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  24. data/test/dummy/bin/rails +6 -1
  25. data/test/dummy/bin/rake +5 -0
  26. data/test/dummy/bin/setup +38 -0
  27. data/test/dummy/bin/spring +17 -0
  28. data/test/dummy/bin/update +29 -0
  29. data/test/dummy/bin/yarn +11 -0
  30. data/test/dummy/config/application.rb +7 -11
  31. data/test/dummy/config/boot.rb +2 -4
  32. data/test/dummy/config/cable.yml +10 -0
  33. data/test/dummy/config/environment.rb +1 -1
  34. data/test/dummy/config/environments/development.rb +24 -7
  35. data/test/dummy/config/environments/production.rb +35 -22
  36. data/test/dummy/config/environments/test.rb +6 -3
  37. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  38. data/test/dummy/config/initializers/assets.rb +8 -2
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -1
  40. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  41. data/test/dummy/config/locales/en.yml +10 -0
  42. data/test/dummy/config/puma.rb +56 -0
  43. data/test/dummy/config/secrets.yml +15 -5
  44. data/test/dummy/config/spring.rb +6 -0
  45. data/test/dummy/config.ru +2 -1
  46. data/test/dummy/db/seeds.rb +7 -0
  47. data/test/dummy/package.json +5 -0
  48. data/test/dummy/public/404.html +6 -6
  49. data/test/dummy/public/422.html +6 -6
  50. data/test/dummy/public/500.html +6 -6
  51. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  52. data/test/dummy/public/apple-touch-icon.png +0 -0
  53. data/test/dummy/public/robots.txt +1 -0
  54. data/test/dummy/test/application_system_test_case.rb +5 -0
  55. data/test/dummy/test/test_helper.rb +9 -0
  56. data/test/factories/uploads.rb +10 -3
  57. data/test/helpers/s3_relay/uploads_helper_test.rb +3 -3
  58. data/test/models/s3_relay/upload_test.rb +6 -5
  59. data/test/test_helper.rb +1 -0
  60. metadata +89 -33
  61. data/test/dummy/config/initializers/session_store.rb +0 -3
  62. data/test/dummy/log/development.log +0 -26
  63. data/test/dummy/log/test.log +0 -988
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_relay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenny Johnston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -30,114 +30,128 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '5.1'
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
- version: '0'
40
+ version: '5.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: addressable
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.3.8
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.3.8
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: guard-minitest
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '2.3'
61
+ version: '2.4'
48
62
  - - ">="
49
63
  - !ruby/object:Gem::Version
50
- version: 2.3.2
64
+ version: 2.4.6
51
65
  type: :development
52
66
  prerelease: false
53
67
  version_requirements: !ruby/object:Gem::Requirement
54
68
  requirements:
55
69
  - - "~>"
56
70
  - !ruby/object:Gem::Version
57
- version: '2.3'
71
+ version: '2.4'
58
72
  - - ">="
59
73
  - !ruby/object:Gem::Version
60
- version: 2.3.2
74
+ version: 2.4.6
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: minitest-rails
63
77
  requirement: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - "~>"
66
80
  - !ruby/object:Gem::Version
67
- version: '2.1'
81
+ version: 3.0.0
68
82
  - - ">="
69
83
  - !ruby/object:Gem::Version
70
- version: 2.1.0
84
+ version: 3.0.0
71
85
  type: :development
72
86
  prerelease: false
73
87
  version_requirements: !ruby/object:Gem::Requirement
74
88
  requirements:
75
89
  - - "~>"
76
90
  - !ruby/object:Gem::Version
77
- version: '2.1'
91
+ version: 3.0.0
78
92
  - - ">="
79
93
  - !ruby/object:Gem::Version
80
- version: 2.1.0
94
+ version: 3.0.0
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: mocha
83
97
  requirement: !ruby/object:Gem::Requirement
84
98
  requirements:
85
99
  - - "~>"
86
100
  - !ruby/object:Gem::Version
87
- version: '1.1'
101
+ version: '1.2'
88
102
  - - ">="
89
103
  - !ruby/object:Gem::Version
90
- version: 1.1.0
104
+ version: 1.2.1
91
105
  type: :development
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
109
  - - "~>"
96
110
  - !ruby/object:Gem::Version
97
- version: '1.1'
111
+ version: '1.2'
98
112
  - - ">="
99
113
  - !ruby/object:Gem::Version
100
- version: 1.1.0
114
+ version: 1.2.1
101
115
  - !ruby/object:Gem::Dependency
102
116
  name: pg
103
117
  requirement: !ruby/object:Gem::Requirement
104
118
  requirements:
105
119
  - - "~>"
106
120
  - !ruby/object:Gem::Version
107
- version: '0.17'
121
+ version: '0.21'
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: 0.17.1
124
+ version: 0.21.0
111
125
  type: :development
112
126
  prerelease: false
113
127
  version_requirements: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0.17'
131
+ version: '0.21'
118
132
  - - ">="
119
133
  - !ruby/object:Gem::Version
120
- version: 0.17.1
134
+ version: 0.21.0
121
135
  - !ruby/object:Gem::Dependency
122
136
  name: simplecov
123
137
  requirement: !ruby/object:Gem::Requirement
124
138
  requirements:
125
139
  - - "~>"
126
140
  - !ruby/object:Gem::Version
127
- version: '0.9'
141
+ version: '0.14'
128
142
  - - ">="
129
143
  - !ruby/object:Gem::Version
130
- version: 0.9.1
144
+ version: 0.14.1
131
145
  type: :development
132
146
  prerelease: false
133
147
  version_requirements: !ruby/object:Gem::Requirement
134
148
  requirements:
135
149
  - - "~>"
136
150
  - !ruby/object:Gem::Version
137
- version: '0.9'
151
+ version: '0.14'
138
152
  - - ">="
139
153
  - !ruby/object:Gem::Version
140
- version: 0.9.1
154
+ version: 0.14.1
141
155
  - !ruby/object:Gem::Dependency
142
156
  name: thor
143
157
  requirement: !ruby/object:Gem::Requirement
@@ -180,44 +194,65 @@ files:
180
194
  - lib/s3_relay/upload_presigner.rb
181
195
  - lib/s3_relay/version.rb
182
196
  - test/controllers/s3_relay/uploads_controller_test.rb
183
- - test/dummy/README.rdoc
197
+ - test/dummy/README.md
184
198
  - test/dummy/Rakefile
199
+ - test/dummy/app/assets/config/manifest.js
185
200
  - test/dummy/app/assets/javascripts/application.js
201
+ - test/dummy/app/assets/javascripts/cable.js
186
202
  - test/dummy/app/assets/stylesheets/application.css
203
+ - test/dummy/app/channels/application_cable/channel.rb
204
+ - test/dummy/app/channels/application_cable/connection.rb
187
205
  - test/dummy/app/controllers/application_controller.rb
188
206
  - test/dummy/app/helpers/application_helper.rb
207
+ - test/dummy/app/jobs/application_job.rb
208
+ - test/dummy/app/mailers/application_mailer.rb
209
+ - test/dummy/app/models/application_record.rb
189
210
  - test/dummy/app/models/product.rb
190
211
  - test/dummy/app/views/layouts/application.html.erb
212
+ - test/dummy/app/views/layouts/mailer.html.erb
213
+ - test/dummy/app/views/layouts/mailer.text.erb
191
214
  - test/dummy/bin/bundle
192
215
  - test/dummy/bin/rails
193
216
  - test/dummy/bin/rake
217
+ - test/dummy/bin/setup
218
+ - test/dummy/bin/spring
219
+ - test/dummy/bin/update
220
+ - test/dummy/bin/yarn
194
221
  - test/dummy/config.ru
195
222
  - test/dummy/config/application.rb
196
223
  - test/dummy/config/boot.rb
224
+ - test/dummy/config/cable.yml
197
225
  - test/dummy/config/database.yml
198
226
  - test/dummy/config/environment.rb
199
227
  - test/dummy/config/environments/development.rb
200
228
  - test/dummy/config/environments/production.rb
201
229
  - test/dummy/config/environments/test.rb
230
+ - test/dummy/config/initializers/application_controller_renderer.rb
202
231
  - test/dummy/config/initializers/assets.rb
203
232
  - test/dummy/config/initializers/backtrace_silencers.rb
204
233
  - test/dummy/config/initializers/cookies_serializer.rb
205
234
  - test/dummy/config/initializers/filter_parameter_logging.rb
206
235
  - test/dummy/config/initializers/inflections.rb
207
236
  - test/dummy/config/initializers/mime_types.rb
208
- - test/dummy/config/initializers/session_store.rb
209
237
  - test/dummy/config/initializers/wrap_parameters.rb
210
238
  - test/dummy/config/locales/en.yml
239
+ - test/dummy/config/puma.rb
211
240
  - test/dummy/config/routes.rb
212
241
  - test/dummy/config/secrets.yml
242
+ - test/dummy/config/spring.rb
213
243
  - test/dummy/db/migrate/20141021002149_create_products.rb
214
244
  - test/dummy/db/schema.rb
215
- - test/dummy/log/development.log
216
- - test/dummy/log/test.log
245
+ - test/dummy/db/seeds.rb
246
+ - test/dummy/package.json
217
247
  - test/dummy/public/404.html
218
248
  - test/dummy/public/422.html
219
249
  - test/dummy/public/500.html
250
+ - test/dummy/public/apple-touch-icon-precomposed.png
251
+ - test/dummy/public/apple-touch-icon.png
220
252
  - test/dummy/public/favicon.ico
253
+ - test/dummy/public/robots.txt
254
+ - test/dummy/test/application_system_test_case.rb
255
+ - test/dummy/test/test_helper.rb
221
256
  - test/factories/products.rb
222
257
  - test/factories/uploads.rb
223
258
  - test/helpers/s3_relay/uploads_helper_test.rb
@@ -247,50 +282,71 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
282
  version: '0'
248
283
  requirements: []
249
284
  rubyforge_project:
250
- rubygems_version: 2.5.2
285
+ rubygems_version: 2.6.11
251
286
  signing_key:
252
287
  specification_version: 4
253
288
  summary: Direct uploads to S3 and ingestion by your Rails app.
254
289
  test_files:
255
290
  - test/controllers/s3_relay/uploads_controller_test.rb
291
+ - test/dummy/app/assets/config/manifest.js
256
292
  - test/dummy/app/assets/javascripts/application.js
293
+ - test/dummy/app/assets/javascripts/cable.js
257
294
  - test/dummy/app/assets/stylesheets/application.css
295
+ - test/dummy/app/channels/application_cable/channel.rb
296
+ - test/dummy/app/channels/application_cable/connection.rb
258
297
  - test/dummy/app/controllers/application_controller.rb
259
298
  - test/dummy/app/helpers/application_helper.rb
299
+ - test/dummy/app/jobs/application_job.rb
300
+ - test/dummy/app/mailers/application_mailer.rb
301
+ - test/dummy/app/models/application_record.rb
260
302
  - test/dummy/app/models/product.rb
261
303
  - test/dummy/app/views/layouts/application.html.erb
304
+ - test/dummy/app/views/layouts/mailer.html.erb
305
+ - test/dummy/app/views/layouts/mailer.text.erb
262
306
  - test/dummy/bin/bundle
263
307
  - test/dummy/bin/rails
264
308
  - test/dummy/bin/rake
309
+ - test/dummy/bin/setup
310
+ - test/dummy/bin/spring
311
+ - test/dummy/bin/update
312
+ - test/dummy/bin/yarn
265
313
  - test/dummy/config/application.rb
266
314
  - test/dummy/config/boot.rb
315
+ - test/dummy/config/cable.yml
267
316
  - test/dummy/config/database.yml
268
317
  - test/dummy/config/environment.rb
269
318
  - test/dummy/config/environments/development.rb
270
319
  - test/dummy/config/environments/production.rb
271
320
  - test/dummy/config/environments/test.rb
321
+ - test/dummy/config/initializers/application_controller_renderer.rb
272
322
  - test/dummy/config/initializers/assets.rb
273
323
  - test/dummy/config/initializers/backtrace_silencers.rb
274
324
  - test/dummy/config/initializers/cookies_serializer.rb
275
325
  - test/dummy/config/initializers/filter_parameter_logging.rb
276
326
  - test/dummy/config/initializers/inflections.rb
277
327
  - test/dummy/config/initializers/mime_types.rb
278
- - test/dummy/config/initializers/session_store.rb
279
328
  - test/dummy/config/initializers/wrap_parameters.rb
280
329
  - test/dummy/config/locales/en.yml
330
+ - test/dummy/config/puma.rb
281
331
  - test/dummy/config/routes.rb
282
332
  - test/dummy/config/secrets.yml
333
+ - test/dummy/config/spring.rb
283
334
  - test/dummy/config.ru
284
335
  - test/dummy/db/migrate/20141021002149_create_products.rb
285
336
  - test/dummy/db/schema.rb
286
- - test/dummy/log/development.log
287
- - test/dummy/log/test.log
337
+ - test/dummy/db/seeds.rb
338
+ - test/dummy/package.json
288
339
  - test/dummy/public/404.html
289
340
  - test/dummy/public/422.html
290
341
  - test/dummy/public/500.html
342
+ - test/dummy/public/apple-touch-icon-precomposed.png
343
+ - test/dummy/public/apple-touch-icon.png
291
344
  - test/dummy/public/favicon.ico
345
+ - test/dummy/public/robots.txt
292
346
  - test/dummy/Rakefile
293
- - test/dummy/README.rdoc
347
+ - test/dummy/README.md
348
+ - test/dummy/test/application_system_test_case.rb
349
+ - test/dummy/test/test_helper.rb
294
350
  - test/factories/products.rb
295
351
  - test/factories/uploads.rb
296
352
  - test/helpers/s3_relay/uploads_helper_test.rb
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,26 +0,0 @@
1
-  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
2
-  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3
-  (0.3ms) SELECT pg_try_advisory_lock(5724499521023098410);
4
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateS3RelayUploads (20141009000804)
6
-  (0.1ms) BEGIN
7
- DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
8
-
9
- class CreateS3RelayUploads < ActiveRecord::Migration[4.2] (called from block in execute at /Users/kjohnston/.rvm/gems/ruby-2.4.0@global/gems/rake-12.0.0/lib/rake/task.rb:250)
10
-  (3.9ms) CREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
11
- SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141009000804"]]
12
-  (0.5ms) COMMIT
13
- Migrating to CreateProducts (20141021002149)
14
-  (0.2ms) BEGIN
15
- DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
16
-
17
- class CreateProducts < ActiveRecord::Migration[4.2] (called from block in execute at /Users/kjohnston/.rvm/gems/ruby-2.4.0@global/gems/rake-12.0.0/lib/rake/task.rb:250)
18
-  (3.0ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp)
19
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141021002149"]]
20
-  (0.3ms) COMMIT
21
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
22
-  (0.1ms) BEGIN
23
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2016-12-30 06:31:08 UTC], ["updated_at", 2016-12-30 06:31:08 UTC]]
24
-  (0.4ms) COMMIT
25
-  (0.3ms) SELECT pg_advisory_unlock(5724499521023098410)
26
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"