sprockets-rails 3.0.0 → 3.0.1

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: f20d1344a104a96a8fdc6ca1140776f9bee0b095
4
- data.tar.gz: b2a9b8a9c86913d9ec6d55a221e2f433cac8201f
3
+ metadata.gz: c065fbbdd79c8ce91d08e399d1345ca6f202e030
4
+ data.tar.gz: 5f59dc4ed337bdf638dce7d4fa6d6709ef1625b2
5
5
  SHA512:
6
- metadata.gz: 5f0bfaac5eaaaa8db5681deb71749e0e1195b8f4e0c819125d70102359094baa1a535ad6a5d6163b60d24b5474848c7db2fc12d9bf917aa9c53d3809e69fa2f0
7
- data.tar.gz: 8966809de396e82b543ccac54823f99c0abad6696f58bfdc40a1db9e884d196b2570b8c62720c2ac04c35de942a8a4469805c31418d070f09a262afb486124c4
6
+ metadata.gz: eabf0cb7ae915d74edc2585af5498de209ac5becb2252ae6293ce238908e8184ae7da1d375b5ccf7cf68dbb52a08a24a58a65d991866681d8e780fa79665290a
7
+ data.tar.gz: fa09448010b99ee381aac9f842e10d187c638cea2c46e5f3038ae655bc97bb26eab5d0e6b5eeee02f24ba19203c3e7345c8deb85c74bbedb1094318ebc33afd3
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2014-2016 Joshua Peek
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -99,8 +99,6 @@ config.assets.configure do |env|
99
99
  env.register_preprocessor 'application/javascript', MyProcessor
100
100
 
101
101
  env.logger = Rails.logger
102
-
103
- env.cache = ActiveSupport::Cache::FileStore.new("tmp/cache/assets")
104
102
  end
105
103
  ```
106
104
 
@@ -121,7 +119,7 @@ is not enabled, then we check the environment if compiling is enabled:
121
119
  # Production default.
122
120
  %i[ manifest ]
123
121
  ```
124
-
122
+ If the resolver list is empty (e.g. if debug is true and compile is false), the standard rails public path resolution will be used.
125
123
 
126
124
  ## Complementary plugins
127
125
 
@@ -313,15 +313,15 @@ module Sprockets
313
313
 
314
314
  # Otherwise, ask the Sprockets environment whether the asset exists
315
315
  # and check whether it's also precompiled for production deploys.
316
- elsif find_asset(path)
317
- raise_unless_precompiled_asset path unless allow_non_precompiled
316
+ elsif asset = find_asset(path)
317
+ raise_unless_precompiled_asset asset.logical_path unless allow_non_precompiled
318
318
  path
319
319
  end
320
320
  end
321
321
 
322
322
  def digest_path(path, allow_non_precompiled = false)
323
323
  if asset = find_asset(path)
324
- raise_unless_precompiled_asset path unless allow_non_precompiled
324
+ raise_unless_precompiled_asset asset.logical_path unless allow_non_precompiled
325
325
  asset.digest_path
326
326
  end
327
327
  end
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Rails
3
- VERSION = "3.0.0"
3
+ VERSION = "3.0.1"
4
4
  end
5
5
  end
@@ -98,7 +98,7 @@ module Sprockets
98
98
 
99
99
  config.assets.configure do |env|
100
100
  env.cache = Sprockets::Cache::FileStore.new(
101
- "#{env.root}/tmp/cache",
101
+ "#{env.root}/tmp/cache/assets",
102
102
  config.assets.cache_limit,
103
103
  env.logger
104
104
  )
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.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets
@@ -114,6 +114,7 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
+ - MIT-LICENSE
117
118
  - README.md
118
119
  - lib/sprockets/rails.rb
119
120
  - lib/sprockets/rails/context.rb
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  requirements: []
145
146
  rubyforge_project:
146
- rubygems_version: 2.4.5.1
147
+ rubygems_version: 2.5.1
147
148
  signing_key:
148
149
  specification_version: 4
149
150
  summary: Sprockets Rails integration