guppy 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guppy.rb +1 -7
- 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: 961f6d71f96e240081d500bf49b0cb8bf6768702
|
4
|
+
data.tar.gz: 1073cffcd2cfbb3711c7da71caacbe423ef38aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0030db3409fc7efd8f91d49245ca6a8e20b5994901fff3ae3c635d713b25401d5fe5eee588808c4bae3e4d1d672a47eecc93afd0c979245ecef8845c0c938be
|
7
|
+
data.tar.gz: b674efd0d28fba99298fd5ba08adfe548edf6fee37040f274c2e8d2ed864f39dfb4e5f6977db9ffff457b1df0a5e445ad4ba917d751056f2f449616ed32ba0c8
|
data/lib/guppy.rb
CHANGED
@@ -6,7 +6,7 @@ require 'net/http'
|
|
6
6
|
require 'time'
|
7
7
|
require 'open-uri'
|
8
8
|
|
9
|
-
RemoteSass.location = ENV['RACK_ENV'].nil? ? 'http://localhost:4567/
|
9
|
+
RemoteSass.location = ENV['RACK_ENV'].nil? ? 'http://localhost:4567/load' : 'http://guppy.io/load'
|
10
10
|
|
11
11
|
module Sass
|
12
12
|
module Importers
|
@@ -26,8 +26,6 @@ module Sass
|
|
26
26
|
Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
|
27
27
|
filename = File.basename(uri.to_s, File.extname(uri.to_s))
|
28
28
|
uri = "#{uri.scheme}://#{uri.host}:#{uri.port}/load/#{filename}"
|
29
|
-
# uri = "http://localhost:9876/load/#{filename}"
|
30
|
-
# puts 'uri: ' + uri.to_s
|
31
29
|
response = http.get uri.to_s
|
32
30
|
response.value
|
33
31
|
options[:importer] = self
|
@@ -35,10 +33,6 @@ module Sass
|
|
35
33
|
options[:syntax] = :scss
|
36
34
|
Sass::Engine.new response.body, options
|
37
35
|
end
|
38
|
-
rescue => msg
|
39
|
-
puts msg.class.to_s
|
40
|
-
puts msg.backtrace
|
41
|
-
puts msg.message
|
42
36
|
end
|
43
37
|
end
|
44
38
|
end
|