capifony 2.0.7 → 2.0.8

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.
Files changed (3) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/symfony2.rb +19 -3
  3. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 2.0.8 / June 14, 2011
2
+
3
+ * update_vendors functionality support (via @weaverryan)
4
+
1
5
  == 2.0.7 / June 9, 2011
2
6
 
3
7
  * more modular behavior (thanks Alif Rachmawadi)
data/lib/symfony2.rb CHANGED
@@ -18,6 +18,9 @@ set :cache_path, app_path + "/cache"
18
18
  # Use AsseticBundle
19
19
  set :dump_assetic_assets, false
20
20
 
21
+ # Whether to run the bin/vendors script to update vendors
22
+ set :update_vendors, false
23
+
21
24
  # Dirs that need to remain the same between deploys (shared dirs)
22
25
  set :shared_children, [log_path, web_path + "/uploads"]
23
26
 
@@ -131,6 +134,13 @@ namespace :symfony do
131
134
  end
132
135
  end
133
136
 
137
+ namespace :vendors do
138
+ desc "Runs the bin/vendors script to update the vendors"
139
+ task :update do
140
+ run "cd #{latest_release} && ./bin/vendors install"
141
+ end
142
+ end
143
+
134
144
  namespace :cache do
135
145
  desc "Clears project cache."
136
146
  task :clear do
@@ -246,9 +256,15 @@ end
246
256
 
247
257
  # After finalizing update:
248
258
  after "deploy:finalize_update" do
249
- symfony.cache.warmup # 1. Warmup clean cache
250
- symfony.assets.install # 2. Publish bundle assets
259
+ if update_vendors
260
+ # share the children first (to get the vendor symlink)
261
+ deploy.share_childs
262
+ symfony.vendors.update # 1. Update vendors
263
+ end
264
+
265
+ symfony.cache.warmup # 2. Warmup clean cache
266
+ symfony.assets.install # 3. Publish bundle assets
251
267
  if dump_assetic_assets
252
- symfony.assetic.dump # 3. Dump assetic assets
268
+ symfony.assetic.dump # 4. Dump assetic assets
253
269
  end
254
270
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capifony
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 7
10
- version: 2.0.7
9
+ - 8
10
+ version: 2.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Konstantin Kudryashov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-09 00:00:00 +03:00
18
+ date: 2011-06-14 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency