cyborg 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cyborg/plugin/assets/asset.rb +1 -0
- data/lib/cyborg/plugin/assets/stylesheets.rb +9 -9
- 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: c0764bb89715d04149969b42d330c181be1eb58f
|
4
|
+
data.tar.gz: a1bfd24313e2766372a416b97ffb18e681941f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8863124a08327183fa799cda66a5de363fa51976726d7b30f27f6823fbcda518c0035fd44df90f41bef40520d94ddee3836f8d3e91e648e3aa9ca8733b45b0f
|
7
|
+
data.tar.gz: bef231283701d4b1bba317d823b0a7a3489cc3800cdb08e678574f45e7f14458ca968faa5f3f376060d6debe8d84759b4e53cf61905d0c577594c63703f44a24
|
@@ -19,16 +19,17 @@ module Cyborg
|
|
19
19
|
|
20
20
|
files.each do |file|
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
begin
|
23
|
+
if File.extname(file).match(/\.css/)
|
24
|
+
build_css(file)
|
25
|
+
elsif File.extname(file).match(/\.s[ca]ss/)
|
26
|
+
build_sass(file)
|
27
|
+
end
|
27
28
|
|
28
|
-
if File.exist? destination(file)
|
29
29
|
puts build_msg(file)
|
30
|
-
|
31
|
-
puts "FAILED TO WRITE: #{file}"
|
30
|
+
rescue => bang
|
31
|
+
STDERR.puts "FAILED TO WRITE: #{destination(file).sub(plugin.root+'/','')}"
|
32
|
+
STDERR.puts bang
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -42,7 +43,6 @@ module Cyborg
|
|
42
43
|
|
43
44
|
def build_sass(file)
|
44
45
|
style = Cyborg.production? ? "compressed" : 'nested'
|
45
|
-
|
46
46
|
dest = destination(file)
|
47
47
|
|
48
48
|
css = Sass.compile_file(file, style: style)
|
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.5.
|
4
|
+
version: 0.5.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|