middleman-sprockets 3.3.8 → 3.3.9

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: f2c436ca5f47b2aa7302e16325b55b3739da37bc
4
- data.tar.gz: f2ccca61bbc6194a1e214af3c2d42e3c454c0048
3
+ metadata.gz: 90a84b5089422a2a7e6cffda601d696422d5e374
4
+ data.tar.gz: 6291740944a94b8698e3d98fe298cfe2040c69cd
5
5
  SHA512:
6
- metadata.gz: f5f5f7e441931f06f8db2d9c4935acc3de263c4c187f972bf2ce8460fb575ea59e129fe6e3c4fe5a02fa173138845dd0b72352facfe3d50626a118fe4fc43263
7
- data.tar.gz: 63157c86772734a37f536b3689271f9ef2c132f83a0521de0ef5b64fc26f0fb7276d6c45cda182584b58599945bdb34799487c80ba3c349a27dc06e9522e11fe
6
+ metadata.gz: 376c2fe3005f8af184c90f0dadc39075a80ebbad31b15db60bdbbf5ca1d7f84e2e32d35a0234add1ff2fc3ecef67fb785885e5106ba50bdb5c8525151fd10c39
7
+ data.tar.gz: 86b61f7a4d3cb1dea4d37b588be5c9f3d8f2673afdd254735a60ca1d846e0f96d68ed1553d255f58d378cb944a7c94fdad449c6ad697c440824afd06e45d4fe4
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
4
  - 2.1.1
5
+ - 2.1.2
5
6
  - jruby-19mode
6
7
 
7
8
  gemfile:
@@ -178,6 +178,11 @@ module Middleman
178
178
  super
179
179
  end
180
180
 
181
+ # Never return 304s, downstream may want to manipulate data.
182
+ def etag_match?(asset, env)
183
+ false
184
+ end
185
+
181
186
  def call(env)
182
187
  # Set the app current path based on the full URL so that helpers work
183
188
  request_path = URI.decode(File.join(env['SCRIPT_NAME'], env['PATH_INFO']))
@@ -117,27 +117,13 @@ module Middleman
117
117
 
118
118
  # Add any directories from gems with Rails-like paths to sprockets load path
119
119
  def append_paths_from_gems
120
- try_paths = [
121
- %w{ assets },
122
- %w{ app },
123
- %w{ app assets },
124
- %w{ vendor },
125
- %w{ vendor assets },
126
- %w{ lib },
127
- %w{ lib assets }
128
- ].inject([]) do |sum, v|
129
- sum + [
130
- File.join(v, 'javascripts'),
131
- File.join(v, 'stylesheets'),
132
- File.join(v, 'images'),
133
- File.join(v, 'fonts')
134
- ]
135
- end
120
+ root_paths = ::Middleman.rubygems_latest_specs.map(&:full_gem_path) << app.root
121
+ base_paths = %w[assets app app/assets vendor vendor/assets lib lib/assets]
122
+ asset_dirs = %w[javascripts js stylesheets css images img fonts]
136
123
 
137
- ([app.root] + ::Middleman.rubygems_latest_specs.map(&:full_gem_path)).each do |root_path|
138
- try_paths.map {|p| File.join(root_path, p) }.
139
- select {|p| File.directory?(p) }.
140
- each {|path| self.environment.append_path(path) }
124
+ root_paths.product(base_paths.product(asset_dirs)).each do |root, (base, asset)|
125
+ path = File.join(root, base, asset)
126
+ environment.append_path(path) if File.directory?(path)
141
127
  end
142
128
  end
143
129
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sprockets
3
- VERSION = "3.3.8"
3
+ VERSION = "3.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.8
4
+ version: 3.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-20 00:00:00.000000000 Z
13
+ date: 2014-08-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: middleman-core
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  requirements: []
266
266
  rubyforge_project:
267
- rubygems_version: 2.0.2
267
+ rubygems_version: 2.2.2
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Sprockets support for Middleman