rspec-autoswagger 0.5.2 → 0.5.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
  SHA1:
3
- metadata.gz: b9d5f5643f94fa0e6aebb1b1ff6ba745020456f2
4
- data.tar.gz: 95974bc139596ef26bc622d2bfd1d008ea828954
3
+ metadata.gz: ca69404faef7c49b734cdb57d59c69b4bb2eb293
4
+ data.tar.gz: 458e1e0583054f79c5ba35b4a443b71c58cabaad
5
5
  SHA512:
6
- metadata.gz: 9d561cdbdc91955faff6a7cc32c8396dccbd83025c00d058d5e07cdf6780f6c2f5e939fe039b76d525c74fa107aa6d7af20ad4895745b9ca926b993cb48dd3d7
7
- data.tar.gz: ebc059b8eaf7c4dfe7c8c183b5167671a546aa9aeb4fdc05f44f5a4560590174eb0fcb984eba34f8909f810c0de79e9b695b5e2a52a2dbddd72d915bd98d9f38
6
+ metadata.gz: 1f3c5a0fd3e280c186e6f02dc7f613646b68908854b54c805cd7df6be21d203eaec9f6b60ba3da66a285c17976b0263f6db067d8a12f350be8cdce5147e382d9
7
+ data.tar.gz: 5a7c3e913a186ac4fef9c9255a5891b873c7b4caf176e43fc7fd95ac124c35502df0309895619d5bb1c20bf70b877ad649c4d445ffbfde04a7af487d5518b177
@@ -19,17 +19,17 @@ module Rspec
19
19
  status = rspec_core_obj.response.status.to_s
20
20
  if status == '200'
21
21
  path = example.full_description[%r<(GET|POST|PATCH|PUT|DELETE) ([^ ]+)>, 2]
22
- path = if path.blank?
23
- path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
24
- get_converted_path(path)
25
- end
22
+ if path.blank?
23
+ path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
24
+ path = get_converted_path(path)
25
+ end
26
26
  path.gsub(/\/|:/, '').camelize
27
27
  else
28
28
  path = example.full_description[%r<(GET|POST|PATCH|PUT|DELETE) ([^ ]+)>, 2]
29
- path = if path.blank?
30
- path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
31
- get_converted_path(path)
32
- end
29
+ if path.blank?
30
+ path = request.path.gsub(Rspec::Autoswagger::API_BASE_PATH, '')
31
+ path = get_converted_path(path)
32
+ end
33
33
  path.gsub(/\/|:/, '').camelize + '_' + status
34
34
  end
35
35
  end
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Autoswagger
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
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.2
4
+ version: 0.5.3
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-14 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: swagger_model