s3_relay 0.0.2 → 0.0.3
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/README.md +4 -3
- data/app/models/s3_relay/upload.rb +9 -0
- data/lib/s3_relay/version.rb +1 -1
- data/test/dummy/log/development.log +0 -53
- data/test/dummy/log/test.log +1595 -13983
- data/test/factories/uploads.rb +1 -0
- data/test/models/s3_relay/upload_test.rb +13 -0
- metadata +3 -3
data/test/factories/uploads.rb
CHANGED
@@ -109,6 +109,19 @@ describe S3Relay::Upload do
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
+
describe "#notify_parent" do
|
113
|
+
before { @upload = FactoryGirl.build(:upload) }
|
114
|
+
|
115
|
+
describe "when the parent is associated" do
|
116
|
+
it do
|
117
|
+
@product = FactoryGirl.create(:product)
|
118
|
+
@upload.parent = @product
|
119
|
+
@product.expects(:import_upload)
|
120
|
+
@upload.save
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
112
125
|
describe "#private_url" do
|
113
126
|
it do
|
114
127
|
uuid = SecureRandom.uuid
|
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenny Johnston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.4.3
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Direct uploads to S3 and ingestion by your Rails app.
|