middleman-sprockets 3.5.0 → 4.0.0.beta.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: 0f72f296a723b4ff315df8ae5613bebd5a7338a5
4
- data.tar.gz: 23a9b9ea030bdc0dc0de50d17614896ac1e2cbaf
3
+ metadata.gz: 4a5cfa3e7f4b70073f96f63ddd743b58e0eacfb4
4
+ data.tar.gz: 389aa16cf984e6e88a1a465e5527204c690ffd8d
5
5
  SHA512:
6
- metadata.gz: 6edd63315b2d4ffc601ce01fa4fe8a54595b5e9c4d70691552195fce9f754b9ac07af4f07e78d98132c1e884b5f8b8ee6dea711a90f7f705241fc6f259dca324
7
- data.tar.gz: 0f51a95dba5ea25569b8a6a6e140d73b7f615c936a595e2d098c51db9b4606775e575f17d7bf3ce8f61340546adf6ef86a4be7342fea61b96af6c979cf2eda2d
6
+ metadata.gz: 3cb8e1bf9c4e31e8ace0cbb46aa86d401f7de990daa9a91047d74cbc788a15b8c66c55aef6df2c5d9819c5cb53fa8f73f5a65e27815b903c07bc6fc864a3c282
7
+ data.tar.gz: bd56bcd29857afb30ba1632e5d79b0dc0fd8b11f6333cb4f5a8b93c170d816ccc0a0d4b8c58607b84a3064ae47603b208b76f047161aaff77d3463fe71c7e24c
data/.travis.yml CHANGED
@@ -1,21 +1,24 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- env: TEST=true
5
-
6
1
  rvm:
7
- - 2.0.0
8
- - 2.1
9
- - 2.2.5
10
- - 2.3.1
11
2
  - ruby-head
3
+ - jruby-head
4
+ - jruby-19mode
5
+ - 2.2
6
+ - 2.1
7
+ - 2.0
8
+ os:
9
+ - linux
10
+ - osx
11
+ matrix:
12
+ fast_finish: true
13
+ allow_failures:
14
+ - rvm: ruby-head
15
+ - rvm: jruby-19mode
16
+ - rvm: jruby-head
12
17
 
13
18
  gemfile:
14
19
  - Gemfile
20
+ - Gemfile-v3
15
21
 
16
22
  script: "bundle exec rake test"
17
23
 
18
- matrix:
19
- fast_finish: true
20
- allow_failures:
21
- - rvm: ruby-head
24
+ env: TEST=true
data/CHANGELOG.md CHANGED
@@ -1,8 +1,3 @@
1
- 3.5.0
2
- ===
3
-
4
- * Allow ignoring paths from imported gems [@zach-capalbo](https://github.com/middleman/middleman-sprockets/pull/118)
5
-
6
1
  3.4.2
7
2
  ===
8
3
 
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "middleman-core", :github => "middleman/middleman", :branch => "v3-stable"
3
+ gem "middleman-core", :github => "middleman/middleman", :branch => "master"
4
+ gem "middleman-cli", :github => "middleman/middleman", :branch => "master"
4
5
 
5
6
  # Specify your gem's dependencies in middleman-sprockets.gemspec
6
7
  gemspec
@@ -8,9 +9,14 @@ gemspec
8
9
  gem "rake", "~> 10.0.3", :require => false
9
10
  gem "yard", "~> 0.8.0", :require => false
10
11
 
12
+ # gem "sprockets", "3.0.0.beta.3"
13
+ # gem 'sprockets-helpers', path: '~/Sites/sprockets-helpers'
14
+ # gem 'sprockets-sass', path: '~/Sites/sprockets-sass'
15
+
11
16
  # Test tools
12
- gem "cucumber", "~> 2.0"
13
- gem "aruba", "~> 0.10.0"
17
+ gem "cucumber"
18
+ gem "fivemat", "~> 1.2.1"
19
+ gem "aruba"
14
20
  gem "rspec", "~> 3.0"
15
21
  gem "builder", "~> 3.0"
16
22
  gem "simplecov"
@@ -18,7 +24,7 @@ gem "simplecov"
18
24
  # For actual tests
19
25
  # Make sure to lock down the versions of the asset gems
20
26
  # so they don't cause asset hashes to change.
21
- gem "railties", "~> 4.1.0"
27
+ gem "railties", "~> 4.1"
22
28
  gem "jquery-rails", "3.1.0", :require => false
23
29
  gem "bootstrap-sass", "3.1.1.0", :require => false
24
30
  gem "jquery_mobile_rails", "1.4.1", :require => false
@@ -26,7 +32,6 @@ gem "jquery_mobile_rails", "1.4.1", :require => false
26
32
  gem "ejs", "~> 1.1.1"
27
33
  gem "eco", "~> 1.0.0"
28
34
  gem "erubis", "~> 2.7.0"
29
- gem "pry-byebug"
30
35
 
31
36
  # Code Quality
32
37
  gem "cane", :platforms => [:mri_19, :mri_20], :require => false
@@ -0,0 +1,36 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "middleman-core", :github => "middleman/middleman", :branch => "v3-stable"
4
+
5
+ # Specify your gem's dependencies in middleman-sprockets.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 10.0.3", :require => false
9
+ gem "yard", "~> 0.8.0", :require => false
10
+
11
+ gem "sprockets", "3.0.0.beta.10"
12
+ gem 'sprockets-helpers', path: '~/Sites/sprockets-helpers'
13
+ gem 'sprockets-sass', path: '~/Sites/sprockets-sass'
14
+
15
+ # Test tools
16
+ gem "cucumber"
17
+ gem "fivemat", "~> 1.2.1"
18
+ gem "aruba"
19
+ gem "rspec", "~> 3.0"
20
+ gem "builder", "~> 3.0"
21
+ gem "simplecov"
22
+
23
+ # For actual tests
24
+ # Make sure to lock down the versions of the asset gems
25
+ # so they don't cause asset hashes to change.
26
+ gem "railties", "~> 4.1"
27
+ gem "jquery-rails", "3.1.0", :require => false
28
+ gem "bootstrap-sass", "3.1.1.0", :require => false
29
+ gem "jquery_mobile_rails", "1.4.1", :require => false
30
+
31
+ gem "ejs", "~> 1.1.1"
32
+ gem "eco", "~> 1.0.0"
33
+ gem "erubis", "~> 2.7.0"
34
+
35
+ # Code Quality
36
+ gem "cane", :platforms => [:mri_19, :mri_20], :require => false
data/Gemfile-v3 ADDED
@@ -0,0 +1,36 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "middleman-core", :github => "middleman/middleman", :branch => "v3-stable"
4
+
5
+ # Specify your gem's dependencies in middleman-sprockets.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 10.0.3", :require => false
9
+ gem "yard", "~> 0.8.0", :require => false
10
+
11
+ # gem "sprockets", "3.0.0.beta.3"
12
+ # gem 'sprockets-helpers', path: '~/Sites/sprockets-helpers'
13
+ # gem 'sprockets-sass', path: '~/Sites/sprockets-sass'
14
+
15
+ # Test tools
16
+ gem "cucumber"
17
+ gem "fivemat", "~> 1.2.1"
18
+ gem "aruba"
19
+ gem "rspec", "~> 3.0"
20
+ gem "builder", "~> 3.0"
21
+ gem "simplecov"
22
+
23
+ # For actual tests
24
+ # Make sure to lock down the versions of the asset gems
25
+ # so they don't cause asset hashes to change.
26
+ gem "railties", "~> 4.1"
27
+ gem "jquery-rails", "3.1.0", :require => false
28
+ gem "bootstrap-sass", "3.1.1.0", :require => false
29
+ gem "jquery_mobile_rails", "1.4.1", :require => false
30
+
31
+ gem "ejs", "~> 1.1.1"
32
+ gem "eco", "~> 1.0.0"
33
+ gem "erubis", "~> 2.7.0"
34
+
35
+ # Code Quality
36
+ gem "cane", :platforms => [:mri_19, :mri_20], :require => false
data/README.md CHANGED
@@ -71,14 +71,6 @@ Be careful if you are using `bower`-components which place their assets in
71
71
  need to use the `#import_asset`-call with the block to place it in the correct
72
72
  directory.
73
73
 
74
- **Ignoring imported assets**
75
-
76
- Sometimes you may not wish to include all assets from an asset gem. For example lets take the jquery-mobile gem, it includes a bunch of images that you may not want included in your build. Pass a regex to match the path to `sprockets.ignore_path`. Like, `append_path`, you may add multiple.
77
-
78
- ```ruby
79
- sprockets.ignore_path /jquery\-mobile/
80
- ```
81
-
82
74
  ## Build & Dependency Status
83
75
 
84
76
  [![Gem Version](https://badge.fury.io/rb/middleman-sprockets.png)][gem]
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
10
10
  exempt_tags = ["--tags ~@wip"]
11
11
  exempt_tags << "--tags ~@new " unless Middleman::VERSION.start_with?("3.1")
12
12
  exempt_tags << "--tags ~@old " unless Middleman::VERSION.start_with?("3.0")
13
- t.cucumber_opts = "--color #{exempt_tags.join(" ")} --strict"
13
+ t.cucumber_opts = "--color #{exempt_tags.join(" ")} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
14
14
  end
15
15
 
16
16
  RSpec::Core::RakeTask.new(:spec) do |t|
@@ -107,9 +107,9 @@ Feature: Sprockets
107
107
  Then I should see 'src="/library/images/cat.jpg"'
108
108
  And I should see 'src="/library/images/cat-2.jpg"'
109
109
  When I go to "/library/images/cat.jpg"
110
- Then the status code should be "200"
110
+ Then I should get a response with status "200"
111
111
  When I go to "/library/images/cat-2.jpg"
112
- Then the status code should be "200"
112
+ Then I should get a response with status "200"
113
113
 
114
114
  Scenario: Assets built through import_asset are built with the right extension
115
115
  Given a successfully built app at "sprockets-app"
@@ -45,7 +45,7 @@ Feature: Sprockets Gems
45
45
  Scenario: JS/CSS from gems aren't aumatically in the site
46
46
  Given the Server is running at "jquery-mobile-app"
47
47
  When I go to "/javascripts/jquery.mobile.js"
48
- Then the status code should be "404"
48
+ Then I should get a response with status "404"
49
49
 
50
50
  Scenario: JS/CSS from gems can be declared to be accessible
51
51
  Given a fixture app "jquery-mobile-app"
@@ -57,11 +57,11 @@ Feature: Sprockets Gems
57
57
  """
58
58
  And the Server is running at "jquery-mobile-app"
59
59
  When I go to "/javascripts/jquery.mobile.js"
60
- Then the status code should be "200"
60
+ Then I should get a response with status "200"
61
61
 
62
62
  Scenario: JS/CSS from gems are accessible when debugging assets and they are required
63
63
  Given the Server is running at "sprockets-app-debug-assets"
64
64
  And the Server is running at "sprockets-app-debug-assets"
65
65
  When I go to "/index.html"
66
66
  When I go to "/javascripts/bootstrap/alert.js?body=1"
67
- Then the status code should be "200"
67
+ Then I should get a response with status "200"
@@ -1,16 +1,7 @@
1
- Given /^wait a second$/ do
2
- sleep(1)
3
- end
4
-
5
- Given /^binding\.pry$/ do
6
- require "pry"
7
- binding.pry
1
+ Then /^I should get a response with status "(.*?)"$/ do |status|
2
+ (@last_response || @browser.last_response).status.should == status.to_i
8
3
  end
9
4
 
10
- Then /^the sitemap should not include "([^\"]*)"$/ do |path|
11
- expect( @server_inst.sitemap.resources.map(&:url) ).not_to include path
5
+ Given /^wait a second$/ do
6
+ sleep(1)
12
7
  end
13
-
14
- Then /^the sitemap should include "([^\"]*)"$/ do |path|
15
- expect( @server_inst.sitemap.resources.map(&:url) ).to include path
16
- end
@@ -9,13 +9,11 @@ module Middleman
9
9
  attr_reader :imported_assets
10
10
  attr_reader :appended_paths
11
11
  attr_reader :prepended_paths
12
- attr_reader :ignored_paths
13
12
 
14
13
  def initialize(options={})
15
14
  @imported_assets = []
16
15
  @appended_paths = []
17
16
  @prepended_paths = []
18
- @ignored_paths = []
19
17
  end
20
18
 
21
19
  def method_missing?(method)
@@ -47,10 +45,6 @@ module Middleman
47
45
  def prepend_path(path)
48
46
  @prepended_paths << path
49
47
  end
50
-
51
- def ignore_path(path)
52
- @ignored_paths << path
53
- end
54
48
  end
55
49
  end
56
50
  end
@@ -25,7 +25,7 @@ module Middleman
25
25
  # By default, sprockets has no cache! Give it an in-memory one using a Hash
26
26
  # There is also a Sprockets::Cache::FileStore option, but it is fraught with cache-invalidation
27
27
  # peril, so we choose not to use it.
28
- @cache = {}
28
+ @cache = FakeCache.new
29
29
 
30
30
  enhance_context_class!
31
31
 
@@ -225,7 +225,11 @@ module Middleman
225
225
  # Fix https://github.com/sstephenson/sprockets/issues/533
226
226
  if resource && File.basename(resource.path) == 'bower.json'
227
227
  file = ::Rack::File.new nil
228
- file.path = resource.source_file
228
+ file.path = if resource.source_file.is_a? String
229
+ resource.source_file
230
+ else
231
+ resource.source_file[:full_path]
232
+ end
229
233
  response = file.serving({})
230
234
  response[1]['Content-Type'] = resource.content_type
231
235
  return response
@@ -252,6 +256,38 @@ module Middleman
252
256
 
253
257
  @app.sitemap.rebuild_resource_list!(:sprockets_import_asset)
254
258
  end
259
+
260
+ # Sprocket 3 API change :(
261
+ def files_in_paths(load_paths)
262
+ if self.respond_to?(:each_entry)
263
+ load_paths.flat_map do |path|
264
+ output = []
265
+
266
+ self.each_entry(path).each do |p|
267
+ output << [p, path]
268
+ end
269
+
270
+ output
271
+ end
272
+ else
273
+ logical_paths.map do |_, path|
274
+ found_path = load_paths.find do |load_path|
275
+ path.start_with?(load_path)
276
+ end
277
+
278
+ if found_path
279
+ [Pathname(path), found_path]
280
+ else
281
+ nil
282
+ end
283
+ end.reject(&:nil?)
284
+ end
285
+ end
286
+ end
287
+
288
+ class FakeCache < Hash
289
+ alias_method :_get, :[]
290
+ alias_method :_set, :[]=
255
291
  end
256
292
  end
257
293
  end
@@ -18,6 +18,8 @@ class Sprockets::Sass::SassTemplate
18
18
  end
19
19
  end
20
20
 
21
+ IS_V4 = ::Middleman::Extension.respond_to? :expose_to_config
22
+
21
23
  # Sprockets extension
22
24
  module Middleman
23
25
  class SprocketsExtension < Extension
@@ -25,6 +27,11 @@ module Middleman
25
27
 
26
28
  attr_reader :environment
27
29
 
30
+ if IS_V4
31
+ expose_to_config sprockets: :environment
32
+ expose_to_template sprockets: :environment
33
+ end
34
+
28
35
  # This module gets mixed into both the Middleman instance and the Middleman class,
29
36
  # so that it's available in config.rb
30
37
  module SprocketsAccessor
@@ -44,22 +51,28 @@ module Middleman
44
51
  # Start out with a stub environment that can only be configured (paths and such)
45
52
  @environment = ::Middleman::Sprockets::ConfigOnlyEnvironment.new
46
53
 
47
- # v4
48
- if app.respond_to? :add_to_config_context
49
- app.add_to_config_context :sprockets, &method(:environment)
50
- else
51
- app.send :include, SprocketsAccessor
52
- end
54
+ # v3
55
+ app.send :include, SprocketsAccessor if !IS_V4
53
56
  end
54
57
 
55
58
  helpers do
56
- include SprocketsAccessor
59
+ include SprocketsAccessor if !IS_V4
57
60
  include ::Middleman::Sprockets::AssetTagHelpers
58
61
  end
59
62
 
60
63
  def after_configuration
61
- ::Tilt.register ::Sprockets::EjsTemplate, 'ejs'
62
- ::Tilt.register ::Sprockets::EcoTemplate, 'eco'
64
+ begin
65
+ require 'ejs'
66
+ ::Tilt.register ::Sprockets::EjsTemplate, 'ejs'
67
+ rescue LoadError
68
+ end
69
+
70
+ begin
71
+ require 'eco'
72
+ ::Tilt.register ::Sprockets::EcoTemplate, 'eco'
73
+ rescue LoadError
74
+ end
75
+
63
76
  ::Tilt.register ::Sprockets::JstProcessor, 'jst'
64
77
 
65
78
  if app.respond_to?(:template_extensions)
@@ -75,7 +88,6 @@ module Middleman
75
88
  @environment = ::Middleman::Sprockets::Environment.new(app, :debug_assets => debug_assets)
76
89
  config_environment.apply_to_environment(@environment)
77
90
 
78
- @config_environment = config_environment
79
91
  append_paths_from_gems
80
92
  import_images_and_fonts_from_gems
81
93
 
@@ -99,13 +111,14 @@ module Middleman
99
111
  environment.prune_imported_assets!
100
112
  environment.imported_assets.each do |imported_asset|
101
113
  asset = Middleman::Sprockets::Asset.new @app, imported_asset.logical_path, environment
114
+
102
115
  if imported_asset.output_path
103
116
  destination = imported_asset.output_path
104
117
  else
105
118
  destination = @app.sitemap.extensionless_path( asset.destination_path.to_s )
106
119
  end
107
120
 
108
- next if @app.sitemap.find_resource_by_destination_path destination.to_s
121
+ # next if @app.sitemap.find_resource_by_destination_path destination.to_s
109
122
 
110
123
  resource = ::Middleman::Sitemap::Resource.new( @app.sitemap, destination.to_s, asset.source_path.to_s )
111
124
  resource.add_metadata options: { sprockets: { logical_path: imported_asset.logical_path }}
@@ -145,16 +158,14 @@ module Middleman
145
158
  end
146
159
 
147
160
  def import_images_and_fonts_from_gems
148
- environment.paths
149
- .reject { |p| p.start_with?(app.source_dir) }
150
- .reject { |p| @config_environment.ignored_paths.any?{|r| r.match(p)}}
161
+ valid_paths = environment.paths
162
+ .reject { |p| p.start_with?(app.source_dir.to_s) }
151
163
  .select { |p| p.end_with?('images') || p.end_with?('fonts') }
152
- .each do |load_path|
153
- environment.each_entry(load_path) do |path|
154
- if path.file? && !path.basename.to_s.start_with?('_')
155
- logical_path = path.sub /^#{load_path}/, ''
156
- environment.imported_assets << Middleman::Sprockets::ImportedAsset.new(logical_path)
157
- end
164
+
165
+ environment.files_in_paths(valid_paths).each do |(path, load_path)|
166
+ if path.file? && !path.basename.to_s.start_with?('_')
167
+ logical_path = path.sub /^#{load_path}/, ''
168
+ environment.imported_assets << Middleman::Sprockets::ImportedAsset.new(logical_path)
158
169
  end
159
170
  end
160
171
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sprockets
3
- VERSION = "3.5.0"
3
+ VERSION = "4.0.0.beta.1"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
17
17
  s.require_paths = ["lib"]
18
18
  s.add_dependency("middleman-core", [">= 3.3"])
19
- s.add_dependency("sprockets", ["~> 2.12.1"])
19
+ s.add_dependency("sprockets", [">= 2.12.1"])
20
20
  s.add_dependency("sprockets-sass", ["~> 1.3.0"])
21
21
  s.add_dependency("sprockets-helpers", ["~> 1.1.0"])
22
22
  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.5.0
4
+ version: 4.0.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -10,62 +10,62 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-09-20 00:00:00.000000000 Z
13
+ date: 2015-05-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: middleman-core
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: '3.3'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sprockets
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: 2.12.1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: 2.12.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: sprockets-sass
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: 1.3.0
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ~>
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.3.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: sprockets-helpers
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: 1.1.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - "~>"
68
+ - - ~>
69
69
  - !ruby/object:Gem::Version
70
70
  version: 1.1.0
71
71
  description: Sprockets support for Middleman
@@ -77,20 +77,21 @@ executables: []
77
77
  extensions: []
78
78
  extra_rdoc_files: []
79
79
  files:
80
- - ".gitignore"
81
- - ".rspec"
82
- - ".simplecov"
83
- - ".travis.yml"
80
+ - .gitignore
81
+ - .rspec
82
+ - .simplecov
83
+ - .travis.yml
84
84
  - CHANGELOG.md
85
85
  - CONTRIBUTING.md
86
86
  - Gemfile
87
+ - Gemfile-Sprockets3
88
+ - Gemfile-v3
87
89
  - LICENSE.md
88
90
  - README.md
89
91
  - Rakefile
90
92
  - features/asset_hash-3.0.feature
91
93
  - features/asset_hash.feature
92
94
  - features/bower.feature
93
- - features/ignore_imported_paths.feature
94
95
  - features/jst.feature
95
96
  - features/long_filenames.feature
96
97
  - features/sass_globs.feature
@@ -259,17 +260,17 @@ require_paths:
259
260
  - lib
260
261
  required_ruby_version: !ruby/object:Gem::Requirement
261
262
  requirements:
262
- - - ">="
263
+ - - '>='
263
264
  - !ruby/object:Gem::Version
264
265
  version: '0'
265
266
  required_rubygems_version: !ruby/object:Gem::Requirement
266
267
  requirements:
267
- - - ">="
268
+ - - '>'
268
269
  - !ruby/object:Gem::Version
269
- version: '0'
270
+ version: 1.3.1
270
271
  requirements: []
271
272
  rubyforge_project:
272
- rubygems_version: 2.4.8
273
+ rubygems_version: 2.2.2
273
274
  signing_key:
274
275
  specification_version: 4
275
276
  summary: Sprockets support for Middleman
@@ -277,7 +278,6 @@ test_files:
277
278
  - features/asset_hash-3.0.feature
278
279
  - features/asset_hash.feature
279
280
  - features/bower.feature
280
- - features/ignore_imported_paths.feature
281
281
  - features/jst.feature
282
282
  - features/long_filenames.feature
283
283
  - features/sass_globs.feature
@@ -1,19 +0,0 @@
1
- Feature: Ignoring Imported Assets
2
- Background: App with imported assets ignoring some of them
3
- Given a fixture app "sprockets-app"
4
- And a file named "config.rb" with:
5
- """
6
- set :js_dir, "library/js"
7
- set :css_dir, "library/css"
8
-
9
- sprockets.ignore_path /jquery/
10
- """
11
- And the Server is running
12
-
13
- Scenario: Imported jquery assets are not in the sitemap (but others are)
14
- Then the sitemap should not include "/images/jquery-mobile/ajax-loader.gif"
15
- And the sitemap should include "/fonts/bootstrap/glyphicons-halflings-regular.eot"
16
-
17
- Scenario: Assets from imported gem can still be required
18
- When I go to "/library/js/jquery_include.js"
19
- Then I should see "window.jQuery ="