requirejs-rails 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v0.7.2
2
+
3
+ - Add require.js to config.assets.precompile in all environments. Closes #45.
4
+ This change allows builds to work in Rails environments other than
5
+ 'production', e.g. 'staging'. Thanks to @hollow for the fix.
6
+
1
7
  # v0.7.1
2
8
 
3
9
  - Liberalize asset path filtering. `0.7.0` added filtering on the logical
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- requirejs-rails (0.7.1)
4
+ requirejs-rails (0.7.2)
5
5
  railties (>= 3.1.1, < 3.3)
6
6
 
7
7
  GEM
@@ -25,9 +25,7 @@ module Requirejs
25
25
 
26
26
  config.before_initialize do |app|
27
27
  config = app.config
28
- if ::Rails.env == "production"
29
- config.assets.precompile += config.requirejs.precompile
30
- end
28
+ config.assets.precompile += config.requirejs.precompile
31
29
 
32
30
  manifest_path = File.join(::Rails.public_path, config.assets.prefix, "rjs_manifest.yml")
33
31
  config.requirejs.manifest_path = Pathname.new(manifest_path)
@@ -49,7 +47,7 @@ module Requirejs
49
47
  config.assets.digests.merge!(rjs_digests)
50
48
  end
51
49
  end
52
-
50
+
53
51
  end # class Engine
54
52
  end
55
53
  end
@@ -1,6 +1,6 @@
1
1
  module Requirejs
2
2
  module Rails
3
- Version = "0.7.1"
3
+ Version = "0.7.2"
4
4
  LibVersion = "1.0.7"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: requirejs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
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-18 00:00:00.000000000 Z
12
+ date: 2012-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70315835618680 !ruby/object:Gem::Requirement
16
+ requirement: &70342779639640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '3.3'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70315835618680
27
+ version_requirements: *70342779639640
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rails
30
- requirement: &70315835617880 !ruby/object:Gem::Requirement
30
+ requirement: &70342779637500 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -38,10 +38,10 @@ dependencies:
38
38
  version: '3.3'
39
39
  type: :development
40
40
  prerelease: false
41
- version_requirements: *70315835617880
41
+ version_requirements: *70342779637500
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: sqlite3
44
- requirement: &70315835617240 !ruby/object:Gem::Requirement
44
+ requirement: &70342779636540 !ruby/object:Gem::Requirement
45
45
  none: false
46
46
  requirements:
47
47
  - - ! '>='
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
- version_requirements: *70315835617240
52
+ version_requirements: *70342779636540
53
53
  description: This gem provides RequireJS support for your Rails 3 application.
54
54
  email:
55
55
  - whitley@bangpath.org
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: -430483900364221763
132
+ hash: 1613167948944173846
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  none: false
135
135
  requirements:
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  segments:
140
140
  - 0
141
- hash: -430483900364221763
141
+ hash: 1613167948944173846
142
142
  requirements:
143
143
  - node.js is required for 'rake assets:precompile', used to run the r.js build
144
144
  - If needed, jQuery should be v1.7 or greater (jquery-rails >= 1.0.17).