Skip to content

Commit d174718

Browse files
committed
Bump json_pure and fix rubocop errors
- not clear why bumping json_pure to 2.8.1 resolved `NameError: uninitialized constant JSON::Fragment (NameError)` besides the fact that the error was in json_pure 2.7.6
1 parent 8bb977e commit d174718

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ GEM
276276
json-schema (5.1.1)
277277
addressable (~> 2.8)
278278
bigdecimal (~> 3.1)
279-
json_pure (2.7.6)
279+
json_pure (2.8.1)
280280
jwt (2.8.1)
281281
base64
282282
kramdown (2.5.1)

spec/acceptance/service_broker_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def build_service(attrs={})
404404
end
405405

406406
context "of type #{test[:type]} and action #{schema_action} has a valid schema" do
407-
let(:schema) { { (test[:type]).to_s => { schema_action => { 'parameters' => { '$schema': 'http://json-schema.org/draft-04/schema#', type: 'object' } } } } }
407+
let(:schema) { { test[:type].to_s => { schema_action => { 'parameters' => { '$schema': 'http://json-schema.org/draft-04/schema#', type: 'object' } } } } }
408408

409409
before do
410410
stub_catalog_fetch(200, default_catalog(plan_schemas: schema))
@@ -424,8 +424,8 @@ def build_service(attrs={})
424424

425425
context "of type #{test[:type]} and action #{schema_action} is not a JSON object" do
426426
{
427-
"#{test[:type]}.#{schema_action}": { (test[:type]).to_s => { schema_action => true } },
428-
"#{test[:type]}.#{schema_action}.parameters": { (test[:type]).to_s => { schema_action => { 'parameters' => true } } }
427+
"#{test[:type]}.#{schema_action}": { test[:type].to_s => { schema_action => true } },
428+
"#{test[:type]}.#{schema_action}.parameters": { test[:type].to_s => { schema_action => { 'parameters' => true } } }
429429
}.each do |path, schema|
430430
context "operator receives an error about #{path} #{schema}" do
431431
before do
@@ -456,7 +456,7 @@ def build_service(attrs={})
456456

457457
context "of type #{test[:type]} and action #{schema_action} does not conform to JSON Schema Draft 04 (experimental support for later versions)" do
458458
let(:path) { "#{test[:type]}.#{schema_action}.parameters" }
459-
let(:schema) { { (test[:type]).to_s => { schema_action => { 'parameters' => { '$schema': 'http://json-schema.org/draft-04/schema#', properties: true } } } } }
459+
let(:schema) { { test[:type].to_s => { schema_action => { 'parameters' => { '$schema': 'http://json-schema.org/draft-04/schema#', properties: true } } } } }
460460

461461
before do
462462
stub_catalog_fetch(200, default_catalog(plan_schemas: schema))
@@ -487,7 +487,7 @@ def build_service(attrs={})
487487
let(:path) { "#{test[:type]}.#{schema_action}.parameters" }
488488
let(:schema) do
489489
{
490-
(test[:type]).to_s => {
490+
test[:type].to_s => {
491491
schema_action => {
492492
'parameters' => {
493493
'$schema': 'http://json-schema.org/draft-04/schema#',
@@ -528,7 +528,7 @@ def build_service(attrs={})
528528

529529
context "of type #{test[:type]} and action #{schema_action} has an external schema" do
530530
let(:path) { "#{test[:type]}.#{schema_action}.parameters" }
531-
let(:schema) { { (test[:type]).to_s => { schema_action => { 'parameters' => { '$schema': 'http://example.com/schema', type: 'object' } } } } }
531+
let(:schema) { { test[:type].to_s => { schema_action => { 'parameters' => { '$schema': 'http://example.com/schema', type: 'object' } } } } }
532532

533533
before do
534534
stub_catalog_fetch(200, default_catalog(plan_schemas: schema))
@@ -558,7 +558,7 @@ def build_service(attrs={})
558558
let(:path) { "#{test[:type]}.#{schema_action}.parameters" }
559559
let(:schema) do
560560
{
561-
(test[:type]).to_s => {
561+
test[:type].to_s => {
562562
schema_action => {
563563
'parameters' => {
564564
'$schema': 'http://json-schema.org/draft-04/schema#',
@@ -595,7 +595,7 @@ def build_service(attrs={})
595595

596596
context "of type #{test[:type]} and action #{schema_action} has no $schema" do
597597
let(:path) { "#{test[:type]}.#{schema_action}.parameters" }
598-
let(:schema) { { (test[:type]).to_s => { schema_action => { 'parameters' => { type: 'object' } } } } }
598+
let(:schema) { { test[:type].to_s => { schema_action => { 'parameters' => { type: 'object' } } } } }
599599

600600
before do
601601
stub_catalog_fetch(200, default_catalog(plan_schemas: schema))

0 commit comments

Comments
 (0)