wash 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0c229c4c749d26525382c4c26255044308b763335b4d2d6d2ea8aa3495fb9b9
4
- data.tar.gz: f60ba8213ec625de9ee9961db8bccc92c85af8a30fd916056d69809446fb1987
3
+ metadata.gz: b87c836762091e36c54cfb1fc4873db4daddd3ae7d384e1a37cf7cfe5b67698d
4
+ data.tar.gz: a597868aaeee769935af33d6512c6a827114c1d20955a835f1947162909152c1
5
5
  SHA512:
6
- metadata.gz: 95ffb1adfde494f374e7dc76d02b68074ed120505e224da3667a80f9f15cc188b72fa158094a0f6dd755116a6964b396c8a65b0c67888ca4bc50603cd9f9f629
7
- data.tar.gz: 6cd43ebb0dd830c14e8bf079e33dedd65fc2c25ccb6488b00073e5cf783f9b178f52992a04ae3773ed873fb5743a31774a9a2c1e642f6ae2a95190d53749ff96
6
+ metadata.gz: 4306cb5878a58478fbdd2b56fbcff026772f3e88307d1a361a698c6230741ce94f1f5499e7e7a6c42c6894f5cb9842983c0083e7ffb15f1f8be1bd83ef71d011
7
+ data.tar.gz: 2d4003b4a969f6a122fe7210b2798723b5d94c1963da4b8fa3006669c16004622d0cb9d025856c29b83bf07260fe89c56c9a077c2c895cf60e50876c9e0e12c4
@@ -29,10 +29,13 @@ module Wash
29
29
  private_class_method :method
30
30
 
31
31
  method(:list)
32
- method(:read)
33
32
  method(:metadata)
34
33
  method(:schema)
35
34
 
35
+ method(:read) do |entry, _|
36
+ STDOUT.print(entry.read)
37
+ end
38
+
36
39
  method(:exec) do |entry, *args|
37
40
  opts, cmd, args = Wash.send(:parse_json, args[0]), args[1], args[2..-1]
38
41
  if opts[:stdin]
@@ -17,7 +17,7 @@ module Wash
17
17
  puts("200")
18
18
  @first_chunk = false
19
19
  end
20
- print(chunk)
20
+ STDOUT.print(chunk)
21
21
  STDOUT.flush
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for building Wash external plugins
14
14
  email:
@@ -40,7 +40,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubygems_version: 3.0.3
43
+ rubyforge_project:
44
+ rubygems_version: 2.7.10
44
45
  signing_key:
45
46
  specification_version: 4
46
47
  summary: A library for building Wash external plugins