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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a814fabec9d002b7ee97571f379d66fc851a0313
4
- data.tar.gz: 44a7e1b37509d247bd55286152d80148b2dd2d0b
3
+ metadata.gz: fad7dab05f8ddc0f0acf848fa8d26b47fac13fcc
4
+ data.tar.gz: 6a3c136cffdb6791992d59d9b89768486a876cb3
5
5
  SHA512:
6
- metadata.gz: 110a0ed11d403f676af5eb5d1915add0a4f1da30b7dd5606c4ef68865a91442f9f95861862230b1e896fa6ff24dec2e937c55b9dbb1ccf6e537f6588c3f36a37
7
- data.tar.gz: eefae563dc4e64c373d2b87951dc086717b7e4878996e5f5f466fedd927c2f00b060194917a160aae2c6bfd13c832e1956e0fc104e522383f0ef94be7014d3bf
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
- SassMyLess::Base.convert less_directory, sass_directory
15
+ begin
16
+ SassMyLess::Base.convert less_directory, sass_directory
17
+ rescue
18
+ puts "Error;"
19
+ end
@@ -1,3 +1,3 @@
1
1
  module SassMyLess
2
- VERSION = "1.0"
2
+ VERSION = "1.0.1"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassMyLess
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Bordinc