workspace 1.0.3 → 1.0.4

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: 031f40d31ecd42817ad0dfedd53807b777b5cfc6
4
- data.tar.gz: 1d999111913f59287850e02e453b93f74e17ecf1
3
+ metadata.gz: f60894e11ad1e8bc20f575e565c3715dc33bcf9d
4
+ data.tar.gz: cb4a66b11db83211a2950d360f15350b041ff135
5
5
  SHA512:
6
- metadata.gz: 2eee7e3e85e281093565194335e9e494823a1b7f7c04c57adeb34277f7b6ec7b0559f51ca8e8e7fb8bc6d32608d4335efb63cc0a7d4d0fd9feeef0261dba5fe1
7
- data.tar.gz: 6f3f75d9d6693e903b7ee1fbea89caf58165d1c68a7a8d6b67de1a10f3827f54ab0dcf72ba1a6ca341a2dffe341e51420d895d3c6263953bef38b05c23346cd8
6
+ metadata.gz: ff26747ab07ef6b1857203002febea60956c2c380baa282236ede07bcce9346519aa7baf247b38d067c367a7f968affc4873d1fab5abbc1e927381c78468d8e3
7
+ data.tar.gz: 3b663f7c55c9bf8354099347e4d81f8cfaf084a9dd219f4dfd9a41259761e7fb957f7035d59b06ecade01f4918496147e8d270b55389e4e29580f4fb526139f4
@@ -98,5 +98,11 @@ module Workspace
98
98
  def delete
99
99
  FileUtils.rm_f(to_s)
100
100
  end
101
+
102
+ def stream(args = "r", &block)
103
+ io = ::File.open(to_s, args)
104
+ yield io
105
+ io.close
106
+ end
101
107
  end
102
108
  end
@@ -1,3 +1,3 @@
1
1
  module Workspace
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer