weby 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/weby/html.rb +6 -3
- data/lib/weby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c28a1a8448a3196261c4e6240b7ef6fa930d23ea
|
|
4
|
+
data.tar.gz: 0ab14325c0b214ba72c24675dd2c41c59c6ac969
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz: '
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09689b71c8f4194e6b91620a3ddd72835b050227f16ad0271d0ec694cc5d30ce92a1f6fd61bc71f31b40cfd2e19123f8520e768c2d1955a7f29af82fd3153c6c'
|
|
7
|
+
data.tar.gz: 59dc3818e66eea93f462b5ae8fa67e7d34ee201088339b4c70e5c189bb3f3e4443dcdf33065f9035217b849efde45455a605879e7aeb03f753d5a7605f557924
|
data/lib/weby/html.rb
CHANGED
|
@@ -437,9 +437,12 @@ module Weby
|
|
|
437
437
|
def resolvepath(path)
|
|
438
438
|
return path if path[/^\//]
|
|
439
439
|
if (include_path = @@include_path)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
if !include_path[/^\//]
|
|
441
|
+
script_path = File.dirname(File.expand_path($0))
|
|
442
|
+
include_path = File.join(script_path, include_path)
|
|
443
|
+
end
|
|
444
|
+
include_path = File.join(include_path, path)
|
|
445
|
+
path = include_path if File.exists? include_path
|
|
443
446
|
end
|
|
444
447
|
path
|
|
445
448
|
end
|
data/lib/weby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: weby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- artix
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|