rspec_api_documentation-open_api 0.2.8 → 0.3

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: 95553a6c8288c8818a3c5f5569d280997cc627d8cd3959f9f5dfa1909d40b8bb
4
- data.tar.gz: a547745dfc569d785bcbbdec1e8a133c8b48f722e328bc22fe0735c595d62f17
3
+ metadata.gz: 3c66175610afed0eca49004505d516f26a383e7eadcb1c3bf7c8f403d618e7f4
4
+ data.tar.gz: ab0bce8839245d60d7932566f125d5dfecd63a2640dcf2ffcc32ce36f8152524
5
5
  SHA512:
6
- metadata.gz: 368105dbd3fffab68b062807219a69f70ec0badc08184d6c6673a5adf9f2da79ab8389416239979d50f79889ff55bf013249c5061b5efcd6917fdab7d0aa7827
7
- data.tar.gz: 6d24c95621cd081f1dbb6915e3e97d9256b3e28f4dc6a99e71336009c3945c25141bc7f6a5a4add281b7532fcb2739b0e64c5e37f576b04a9b52a3301af20c80
6
+ metadata.gz: 176d6c576ab36496d54fe59fbb2ab0abe237e16c5dad8ee5fc9b3d1b04585c182c239854b8c2ecadd6b45d0aef0d61eb96ce5a9cb0b34308ce6d096a1054b853
7
+ data.tar.gz: 2c08f46097a4c991d053f8981294654678c07c067d33e5d77db12be557cb7d253e64634a4217d92cb01f273d4122b8f299c432f8d5a55479be8e5b6382bc6db1
@@ -4,7 +4,7 @@ require "rspec_api_documentation/open_api/version"
4
4
  module RspecApiDocumentation
5
5
  module Writers
6
6
  extend ActiveSupport::Autoload
7
- RspecApiDocumentation::Configuration.add_setting :open_api, default: {}
7
+ RspecApiDocumentation::Configuration.add_setting :open_api, default: nil
8
8
 
9
9
  autoload :OpenApiWriter
10
10
  autoload :OpenApiJsonWriter
@@ -1,5 +1,5 @@
1
1
  module RspecApiDocumentation
2
2
  module OpenApi
3
- VERSION = "0.2.8".freeze
3
+ VERSION = "0.3".freeze
4
4
  end
5
5
  end
@@ -260,26 +260,26 @@ module RspecApiDocumentation
260
260
  end
261
261
 
262
262
  def defined_configs
263
- RspecApiDocumentation.configuration.open_api
263
+ configuration.open_api
264
264
  end
265
265
 
266
266
  def default_configs
267
267
  {
268
268
  info: {
269
- "version" => "1.0.0",
270
- "title" => "Open API",
271
- "description" => "Open API",
272
- "contact" => {
273
- "name" => "OpenAPI"
269
+ version: "1.0.0",
270
+ title: "Open API",
271
+ description: "Open API",
272
+ contact: {
273
+ name: "OpenAPI"
274
274
  }
275
275
  },
276
276
  servers: [
277
277
  {
278
- "url" => "http://localhost:{port}",
279
- "description" => "Development server",
280
- "variables" => {
281
- "port" => {
282
- "default" => "3000"
278
+ url: "http://localhost:{port}",
279
+ description: "Development server",
280
+ variables: {
281
+ port: {
282
+ default: "3000"
283
283
  }
284
284
  }
285
285
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_api_documentation-open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaditya Taparia