workspace 1.0.16 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/workspace/dir.rb +1 -2
- data/lib/workspace/file.rb +1 -2
- data/lib/workspace/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 57315b75c4adc89dfa1d153db7bc56134481ec18699a0398be5328d526383c5e
|
4
|
+
data.tar.gz: c089653e782fcffb5437735ab6fc3659f3a8ff8330fb5b7352dda468330b50cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840c629eef26debf385f2feb54acc82842e78ca201b051c52e7ec38186678f0a38076f0584c539f1db1276b12ad2174de852a0574f6d9e4f4efcab638bed02a6
|
7
|
+
data.tar.gz: f6e11999407ee6c9d7c90eb27051fb8164e04886afa994b3cd4821dbb28d964ccf17fa173f9a8328bbcb1f1e9babcd0439830a72b171df4ff4c43c96c8b22944
|
data/lib/workspace/dir.rb
CHANGED
@@ -20,8 +20,7 @@ module Workspace
|
|
20
20
|
relative_dir = relative_dir.dir if relative_dir.class == Workspace::File
|
21
21
|
first = Pathname.new(relative_dir.path)
|
22
22
|
second = Pathname.new(path)
|
23
|
-
|
24
|
-
result
|
23
|
+
second.relative_path_from(first).to_s
|
25
24
|
else
|
26
25
|
@path.gsub(%r{^/}, "")
|
27
26
|
end
|
data/lib/workspace/file.rb
CHANGED
@@ -51,8 +51,7 @@ module Workspace
|
|
51
51
|
relative_dir = relative_dir.dir if relative_dir.class == Workspace::File
|
52
52
|
first = Pathname.new(relative_dir.path)
|
53
53
|
second = Pathname.new(path)
|
54
|
-
|
55
|
-
result
|
54
|
+
second.relative_path_from(first).to_s
|
56
55
|
else
|
57
56
|
@path.gsub(%r{^/}, "")
|
58
57
|
end
|
data/lib/workspace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,17 +136,16 @@ require_paths:
|
|
136
136
|
- lib
|
137
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- - "
|
139
|
+
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: '2.
|
141
|
+
version: '2.4'
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- - "
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
146
|
+
version: '0'
|
147
147
|
requirements: []
|
148
|
-
|
149
|
-
rubygems_version: 2.5.2
|
148
|
+
rubygems_version: 3.1.2
|
150
149
|
signing_key:
|
151
150
|
specification_version: 4
|
152
151
|
summary: Simplified Files and Directories handling
|