workspace 1.0.12 → 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: 3a456bdfb49c4fc6fe89202a7620e88e7939c01a
4
- data.tar.gz: 5204aacdc33a81eb7a734dec0b260337cdd77ce3
2
+ SHA256:
3
+ metadata.gz: 57315b75c4adc89dfa1d153db7bc56134481ec18699a0398be5328d526383c5e
4
+ data.tar.gz: c089653e782fcffb5437735ab6fc3659f3a8ff8330fb5b7352dda468330b50cd
5
5
  SHA512:
6
- metadata.gz: 52599412b50549c411abc60ecfe9bfc5606ced8dc445afc5aa6ae4d433c1d7cde4fedca9165333b23384eb2d7b3973933e789c2219a0e2454e48755a37fb4c46
7
- data.tar.gz: 02df6f7fb76189c7628c1175fd67634b38ce156411cf07bfbf08eefc7e9a6647a9b634766de7b0e178282a871da6911451bd93f43970e4426c9da489d6c689ff
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
@@ -14,7 +14,11 @@ module Workspace
14
14
  end
15
15
 
16
16
  def name
17
- "#{basename}.#{extension}"
17
+ if extension.nil? || extension.empty?
18
+ basename
19
+ else
20
+ "#{basename}.#{extension}"
21
+ end
18
22
  end
19
23
 
20
24
  def basename
@@ -47,8 +51,7 @@ module Workspace
47
51
  relative_dir = relative_dir.dir if relative_dir.class == Workspace::File
48
52
  first = Pathname.new(relative_dir.path)
49
53
  second = Pathname.new(path)
50
- result = second.relative_path_from(first).to_s
51
- result
54
+ second.relative_path_from(first).to_s
52
55
  else
53
56
  @path.gsub(%r{^/}, "")
54
57
  end
@@ -1,3 +1,3 @@
1
1
  module Workspace
2
- VERSION = "1.0.12"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,105 +1,105 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
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: 2018-06-29 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.3.0
20
17
  - - "<"
21
18
  - !ruby/object:Gem::Version
22
- version: '2.0'
19
+ version: 3.0.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.12.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 1.3.0
30
27
  - - "<"
31
28
  - !ruby/object:Gem::Version
32
- version: '2.0'
29
+ version: 3.0.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.12.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: mime-types
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.1'
39
+ version: '3.2'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.1'
46
+ version: '3.2'
47
47
  - !ruby/object:Gem::Dependency
48
- name: rspec
48
+ name: pry
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.6'
53
+ version: '0.12'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.6'
60
+ version: '0.12'
61
61
  - !ruby/object:Gem::Dependency
62
- name: pry
62
+ name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.10'
67
+ version: '3.8'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.10'
74
+ version: '3.8'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rubocop
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.49'
81
+ version: '0.69'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0.49'
88
+ version: '0.69'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: simplecov
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0.10'
95
+ version: '0.16'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '0.10'
102
+ version: '0.16'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov-console
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -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.0'
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.6.10
148
+ rubygems_version: 3.1.2
150
149
  signing_key:
151
150
  specification_version: 4
152
151
  summary: Simplified Files and Directories handling