sprockets-rails 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 441aad85291e3c33ca4ccbf5cf9acb9fd7ebf43c
4
- data.tar.gz: 234aac3001536c29088b8997c81ec3a935c4ddfe
3
+ metadata.gz: a7cb5a6b14d9c7bb706dad33e5d930e8f528d212
4
+ data.tar.gz: 76221e850d34d167aa5a26d7653248d0197482c5
5
5
  SHA512:
6
- metadata.gz: b7a3ab9d1423a2d2b96c2576e8e895a3db8a7b280a0d64df13d057daceb91040d5dd5a52f52b9e5e8349e91f0eeca468aada9810c3b0693e7ef8a26c82f26aec
7
- data.tar.gz: 0bc29f5363d1eaea49eb19a285ec03329aaf751f8ac06a37773fda0f989a83172843cbdec0034dabe8744a29e28e7e5203ad2c5a0bfa81eea58f685f5db5705e
6
+ metadata.gz: 9fec7c6db539f43f5527edb868e65a1a73530be359faa79854cf12a8702b9ec9fb3b0a6a99706664bc6662d2b09a3420dbfb65c98c64df2d7a00b00403618cbe
7
+ data.tar.gz: b7e049037095f8f7890236d0dc08f4bdbea922b2b50ed7155a498b8f0cd2195a3f1eb076acf932f34fe93fb2398700321fb70e7a1ff8aeaad1a6162c3e593f88
@@ -125,13 +125,13 @@ module Sprockets
125
125
 
126
126
  if options["debug"] != false && request_debug_assets?
127
127
  sources.map { |source|
128
- if asset = lookup_debug_asset(source, :type => :javascript)
128
+ if asset = lookup_debug_asset(source, type: :javascript)
129
129
  if asset.respond_to?(:to_a)
130
130
  asset.to_a.map do |a|
131
- super(path_to_javascript(a.logical_path, :debug => true), options)
131
+ super(path_to_javascript(a.logical_path, debug: true), options)
132
132
  end
133
133
  else
134
- super(path_to_javascript(asset.logical_path, :debug => true), options)
134
+ super(path_to_javascript(asset.logical_path, debug: true), options)
135
135
  end
136
136
  else
137
137
  super(source, options)
@@ -139,7 +139,7 @@ module Sprockets
139
139
  }.flatten.uniq.join("\n").html_safe
140
140
  else
141
141
  sources.map { |source|
142
- options = options.merge('integrity' => asset_integrity(source, :type => :javascript)) if integrity
142
+ options = options.merge('integrity' => asset_integrity(source, type: :javascript)) if integrity
143
143
  super source, options
144
144
  }.join("\n").html_safe
145
145
  end
@@ -154,13 +154,13 @@ module Sprockets
154
154
 
155
155
  if options["debug"] != false && request_debug_assets?
156
156
  sources.map { |source|
157
- if asset = lookup_debug_asset(source, :type => :stylesheet)
157
+ if asset = lookup_debug_asset(source, type: :stylesheet)
158
158
  if asset.respond_to?(:to_a)
159
159
  asset.to_a.map do |a|
160
- super(path_to_stylesheet(a.logical_path, :debug => true), options)
160
+ super(path_to_stylesheet(a.logical_path, debug: true), options)
161
161
  end
162
162
  else
163
- super(path_to_stylesheet(asset.logical_path, :debug => true), options)
163
+ super(path_to_stylesheet(asset.logical_path, debug: true), options)
164
164
  end
165
165
  else
166
166
  super(source, options)
@@ -168,7 +168,7 @@ module Sprockets
168
168
  }.flatten.uniq.join("\n").html_safe
169
169
  else
170
170
  sources.map { |source|
171
- options = options.merge('integrity' => asset_integrity(source, :type => :stylesheet)) if integrity
171
+ options = options.merge('integrity' => asset_integrity(source, type: :stylesheet)) if integrity
172
172
  super source, options
173
173
  }.join("\n").html_safe
174
174
  end
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Rails
3
- VERSION = "3.0.3"
3
+ VERSION = "3.0.4"
4
4
  end
5
5
  end
@@ -113,10 +113,11 @@ module Sprockets
113
113
  end
114
114
 
115
115
  Sprockets.register_dependency_resolver 'rails-env' do
116
- ::Rails.env
116
+ ::Rails.env.to_s
117
117
  end
118
+
118
119
  config.assets.configure do |env|
119
- env.depend_on 'environment-version'
120
+ env.depend_on 'rails-env'
120
121
  end
121
122
 
122
123
  config.assets.configure do |env|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets