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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b873323443d42b8d6dc090f4f63e4bfe09a02a5
4
- data.tar.gz: 7167e56bdb72a91961c7fbde8db7afbfaeccbea4
3
+ metadata.gz: 3a456bdfb49c4fc6fe89202a7620e88e7939c01a
4
+ data.tar.gz: 5204aacdc33a81eb7a734dec0b260337cdd77ce3
5
5
  SHA512:
6
- metadata.gz: 55ca7b69475a4cc2c2c117bdca070478e74ecf28f01496ebca3bddc21cee48bd9546737e9c6114e92f3da757ff7b5baf397a9d1384a20acbee99ef0a719de11d
7
- data.tar.gz: 25580cc36cd197fd46f7b32d29cc6acbff61bdf95d0bb5b38961d09efa52ac4a9515f00e243d472163b128d132b9bd27e47c3e64bab8afe6e9415d148b53b38f
6
+ metadata.gz: 52599412b50549c411abc60ecfe9bfc5606ced8dc445afc5aa6ae4d433c1d7cde4fedca9165333b23384eb2d7b3973933e789c2219a0e2454e48755a37fb4c46
7
+ data.tar.gz: 02df6f7fb76189c7628c1175fd67634b38ce156411cf07bfbf08eefc7e9a6647a9b634766de7b0e178282a871da6911451bd93f43970e4426c9da489d6c689ff
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Workspace
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
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.11
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-03-30 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler