blazing-jammit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +5 -0
- data/MIT-LICENSE +20 -0
- data/README.md +42 -0
- data/blazing-jammit.gemspec +22 -0
- data/lib/blazing-jammit.rb +7 -0
- data/lib/blazing-jammit/recipes/jammit_compile.rb +12 -0
- data/lib/blazing-jammit/version.rb +5 -0
- data/spec/jammit_compile_spec.rb +23 -0
- metadata +88 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Daniel Farrell
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
Blazing Jammit
|
2
|
+
==============
|
3
|
+
|
4
|
+
Jammit recipe for [blazing](http://github.com/effkay/blazing)
|
5
|
+
|
6
|
+
Installation
|
7
|
+
------------
|
8
|
+
|
9
|
+
Add `gem 'blazing-jammit'` to your `Gemfile`
|
10
|
+
|
11
|
+
Usage
|
12
|
+
-----
|
13
|
+
|
14
|
+
Enable the recipes you want in your blazing configuration file. Options
|
15
|
+
can be provided in the recipe call or with the target method. Target
|
16
|
+
options have precedence over recipe options.
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
# Compile the assets
|
20
|
+
#
|
21
|
+
# recipe :jammit_compile, [options]
|
22
|
+
#
|
23
|
+
# Options:
|
24
|
+
#
|
25
|
+
# :rails_env (specify the rails environment)
|
26
|
+
#
|
27
|
+
# Example:
|
28
|
+
|
29
|
+
recipe :jammit_compile, :rails_env => 'production'
|
30
|
+
```
|
31
|
+
|
32
|
+
Authors
|
33
|
+
-------
|
34
|
+
|
35
|
+
Daniel Farrell ([@danielfarrell][])
|
36
|
+
|
37
|
+
License
|
38
|
+
-------
|
39
|
+
|
40
|
+
See the [MIT-LICENSE file](https://github.com/danielfarrell/blazing-jammit/blob/master/MIT-LICENSE)
|
41
|
+
|
42
|
+
[@danielfarrell]: https://github.com/danielfarrell
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "blazing-jammit/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "blazing-jammit"
|
7
|
+
s.version = Blazing::Jammit::VERSION
|
8
|
+
s.authors = ["Daniel Farrell"]
|
9
|
+
s.email = ["danielfarrell76@gmail.com"]
|
10
|
+
s.homepage = "https://github.com/danielfarrell/blazing-jammit"
|
11
|
+
s.summary = %q{blazing asset compile recipe for jammit}
|
12
|
+
s.description = %q{blazing recipe to precompile rails assets with jammit}
|
13
|
+
|
14
|
+
s.rubyforge_project = "blazing-jammit"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_dependency "blazing", '>= 0.2.9'
|
21
|
+
s.add_dependency "jammit"
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'blazing-jammit/recipes/jammit_compile'
|
2
|
+
|
3
|
+
describe Blazing::Recipe::JammitCompile do
|
4
|
+
|
5
|
+
it 'is a blazing recipe' do
|
6
|
+
Blazing::Recipe::JammitCompile.superclass.should be Blazing::Recipe
|
7
|
+
end
|
8
|
+
|
9
|
+
describe 'run' do
|
10
|
+
|
11
|
+
before :each do
|
12
|
+
@recipe = Blazing::Recipe::JammitCompile.new
|
13
|
+
@recipe.stub(:info)
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'calls the jammit compile rake task' do
|
17
|
+
@recipe.should_receive(:system).with("bundle exec jammit")
|
18
|
+
@recipe.run
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blazing-jammit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Daniel Farrell
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: blazing
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.2.9
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.2.9
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jammit
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: blazing recipe to precompile rails assets with jammit
|
47
|
+
email:
|
48
|
+
- danielfarrell76@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- MIT-LICENSE
|
56
|
+
- README.md
|
57
|
+
- blazing-jammit.gemspec
|
58
|
+
- lib/blazing-jammit.rb
|
59
|
+
- lib/blazing-jammit/recipes/jammit_compile.rb
|
60
|
+
- lib/blazing-jammit/version.rb
|
61
|
+
- spec/jammit_compile_spec.rb
|
62
|
+
homepage: https://github.com/danielfarrell/blazing-jammit
|
63
|
+
licenses: []
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project: blazing-jammit
|
82
|
+
rubygems_version: 1.8.23
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: blazing asset compile recipe for jammit
|
86
|
+
test_files:
|
87
|
+
- spec/jammit_compile_spec.rb
|
88
|
+
has_rdoc:
|