rspec-rails-api 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitlab-ci.yml +1 -1
- data/.rubocop.yml +5 -5
- data/CHANGELOG.md +6 -0
- data/README.md +2 -0
- data/lib/rspec/rails/api/dsl/example.rb +4 -2
- data/lib/rspec/rails/api/dsl/example_group.rb +1 -1
- data/lib/rspec/rails/api/version.rb +1 -1
- data/rspec-rails-api.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 74591eecb7e2b200f536ca31e72097ed9921da563a87490288f536edec32f728
|
4
|
+
data.tar.gz: a5ec7199c37b2bf493eec385b3f294561acfa409c46dac9d744f1d7679a37f30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4922b2a7257f432048f37cb9d73faf8b0b15a7750760429f3f29b657d282b5e556e9b380813843574d5be116ed040bd71a91ddb2301f0d65df6f38b70981204d
|
7
|
+
data.tar.gz: b82d1c509e096f1ac04bebe56dbed7a4ed9e49a9de47b525cae0bba2355033ed61a727a17fb9691701f10dc0ba36be4c00a9b62531c2621b302910a25d200511
|
data/.gitlab-ci.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -3,19 +3,19 @@ require:
|
|
3
3
|
- rubocop-performance
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 2.
|
6
|
+
TargetRubyVersion: 2.5
|
7
7
|
Exclude:
|
8
8
|
- dummy/**/*
|
9
9
|
- vendor/bundle/**/*
|
10
10
|
|
11
|
-
|
11
|
+
Layout/LineLength:
|
12
|
+
Max: 120
|
12
13
|
Exclude:
|
13
|
-
- rspec-rails-api.gemspec
|
14
14
|
- spec/**/*_spec.rb
|
15
15
|
|
16
|
-
Metrics/
|
17
|
-
Max: 120
|
16
|
+
Metrics/BlockLength:
|
18
17
|
Exclude:
|
18
|
+
- rspec-rails-api.gemspec
|
19
19
|
- spec/**/*_spec.rb
|
20
20
|
|
21
21
|
Naming/MethodParameterName:
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
## Not released
|
5
5
|
|
6
|
+
## 0.3.0 - 2019-12-26
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
- Rails 6 support, deprecated methods from Rails 5 are not supported. Use version `0.2.3`
|
10
|
+
of this gem if your application is still on 5.
|
11
|
+
|
6
12
|
## 0.2.3 - 2019-12-04
|
7
13
|
|
8
14
|
### Improved
|
data/README.md
CHANGED
@@ -9,8 +9,10 @@ module RSpec
|
|
9
9
|
def visit(example, path_params: {}, payload: {}, headers: {}) # rubocop:disable Metrics/AbcSize
|
10
10
|
raise 'Missing context. Call visit with for_code context.' unless example
|
11
11
|
|
12
|
-
status_code
|
13
|
-
|
12
|
+
status_code = prepare_status_code example.class.description
|
13
|
+
|
14
|
+
request_params = prepare_request_params example.class.module_parent.description,
|
15
|
+
path_params, payload, headers
|
14
16
|
|
15
17
|
send(request_params[:action],
|
16
18
|
request_params[:url],
|
@@ -89,7 +89,7 @@ module RSpec
|
|
89
89
|
def document_only(status_code)
|
90
90
|
example 'Create documentation' do |example|
|
91
91
|
parent_example = example.example_group
|
92
|
-
request_params = prepare_request_params parent_example.
|
92
|
+
request_params = prepare_request_params parent_example.module_parent.description
|
93
93
|
|
94
94
|
set_request_example parent_example.metadata[:rrad], request_params, status_code
|
95
95
|
end
|
data/rspec-rails-api.gemspec
CHANGED
@@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
|
-
spec.required_ruby_version = '>= 2.
|
35
|
+
spec.required_ruby_version = '>= 2.5.0'
|
36
36
|
|
37
|
-
spec.add_development_dependency 'activesupport', '
|
37
|
+
spec.add_development_dependency 'activesupport', '~> 6.0'
|
38
38
|
spec.add_development_dependency 'bundler', '~> 1.17'
|
39
39
|
spec.add_development_dependency 'byebug'
|
40
40
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Tancoigne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.
|
173
|
+
version: 2.5.0
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
176
|
- - ">="
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.7.6
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Tests standard Rails API responses and generate doc
|