middleman-sprockets 3.1.4 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -6
- data/Gemfile +0 -6
- data/features/sprockets.feature +18 -1
- data/fixtures/sprockets-app/config.rb +6 -1
- data/fixtures/sprockets-app/vendor/assets/javascripts/coffee.js.coffee +2 -0
- data/fixtures/sprockets-app/vendor/assets/stylesheets/vendored.css.scss +4 -0
- data/lib/middleman-sprockets.rb +0 -1
- data/lib/middleman-sprockets/extension.rb +2 -3
- data/lib/middleman-sprockets/version.rb +1 -1
- data/middleman-sprockets.gemspec +1 -2
- metadata +10 -21
- data/Gemfile-3.0 +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c368bc22bab155dbb04fa6a767a432d80a2e70bc
|
4
|
+
data.tar.gz: d02e8b1fc0c0964520f1378f01dd7ea5135c2753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d239a855d5ff1606ecf6b6090417f4e807eb1a99692f5f345147e9bdab300df6dd39c47ede15418f488d6278723b6a97226b418ed5a34589dbc16e7a356a596
|
7
|
+
data.tar.gz: b6c0e40d4378056862f11a9cccbbeabe4e29b442a0b1bfd7b4a28b542c77511f89f15b50d1e64688c887ad0a0b533e53f96e9370dc10d6f0ac742c2793e4061a
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
3
|
gem "middleman-core", :github => "middleman/middleman"
|
4
|
-
gem "middleman-more", :github => "middleman/middleman"
|
5
4
|
|
6
5
|
# Specify your gem's dependencies in middleman-sprockets.gemspec
|
7
6
|
gemspec
|
@@ -32,8 +31,3 @@ gem "erubis", "~> 2.7.0"
|
|
32
31
|
|
33
32
|
# Code Quality
|
34
33
|
gem "cane", :platforms => [:mri_19, :mri_20], :require => false
|
35
|
-
|
36
|
-
# Cross-templating language block fix for Ruby 1.8
|
37
|
-
platforms :mri_18 do
|
38
|
-
gem "ruby18_source_location"
|
39
|
-
end
|
data/features/sprockets.feature
CHANGED
@@ -101,7 +101,7 @@ Feature: Sprockets
|
|
101
101
|
When I go to "/library/css/sprockets_base2.css"
|
102
102
|
Then I should see "hello"
|
103
103
|
|
104
|
-
Scenario: Sprockets inline Images with asset_path and image_path helpers
|
104
|
+
Scenario: Sprockets inline Images with asset_path and image_path helpers
|
105
105
|
Given the Server is running at "sprockets-images-app"
|
106
106
|
When I go to "/"
|
107
107
|
Then I should see 'src="/library/images/cat.jpg"'
|
@@ -110,3 +110,20 @@ Scenario: Sprockets inline Images with asset_path and image_path helpers
|
|
110
110
|
Then I should get a response with status "200"
|
111
111
|
When I go to "/library/images/cat-2.jpg"
|
112
112
|
Then I should get a response with status "200"
|
113
|
+
|
114
|
+
Scenario: Assets built through import_asset are built with wrong extension
|
115
|
+
Given a successfully built app at "sprockets-app"
|
116
|
+
When I cd to "build"
|
117
|
+
# generated file is /library/css/vendored.css.scss
|
118
|
+
Then a file named "library/css/vendored.css" should exist
|
119
|
+
# generated file is /library/css/coffee.js.coffee
|
120
|
+
Then a file named "library/js/coffee.js" should exist
|
121
|
+
|
122
|
+
Scenario: Vendor assets get wrong extension
|
123
|
+
Given the Server is running at "sprockets-app"
|
124
|
+
# generated file is /library/css/vendored.css.scss
|
125
|
+
When I go to "/library/css/vendored.css"
|
126
|
+
And I should see 'background: brown;'
|
127
|
+
# generated file is /library/js/coffee.js.coffee
|
128
|
+
When I go to "/library/js/coffee.js"
|
129
|
+
And I should see 'return console.log("bar");'
|
data/lib/middleman-sprockets.rb
CHANGED
@@ -367,11 +367,10 @@ module Middleman::Sprockets
|
|
367
367
|
next unless export_all || imported_assets.include?(path)
|
368
368
|
|
369
369
|
base_path = path.sub("#{load_path}/", '')
|
370
|
-
|
371
|
-
new_path = File.join(output_dir, base_path).to_s
|
370
|
+
new_path = @app.sitemap.extensionless_path(File.join(output_dir, base_path))
|
372
371
|
|
373
372
|
next if @app.sitemap.find_resource_by_destination_path(new_path)
|
374
|
-
resources_list << ::Middleman::Sitemap::Resource.new(@app.sitemap, new_path, path.to_s)
|
373
|
+
resources_list << ::Middleman::Sitemap::Resource.new(@app.sitemap, new_path.to_s, path.to_s)
|
375
374
|
end
|
376
375
|
end
|
377
376
|
end
|
data/middleman-sprockets.gemspec
CHANGED
@@ -15,8 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files -z`.split("\0")
|
16
16
|
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
s.add_dependency("middleman-core", ["
|
19
|
-
s.add_dependency("middleman-more", [">= 3.0.14"])
|
18
|
+
s.add_dependency("middleman-core", ["~> 3.2"])
|
20
19
|
s.add_dependency("sprockets", ["~> 2.1"])
|
21
20
|
s.add_dependency("sprockets-sass", ["~> 1.0.0"])
|
22
21
|
s.add_dependency("sprockets-helpers", ["~> 1.0.0"])
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.14
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.14
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: middleman-more
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '>='
|
17
|
+
- - ~>
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.
|
19
|
+
version: '3.2'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- -
|
24
|
+
- - ~>
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.
|
26
|
+
version: '3.2'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: sprockets
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +78,6 @@ files:
|
|
92
78
|
- CHANGELOG.md
|
93
79
|
- CONTRIBUTING.md
|
94
80
|
- Gemfile
|
95
|
-
- Gemfile-3.0
|
96
81
|
- LICENSE.md
|
97
82
|
- README.md
|
98
83
|
- Rakefile
|
@@ -187,7 +172,9 @@ files:
|
|
187
172
|
- fixtures/sprockets-app/source/library/js/sprockets_base.js
|
188
173
|
- fixtures/sprockets-app/source/library/js/sprockets_sub.js
|
189
174
|
- fixtures/sprockets-app/source/library/js/vendored_include.js
|
175
|
+
- fixtures/sprockets-app/vendor/assets/javascripts/coffee.js.coffee
|
190
176
|
- fixtures/sprockets-app/vendor/assets/javascripts/vendored_js.js
|
177
|
+
- fixtures/sprockets-app/vendor/assets/stylesheets/vendored.css.scss
|
191
178
|
- fixtures/sprockets-app2/config.rb
|
192
179
|
- fixtures/sprockets-app2/data/test.yml
|
193
180
|
- fixtures/sprockets-app2/data/test2.json
|
@@ -327,7 +314,9 @@ test_files:
|
|
327
314
|
- fixtures/sprockets-app/source/library/js/sprockets_base.js
|
328
315
|
- fixtures/sprockets-app/source/library/js/sprockets_sub.js
|
329
316
|
- fixtures/sprockets-app/source/library/js/vendored_include.js
|
317
|
+
- fixtures/sprockets-app/vendor/assets/javascripts/coffee.js.coffee
|
330
318
|
- fixtures/sprockets-app/vendor/assets/javascripts/vendored_js.js
|
319
|
+
- fixtures/sprockets-app/vendor/assets/stylesheets/vendored.css.scss
|
331
320
|
- fixtures/sprockets-app2/config.rb
|
332
321
|
- fixtures/sprockets-app2/data/test.yml
|
333
322
|
- fixtures/sprockets-app2/data/test2.json
|
data/Gemfile-3.0
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in middleman-sprockets.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
gem "middleman", "~> 3.0.0"
|
7
|
-
|
8
|
-
gem "rake", "~> 10.0.3", :require => false
|
9
|
-
gem "yard", "~> 0.8.0", :require => false
|
10
|
-
|
11
|
-
# Test tools
|
12
|
-
gem "cucumber", "~> 1.3.1"
|
13
|
-
gem "fivemat"
|
14
|
-
gem "aruba", "~> 0.5.1"
|
15
|
-
gem "rspec", "~> 2.12"
|
16
|
-
gem "builder", "~> 3.0.0"
|
17
|
-
|
18
|
-
# For actual tests
|
19
|
-
# Make sure to lock down the versions of the asset gems
|
20
|
-
# so they don't cause asset hashes to change.
|
21
|
-
gem "jquery-rails", "2.2.1", :require => false
|
22
|
-
gem "bootstrap-sass", "2.3.1.0", :require => false
|
23
|
-
|
24
|
-
gem "jquery_mobile_rails", "1.3.0", :require => false
|
25
|
-
gem "sprockets", "~> 2.2.1", :require => false
|
26
|
-
|
27
|
-
gem "ejs", "~> 1.1.1"
|
28
|
-
gem "eco", "~> 1.0.0"
|
29
|
-
gem "erubis", "~> 2.7.0"
|
30
|
-
|
31
|
-
# Code Quality
|
32
|
-
gem "cane", :platforms => [:mri_19, :mri_20], :require => false
|