rspec-openapi 0.1.3 → 0.1.4

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: 934be20ed834fa8fa6c975eccf5c63f218b06a80136e6a50920914d4bfd867d0
4
- data.tar.gz: 4921448fe86bf5ad591cf73ab965c38667df4d37daa319d696e8c42e614dcb7a
3
+ metadata.gz: 6592834cfaeab157827636bb38312e11e49bbb109da57290585ebd8d06f0a027
4
+ data.tar.gz: 717567dede6a8966d42cd6bdbd8ec0d68c59f92015bfe08285b22bbf15743614
5
5
  SHA512:
6
- metadata.gz: d45c922230748ab26637a1865aa4cd82a201f84a314b0c18a2a9ed820c9819b17f8506bcc8dbc6e67f0b6b84ed6eb88de061d53981ef99dacdcfdf54c09dbb27
7
- data.tar.gz: 3ffb70c7167f312511febf9969e69ef8e3bc6b6757115ae3f400a46d9628475e5681e976e389011459e5a7891940fbbb62089d059b962e055e4c0306ce1a6a44
6
+ metadata.gz: 1fc45e3e2fe27cf6dc049fe079435e14459e0af479971cf6da7ad074673ab371b37bb831bbacbffc6a244fa3dca63c33c8ebc51608706da351c35f4734ce629e
7
+ data.tar.gz: 5466deae08cd7b298386fbcd7e9d399840e10144483d7a6bb93c296791666f33450e7d3628eebe41a4400f28ce7c810c57c640c9f4794374f5401ad640c9b16a
@@ -1,3 +1,8 @@
1
+ ## v0.1.4
2
+
3
+ * Avoid NoMethodError on nil Content-Type
4
+ * Include a space between controller and action in summary
5
+
1
6
  ## v0.1.3
2
7
 
3
8
  * Add `RSpec::OpenAPI.comment` configuration
data/README.md CHANGED
@@ -64,7 +64,7 @@ info:
64
64
  paths:
65
65
  "/tables":
66
66
  get:
67
- summary: tables#index
67
+ summary: 'tables #index'
68
68
  parameters:
69
69
  - name: page
70
70
  in: query
@@ -6,7 +6,7 @@ class << RSpec::OpenAPI::SchemaBuilder = Object.new
6
6
  paths: {
7
7
  normalize_path(record.path) => {
8
8
  record.method.downcase => {
9
- summary: "#{record.controller}##{record.action}",
9
+ summary: "#{record.controller} ##{record.action}",
10
10
  parameters: build_parameters(record),
11
11
  requestBody: build_request_body(record),
12
12
  responses: {
@@ -113,6 +113,6 @@ class << RSpec::OpenAPI::SchemaBuilder = Object.new
113
113
  end
114
114
 
115
115
  def normalize_content_type(content_type)
116
- content_type.sub(/;.+\z/, '')
116
+ content_type&.sub(/;.+\z/, '')
117
117
  end
118
118
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module OpenAPI
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-openapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun