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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e85d37f5d80ebe57de71b18aa760d4b4f7f738f8
4
- data.tar.gz: a54e7720e3f44957c3b72cb64c55d797cc707997
2
+ SHA256:
3
+ metadata.gz: 57315b75c4adc89dfa1d153db7bc56134481ec18699a0398be5328d526383c5e
4
+ data.tar.gz: c089653e782fcffb5437735ab6fc3659f3a8ff8330fb5b7352dda468330b50cd
5
5
  SHA512:
6
- metadata.gz: 576fc4a664e27f6a8c9b9e744936da2587d4d76e5a5c2bd0ef5bc7745b4851f1c4488ee5ac3008bb52f1dc41c8129de13c5efcd8d3f088577b4a1d309339dc55
7
- data.tar.gz: ad7582cc96cee78f4cf15db1aa14fe3156c006615fe302c9a5c43e684ecfcb9b694a90cdfe2bfcabd5504c410d1e5c20b165d388e97790e2e3e4d693dc56e13f
6
+ metadata.gz: 840c629eef26debf385f2feb54acc82842e78ca201b051c52e7ec38186678f0a38076f0584c539f1db1276b12ad2174de852a0574f6d9e4f4efcab638bed02a6
7
+ data.tar.gz: f6e11999407ee6c9d7c90eb27051fb8164e04886afa994b3cd4821dbb28d964ccf17fa173f9a8328bbcb1f1e9babcd0439830a72b171df4ff4c43c96c8b22944
@@ -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
- result = second.relative_path_from(first).to_s
24
- result
23
+ second.relative_path_from(first).to_s
25
24
  else
26
25
  @path.gsub(%r{^/}, "")
27
26
  end
@@ -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
- result = second.relative_path_from(first).to_s
55
- result
54
+ second.relative_path_from(first).to_s
56
55
  else
57
56
  @path.gsub(%r{^/}, "")
58
57
  end
@@ -1,3 +1,3 @@
1
1
  module Workspace
2
- VERSION = "1.0.16"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.0.16
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: 2019-05-18 00:00:00.000000000 Z
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.3'
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: '2.4'
146
+ version: '0'
147
147
  requirements: []
148
- rubyforge_project:
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