roda-sprocket_assets 0.0.6 → 0.0.7

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: 8abc472dea0409ff8f3459e98b2376f9a15d61f8
4
- data.tar.gz: 5fcca4a74a9ec19ba50248d1fee6d44cf57cc9e3
3
+ metadata.gz: 344b581f0acc293133a9af5c090ab11f53ee75a9
4
+ data.tar.gz: f5e05a10e6cea4063687ec6e478562b201cab3b6
5
5
  SHA512:
6
- metadata.gz: ac03bfaf4f07fbe8d0c96dc9caee45e3c2594a6a883d6c5d157c51f1012c0156f2704f96ac630eb36fc48d6787aa2bcabe17eba400a35346f1b4f2a32b2ec4ec
7
- data.tar.gz: 9e651d8240b1d0e727b7ee7a4100ac561edb42d94fd329fd0ea74893ccdc2314d024d1fea8249f1287830988cd39ea42089dfd5fc7ee46e2adf8f5f4a5e5e54b
6
+ metadata.gz: eb64553a8d6afbe4a69c2e53fe29c0c0d995b305e5adc5f50490483986bb1afae65407d680e2536761437f3595b8c9c7cf9f3f5730e7d5e0bb3c50fa22894dba
7
+ data.tar.gz: b0e58f99a9601799311f64e0aeaefe9b929393f0b577fb907958d5f2f25000ad6d0de426a28966218908333855564f496b29a47f92fb828164cb8d5889146627
@@ -95,18 +95,16 @@ class Roda
95
95
 
96
96
  module RequestMethods
97
97
  def sprocket_assets
98
- scope.class.configure :test, :development do
99
- get self.class.sprocket_assets_regexp do |path|
100
- opts = scope.sprocket_assets_opts
101
- env_sprockets = scope.request.env.dup
102
- env_sprockets['PATH_INFO'] = path
103
-
104
- status, headers, response = opts[:sprockets].call env_sprockets
105
-
106
- scope.response.status = status
107
- scope.response.headers.merge! headers
108
- response.is_a?(Array) ? response.join('\n') : response.to_s
109
- end
98
+ get self.class.sprocket_assets_regexp do |path|
99
+ opts = scope.sprocket_assets_opts
100
+ env_sprockets = scope.request.env.dup
101
+ env_sprockets['PATH_INFO'] = path
102
+
103
+ status, headers, response = opts[:sprockets].call env_sprockets
104
+
105
+ scope.response.status = status
106
+ scope.response.headers.merge! headers
107
+ response.is_a?(Array) ? response.join('\n') : response.to_s
110
108
  end
111
109
  end
112
110
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "roda-sprocket_assets"
7
- spec.version = '0.0.6'
7
+ spec.version = '0.0.7'
8
8
  spec.authors = ["cj"]
9
9
  spec.email = ["cjlazell@gmail.com"]
10
10
  spec.summary = %q{Use sprockets to serve assets in roda.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-sprocket_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj