blazing-rails 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Felipe Kaufmann
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,23 @@
1
+ # Blazing Rails
2
+
3
+ Rails related recipes for [blazing](http://github.com/effkay/blazing)
4
+
5
+ ## Installation
6
+
7
+ Add `gem 'blazing-rails'` to your `Gemfile`
8
+
9
+ ## Usage
10
+
11
+ Enable the recipes you want in your blazing configuration file:
12
+
13
+ * `:precompile_assets` will precompile the assets when deploying
14
+
15
+ ## Authors
16
+
17
+ Felipe Kaufmann ([@effkay][])
18
+
19
+ ## License
20
+
21
+ See the [MIT-LICENSE file](https://github.com/effkay/blazing/blob/master/MIT-LICENCE)
22
+
23
+ [@effkay]: https://github.com/effkay
@@ -18,5 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
+ s.add_dependency "blazing", '>= 0.2.0'
21
22
  s.add_dependency "httparty"
22
23
  end
@@ -1,6 +1,9 @@
1
+ require 'blazing/recipe'
2
+
1
3
  class Blazing::Recipe::PrecompileAssets < Blazing::Recipe
2
4
 
3
- def run
5
+ def run(target_recipes = {})
6
+ super target_recipes
4
7
  info 'precompiling assets'
5
8
  system 'bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'
6
9
  end
@@ -1,5 +1,5 @@
1
1
  module Blazing
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,23 @@
1
+ require 'blazing-rails/recipes/precompile_assets'
2
+
3
+ describe Blazing::Recipe::PrecompileAssets do
4
+
5
+ it 'is a blazing recipe' do
6
+ Blazing::Recipe::PrecompileAssets.superclass.should be Blazing::Recipe
7
+ end
8
+
9
+ describe 'run' do
10
+
11
+ before :each do
12
+ @recipe = Blazing::Recipe::PrecompileAssets.new
13
+ @recipe.stub(:info)
14
+ end
15
+
16
+ it 'calls the precompile assets rake task' do
17
+ @recipe.should_receive(:system).with("bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile")
18
+ @recipe.run
19
+ end
20
+
21
+ end
22
+
23
+ end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 0.0.2
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Felipe Kaufmann
@@ -15,10 +15,26 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-24 00:00:00 Z
18
+ date: 2011-10-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ none: false
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 23
27
+ segments:
28
+ - 0
29
+ - 2
30
+ - 0
31
+ version: 0.2.0
32
+ prerelease: false
33
+ requirement: *id001
34
+ type: :runtime
35
+ name: blazing
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
22
38
  none: false
23
39
  requirements:
24
40
  - - ">="
@@ -27,10 +43,10 @@ dependencies:
27
43
  segments:
28
44
  - 0
29
45
  version: "0"
30
- requirement: *id001
31
46
  prerelease: false
32
- name: httparty
47
+ requirement: *id002
33
48
  type: :runtime
49
+ name: httparty
34
50
  description: A collection of blazing recipes for rails
35
51
  email:
36
52
  - felipekaufmann@gmail.com
@@ -43,11 +59,14 @@ extra_rdoc_files: []
43
59
  files:
44
60
  - .gitignore
45
61
  - Gemfile
62
+ - MIT-LICENCE
63
+ - README.md
46
64
  - Rakefile
47
65
  - blazing-rails.gemspec
48
66
  - lib/blazing-rails.rb
49
67
  - lib/blazing-rails/recipes/precompile_assets.rb
50
68
  - lib/blazing-rails/version.rb
69
+ - spec/precompile_assets_spec.rb
51
70
  homepage: https://github.com/effkay/blazing-rails
52
71
  licenses: []
53
72
 
@@ -81,5 +100,5 @@ rubygems_version: 1.8.10
81
100
  signing_key:
82
101
  specification_version: 3
83
102
  summary: blazing recipes for rails
84
- test_files: []
85
-
103
+ test_files:
104
+ - spec/precompile_assets_spec.rb