theme 0.2.2 → 0.2.3
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 +6 -6
- 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: 2306555fa9e5b0fff654b068d1b162aae662b5ae
|
4
|
+
data.tar.gz: 2833979bf8f60a7394ce964a49fecadd046ed796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d4b50a481ad66fa7d380220aeb839b800bbdd4f64bf3cfdf3220acc39c0e6e7938e89409679c628e6af6f66887b735f91c0be734cb5ac2dbf4f81bb6fdc35e
|
7
|
+
data.tar.gz: 9f4ee0fea08d42636dbb121b8b3bf947cf323d2fc947dc82d025d4abfb6812f846578e29035e118d5addda485dffc5cabac7a0cc5bf00f60fbc7a2233c315143
|
data/lib/theme/assets.rb
CHANGED
@@ -21,9 +21,9 @@ module Theme
|
|
21
21
|
url = Theme.config.asset_url
|
22
22
|
|
23
23
|
if Theme.config.assets_compiled
|
24
|
-
options[:href] = "#{url}/css/
|
24
|
+
options[:href] = "#{url}/css/theme-compiled-#{sha}.css"
|
25
25
|
else
|
26
|
-
options[:href] = "#{url}/css/
|
26
|
+
options[:href] = "#{url}/css/theme.css"
|
27
27
|
end
|
28
28
|
|
29
29
|
Theme.mab { link options }
|
@@ -37,9 +37,9 @@ module Theme
|
|
37
37
|
url = Theme.config.asset_url
|
38
38
|
|
39
39
|
if Theme.config.assets_compiled
|
40
|
-
options[:src] = "#{url}/js/
|
40
|
+
options[:src] = "#{url}/js/theme-compiled-#{sha}.js"
|
41
41
|
else
|
42
|
-
options[:src] = "#{url}/js/
|
42
|
+
options[:src] = "#{url}/js/theme.js"
|
43
43
|
end
|
44
44
|
|
45
45
|
Theme.mab { script options }
|
@@ -55,9 +55,9 @@ module Theme
|
|
55
55
|
path = "#{type_path}/#{file}"
|
56
56
|
content += Theme.load_file path
|
57
57
|
end
|
58
|
-
tmp_path = "#{type_path}/tmp.
|
58
|
+
tmp_path = "#{type_path}/tmp.theme-compiled.#{type}"
|
59
59
|
File.write tmp_path, content
|
60
|
-
system "minify #{tmp_path} > #{type_path}/
|
60
|
+
system "minify #{tmp_path} > #{type_path}/theme-compiled-#{sha}.#{type}"
|
61
61
|
File.delete tmp_path
|
62
62
|
end
|
63
63
|
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|