soprano 0.90 → 0.91

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.
@@ -0,0 +1,15 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ # This skips assets precompilation if nothing changed
3
+ namespace :deploy do
4
+ namespace :assets do
5
+ task :precompile, :roles => :web, :except => { :no_release => true } do
6
+ from = source.next_revision(current_revision)
7
+ if capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ lib/assets | wc -l").to_i > 0
8
+ run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
9
+ else
10
+ logger.info "Skipping asset pre-compilation because there were no asset changes"
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Soprano
2
- VERSION = "0.90"
2
+ VERSION = "0.91"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soprano
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.90'
4
+ version: '0.91'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-31 00:00:00.000000000 Z
12
+ date: 2012-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -65,6 +65,7 @@ files:
65
65
  - lib/soprano/nginx_vhost.rb
66
66
  - lib/soprano/passenger.rb
67
67
  - lib/soprano/remote.rb
68
+ - lib/soprano/smart_assets.rb
68
69
  - lib/soprano/unicorn.rb
69
70
  - lib/soprano/version.rb
70
71
  - soprano.gemspec