rcompile 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rcompile/compiler.rb +8 -2
- data/lib/rcompile/version.rb +1 -1
- data/rcompile.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0ad3eb6381caefad8133647a29e1bbccf06d6f
|
4
|
+
data.tar.gz: 3d314f855a8a39818f54d7c1bfb8d517350e701f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecbb5cc052d7996846d3aadc3c7f21aec9c6456a6484d63328a87081ae37f49c9104f44e0e9a20bd5f1eba7ac1b71b19de833393c73c440c8fca807d16c77549
|
7
|
+
data.tar.gz: 884cfb7ca1d95e325af232e4b854f527c762401601c97a2df0fcf0315382ca6b91653abaf57f5a47e7e31c2fcdd31dd46e8ec7096389a1ca4fdd0a62d2fbb001
|
data/lib/rcompile/compiler.rb
CHANGED
@@ -131,7 +131,7 @@ module RCompile
|
|
131
131
|
end
|
132
132
|
|
133
133
|
def download_html
|
134
|
-
exec 'wget -H -r -l 10 -k -p -D localhost -P html -nH localhost:3311'
|
134
|
+
exec 'wget -H -E -r -l 10 -k -K -m -p -np --restrict-file-names=nocontrol -D localhost -P html -nH localhost:3311'
|
135
135
|
end
|
136
136
|
|
137
137
|
def prettify
|
@@ -150,7 +150,13 @@ module RCompile
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def prettify_css
|
153
|
-
|
153
|
+
css_files_to_prettify.each do |file_name|
|
154
|
+
text = File.open(file_name) { |f| f.read }
|
155
|
+
engine = Sass::Engine.new(text, syntax: :scss, style: :compress)
|
156
|
+
text = engine.render
|
157
|
+
engine = Sass::Engine.new(text, syntax: :scss, style: :compact)
|
158
|
+
File.open(file_name, 'w') { |f| f.puts engine.render }
|
159
|
+
end
|
154
160
|
end
|
155
161
|
|
156
162
|
private
|
data/lib/rcompile/version.rb
CHANGED
data/rcompile.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcompile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: methadone
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sass
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|