buzztools 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/buzztools/file.rb +8 -1
- data/lib/buzztools/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MjA1NGY4MjY2NTUyYWY5NWM2MTU1YWU1NDMxMjg2MzkxNTFlZDE2Ng==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6bfea632c5de9ed8a28a36d0d7d67fc07cc11d92
|
4
|
+
data.tar.gz: 749a39b19f50291cdf908e9e5d9cc7a5188e2bc3
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MmZjZjZjOTA2NDIxNDU3ZWUxNDRkZjYxYThhZGNhZWU4NDliYmNlZDYwYTBk
|
11
|
-
MWQ2MWU4ZjQ5ZDQ1MGJiMDcxMTQzOTdmMjA5ZmYyYWUzOWRmNjA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YjI2ZTk3OGQ5ZDIwZGJhMzBhNzY2NmE4NzVlNjQ2ZjI0NjkyY2RkNjk3ZWM5
|
14
|
-
MjgwY2IwYzU0NmEzZWM0OTgyM2EzOGU1NjAyYTQ1MGM4NDczZTdhOGQ2OWZh
|
15
|
-
ODY4MzY0YmEyMmQxY2VhYWE5ZDk4MWE0NjE1MWE3ODE2YzEyODA=
|
6
|
+
metadata.gz: fed0c1d22c9d2d5912d866bff5a398ae4703428dce60f4e4addecc1949436fe256100f327d44b1c9ebd3a346a33e919a15b602cc0a5cd07bdce556d9585ab258
|
7
|
+
data.tar.gz: 0a442b3a3e615164616866ccea09cf9ce17ec9c559d330a37623c89dd8d927aaea97fcc6c594e76c279f6874a07607e40d7908af80458d49a088f28bd4fc3e98
|
data/lib/buzztools/file.rb
CHANGED
@@ -48,6 +48,12 @@ module Buzztools
|
|
48
48
|
append_slash(aNewBase)+rel_path
|
49
49
|
end
|
50
50
|
|
51
|
+
def path_relative?(aPath)
|
52
|
+
return false if aPath[0,1]=='/'
|
53
|
+
return false if aPath =~ /^[a-zA-Z]:/
|
54
|
+
return true
|
55
|
+
end
|
56
|
+
|
51
57
|
def path_combine(aBasePath,aPath)
|
52
58
|
return aBasePath if !aPath
|
53
59
|
return aPath if !aBasePath
|
@@ -82,8 +88,9 @@ module Buzztools
|
|
82
88
|
path = aPath
|
83
89
|
if path.begins_with?('...')
|
84
90
|
rel_part = path.split3(/\.\.\.[\/\\]/)[2]
|
85
|
-
|
91
|
+
return find_upwards(aBasePath,rel_part)
|
86
92
|
end
|
93
|
+
path_combine(aBasePath,aPath)
|
87
94
|
end
|
88
95
|
|
89
96
|
def path_parent(aPath)
|
data/lib/buzztools/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buzztools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary McGhee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: reusable function library
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
@@ -78,12 +78,12 @@ require_paths:
|
|
78
78
|
- lib
|
79
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
@@ -93,4 +93,3 @@ signing_key:
|
|
93
93
|
specification_version: 4
|
94
94
|
summary: reusable function library
|
95
95
|
test_files: []
|
96
|
-
has_rdoc:
|