pe-razor-client 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,21 +4,24 @@ module Razor::CLI
4
4
  class HideColumnError < RuntimeError; end
5
5
  class Document
6
6
  extend Forwardable
7
- attr_reader 'spec', 'items', 'format_view', 'original_items'
7
+ attr_reader 'spec', 'type', 'items', 'format_view', 'original_items',
8
+ 'command'
8
9
  def initialize(doc, format_type)
9
- if doc['spec'].is_a?(Array)
10
- @spec, @remaining_navigation = doc['spec']
11
- else
12
- @spec = doc['spec']
13
- end
14
- @command = doc['command']
15
- if doc.has_key?('items')
16
- @type = :list
17
- else
18
- @type = :single
10
+ @type = :single
11
+ if doc.is_a?(Hash)
12
+ if doc['+spec'].is_a?(Array)
13
+ @spec, remaining_navigation = doc['+spec']
14
+ else
15
+ @spec = doc['spec']
16
+ end
17
+ @command = doc['command']
18
+ if doc.has_key?('items')
19
+ @type = :list
20
+ @items = doc['items']
21
+ end
19
22
  end
20
- @items = doc['items'] || Array[doc]
21
- @format_view = Razor::CLI::Views.find_formatting(@spec, format_type, @remaining_navigation)
23
+ @items ||= Array[doc]
24
+ @format_view = Razor::CLI::Views.find_formatting(@spec, format_type, remaining_navigation)
22
25
 
23
26
  # Untransformed and unordered for displaying nested views.
24
27
  @original_items = @items
@@ -50,7 +50,7 @@ module Razor::CLI
50
50
  # We assume that all collections are homogenous
51
51
  def format_objects(objects, indent = 0)
52
52
  objects.map do |obj|
53
- obj.is_a?(Hash) ? format_object(obj, indent) : ' '*indent + obj.inspect
53
+ obj.is_a?(Hash) ? format_object(obj, indent) : ' '*indent + obj.to_s
54
54
  end.join "\n\n"
55
55
  end
56
56
 
@@ -143,7 +143,7 @@ module Razor::CLI
143
143
  else
144
144
  case f
145
145
  when "spec" then "\"#{Format.spec_name(value)}\""
146
- else value.inspect
146
+ else value.to_s # Could be `false` or `nil` possibly
147
147
  end
148
148
  end
149
149
  end.join "\n"
@@ -113,11 +113,11 @@ module Razor::CLI
113
113
  obj = @doc.find {|x| x.is_a?(Hash) and x["name"] == key }
114
114
  elsif @doc.is_a?(Hash) && @doc['items'].is_a?(Array)
115
115
  obj = @doc['items'].find {|x| x.is_a?(Hash) and x["name"] == key }
116
- elsif @doc.is_a? Hash
116
+ elsif @doc.is_a?(Hash)
117
117
  obj = @doc[key]
118
118
  end
119
119
 
120
- raise NavigationError.new(@doc_resource, key, @doc) unless obj
120
+ raise NavigationError.new(@doc_resource, key, @doc) if obj.nil?
121
121
 
122
122
  if obj.is_a?(Hash) && obj["id"]
123
123
  url = URI.parse(obj["id"])
@@ -125,26 +125,22 @@ module Razor::CLI
125
125
  @doc = json_get(url, {}, params)
126
126
  elsif obj.is_a?(Hash) && obj['spec']
127
127
  @doc = obj
128
- elsif obj.is_a?(Hash)
129
- # No spec string; use parent's and remember extra navigation.
128
+ elsif obj.is_a?(Hash) || obj.is_a?(Array)
129
+ # We have reached a data structure that doesn't have a spec string!
130
+ # This means we should use the parent's string and keep track of which
131
+ # extra navigation is needed, so we can still format the data
132
+ # accordingly.
130
133
  if @doc['+spec'].is_a?(Array)
131
134
  # Something's been added.
132
135
  @doc['+spec'] << key
133
136
  elsif @doc['+spec'].nil? || @doc['+spec'].is_a?(String)
134
137
  @doc['+spec'] = [@doc['spec'], key]
135
138
  end
136
- @doc = obj.merge({'+spec' => @doc['+spec']})
137
- elsif obj.is_a?(Array)
138
- # No spec string; use parent's and remember extra navigation.
139
- if @doc['+spec'].is_a?(Array)
140
- # Something's already been added.
141
- @doc['+spec'] << key
142
- elsif @doc['+spec'].nil? || @doc['+spec'].is_a?(String)
143
- @doc['+spec'] = [@doc['spec'], key]
144
- end
145
- @doc = {'+spec' => @doc['+spec'], 'items' => obj}
139
+ @doc = obj.merge({'+spec' => @doc['+spec']}) if obj.is_a?(Hash)
140
+ @doc = {'+spec' => @doc['+spec'], 'items' => obj} if obj.is_a?(Array)
141
+ @doc
146
142
  else
147
- @doc = nil
143
+ @doc = obj
148
144
  end
149
145
  end
150
146
 
@@ -18,7 +18,7 @@ module Razor
18
18
  #
19
19
  # The next line is the one that our packaging tools modify, so please make
20
20
  # sure that any change to it is discussed and agreed first.
21
- version = '1.2.0'
21
+ version = '1.3.0'
22
22
 
23
23
  if version == "DEVELOPMENT"
24
24
  root = File.expand_path("../../..", File.dirname(__FILE__))
@@ -1,6 +1,9 @@
1
1
  module Razor::CLI
2
2
  module Views
3
3
  module_function
4
+ def views= v
5
+ @views = v
6
+ end
4
7
  def views
5
8
  @views ||= YAML::load_file(File::join(File::dirname(__FILE__), "views.yaml"))
6
9
  end
@@ -78,7 +78,6 @@ collections:
78
78
  +short:
79
79
  +layout: table
80
80
  +show:
81
- name:
82
81
  timestamp:
83
82
  severity:
84
83
  event:
@@ -253,3 +252,6 @@ collections:
253
252
  name:
254
253
  hook_type:
255
254
  configuration:
255
+ config:
256
+ +short:
257
+ +layout: table
@@ -0,0 +1,46 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # Needed to make the client work on Ruby 1.8.7
3
+ unless Kernel.respond_to?(:require_relative)
4
+ module Kernel
5
+ def require_relative(path)
6
+ require File.join(File.dirname(caller[0]), path.to_str)
7
+ end
8
+ end
9
+ end
10
+
11
+ require_relative '../spec_helper'
12
+
13
+ describe Razor::CLI::Document do
14
+ def document(doc, format_type)
15
+ Razor::CLI::Document.new(doc, format_type)
16
+ end
17
+ def check_doc(reality, expectation)
18
+ [:spec, :items, :type, :format_view, :command].each do |prop|
19
+ reality.public_send(prop).should == expectation[prop] if expectation[prop]
20
+ end
21
+ end
22
+ describe "#new" do
23
+ it "creates a blank document successfully" do
24
+ doc = document({}, 'short')
25
+ check_doc(doc, items: [{}], type: :single)
26
+ end
27
+ it "creates a normal document successfully" do
28
+ doc = document({'spec' => 'some/path', 'abc' => 'def'}, 'short')
29
+ check_doc(doc, type: :single, spec: 'some/path')
30
+ end
31
+ it "includes the command if supplied" do
32
+ doc = document({'spec' => 'some/path', 'abc' => 'def', 'command' => 123}, 'short')
33
+ check_doc(doc, type: :single, spec: 'some/path', command: 123)
34
+ end
35
+ it "finds formatting based on the spec string" do
36
+ Razor::CLI::Views.views = {'collections' => {'item' => {'+short' => {'+layout' => 'list'}}}}
37
+ doc = document({'spec' => '/collections/item', 'abc' => 'def'}, 'short')
38
+ check_doc(doc, type: :single, spec: '/collections/item', format_view: {'+layout' => 'list'})
39
+ end
40
+ it "finds formatting based on the spec array" do
41
+ Razor::CLI::Views.views = {'collections' => {'more' => {'scoping' => {'+short' => {'+layout' => 'list'}}}}}
42
+ doc = document({'+spec' => ['/collections/more', 'scoping'], 'abc' => 'def'}, 'short')
43
+ check_doc(doc, type: :single, spec: '/collections/more', format_view: {'+layout' => 'list'})
44
+ end
45
+ end
46
+ end
@@ -42,11 +42,6 @@ describe Razor::CLI::Format do
42
42
  result = format doc
43
43
  result.should_not =~ /Query additional details/
44
44
  end
45
- it "hides array spec array from additional details" do
46
- doc = {'abc' => [], 'spec' => ['def', 'jkl']}
47
- result = format doc
48
- result.should =~ /Query additional details via: `razor something else \[abc\]`\z/
49
- end
50
45
  it "hides array +spec array from additional details" do
51
46
  doc = {'abc' => [], '+spec' => ['def', 'jkl']}
52
47
  result = format doc
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pe-razor-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Puppet Labs
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
12
+ date: 2017-03-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: mime-types
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - <
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - <
25
28
  - !ruby/object:Gem::Version
@@ -27,20 +30,23 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: multi_json
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rest-client
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - <
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - <
53
60
  - !ruby/object:Gem::Version
@@ -55,25 +62,34 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: command_line_reporter
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>'
67
+ - - ! '>'
60
68
  - !ruby/object:Gem::Version
61
69
  version: '3.0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>'
75
+ - - ! '>'
67
76
  - !ruby/object:Gem::Version
68
77
  version: '3.0'
69
- description: |
70
- Razor is an advanced provisioning application which can deploy both bare-metal
71
- and virtual systems. It's aimed at solving the problem of how to bring new
78
+ description: ! 'Razor is an advanced provisioning application which can deploy both
79
+ bare-metal
80
+
81
+ and virtual systems. It''s aimed at solving the problem of how to bring new
82
+
72
83
  metal into a state where your existing DevOps/configuration management
84
+
73
85
  workflows can take it over.
74
86
 
87
+
75
88
  This provides the client application gem, used to provide CLI access and control
89
+
76
90
  to users of razor-server.
91
+
92
+ '
77
93
  email: info@puppetlabs.com
78
94
  executables:
79
95
  - razor
@@ -81,123 +97,126 @@ extensions: []
81
97
  extra_rdoc_files: []
82
98
  files:
83
99
  - bin/razor
84
- - lib/razor/cli.rb
100
+ - lib/razor.rb
101
+ - lib/razor/cli/version.rb
85
102
  - lib/razor/cli/command.rb
86
- - lib/razor/cli/document.rb
87
- - lib/razor/cli/format.rb
88
- - lib/razor/cli/navigate.rb
89
103
  - lib/razor/cli/parse.rb
90
- - lib/razor/cli/query.rb
91
- - lib/razor/cli/table_format.rb
92
104
  - lib/razor/cli/transforms.rb
93
- - lib/razor/cli/version.rb
94
- - lib/razor/cli/views.rb
105
+ - lib/razor/cli/navigate.rb
106
+ - lib/razor/cli/document.rb
107
+ - lib/razor/cli/table_format.rb
108
+ - lib/razor/cli/query.rb
95
109
  - lib/razor/cli/views.yaml
96
- - lib/razor.rb
110
+ - lib/razor/cli/views.rb
111
+ - lib/razor/cli/format.rb
112
+ - lib/razor/cli.rb
97
113
  - NEWS.md
98
114
  - README.md
99
115
  - LICENSE
100
- - spec/cli/command_spec.rb
101
- - spec/cli/format_spec.rb
116
+ - spec/testing.md
102
117
  - spec/cli/navigate_spec.rb
118
+ - spec/cli/command_spec.rb
119
+ - spec/cli/document_spec.rb
103
120
  - spec/cli/parse_spec.rb
104
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml
105
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml
106
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml
107
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml
108
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml
109
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml
110
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml
111
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml
112
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml
113
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml
114
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml
115
- - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml
116
- - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml
117
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml
121
+ - spec/cli/format_spec.rb
122
+ - spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml
123
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml
118
124
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_supply_that_to_the_API_service.yml
119
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml
120
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml
121
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml
122
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml
123
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml
125
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml
126
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml
124
127
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object.yml
125
128
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object_with_unicode.yml
126
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml
127
129
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_hash_then_array_.yml
128
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml
129
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml
130
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml
131
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml
132
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml
133
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml
134
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml
135
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml
136
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml
137
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml
138
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml
139
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml
140
+ - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml
141
+ - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml
130
142
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_start.yml
143
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml
144
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml
131
145
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_not_fail_when_query_returns_details_for_one_item.yml
132
146
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_store_query_without_query_parameters.yml
133
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml
134
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml
135
- - spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml
136
- - spec/spec_helper.rb
137
- - spec/testing.md
147
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml
148
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml
149
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml
150
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml
151
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml
152
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml
153
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml
138
154
  - spec/vcr_library.rb
139
155
  - spec/version_spec.rb
156
+ - spec/spec_helper.rb
140
157
  homepage: http://puppetlabs.com/puppet/puppet-enterprise
141
158
  licenses: []
142
- metadata: {}
143
159
  post_install_message:
144
160
  rdoc_options: []
145
161
  require_paths:
146
162
  - lib
147
163
  required_ruby_version: !ruby/object:Gem::Requirement
164
+ none: false
148
165
  requirements:
149
- - - '>='
166
+ - - ! '>='
150
167
  - !ruby/object:Gem::Version
151
168
  version: '0'
152
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
+ none: false
153
171
  requirements:
154
- - - '>='
172
+ - - ! '>='
155
173
  - !ruby/object:Gem::Version
156
174
  version: '0'
157
175
  requirements: []
158
176
  rubyforge_project:
159
- rubygems_version: 2.0.14
177
+ rubygems_version: 1.8.23
160
178
  signing_key:
161
- specification_version: 4
179
+ specification_version: 3
162
180
  summary: Razor is an advanced provisioning application
163
181
  test_files:
164
- - spec/cli/command_spec.rb
165
- - spec/cli/format_spec.rb
182
+ - spec/testing.md
166
183
  - spec/cli/navigate_spec.rb
184
+ - spec/cli/command_spec.rb
185
+ - spec/cli/document_spec.rb
167
186
  - spec/cli/parse_spec.rb
168
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml
169
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml
170
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml
171
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml
172
- - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml
173
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml
174
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml
175
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml
176
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml
177
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml
178
- - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml
179
- - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml
180
- - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml
181
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml
187
+ - spec/cli/format_spec.rb
188
+ - spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml
189
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml
182
190
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_supply_that_to_the_API_service.yml
183
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml
184
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml
185
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml
186
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml
187
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml
191
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml
192
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml
188
193
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object.yml
189
194
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object_with_unicode.yml
190
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml
191
195
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_hash_then_array_.yml
192
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml
193
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml
196
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml
197
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml
198
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml
199
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml
200
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml
201
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml
202
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml
203
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml
204
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml
205
+ - spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml
206
+ - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml
207
+ - spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml
194
208
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_start.yml
209
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml
210
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml
195
211
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_not_fail_when_query_returns_details_for_one_item.yml
196
212
  - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_store_query_without_query_parameters.yml
197
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml
198
- - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml
199
- - spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml
200
- - spec/spec_helper.rb
201
- - spec/testing.md
213
+ - spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml
214
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml
215
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml
216
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml
217
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml
218
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml
219
+ - spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml
202
220
  - spec/vcr_library.rb
203
221
  - spec/version_spec.rb
222
+ - spec/spec_helper.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fe070f4bc93ec0248752bc35b80c29e24df6461a
4
- data.tar.gz: 8f0a33e1f9b6e5a29421c6e1fd52055affd1c1f0
5
- SHA512:
6
- metadata.gz: 80e55e7decd173351ffbf41a45bad53f2a2c60e3b7d75a03a974dabc100bddf6117dbaf92d7e844022027ec98f0f1e2bc9f248142254bae716b40c071b214b5c
7
- data.tar.gz: 53be116318939b11783b775ddbb1849ea291f06d55aada79d6a7cbea64c587f240eddf09ae9a6e2af968a0bd6dfa6075d1bdfb622f8e1ac5280f931acb5afec9