smart_asset 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/smart_asset.rb CHANGED
@@ -115,12 +115,12 @@ class SmartAsset
115
115
  end
116
116
 
117
117
  # Remove old/unused packages
118
- (Dir["#{dest}/????????_*.#{ext}"] - packages).each do |path|
118
+ (Dir["#{dest}/#{"[^_]"*8}_*.#{ext}"] - packages).each do |path|
119
119
  FileUtils.rm path
120
120
  end
121
121
 
122
122
  # Delete legacy files
123
- Dir["#{dest}/*.yml", "#{dest}/??????????????_*.{css,js}"].each do |path|
123
+ Dir["#{dest}/*.yml", "#{dest}/#{"[0-9]"*14}_*.{css,js}"].each do |path|
124
124
  FileUtils.rm path
125
125
  end
126
126
  end
@@ -194,7 +194,7 @@ class SmartAsset
194
194
 
195
195
  if @envs.include?(@env.to_s)
196
196
  @cache[type][match] =
197
- if result = Dir["#{dest}/????????_#{match}.#{ext}"].sort.last
197
+ if result = Dir["#{dest}/#{"[^_]"*8}_#{match}.#{ext}"].sort.last
198
198
  [ result.gsub(@pub, '') ]
199
199
  else
200
200
  []
@@ -1,3 +1,3 @@
1
1
  class SmartAsset
2
- VERSION = "0.5.2" unless defined?(::SmartAsset::VERSION)
2
+ VERSION = "0.5.3" unless defined?(::SmartAsset::VERSION)
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Winton Welsh
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-20 00:00:00 -08:00
17
+ date: 2010-12-21 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency