onering-client 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. data/bin/onering +3 -5
  2. metadata +3 -3
@@ -16,7 +16,7 @@ require 'pp'
16
16
  include Subcommander
17
17
 
18
18
 
19
- def print_format(data, format=:yaml)
19
+ def print_format(data, format=nil)
20
20
  case format
21
21
  when :text
22
22
  if data.is_a?(Hash)
@@ -26,11 +26,9 @@ def print_format(data, format=:yaml)
26
26
  else
27
27
  puts data.to_s
28
28
  end
29
- when :yaml
30
- puts YAML.dump(data)
31
-
29
+
32
30
  else
33
- STDERR.puts "Invalid format: #{format}"
31
+ puts YAML.dump(data)
34
32
  end
35
33
  end
36
34
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gary Hetzel