theme 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/theme/assets.rb +5 -1
- data/lib/theme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ff8e020356a442df18f5f5ccfb73459fe7759a
|
4
|
+
data.tar.gz: efd3dad02f1a62a9f2a8fae78fd0dfe70a7d3243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3736acc5bde2c4494e53b85c6e9d3512d7df2246d609276243fefdf49210ab7a910cde594adf6a46f0eedaf681bd6102e98088ae6d3e2e32123ca1cb276e43f
|
7
|
+
data.tar.gz: f8d8827a2a1ed9bde685e8baef9185c0549a3b5a935e25dfa9c89bdb3a3acd371b70227112851441acf51228de1fcb36facabbea158f3842195c8d731ab934e8
|
data/lib/theme/assets.rb
CHANGED
@@ -63,6 +63,10 @@ module Theme
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
66
|
+
|
67
|
+
def sha
|
68
|
+
Thread.current[:_sha] ||= (Theme.config.sha || `git rev-parse HEAD`.strip)
|
69
|
+
end
|
66
70
|
end
|
67
71
|
|
68
72
|
def css_assets options = {}
|
@@ -76,7 +80,7 @@ module Theme
|
|
76
80
|
private
|
77
81
|
|
78
82
|
def sha
|
79
|
-
|
83
|
+
self.class.sha
|
80
84
|
end
|
81
85
|
end
|
82
86
|
end
|
data/lib/theme/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|