api_docs 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -55,7 +55,7 @@ Assuming that tests pass their details are doing to be recorded into `docs/api/u
55
55
 
56
56
  ``` yml
57
57
  show:
58
- 1YGvw8qQDy0Te4oEAxFdTEiS3eQ=:
58
+ ID-f385895c2c5265b8a84d19b9885eebe0:
59
59
  method: GET
60
60
  path: /users/:id
61
61
  params:
@@ -64,7 +64,7 @@ show:
64
64
  body:
65
65
  id: 12345
66
66
  name: John Doe
67
- YaEdGJRDZy0nsljmpJmOtcLxdUg=:
67
+ ID-3691338c8b1f567ec48e0e2ebdba2e0d:
68
68
  description: When bad user id is passed
69
69
  method: GET
70
70
  path: /users/:id
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "api_docs"
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "Jack Neto", "The Working Group Inc."]
@@ -30,7 +30,7 @@ module ApiDocs::TestHelper
30
30
  body = JSON.parse(response.body)
31
31
 
32
32
  # Marking response as an unique
33
- key = Digest::MD5.hexdigest("
33
+ key = 'ID-' + Digest::MD5.hexdigest("
34
34
  #{method}#{path}#{params}#{response.status}#{api_deep_clean_params(body, :as_response)}
35
35
  ")
36
36
 
@@ -63,6 +63,8 @@ class TestHelperTest < ActionDispatch::IntegrationTest
63
63
  assert output['show'].present?
64
64
  assert_equal 2, output['show'].keys.size
65
65
 
66
+ assert_equal 'ID-', output['show'].keys.first[0..2]
67
+
66
68
  object = output['show'][output['show'].keys.first]
67
69
  assert_equal 'GET', object['method']
68
70
  assert_equal '/users/:id', object['path']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -4604904885592750736
146
+ hash: 4166833951884593024
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements: