heroku_deployment 0.0.4 → 0.0.5

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 (4) hide show
  1. data/README.rdoc +21 -0
  2. data/VERSION +1 -1
  3. data/lib/heroku_deployment.rb +1 -1
  4. metadata +4 -4
data/README.rdoc CHANGED
@@ -14,6 +14,27 @@ To generate CSS and JS use:
14
14
 
15
15
  If you have all your CSS and JS declared in the layout file, this should work.
16
16
 
17
+ Created a rake task, or just an ruby script (which i prefer) with the following:
18
+
19
+ #!/usr/bin/env ruby
20
+
21
+ require "heroku_deployment"
22
+
23
+ HerokuDeployment::Config.setup do |config|
24
+ config.app = "heroku_app"
25
+ config.remote = "heroku"
26
+ config.generate_url = "/generate_js_and_css"
27
+ config.js_files = ["all.js"]
28
+ config.css_files = ["all.css"]
29
+ config.compress_js = true
30
+ config.compress_css = true
31
+ config.migrate = true
32
+ config.hoptoad = true
33
+ end
34
+
35
+ app = HerokuDeployment::Rails.new
36
+ app.deploy
37
+
17
38
  == Contributing to heroku_deployment
18
39
 
19
40
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -14,7 +14,7 @@ module HerokuDeployment
14
14
  system %(rm #{(js_files.collect{|j| "public/javascripts/#{j}"} + css_files.collect{|c| "public/stylesheets/#{c}"}).join(" ")} 2> /dev/null)
15
15
  HerokuDeployment::Config.commit_files << 'public/javascripts/'
16
16
  HerokuDeployment::Config.commit_files << 'public/stylesheets/'
17
- !!system(%(RAILS_ENV=production ./script/rails runner "require 'rails/console/app' ; app.get '#{HerokuDeployment::Config.generate_url}'"))
17
+ !!system(%(RAILS_ENV=production ./script/rails runner "Rails.application.config.action_controller.perform_caching = false ; Rails.cache.clear; require 'rails/console/app' ; app.get '#{HerokuDeployment::Config.generate_url}'"))
18
18
  end
19
19
 
20
20
  def db_migrate
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mooktakim Ahmed
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-11 00:00:00 +00:00
17
+ date: 2011-01-27 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- hash: 446735702883879511
131
+ hash: 3780668900109359112
132
132
  segments:
133
133
  - 0
134
134
  version: "0"