workspace 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/workspace/file.rb +8 -0
- data/lib/workspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a456bdfb49c4fc6fe89202a7620e88e7939c01a
|
4
|
+
data.tar.gz: 5204aacdc33a81eb7a734dec0b260337cdd77ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52599412b50549c411abc60ecfe9bfc5606ced8dc445afc5aa6ae4d433c1d7cde4fedca9165333b23384eb2d7b3973933e789c2219a0e2454e48755a37fb4c46
|
7
|
+
data.tar.gz: 02df6f7fb76189c7628c1175fd67634b38ce156411cf07bfbf08eefc7e9a6647a9b634766de7b0e178282a871da6911451bd93f43970e4426c9da489d6c689ff
|
data/lib/workspace/file.rb
CHANGED
@@ -34,6 +34,14 @@ module Workspace
|
|
34
34
|
::File.size(to_s)
|
35
35
|
end
|
36
36
|
|
37
|
+
def align_encoding!
|
38
|
+
match = self.dir.files.find do |f|
|
39
|
+
f.name.mb_chars.normalize.to_s == self.name.mb_chars.normalize.to_s
|
40
|
+
end
|
41
|
+
self.path = match.path if match
|
42
|
+
self
|
43
|
+
end
|
44
|
+
|
37
45
|
def relative_path(relative_dir = nil)
|
38
46
|
if relative_dir
|
39
47
|
relative_dir = relative_dir.dir if relative_dir.class == Workspace::File
|
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: 1.0.
|
4
|
+
version: 1.0.12
|
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-
|
11
|
+
date: 2018-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|