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 +4 -4
- data/.travis.yml +1 -0
- data/lib/middleman-sprockets/environment.rb +5 -0
- data/lib/middleman-sprockets/extension.rb +6 -20
- data/lib/middleman-sprockets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90a84b5089422a2a7e6cffda601d696422d5e374
|
4
|
+
data.tar.gz: 6291740944a94b8698e3d98fe298cfe2040c69cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376c2fe3005f8af184c90f0dadc39075a80ebbad31b15db60bdbbf5ca1d7f84e2e32d35a0234add1ff2fc3ecef67fb785885e5106ba50bdb5c8525151fd10c39
|
7
|
+
data.tar.gz: 86b61f7a4d3cb1dea4d37b588be5c9f3d8f2673afdd254735a60ca1d846e0f96d68ed1553d255f58d378cb944a7c94fdad449c6ad697c440824afd06e45d4fe4
|
data/.travis.yml
CHANGED
@@ -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
|
-
|
121
|
-
|
122
|
-
|
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
|
-
(
|
138
|
-
|
139
|
-
|
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
|
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.
|
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-
|
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.
|
267
|
+
rubygems_version: 2.2.2
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: Sprockets support for Middleman
|