bare_coffee 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bare_coffee (0.1.2)
4
+ bare_coffee (0.1.3)
5
5
  sprockets (~> 2.1.2)
6
6
 
7
7
  GEM
@@ -14,4 +14,8 @@ module BareCoffee
14
14
 
15
15
  end
16
16
 
17
- Sprockets.register_engine '.coffee.bare', BareCoffee::Template
17
+ if defined?(Rails::Railtie)
18
+ require 'bare_coffee/rails'
19
+ else
20
+ Sprockets.register_engine '.coffee.bare', BareCoffee::Template
21
+ end
@@ -0,0 +1,7 @@
1
+ module BareCoffee
2
+ class Railitie < ::Rails::Railtie
3
+ initializer :register_bare_coffee do
4
+ app.assets.register_engine '.coffee.bare', BareCoffee::Template
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module BareCoffee
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bare_coffee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
16
- requirement: &70322698860560 !ruby/object:Gem::Requirement
16
+ requirement: &70363379275760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.1.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70322698860560
24
+ version_requirements: *70363379275760
25
25
  description: An Extension for Sprockets to enable --bare option for CoffeeScript's
26
26
  compiler. Thus, it will compile coffeescript file into javascript file without a
27
27
  top-level function wrapper.
@@ -33,10 +33,12 @@ files:
33
33
  - bare_coffee.gemspec
34
34
  - Gemfile
35
35
  - Gemfile.lock
36
+ - lib/bare_coffee/rails.rb
36
37
  - lib/bare_coffee/version.rb
37
38
  - lib/bare_coffee.rb
38
39
  - pkg/bare_coffee-0.1.0.gem
39
40
  - pkg/bare_coffee-0.1.1.gem
41
+ - pkg/bare_coffee-0.1.2.gem
40
42
  - Rakefile
41
43
  - README.md
42
44
  homepage: http://github.com/bry4n/bare_coffee
@@ -53,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
55
  version: '0'
54
56
  segments:
55
57
  - 0
56
- hash: 3990828913205286537
58
+ hash: -3360600694466951749
57
59
  required_rubygems_version: !ruby/object:Gem::Requirement
58
60
  none: false
59
61
  requirements:
@@ -62,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
64
  version: '0'
63
65
  segments:
64
66
  - 0
65
- hash: 3990828913205286537
67
+ hash: -3360600694466951749
66
68
  requirements: []
67
69
  rubyforge_project:
68
70
  rubygems_version: 1.8.11