smart_asset 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smart_asset.rb +1 -1
- data/lib/smart_asset/version.rb +1 -1
- metadata +3 -3
data/lib/smart_asset.rb
CHANGED
@@ -48,7 +48,7 @@ class SmartAsset
|
|
48
48
|
if File.exists?("#{dir}/#{file}.#{ext}")
|
49
49
|
mod = `cd #{@root} && git log --pretty=format:%cd -n 1 --date=iso #{@config['public']}/#{@sources[type]}/#{file}.#{ext}`
|
50
50
|
if mod.strip.empty? || mod.include?('command not found')
|
51
|
-
modified << Time.now.utc.strftime("%Y%m%d%H%M%S")
|
51
|
+
modified << (ENV['MODIFIED'] ? Time.parse(ENV['MODIFIED']) : Time.now).utc.strftime("%Y%m%d%H%M%S")
|
52
52
|
else
|
53
53
|
modified << Time.parse(mod).utc.strftime("%Y%m%d%H%M%S")
|
54
54
|
end
|
data/lib/smart_asset/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 3
|
9
|
+
version: 0.4.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-
|
17
|
+
date: 2010-12-13 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|