foreplay 0.3.6 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6079de2420be570430de718c59f40ebe7ac243f
4
- data.tar.gz: af0347c6b438ab1284c2418dbe12dcff8927e2c2
3
+ metadata.gz: ee88ad42e587a894fb2ab1f98bcb38a8f5758d7b
4
+ data.tar.gz: e551d3e61d6789701d0d1efdd5445dc63b37e622
5
5
  SHA512:
6
- metadata.gz: 77e5f0ccc033939e550b028092077a110879e96266587ce14f993ae9debdb90aab9d3f38ecef6486bcf62bdeec7a0c267ef2f804eefbc7a1fa2403baea5946c7
7
- data.tar.gz: e75e8c2da097344da2830cf3712a9ddb156b1171655841f1ce0a16013d191091fdb97c3a0fad36d259eeb827dfa3d21d702a435a184f16cbaaba3efae19245a8
6
+ metadata.gz: ae3da7389f217524a5cfb0b93a5e87bcd04d233c0957335f71be86b8c39dc7042bd182cb5f8dae078c196cf497a9b6a643a4cfb5acb90d9ba55921b107828b8b
7
+ data.tar.gz: dec9d24d0f366b77e5c04aa941827e60a06b8c37cd92e2e32b6a88562ef105023d0b8ac2ea46525ff3dd97c8d8caed4dad4cbdd63fbefecd98f21a720441f013
data/.hound.yml CHANGED
@@ -33,4 +33,4 @@ CyclomaticComplexity:
33
33
  ClassLength:
34
34
  Description: 'Avoid classes longer than 100 lines of code.'
35
35
  CountComments: false # count full line comments?
36
- Max: 273
36
+ Max: 278
@@ -186,10 +186,15 @@ module Foreplay
186
186
  commentary: 'Building config/resque.yml',
187
187
  before: environment,
188
188
  path: 'config/' },
189
+ { command: 'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
190
+ ' ; else echo No bundle to restore ; fi',
191
+ commentary: 'Attempting to restore bundle from cache' },
189
192
  { command: 'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
190
193
  commentary: 'Setting the current version of bundle to be the default' },
191
- { command: 'bundle install --deployment --without development test',
194
+ { command: 'bundle install --deployment --clean --jobs 2 --without development test',
192
195
  commentary: 'Using bundler to install the required gems in deployment mode' },
196
+ { command: 'mkdir -p ../cache && cp -rf vendor/bundle ../cache/vendor/bundle',
197
+ commentary: 'Caching bundle' },
193
198
  { command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
194
199
  " ; else RAILS_ENV=#{environment} bundle exec foreman run rake assets:precompile ; fi",
195
200
  commentary: 'Precompiling assets unless they were supplied' },
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.3.6'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -107,8 +107,11 @@ describe Foreplay::Deploy do
107
107
  'echo " host: TODO Put here the database host name" >> config/database.yml',
108
108
  'echo " username: TODO Put here the database user" >> config/database.yml',
109
109
  'echo " password: TODO Put here the database user\'s password" >> config/database.yml',
110
+ 'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
111
+ ' ; else echo No bundle to restore ; fi',
110
112
  'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
111
- 'bundle install --deployment --without development test',
113
+ 'bundle install --deployment --clean --jobs 2 --without development test',
114
+ 'mkdir -p ../cache && cp -rf vendor/bundle ../cache/vendor/bundle',
112
115
  'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
113
116
  ' ; else RAILS_ENV=production bundle exec foreman run rake assets:precompile ; fi',
114
117
  'sudo bundle exec foreman export upstart /etc/init',
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.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport