SassMyLess 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sassmyless +7 -1
- data/lib/SassMyLess/version.rb +1 -1
- data/lib/SassMyLess.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: fad7dab05f8ddc0f0acf848fa8d26b47fac13fcc
|
4
|
+
data.tar.gz: 6a3c136cffdb6791992d59d9b89768486a876cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cec1e859fe74f2fa76b02991d7019c08b1103c661ccb1cec7bc0b12e58beea81bafd796396bb0e21b143ea90186ae67675868eae116a382e0d41bda83e9060e0
|
7
|
+
data.tar.gz: c56990dd67080c1b4eedcd5402a4aaf1dfa14c2897a1feb5efbcab49e539365f6b1f200a8a30e7ad0284b982a23bc41d7ef66c02fd5e5b97ca5a469ab8e809a1
|
data/bin/sassmyless
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
|
2
4
|
|
3
5
|
require "sassmyless"
|
4
6
|
|
@@ -10,4 +12,8 @@ end
|
|
10
12
|
less_directory = ARGV[0]
|
11
13
|
sass_directory = ARGV[1]
|
12
14
|
|
13
|
-
|
15
|
+
begin
|
16
|
+
SassMyLess::Base.convert less_directory, sass_directory
|
17
|
+
rescue
|
18
|
+
puts "Error;"
|
19
|
+
end
|
data/lib/SassMyLess/version.rb
CHANGED
data/lib/SassMyLess.rb
CHANGED
@@ -26,7 +26,7 @@ module SassMyLess
|
|
26
26
|
def self.traverse_dir directory
|
27
27
|
Dir.glob("#{directory}/*").each_with_object({}) do |f, h|
|
28
28
|
if File.file?(f)
|
29
|
-
src = open(f).read
|
29
|
+
src = open(f).read.encode!('UTF-8')
|
30
30
|
ConvertList.each do |regexp, with|
|
31
31
|
src.gsub! /#{regexp}/, with
|
32
32
|
end
|