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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: '078c84277a76bd17ba55a74621786e39a5fc016c'
4
- data.tar.gz: 8d9cb8744200020c3dbefb0936f56c761ac47d59
2
+ SHA256:
3
+ metadata.gz: 74591eecb7e2b200f536ca31e72097ed9921da563a87490288f536edec32f728
4
+ data.tar.gz: a5ec7199c37b2bf493eec385b3f294561acfa409c46dac9d744f1d7679a37f30
5
5
  SHA512:
6
- metadata.gz: 1831e37f21cde2aed080f9bc9f0e1b77e54a982cd7a75d8f78acdc0fd37159df82efae1d24c2fb2fa0d60566a0f753a5e1d7e03d98a89badb2aff0d8635153a4
7
- data.tar.gz: 232482ef059cc827136d4d17b23fec9fe3baa113bf9c718c8573b18f9c6493d6f8cbba6bdb61e4b36651ab401107da450859332230215d97e7daa077a7b50114
6
+ metadata.gz: 4922b2a7257f432048f37cb9d73faf8b0b15a7750760429f3f29b657d282b5e556e9b380813843574d5be116ed040bd71a91ddb2301f0d65df6f38b70981204d
7
+ data.tar.gz: b82d1c509e096f1ac04bebe56dbed7a4ed9e49a9de47b525cae0bba2355033ed61a727a17fb9691701f10dc0ba36be4c00a9b62531c2621b302910a25d200511
data/.gitlab-ci.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- image: ruby:2.4
2
+ image: ruby:2.5
3
3
 
4
4
  stages:
5
5
  - prepare
data/.rubocop.yml CHANGED
@@ -3,19 +3,19 @@ require:
3
3
  - rubocop-performance
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.3
6
+ TargetRubyVersion: 2.5
7
7
  Exclude:
8
8
  - dummy/**/*
9
9
  - vendor/bundle/**/*
10
10
 
11
- Metrics/BlockLength:
11
+ Layout/LineLength:
12
+ Max: 120
12
13
  Exclude:
13
- - rspec-rails-api.gemspec
14
14
  - spec/**/*_spec.rb
15
15
 
16
- Metrics/LineLength:
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
@@ -6,6 +6,8 @@
6
6
  **This is a work in progress** but you're welcome to help, test, submit
7
7
  issues, ...
8
8
 
9
+ **Note** For Rails 5, use version 0.2.3
10
+
9
11
  ## Installation
10
12
 
11
13
  Add this line to your application's Gemfile:
@@ -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 = prepare_status_code example.class.description
13
- request_params = prepare_request_params example.class.parent.description, path_params, payload, headers
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.parent.description
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
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Rails
5
5
  module Api
6
- VERSION = '0.2.3'
6
+ VERSION = '0.3.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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.3.3'
35
+ spec.required_ruby_version = '>= 2.5.0'
36
36
 
37
- spec.add_development_dependency 'activesupport', '>= 5.2'
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.2.3
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-04 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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.3.3
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.5.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