githubbish_assets 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{githubbish_assets}
8
- s.version = "0.1.10"
8
+ s.version = "0.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Dashevskii"]
12
- s.date = %q{2011-08-17}
12
+ s.date = %q{2011-08-19}
13
13
  s.description = %q{Github style assets bundling in a Rails 3 engine}
14
14
  s.email = %q{olegdashevski@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -4,7 +4,21 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  task :bundle, :roles => :web, :except => { :no_release => true } do
5
5
  run "cd #{release_path}; RAILS_ROOT=#{release_path} #{fetch(:rake, 'rake')} ghbundle:all RAILS_ENV=#{fetch(:rails_env, 'production')}"
6
6
  end
7
+
8
+ desc "Shrunk and bundle js and css locally, then upload"
9
+ task :local_bundle, :roles => :web, :except => { :no_release => true } do
10
+ puts ">>> Bundling locally"
11
+ system "bundle exec rake ghbundle:all RAILS_ENV=#{fetch(:rails_env, 'production')}"
12
+
13
+ Dir["public/javascripts/bundle_*.js", "public/stylesheets/bundle_*.css"].each do |file|
14
+ top.upload file, "#{release_path}/#{file}"
15
+ end
16
+ end
7
17
  end
8
18
 
9
- after "deploy:update_code", "deploy:bundle"
19
+ if fetch(:bundle_locally, false)
20
+ after "deploy:update_code", "deploy:bundle"
21
+ else
22
+ after "deploy:update_code", "deploy:local_bundle"
23
+ end
10
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubbish_assets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 10
10
- version: 0.1.10
9
+ - 11
10
+ version: 0.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Oleg Dashevskii
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-17 00:00:00 +07:00
18
+ date: 2011-08-19 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency