cyborg 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cyborg/helpers/asset_helpers.rb +6 -4
- data/lib/cyborg/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: 8d8b08048534b62f35c83ac4f8c353086245959a
|
4
|
+
data.tar.gz: 4c60ed9cb6a9c40ca3f1de57c10fd6ae99ec67b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea65d049e68aedfc0977cd759245e3ccad938b61b8ab1c77e381bf4514010f3cc809cfae224c4d458a55e03c5f1cd219a282cb01166b7c63c667aed2b460c07
|
7
|
+
data.tar.gz: a332f85c88c83f073c15d5b174ff974cd6ce19317398d63bf8e832241b722303998f1319ba8c336ea39a978836c82ad438519d529f78b7e308d75257f313c7a4
|
@@ -11,8 +11,9 @@ module Cyborg
|
|
11
11
|
tags = ''
|
12
12
|
|
13
13
|
stylesheet_url(args).each do |url|
|
14
|
-
|
15
|
-
|
14
|
+
tag = stylesheet_link_tag url, options
|
15
|
+
tag.gsub(/\.css/i, ".css.gz") if Cyborg.production? && request.accept_encoding =~ /gzip/i
|
16
|
+
tags += tag
|
16
17
|
end
|
17
18
|
|
18
19
|
tags.html_safe
|
@@ -24,8 +25,9 @@ module Cyborg
|
|
24
25
|
|
25
26
|
puts "searching for: #{javascript_url(args)}"
|
26
27
|
javascript_url(args).each do |url|
|
27
|
-
|
28
|
-
|
28
|
+
tag = javascript_include_tag url, options
|
29
|
+
tag.gsub(/\.js/i, ".js.gz") if Cyborg.production? && request.accept_encoding =~ /gzip/i
|
30
|
+
tags += tag
|
29
31
|
end
|
30
32
|
|
31
33
|
tags.html_safe
|
data/lib/cyborg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyborg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|