rspec-autoswagger 0.5.3 → 0.5.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
  SHA1:
3
- metadata.gz: ca69404faef7c49b734cdb57d59c69b4bb2eb293
4
- data.tar.gz: 458e1e0583054f79c5ba35b4a443b71c58cabaad
3
+ metadata.gz: 769491f1a0d55da2165603b0eac47c712298a2ab
4
+ data.tar.gz: 81c026f2cf9ae1417ebb8a13073118f6e622c9c9
5
5
  SHA512:
6
- metadata.gz: 1f3c5a0fd3e280c186e6f02dc7f613646b68908854b54c805cd7df6be21d203eaec9f6b60ba3da66a285c17976b0263f6db067d8a12f350be8cdce5147e382d9
7
- data.tar.gz: 5a7c3e913a186ac4fef9c9255a5891b873c7b4caf176e43fc7fd95ac124c35502df0309895619d5bb1c20bf70b877ad649c4d445ffbfde04a7af487d5518b177
6
+ metadata.gz: d2e0bed8fa9b7f3c4281bd994a96bfedd4a2501dc8eebfd6a81c769b0e45ed67147eb690d4f5345d472dc680f07e9a2c11e8b44733e7494e70d3e505157dc4b5
7
+ data.tar.gz: 1efbb43115e0b022e0db2f7081789e1be4eef7f619825af4ac3d33c904b83bc40e48f63915ef2cc36a5dbf08e42841df82f81da84990911d6c0f1991f1f505d7
@@ -23,14 +23,22 @@ module Rspec
23
23
  path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
24
24
  path = get_converted_path(path)
25
25
  end
26
- path.gsub(/\/|:/, '').camelize
26
+ if request.method == "GET"
27
+ path.gsub(/\/|:/, '').camelize
28
+ else
29
+ path.gsub(/\/|:/, '').camelize + request.method.camelize
30
+ end
27
31
  else
28
32
  path = example.full_description[%r<(GET|POST|PATCH|PUT|DELETE) ([^ ]+)>, 2]
29
33
  if path.blank?
30
34
  path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
31
35
  path = get_converted_path(path)
32
36
  end
33
- path.gsub(/\/|:/, '').camelize + '_' + status
37
+ if request.method == "GET"
38
+ path.gsub(/\/|:/, '').camelize + status
39
+ else
40
+ path.gsub(/\/|:/, '').camelize + status + request.method.camelize
41
+ end
34
42
  end
35
43
  end
36
44
 
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Autoswagger
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-autoswagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - joooee0000
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-23 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: swagger_model