sprockets-preload 0.0.4 → 0.0.5

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: 45f0a6d6d7ec678e7d785146a05cdc88ffcf22e0
4
- data.tar.gz: aebed604cab1b988ee830d26b890660d58c4fed7
3
+ metadata.gz: 9662868a467492b5eef4a0e08bb869de8180cd98
4
+ data.tar.gz: ade68c20abf5be41e9c36f6decb3f0ab1d5cff87
5
5
  SHA512:
6
- metadata.gz: 858a0a0c7d2f807b05f518fe8d72a0b41929d42cb302a321fb551c8c88fd2df63780009a521984b64cf52f040e0d3e5b7d42ca810d5a2cb94107373500a834be
7
- data.tar.gz: 6ddc6e4e57f0488afb9870b124281e3635d455b0b1d3de4220e18a1bea8c9fb195b28317f2d65fe325bd3d16841dfaf67a20959d585e73f68ca7cdb76009206a
6
+ metadata.gz: 655c12c2405fe68955f7871b7ea5e7e18d8b5f0383114610062df569803415dd587874d09cf7709cdbf9200d10dcd2d9a6bda4842801452da2f6b93c1b5c1626
7
+ data.tar.gz: 436c1416aecf1627747e1e1dcc494f617c500d4b0fba1891677e02e9f6cbf7a3268b265a2e7a6d277b21d9150eb94f788f1def0f7317d3ae50a4a42d04771ca9
@@ -71,11 +71,15 @@ module Sprockets
71
71
  end
72
72
 
73
73
  # Going deeper
74
- dependencies = context._required_paths.map do |dependency|
74
+ dependencies = context._required_paths.select do |dependency|
75
+ dependency != pathname.to_s
76
+ end
77
+
78
+ dependencies.map! do |dependency|
75
79
  environment.attributes_for(dependency).logical_path
76
80
  end
77
81
 
78
- dependencies -= context._stubbed_assets.to_a
82
+ dependencies -= context._stubbed_assets.to_a + [pathname.to_s]
79
83
 
80
84
  dependencies.each do |dependency|
81
85
  to_preload += collect(environment, dependency)
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Preload
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -1 +1,2 @@
1
+ //= require_self
1
2
  test1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-preload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal