foreplay 0.11.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NWVlNmM4YmJkZDVhN2VlNTY4Y2Y3MDA1MTAwNzg5M2ZiMmIxYWZhZA==
5
- data.tar.gz: !binary |-
6
- MzcxMTZiNjI0MzJmYjI3N2RhYWZhYzE1OTAzNzZjZTRmNDhmZjJkYQ==
2
+ SHA1:
3
+ metadata.gz: 5becfedc7ac689f37df541ea80364c5e819ffeef
4
+ data.tar.gz: 8ae6da07aa55541f3d41b9e057ecbc01e496b691
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MmJjOWYyZDRmNmZlYzhlNjdiYTdmYmFkMWM0MjRjMzZiNTExZTM3NDU5MDJj
10
- YzRmZWI4YWVkMjY3YWVjOTZjN2RmNGI3MjdkYTJiMTY3ZTA0ZjhhYzI1MmQ1
11
- NDc0ZjY3YzEzYmI1NjUzYmY0M2ZiYmJmMWU1NTQ0ZjJjYjQ2Yzk=
12
- data.tar.gz: !binary |-
13
- MjYzMDJkNTllOGI4ZTI1NDZhMjgyMTIxMzQxMGMyZjI1MTczN2NjZDI2ODM2
14
- NjM5MGZkZGMxZDVlY2IwMzQ3ZTM3ZTYwZjIxOTI0ZDJiYzE4Nzc0MDg2YmNk
15
- NGIzZTVhYzRmMmYyNGQ2M2NjZDg1ZmQyNTVkOGNkYWU4MTQwOGY=
6
+ metadata.gz: 1672d375b5864ed8e90df76509a8b2c5c7175e20b3f833daaf97339b89e066ba66ad53ea8784d8d00b3d3f9278aa16da2b6747b55484a217e321652710c4f33d
7
+ data.tar.gz: 487d48881e60229b466c53a8a845e413ccdaad8b01b927ce4edad1950686d13e52df7f5188f607e4468df923ea409e7ae07e10dff21cc68b640c874914e375c9
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
- ruby "1.9.3"
2
+ ruby "2.1.6"
3
3
  gemspec
@@ -15,11 +15,17 @@ module Foreplay
15
15
 
16
16
  @secrets = all_secrets[environment]
17
17
 
18
- if @secrets.is_a? Hash
18
+ case @secrets
19
+ when Hash
19
20
  log "Loaded #{secrets.keys.length} secrets"
20
21
  @secrets
22
+ when String
23
+ log "Unexpected secrets found: #{@secrets}"
24
+ @secrets = {}
21
25
  else
22
26
  log 'No secrets found'
27
+ url ? log("Looked in #{url}") : log('No url found')
28
+ log("Secrets #{all_secrets.key?(environment) ? 'has a' : 'has no'} key #{environment}") if all_secrets
23
29
  @secrets = {}
24
30
  end
25
31
  end
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.11.2'
2
+ VERSION = '0.13.0'
3
3
  end
@@ -153,7 +153,7 @@ describe Foreplay::Launcher do
153
153
  'echo "---" > config/application.yml',
154
154
  'echo "production:" >> config/application.yml',
155
155
  'echo " BIG_SECRET: \'123\'" >> config/application.yml',
156
- 'echo " MOUSTACHE: ! \'{{moustache}}\'" >> config/application.yml',
156
+ 'echo " MOUSTACHE: \"{{moustache}}\"" >> config/application.yml',
157
157
  'echo "---" > .foreman',
158
158
  'echo "concurrency: web=1,worker=0,scheduler=0" >> .foreman',
159
159
  'echo "app: foreplay-50000" >> .foreman',
@@ -1,11 +1,11 @@
1
1
  describe YAML do
2
2
  context '#escape' do
3
3
  it 'uses the expected Ruby version' do
4
- expect(RUBY_VERSION).to eq '1.9.3'
4
+ expect(RUBY_VERSION).to eq '2.1.6'
5
5
  end
6
6
 
7
7
  it 'uses the expected YAML version' do
8
- expect(YAML::VERSION).to eq '1.3.4' # The escaping below changes with different YAML versions
8
+ expect(YAML::VERSION).to eq '2.0.5' # The escaping below changes with different YAML versions
9
9
  end
10
10
 
11
11
  it 'correctly escape a basic string' do
@@ -13,7 +13,7 @@ describe YAML do
13
13
  end
14
14
 
15
15
  it 'correctly escape a troublesome string' do
16
- expect(YAML.escape '{{moustache}} beard').to eq("! '{{moustache}} beard'")
16
+ expect(YAML.escape '{{moustache}} beard').to eq('"{{moustache}} beard"')
17
17
  expect(YAML.escape "Brian O'Brien").to eq("Brian O'Brien")
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,283 +1,283 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.76'
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '1.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.76'
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ssh-shell
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ! '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.4'
40
- - - <
40
+ - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0.4'
50
- - - <
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '1.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activesupport
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ! '>='
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '3.2'
60
- - - <
60
+ - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '5.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '3.2'
70
- - - <
70
+ - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '5.0'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bundler
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ~>
77
+ - - "~>"
78
78
  - !ruby/object:Gem::Version
79
79
  version: '1.9'
80
80
  type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ~>
84
+ - - "~>"
85
85
  - !ruby/object:Gem::Version
86
86
  version: '1.9'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rake
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ~>
91
+ - - "~>"
92
92
  - !ruby/object:Gem::Version
93
93
  version: '10.4'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ~>
98
+ - - "~>"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '10.4'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: rspec
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ~>
105
+ - - "~>"
106
106
  - !ruby/object:Gem::Version
107
107
  version: '3.2'
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ~>
112
+ - - "~>"
113
113
  - !ruby/object:Gem::Version
114
114
  version: '3.2'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: rspec_junit_formatter
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ~>
119
+ - - "~>"
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0.2'
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ~>
126
+ - - "~>"
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0.2'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: cucumber
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ~>
133
+ - - "~>"
134
134
  - !ruby/object:Gem::Version
135
135
  version: '2.0'
136
136
  type: :development
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ~>
140
+ - - "~>"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '2.0'
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: aruba
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ~>
147
+ - - "~>"
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0.6'
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - ~>
154
+ - - "~>"
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0.6'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: gem-release
159
159
  requirement: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ~>
161
+ - - "~>"
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0.7'
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ~>
168
+ - - "~>"
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0.7'
171
171
  - !ruby/object:Gem::Dependency
172
172
  name: simplecov
173
173
  requirement: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - ~>
175
+ - - "~>"
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0.10'
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ~>
182
+ - - "~>"
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0.10'
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: coveralls
187
187
  requirement: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - ~>
189
+ - - "~>"
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0.8'
192
192
  type: :development
193
193
  prerelease: false
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ~>
196
+ - - "~>"
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0.8'
199
199
  - !ruby/object:Gem::Dependency
200
200
  name: codeclimate-test-reporter
201
201
  requirement: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - ~>
203
+ - - "~>"
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0.4'
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
- - - ~>
210
+ - - "~>"
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0.4'
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: rubocop
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
- - - ~>
217
+ - - "~>"
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0.30'
220
220
  type: :development
221
221
  prerelease: false
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - ~>
224
+ - - "~>"
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0.30'
227
227
  - !ruby/object:Gem::Dependency
228
228
  name: guard
229
229
  requirement: !ruby/object:Gem::Requirement
230
230
  requirements:
231
- - - ~>
231
+ - - "~>"
232
232
  - !ruby/object:Gem::Version
233
233
  version: '2.7'
234
234
  type: :development
235
235
  prerelease: false
236
236
  version_requirements: !ruby/object:Gem::Requirement
237
237
  requirements:
238
- - - ~>
238
+ - - "~>"
239
239
  - !ruby/object:Gem::Version
240
240
  version: '2.7'
241
241
  - !ruby/object:Gem::Dependency
242
242
  name: guard-rspec
243
243
  requirement: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ~>
245
+ - - "~>"
246
246
  - !ruby/object:Gem::Version
247
247
  version: '4.3'
248
248
  type: :development
249
249
  prerelease: false
250
250
  version_requirements: !ruby/object:Gem::Requirement
251
251
  requirements:
252
- - - ~>
252
+ - - "~>"
253
253
  - !ruby/object:Gem::Version
254
254
  version: '4.3'
255
255
  - !ruby/object:Gem::Dependency
256
256
  name: guard-rubocop
257
257
  requirement: !ruby/object:Gem::Requirement
258
258
  requirements:
259
- - - ~>
259
+ - - "~>"
260
260
  - !ruby/object:Gem::Version
261
261
  version: '1.2'
262
262
  type: :development
263
263
  prerelease: false
264
264
  version_requirements: !ruby/object:Gem::Requirement
265
265
  requirements:
266
- - - ~>
266
+ - - "~>"
267
267
  - !ruby/object:Gem::Version
268
268
  version: '1.2'
269
269
  - !ruby/object:Gem::Dependency
270
270
  name: guard-cucumber
271
271
  requirement: !ruby/object:Gem::Requirement
272
272
  requirements:
273
- - - ~>
273
+ - - "~>"
274
274
  - !ruby/object:Gem::Version
275
275
  version: '1.6'
276
276
  type: :development
277
277
  prerelease: false
278
278
  version_requirements: !ruby/object:Gem::Requirement
279
279
  requirements:
280
- - - ~>
280
+ - - "~>"
281
281
  - !ruby/object:Gem::Version
282
282
  version: '1.6'
283
283
  description: Deploying Rails projects to Ubuntu using Foreman
@@ -288,10 +288,10 @@ executables:
288
288
  extensions: []
289
289
  extra_rdoc_files: []
290
290
  files:
291
- - .gitignore
292
- - .hound.yml
293
- - .rspec
294
- - .rubocop.yml
291
+ - ".gitignore"
292
+ - ".hound.yml"
293
+ - ".rspec"
294
+ - ".rubocop.yml"
295
295
  - Gemfile
296
296
  - Guardfile
297
297
  - LICENSE.txt
@@ -338,20 +338,20 @@ require_paths:
338
338
  - lib
339
339
  required_ruby_version: !ruby/object:Gem::Requirement
340
340
  requirements:
341
- - - ! '>='
341
+ - - ">="
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  required_rubygems_version: !ruby/object:Gem::Requirement
345
345
  requirements:
346
- - - ! '>='
346
+ - - ">="
347
347
  - !ruby/object:Gem::Version
348
348
  version: '0'
349
349
  requirements: []
350
350
  rubyforge_project:
351
- rubygems_version: 2.4.3
351
+ rubygems_version: 2.4.8
352
352
  signing_key:
353
353
  specification_version: 4
354
- summary: ! 'Example: foreplay deploy production'
354
+ summary: 'Example: foreplay deploy production'
355
355
  test_files:
356
356
  - features/check.feature
357
357
  - features/deploy.feature