asset 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6278ea671a78e4cf156bb1dad148e268d11dcb9
4
- data.tar.gz: b445698bdb23def5a03fa76c2ac1fbff5a673f12
3
+ metadata.gz: 79324a6a074bc04bca16da39d57e2f4dc0c152b5
4
+ data.tar.gz: 17ba912dfa3881fb46828ba8743e5f3763611311
5
5
  SHA512:
6
- metadata.gz: b02ccb480ae994e3570013dd78ed99f4347686bdd6dd919ad1f7f213a9368be23713680c9820cebf19501bb7fa144ba06b705a31eaadff90d7e86cc799727ed1
7
- data.tar.gz: 0d2d320cad89f38253d244d7489be2acf39f1ab61878c3648d44809408f99bfc27ceb66d0067cab2ac6e5ad2fbfdc0ffd25f9a7c9469469919834fbcaaba4aa8
6
+ metadata.gz: 04e03ba158217c029ba9cde16659b6f1b77dc1237a281365c91b181348c0f580afa7abd2a6dff05ab2cd22c0dd73c6c961cdaa5ab81829c97179fb970a42abf5
7
+ data.tar.gz: bc060a99a62b72841ace1024d22f4fa965d2497fa4c34219ef872ccd1bf9e300353afb63d8a614eb02b6fa9b5e975048476f29bc4a03944d75bbc839b76fbb83
@@ -1,3 +1,7 @@
1
+ **Version 0.1.5** - *2017-01-18*
2
+
3
+ - Correct load order for bundle
4
+
1
5
  **Version 0.1.4** - *2017-01-18*
2
6
 
3
7
  - Moved images to /images instead of /assets/images
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'asset'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.date = '2017-01-18'
5
5
  s.summary = "Compress and serve your CSS and JS automatically"
6
6
  s.description = "The only thing you need for your assets."
@@ -13,7 +13,7 @@ module Asset
13
13
 
14
14
  # Get the files for this item
15
15
  def files(bundle = true)
16
- (@app and bundle) ? bundle_files : [@path]
16
+ (@app and bundle) ? ::Asset.bundle[@type] : [@path]
17
17
  end
18
18
 
19
19
  # Get the sources for this item
@@ -26,11 +26,6 @@ module Asset
26
26
  File.join('/assets', @type, (p? ? @kpath : @path))
27
27
  end
28
28
 
29
- # Get the files for the bundle
30
- def bundle_files
31
- @bundle_files ||= ::Asset.manifest.select{|i| ::Asset.bundle[type].include?(i.path) and i.type == @type and !i.app}.map{|i| i.path}
32
- end
33
-
34
29
  # Get the content. Pass cache = false to fetch from disk instead of the cache.
35
30
  def content(key = nil)
36
31
  !key ? (@joined ||= joined) : (@cached ||= cached)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited