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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8051aea145e695712af0b686c9d393309194850e
4
- data.tar.gz: a8d12186dcd33aa9c9879f2317ddbeb112ce9c53
3
+ metadata.gz: 4d0ad3eb6381caefad8133647a29e1bbccf06d6f
4
+ data.tar.gz: 3d314f855a8a39818f54d7c1bfb8d517350e701f
5
5
  SHA512:
6
- metadata.gz: aa2e729446d033dd44deb37d7553569618d05b9795c46862a9ac6b53178a770afdee08a7e49a76c08276eb8dc11a83cd0f050afbc215793268a7049b981ffc1d
7
- data.tar.gz: 993cc9e929ccf11a1f8d7530d996775a6a1a5419fba2237b7390f5631157976cf95ff8c5c93d7b4b387d777c60890a429d9f930429af987892ae852cc77bfc1b
6
+ metadata.gz: ecbb5cc052d7996846d3aadc3c7f21aec9c6456a6484d63328a87081ae37f49c9104f44e0e9a20bd5f1eba7ac1b71b19de833393c73c440c8fca807d16c77549
7
+ data.tar.gz: 884cfb7ca1d95e325af232e4b854f527c762401601c97a2df0fcf0315382ca6b91653abaf57f5a47e7e31c2fcdd31dd46e8ec7096389a1ca4fdd0a62d2fbb001
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RCompile
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency('methadone', '~> 1.3.1')
22
22
  spec.add_dependency('nokogiri')
23
+ spec.add_dependency('sass')
23
24
 
24
25
  spec.add_development_dependency "bundler", "~> 1.5"
25
26
  spec.add_development_dependency "rake"
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.5
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-01 00:00:00.000000000 Z
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