asset 0.1.11 → 0.1.12

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: 90fde4e9a5059373b6ef73bda578b175b836926f
4
- data.tar.gz: 84e13b7340c9056da1b4751009ae0d2af6c42be8
3
+ metadata.gz: 1f834010e80a10840bf6589574d20d91d65b9e67
4
+ data.tar.gz: d91f555db8a3259627c9737231764ce376038c97
5
5
  SHA512:
6
- metadata.gz: e2129596f7a05b2f64f047b37e329da0924fcc4ceb629bf49bc43de4a4bb7e5b98ff6f5a43a68aff5fc0d30d855ab24891edd248ed06aa44f31e180d78e2e24f
7
- data.tar.gz: 25b0ed903309dc2da7c5a16ae40facbdf8fd532f81adc4de29de49cf8ce3e076f2755da85607d9e99eb038a3888e3bc2ebafd1e6a820d07be34984c58d8461f1
6
+ metadata.gz: 79ec326df9133c08d7a4c1694f5e1f80f2cb5cfa7fb22210de27792f610362aaeca3cfb320ba96f07d6d7eabf36e09a1a7b54ce8ad841f006e8fd1b93a1f2e06
7
+ data.tar.gz: 20b2c66545006996f4bfc1a6ed6363533ac15c945c9a1aaf945306fb32adb2b5900214f4fa3ef5cb07f3e5b7b95a47fbac7b0bab9469469e2d01411b1524fdd1
@@ -1,3 +1,7 @@
1
+ **Version 0.1.12** - *2017-01-26*
2
+
3
+ - Reverted symlinks, assets must be file
4
+
1
5
  **Version 0.1.11** - *2017-01-25*
2
6
 
3
7
  - Assets and images now follow symlinks
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'asset'
3
- s.version = '0.1.11'
4
- s.date = '2017-01-25'
3
+ s.version = '0.1.12'
4
+ s.date = '2017-01-26'
5
5
  s.summary = "Compress and serve your CSS and JS assets automatically"
6
6
  s.description = "The only thing you need for your assets."
7
7
  s.authors = ["Fugroup Limited"]
@@ -52,8 +52,7 @@ module Asset
52
52
  # Found
53
53
  def found(item)
54
54
  content = item.content(!!@key)
55
- [ 200, {
56
- 'Content-Type' => MIME[item.type],
55
+ [ 200, {'Content-Type' => MIME[item.type],
57
56
  'Content-Length' => content.size,
58
57
  'Cache-Control' => 'max-age=86400, public',
59
58
  'Expires' => (Time.now + 86400*30).utc.rfc2822,
@@ -35,7 +35,7 @@ module Asset
35
35
  def self.load_manifest
36
36
  manifest = []
37
37
 
38
- Dir["#{Asset.path}/{css,js}/**{,/*/**}/*.{css,js}"].each do |file|
38
+ Dir["#{Asset.path}/{css,js}/**/*.{css,js}"].each do |file|
39
39
  # Extract type and name
40
40
  file =~ /(js|css)\/(.+)$/; type, name = $1, $2
41
41
 
@@ -64,10 +64,10 @@ module Asset
64
64
  # Load images into memory
65
65
  def self.load_images
66
66
  # Store the path and the timestamp
67
- images = Dir["#{::Asset.path}/images/**{,/*/**}/*.*"].map do |i|
67
+ img = Dir["#{::Asset.path}/images/**/*.*"].map do |i|
68
68
  i =~ /\/images\/(.+)/; [$1, mtime("images/#{$1}").to_i]
69
69
  end
70
- Hash[*images.flatten]
70
+ Hash[*img.flatten]
71
71
  end
72
72
 
73
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack