atk_toolbox 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atk/extra_file_utils.rb +4 -1
- data/lib/atk_toolbox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2171fd604110eb804bb28807e3ac05314c02320d42fb501d134a84c0fc5bf677
|
4
|
+
data.tar.gz: 8b0c575760a8a1c5ba65798f26beb5d54d79b9d5622638126721e54d419453ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a3d98b0349ac0ef78aa4bd71550b92cdb0cfb14b2013d4a5e8fef7e75f43b071bbb4d8437457fdbee59e743c697c0af429860258317e77ef9c7cbb5991d20a
|
7
|
+
data.tar.gz: 698ef6a21f7aa9b0deb65cf5a60f570a348670f82c374f9076ab73b12c0da009a62e4cc28c0a5cd120ec48e01f9442edaaa4f4fb8eeb6dc307ac2fb916e38072
|
data/lib/atk/extra_file_utils.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'etc'
|
2
|
+
require 'set'
|
3
|
+
|
2
4
|
HOME = Etc.getpwuid.dir
|
3
5
|
|
4
6
|
class String
|
@@ -14,7 +16,8 @@ def in_dir(path_to_somewhere)
|
|
14
16
|
# switch dirs
|
15
17
|
Dir.chdir(path_to_somewhere)
|
16
18
|
# do the thing
|
17
|
-
yield
|
19
|
+
output = yield
|
18
20
|
# switch back
|
19
21
|
Dir.chdir(current_dir)
|
22
|
+
return output
|
20
23
|
end
|
data/lib/atk_toolbox/version.rb
CHANGED