classy_assets 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/classy_assets/config.rb +2 -6
- data/lib/classy_assets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f93e9e5197b1d9aa16e765c43baeb23ad19d2ee
|
|
4
|
+
data.tar.gz: a616b1e31096b457077a32f81bcb9a6955b5bd8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a82cd5745518351e109bb6b3d4a0d01c3da4481453dd4adf1878b0dc89ed92ae88c443aaf3657bcf637a958148a394fb9df98f3637a60e4e6c4a5e1d38da882
|
|
7
|
+
data.tar.gz: 2ad11054d88dfd5f27d23d6cf25edad41628cacbfc6dfc3d0688490c04cca4015f6841998246d8b0fed216fe0f7e9cf5fb7da9593f5eade02b315ad394e0a5a8
|
data/lib/classy_assets/config.rb
CHANGED
|
@@ -9,11 +9,11 @@ module ClassyAssets
|
|
|
9
9
|
attr_accessor :asset_debug, :asset_digest, :asset_host, :asset_paths, :asset_prefix, :asset_root
|
|
10
10
|
|
|
11
11
|
def asset_debug
|
|
12
|
-
@asset_debug
|
|
12
|
+
@asset_debug || (ENV['RACK_ENV'] == 'development')
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def asset_digest
|
|
16
|
-
@asset_digest
|
|
16
|
+
@asset_digest || false
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def asset_paths
|
|
@@ -31,10 +31,6 @@ module ClassyAssets
|
|
|
31
31
|
@asset_root
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def public_path
|
|
35
|
-
@public_path ||= File.join(asset_root, 'public')
|
|
36
|
-
end
|
|
37
|
-
|
|
38
34
|
private
|
|
39
35
|
|
|
40
36
|
def build_asset_paths
|