dpl 1.8.8.travis.1151.4 → 1.8.8.travis.1167.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dpl/provider.rb +1 -1
- data/spec/provider/gcs_spec.rb +1 -1
- data/spec/provider/s3_spec.rb +1 -1
- data/spec/provider_spec.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDI5NmZlZDBlYTI5N2M0ZTkwYzM1YzIxODc3MDliMjhmY2RmMjgyNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGQ2YTQ2YjE1ZjRkZWRiMzc4MjYwMmEwYWIyN2ZkMDJhMTI0ZjZjNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGY3NWQ5ZDVmNzcyM2I1Zjg2NGI3Mzk1M2VlMTA1NzU4MjMwMDc4OGRjYmNl
|
10
|
+
MWEwNWUzZjg2OTllNmYxZDFlNDBmOTNiMzM3OWNlMjJmOGVjZjdlM2QxYzU0
|
11
|
+
NzQyMzUwNDUzYjg3N2U4ODc2MTUwODg4NGRmYWE4N2QxOWFkYTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWU3MjQ5ZWUxNzAwMmVmMGE4MDVlMjZjN2EzNGE0ZDZlMjNiYWM1ZWVlOGM1
|
14
|
+
M2Y1OGY2YWMyZDc2OThmNjc0YTZjZDIyZjk1ZDE3Njc1YTdjYjVmMjA2MGFm
|
15
|
+
YTU1NDZhNTJhMWIxZmRhOWQ5ODhkNWVhOGUyNWJjNTdhZTM0NjQ=
|
data/lib/dpl/provider.rb
CHANGED
data/spec/provider/gcs_spec.rb
CHANGED
@@ -84,7 +84,7 @@ describe DPL::Provider::GCS do
|
|
84
84
|
path = 'foo.js'
|
85
85
|
provider.options.update(:detect_encoding => true)
|
86
86
|
expect(Dir).to receive(:glob).and_yield(path)
|
87
|
-
expect(provider).to receive(:`).at_least(1).times.with("file #{path}").and_return('gzip compressed')
|
87
|
+
expect(provider).to receive(:`).at_least(1).times.with("file '#{path}'").and_return('gzip compressed')
|
88
88
|
expect(File).to receive(:read).with(path).and_return("")
|
89
89
|
expect_any_instance_of(GStore::Client).to receive(:put_object).with(
|
90
90
|
anything(),
|
data/spec/provider/s3_spec.rb
CHANGED
@@ -139,7 +139,7 @@ describe DPL::Provider::S3 do
|
|
139
139
|
path = 'foo.js'
|
140
140
|
provider.options.update(:detect_encoding => true)
|
141
141
|
expect(Dir).to receive(:glob).and_yield(path)
|
142
|
-
expect(provider).to receive(:`).at_least(1).times.with("file #{path}").and_return('gzip compressed')
|
142
|
+
expect(provider).to receive(:`).at_least(1).times.with("file '#{path}'").and_return('gzip compressed')
|
143
143
|
expect_any_instance_of(Aws::S3::Object).to receive(:upload_file).with(anything(), hash_including(:content_encoding => 'gzip'))
|
144
144
|
provider.push_app
|
145
145
|
end
|
data/spec/provider_spec.rb
CHANGED
@@ -150,9 +150,15 @@ describe DPL::Provider do
|
|
150
150
|
describe "#encoding_for" do
|
151
151
|
example do
|
152
152
|
path = 'foo.js'
|
153
|
-
expect(provider).to receive(:`).at_least(1).times.with("file #{path}").and_return(
|
153
|
+
expect(provider).to receive(:`).at_least(1).times.with("file '#{path}'").and_return("#{path}: gzip compressed")
|
154
154
|
expect(provider.encoding_for(path)).to eq('gzip')
|
155
155
|
end
|
156
|
+
|
157
|
+
example do
|
158
|
+
path = 'file with a space'
|
159
|
+
expect(provider).to receive(:`).at_least(1).times.with("file '#{path}'").and_return("#{path}: empty")
|
160
|
+
expect(provider.encoding_for(path)).to be_nil
|
161
|
+
end
|
156
162
|
end
|
157
163
|
|
158
164
|
describe "#log" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.8.travis.
|
4
|
+
version: 1.8.8.travis.1167.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|