rack-less 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/less/base.rb +0 -8
- data/lib/rack/less/version.rb +1 -1
- metadata +3 -3
data/lib/rack/less/base.rb
CHANGED
@@ -48,20 +48,12 @@ module Rack::Less
|
|
48
48
|
unless options.has_key?(option_name(:root)) and !options(:root).nil?
|
49
49
|
raise(ArgumentError, "no :root option set")
|
50
50
|
end
|
51
|
-
unless File.exists?(options(:root))
|
52
|
-
raise(ArgumentError, "the :root path ('#{options(:root)}') does not exist")
|
53
|
-
end
|
54
|
-
|
55
51
|
set :root, File.expand_path(options(:root))
|
56
52
|
|
57
53
|
# ensure a source path is specified and does exists
|
58
54
|
unless options.has_key?(option_name(:source)) and !options(:source).nil?
|
59
55
|
raise(ArgumentError, "no :source option set")
|
60
56
|
end
|
61
|
-
source_path = File.join(options(:root), options(:source))
|
62
|
-
unless File.exists?(source_path)
|
63
|
-
raise(ArgumentError, "the :source path ('#{source_path}') does not exist")
|
64
|
-
end
|
65
57
|
end
|
66
58
|
|
67
59
|
end
|
data/lib/rack/less/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
8
|
+
- 1
|
9
|
+
version: 1.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kelly Redding
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-14 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|