foreplay 0.13.5 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d323a5a68ba8e1a8e4dd6efa0790c52896b333b
4
- data.tar.gz: 81b0a4a02ac2201c759bd3dd470bc4c9e38e3e32
3
+ metadata.gz: 70599db3f72062e7dbcd2ae68296fdace5ef7f9d
4
+ data.tar.gz: a3b0b627f80757a2efa2f376f42a0cdf1053e628
5
5
  SHA512:
6
- metadata.gz: d4eb1dd16fd4a83e2ce4747fe207204f70e4db9a02055b8519c8f7abbb3c7bd278db18f058aed28003e1ebb1378c4f6fea904f943ef4c066da86180b6e1b9ac5
7
- data.tar.gz: 0ce01b7a26623f6473b45fe990179db162df4ca2a03684e75006c40a1e8bb8c9f8a933f4a27335a516581997421f758c23b7f723e3e5769024959c1449d36f4c
6
+ metadata.gz: eeb5e44cbf7798b9c43d82652b50fa024aa6a71ce3e6ecd3a2076d9e5ff876f351b321ab5aa66dc2b535500de6f3cf111ec1f048ebf2603c6657ab4e0ac126f5
7
+ data.tar.gz: cc09ebe3ce9c1142051d772c494ce2b6a42694080505bdbeaef56d527e6ae59834fe81b4acba60fc85f25f4fdbf0566d46a3e43679cb951512c39ae9a98f1236
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
- ruby "2.1.6"
2
+ ruby "2.1.9"
3
3
  gemspec
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Gem Version](http://img.shields.io/gem/v/foreplay.svg?style=flat) [![Code Climate](http://img.shields.io/codeclimate/github/Xenapto/foreplay.svg?style=flat)](https://codeclimate.com/github/Xenapto/foreplay) [![Coverage Status](https://img.shields.io/coveralls/Xenapto/foreplay.svg?style=flat)](https://coveralls.io/r/Xenapto/foreplay?branch=develop)
4
4
  [![Developer status](http://img.shields.io/badge/developer-awesome-brightgreen.svg?style=flat)](http://xenapto.com)
5
- ![build status](https://circleci.com/gh/Xenapto/foreplay.png?circle-token=dd3a51864d33f6506b18a355bc901b90c0df3b3b)
5
+ ![build status](https://circleci.com/gh/Xenapto/foreplay.png?circle-token=dd3a51864d33f6506b18a355bc901b90c0df3b3b) [![Join the chat at https://gitter.im/Xenapto/foreplay](https://badges.gitter.im/Xenapto/foreplay.svg)](https://gitter.im/Xenapto/foreplay?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
6
 
7
7
  Deploying Rails projects to Ubuntu using Foreman
8
8
 
data/foreplay.gemspec CHANGED
@@ -32,8 +32,9 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'coveralls', '~> 0.8'
33
33
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
34
34
  spec.add_development_dependency 'rubocop', '~> 0.30'
35
- spec.add_development_dependency 'guard', '~> 2.7'
36
- spec.add_development_dependency 'guard-rspec', '~> 4.3'
35
+ spec.add_development_dependency 'listen', '~> 3.0', '< 3.1' # Dependency of guard, 3.1 requires Ruby 2.2+
36
+ spec.add_development_dependency 'guard', '~> 2'
37
+ spec.add_development_dependency 'guard-rspec', '~> 4'
37
38
  spec.add_development_dependency 'guard-rubocop', '~> 1.2'
38
39
  spec.add_development_dependency 'guard-cucumber', '~> 1.6'
39
40
  end
@@ -71,6 +71,8 @@ module Foreplay
71
71
  end
72
72
 
73
73
  def steps
74
+ concurrency = foreman.key?('concurrency') ? " -m #{foreman['concurrency']}" : ''
75
+
74
76
  @steps ||= YAML.load(
75
77
  ERB.new(
76
78
  File.read(
@@ -58,7 +58,7 @@
58
58
  commentary: 'Caching bundle'
59
59
  - command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets" ; else RAILS_ENV=<%= environment %> /usr/bin/bundle exec foreman run rake assets:precompile ; fi'
60
60
  commentary: 'Precompiling assets unless they were supplied'
61
- - command: 'sudo /usr/bin/bundle exec foreman export upstart /etc/init'
61
+ - command: 'sudo /usr/bin/bundle exec foreman export upstart<%= concurrency %> /etc/init'
62
62
  commentary: "Converting <%= current_service %> to an upstart service"
63
63
  - command: "sudo start <%= current_service %> || sudo restart <%= current_service %>"
64
64
  commentary: 'Starting the service'
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.13.5'
2
+ VERSION = '0.15.0'
3
3
  end
@@ -1,7 +1,7 @@
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 '2.1.6'
4
+ expect(RUBY_VERSION).to eq '2.1.9'
5
5
  end
6
6
 
7
7
  it 'uses the expected YAML version' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman
@@ -224,34 +224,54 @@ dependencies:
224
224
  - - "~>"
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0.30'
227
+ - !ruby/object:Gem::Dependency
228
+ name: listen
229
+ requirement: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - "~>"
232
+ - !ruby/object:Gem::Version
233
+ version: '3.0'
234
+ - - "<"
235
+ - !ruby/object:Gem::Version
236
+ version: '3.1'
237
+ type: :development
238
+ prerelease: false
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '3.0'
244
+ - - "<"
245
+ - !ruby/object:Gem::Version
246
+ version: '3.1'
227
247
  - !ruby/object:Gem::Dependency
228
248
  name: guard
229
249
  requirement: !ruby/object:Gem::Requirement
230
250
  requirements:
231
251
  - - "~>"
232
252
  - !ruby/object:Gem::Version
233
- version: '2.7'
253
+ version: '2'
234
254
  type: :development
235
255
  prerelease: false
236
256
  version_requirements: !ruby/object:Gem::Requirement
237
257
  requirements:
238
258
  - - "~>"
239
259
  - !ruby/object:Gem::Version
240
- version: '2.7'
260
+ version: '2'
241
261
  - !ruby/object:Gem::Dependency
242
262
  name: guard-rspec
243
263
  requirement: !ruby/object:Gem::Requirement
244
264
  requirements:
245
265
  - - "~>"
246
266
  - !ruby/object:Gem::Version
247
- version: '4.3'
267
+ version: '4'
248
268
  type: :development
249
269
  prerelease: false
250
270
  version_requirements: !ruby/object:Gem::Requirement
251
271
  requirements:
252
272
  - - "~>"
253
273
  - !ruby/object:Gem::Version
254
- version: '4.3'
274
+ version: '4'
255
275
  - !ruby/object:Gem::Dependency
256
276
  name: guard-rubocop
257
277
  requirement: !ruby/object:Gem::Requirement
@@ -348,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
368
  version: '0'
349
369
  requirements: []
350
370
  rubyforge_project:
351
- rubygems_version: 2.4.8
371
+ rubygems_version: 2.6.4
352
372
  signing_key:
353
373
  specification_version: 4
354
374
  summary: 'Example: foreplay deploy production'