rubber 2.4.1 → 2.4.2

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: 62f1c83f794e79e016feb8710ab271980a85ab60
4
- data.tar.gz: 0c300423e3fbfaea269f3a78461873a4fdfc1f0c
3
+ metadata.gz: 22e517ff32f6b1a5ebb0bbc229d619493e377d1a
4
+ data.tar.gz: 117569a34d40c27d17d0f62c587109b4aa32c1e9
5
5
  SHA512:
6
- metadata.gz: 1054053c44ae3c830e37f39de2d39e26693eed0095043662a2b5bf3e962ec35386d222b13b929d45f226fa114491c1ae9e3731f1b1732f5dcf5c8798d51cc04b
7
- data.tar.gz: 21381ae46616fe1fd9f5d32d76e2f220e96782a45d827e5bf635b9803a159fd481dfcdef170597fed0e034507ec007bcfaced14e2361ae45a0fac4f788aa35f7
6
+ metadata.gz: 06b55aeb4476092dc3d9d6fab6d7bf8819228a086afed91c2a014970d196ce6970761961d74c3274192d0e0f80df42003f7f4d80eeccedf3d78b2f3cac50fd92
7
+ data.tar.gz: e769eecb972f75a414f9bf3b04d670d335fa0822bd8ec2c3eae7578fff8ca5258a0940a3f5d2a46356aae3a6a82a2abb2863d5d5aa353cfa2a4b8c8aa8c641d4
data/CHANGELOG CHANGED
@@ -1,3 +1,12 @@
1
+ 2.4.2 (06/01/2013)
2
+ ------------------
3
+
4
+ Bug Fixes:
5
+ =========
6
+
7
+ [core, base] Tweaked the asset precompilation interop code to work in all cases now <c24b72e>
8
+
9
+
1
10
  2.4.1 (05/30/2013)
2
11
  ------------------
3
12
 
@@ -17,12 +26,12 @@ New Features:
17
26
  [core] DigitalOcean is now supported as a cloud provider
18
27
  [core] Added a "generic" cloud provider for connecting to dedicated hardware, VMs, and otherwise unsupported cloud providers
19
28
 
20
-
21
29
  Bug Fixes:
22
30
  =========
23
31
 
24
32
  [core] Trigger rubber:config after deploy:update_code so machines with both a DB and the asset pipeline can bootstrap properly <dc5d0b2>
25
33
 
34
+
26
35
  2.3.1 (05/12/2013)
27
36
  ------------------
28
37
 
@@ -24,8 +24,9 @@ namespace :rubber do
24
24
  task :post_stop do
25
25
  end
26
26
 
27
- after "deploy:symlink", "rubber:config"
27
+ after "deploy:update", "rubber:config"
28
28
  after "deploy:rollback_code", "rubber:config"
29
+ before "deploy:migrate", "rubber:config"
29
30
 
30
31
  desc <<-DESC
31
32
  Configures the deployed rails application by running the rubber configuration process
@@ -229,9 +229,7 @@ namespace :rubber do
229
229
  unless (fetch(:rubber_code_was_updated, false))
230
230
  deploy.setup
231
231
  logger.info "updating code for bootstrap"
232
- set :rubber_updating_code_for_bootstrap_db, true
233
232
  deploy.update_code
234
- set :rubber_updating_code_for_bootstrap_db, false
235
233
  end
236
234
  end
237
235
 
@@ -1,3 +1,3 @@
1
1
  module Rubber
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.2"
3
3
  end
@@ -89,18 +89,14 @@ task :cleanup, :except => { :no_release => true } do
89
89
  CMD
90
90
  end
91
91
 
92
+ # We need to ensure that rubber:config runs before asset precompilation in Rails, as Rails tries to boot the environment,
93
+ # which means needing to have DB access. However, if rubber:config hasn't run yet, then the DB config will not have
94
+ # been generated yet. Rails will fail to boot, asset precompilation will fail to complete, and the deploy will abort.
92
95
  if Rubber::Util.has_asset_pipeline?
93
- # load asset pipeline task, disable precompile from being triggered
94
- # by deploy:update_code during bootstrap_db, and reorder to run after
95
- # rubber:config has generated database.yml/etc.
96
96
  load 'deploy/assets'
97
+
97
98
  callbacks[:after].delete_if {|c| c.source == "deploy:assets:precompile"}
98
- task :_skip_assets_precompile_if_bootstrapping_db do
99
- if fetch(:rubber_updating_code_for_bootstrap_db, false)
100
- logger.info "Skipping assets precompilation"
101
- else
102
- deploy.assets.precompile
103
- end
104
- end
105
- after 'deploy:update_code', '_skip_assets_precompile_if_bootstrapping_db'
99
+ callbacks[:before].delete_if {|c| c.source == "deploy:assets:symlink"}
100
+ before "deploy:assets:precompile", "deploy:assets:symlink"
101
+ after "rubber:config", "deploy:assets:precompile"
106
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Conway
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
12
+ date: 2013-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano