dpl 1.5.2.travis.200.2 → 1.5.2.travis.201.2
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 +8 -8
- data/lib/dpl/provider.rb +1 -1
- data/spec/provider_spec.rb +28 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTIzYjgzNGJhODY2M2NjNGYxOWVmZGM3ZGM5MTA1NTEyZGNmMGI1NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWI2M2ExYTkxMmI1MjE5MGM3OTM5ZGE1YjAxODkzY2JiMjNiM2EzZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjc4MjY4NWNkYTBmZThlZWJlMjRkNmQyZWIzNmE2YmE0MjQwMzlhMDk1MWUw
|
10
|
+
MTI1YzFiNzJjZDg2OTUzNDg3YzMxMjlmNWRhYmUyODc2ZDk3N2NlNGYyMmEx
|
11
|
+
ZGIyNDA3OTQyMDg3M2Q2OGU0ZjRhNmE0NmZhZGM0Y2I3YzY4ZjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmYyNzc3ODU1ZmY0NWI1NzlhMGNjYTA0MTk2NDEzMjJhMjhjYjA5MWM0NWFj
|
14
|
+
OTc4NzA3MGNmMTMxNjNjMGI2OGRhMDI5YWZjYzhhNDIyMDY2ODZkODhmZDA4
|
15
|
+
MzkxYTljN2YzZjE3NjlhZTAxNDE5YTgxYzZhNmExM2FhN2VmOTY=
|
data/lib/dpl/provider.rb
CHANGED
data/spec/provider_spec.rb
CHANGED
@@ -120,13 +120,34 @@ describe DPL::Provider do
|
|
120
120
|
end
|
121
121
|
|
122
122
|
describe :shell do
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
123
|
+
describe 'on Travis' do
|
124
|
+
before(:each) do
|
125
|
+
stub_const("ENV", {'TRAVIS' => 'true'})
|
126
|
+
end
|
127
|
+
|
128
|
+
example "without any options" do
|
129
|
+
example_provider.should_receive(:system).with("command")
|
130
|
+
example_provider.shell("command")
|
131
|
+
end
|
132
|
+
example "with retry: true" do
|
133
|
+
example_provider.should_receive(:system).with("travis_retry command")
|
134
|
+
example_provider.shell("command", retry: true)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe 'not on Travis' do
|
139
|
+
before(:each) do
|
140
|
+
stub_const("ENV", {'TRAVIS' => nil})
|
141
|
+
end
|
142
|
+
|
143
|
+
example "without any options" do
|
144
|
+
example_provider.should_receive(:system).with("command")
|
145
|
+
example_provider.shell("command")
|
146
|
+
end
|
147
|
+
example "with retry: true" do
|
148
|
+
example_provider.should_receive(:system).with("command")
|
149
|
+
example_provider.shell("command", retry: true)
|
150
|
+
end
|
130
151
|
end
|
131
152
|
end
|
132
153
|
|