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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0f1234b353fd9adad0738d66e17d1ebc5926069201bc449a42d73c9fa528436
4
- data.tar.gz: fb1e1cc649db3ca5abf1748b62c32ee41cc29cefefafabda73ba8df19275c310
3
+ metadata.gz: 2171fd604110eb804bb28807e3ac05314c02320d42fb501d134a84c0fc5bf677
4
+ data.tar.gz: 8b0c575760a8a1c5ba65798f26beb5d54d79b9d5622638126721e54d419453ff
5
5
  SHA512:
6
- metadata.gz: 60e422fcdbcf3448bbdf5f24f39d70ff42279bdd4faf05907b65c52c74fc97a859bf4d382832fd21f76fe95538826eca88f3481ec36397d0ad5a16e0f6ed2551
7
- data.tar.gz: 42901faca7d5e1e31a92a69e9c07018b8377a5ed77a3ff0091c0d546596c740bfe531a586926d0409abac9a3febd24936650238c9e40022b387863b12039d46a
6
+ metadata.gz: c8a3d98b0349ac0ef78aa4bd71550b92cdb0cfb14b2013d4a5e8fef7e75f43b071bbb4d8437457fdbee59e743c697c0af429860258317e77ef9c7cbb5991d20a
7
+ data.tar.gz: 698ef6a21f7aa9b0deb65cf5a60f570a348670f82c374f9076ab73b12c0da009a62e4cc28c0a5cd120ec48e01f9442edaaa4f4fb8eeb6dc307ac2fb916e38072
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin