sprockets-commonjs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,8 @@
1
1
  if defined?(Rails)
2
2
  module Sprockets
3
3
  class CommonJSEngine < Rails::Engine
4
- config.after_initialize do
5
- Rails.application.assets.register_postprocessor 'application/javascript', CommonJS
6
- Rails.application.assets.append_path File.expand_path('../..', __FILE__)
4
+ initializer :setup_commonjs do |app|
5
+ app.assets.register_postprocessor 'application/javascript', CommonJS
7
6
  end
8
7
  end
9
8
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "sprockets-commonjs"
6
- s.version = '0.0.3'
6
+ s.version = '0.0.4'
7
7
  s.authors = ["Alex MacCaw"]
8
8
  s.email = ["info@eribium.org"]
9
9
  s.homepage = ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-commonjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-22 00:00:00.000000000Z
12
+ date: 2012-05-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
16
- requirement: &70210125726500 !ruby/object:Gem::Requirement
16
+ requirement: &70359291282860 !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: *70210125726500
24
+ version_requirements: *70359291282860
25
25
  description: Adds CommonJS support to Sprockets
26
26
  email:
27
27
  - info@eribium.org
@@ -38,7 +38,7 @@ files:
38
38
  - examples/index.html
39
39
  - examples/modules/program.module.js
40
40
  - examples/modules/user.module.js
41
- - lib/sprockets/commonjs.js
41
+ - lib/assets/javascripts/sprockets/commonjs.js
42
42
  - lib/sprockets/commonjs.rb
43
43
  - lib/sprockets/engine.rb
44
44
  - sprockets-commonjs.gemspec