weby 0.0.1 → 0.0.2

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: bad3a8a500f51db0006a12a6cecaa559b4e2e61e
4
- data.tar.gz: a15dfd9e9d8423f143c1b85fe593b27daf0e9566
3
+ metadata.gz: c28a1a8448a3196261c4e6240b7ef6fa930d23ea
4
+ data.tar.gz: 0ab14325c0b214ba72c24675dd2c41c59c6ac969
5
5
  SHA512:
6
- metadata.gz: '0584d1392b70e7585fc3e60ae51291431bef8fdcc2a3cddb19ac337711e4518e325e6d7a7ed25bcb6906eabc7e67b3e0d1a05e8c8a38ed76ae277f046a3a94ff'
7
- data.tar.gz: f98cdd4c56d9b3aee976e9362a87dacaba387dfde6dd986a995cf0afc8e3a5ab28de1052c0e3a28808bb356e2086ca3237e0d2ba81285d675f29344828e2dadc
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
- script_path = File.dirname(File.expand_path($0))
441
- include_path = File.join(script_path, include_path, path)
442
- path = include_path if File.exists? path
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
@@ -1,3 +1,3 @@
1
1
  module Weby
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler