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.
File without changes
|
data/lib/sprockets/engine.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
if defined?(Rails)
|
2
2
|
module Sprockets
|
3
3
|
class CommonJSEngine < Rails::Engine
|
4
|
-
|
5
|
-
|
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
|
data/sprockets-commonjs.gemspec
CHANGED
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.
|
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-
|
12
|
+
date: 2012-05-29 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
16
|
-
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: *
|
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
|