heroku_deployment 0.0.1 → 0.0.2

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.
data/README.rdoc CHANGED
@@ -1,6 +1,18 @@
1
1
  = heroku_deployment
2
2
 
3
- Description goes here.
3
+ Deployment scripts for Heroku.
4
+
5
+ To generate CSS and JS use:
6
+
7
+ # route.rb
8
+ match "generate_js_and_css" => "application#generate_js_and_css"
9
+
10
+ # application_controller.rb
11
+ def generate_js_and_css
12
+ render :inline => "SUCCESS", :layout => true
13
+ end
14
+
15
+ If you have all your CSS and JS declared in the layout file, this should work.
4
16
 
5
17
  == Contributing to heroku_deployment
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,10 +5,12 @@ module HerokuDeployment
5
5
 
6
6
  class << self
7
7
  def compress_js(file)
8
+ return unless File.exists?(file)
8
9
  new(file, :js).compress
9
10
  end
10
11
 
11
12
  def compress_css(file)
13
+ return unless File.exists?(file)
12
14
  new(file, :css).compress
13
15
  end
14
16
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
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: 2010-12-16 00:00:00 +00:00
17
+ date: 2010-12-23 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: -1958877575370411152
131
+ hash: 190129514997706165
132
132
  segments:
133
133
  - 0
134
134
  version: "0"