hanami-rspec 2.1.0 → 2.2.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +0 -8
- data/CHANGELOG.md +10 -0
- data/README.md +4 -7
- data/hanami-rspec.gemspec +2 -2
- data/lib/hanami/rspec/commands.rb +8 -0
- data/lib/hanami/rspec/generators/helper.rb +1 -0
- data/lib/hanami/rspec/generators/support_operations.rb +8 -0
- data/lib/hanami/rspec/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a22b12fe9b09343c8c717ce7a3bd984ee6b805c6a30f754b21256c034ee7be6
|
4
|
+
data.tar.gz: c2261452497d26c52e604957e55c76bab7853c50874006164f364225b6a10a48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25991490ed27898e535820108261dc044af43fdc9bd1417ff7a547dc6c8cbf869d11f74bc37b1eaac91673d1d87ac696774782ee8ece2ddc52473441be4a5f38
|
7
|
+
data.tar.gz: 641d1c05ca91cb1ac77da54d5c58ed3134d2415cc845385b13e27e2378d4c7b5a497c3b6c7be24ee3690d6c1f15dc77491f2b45ccc3a2b0886bd82ca5fee9efd
|
data/.github/workflows/ci.yml
CHANGED
@@ -27,15 +27,7 @@ jobs:
|
|
27
27
|
- "3.3"
|
28
28
|
- "3.2"
|
29
29
|
- "3.1"
|
30
|
-
- "3.0"
|
31
30
|
steps:
|
32
|
-
- uses: ravsamhq/notify-slack-action@v1
|
33
|
-
if: always()
|
34
|
-
with:
|
35
|
-
status: ${{ job.status }}
|
36
|
-
notify_when: "failure"
|
37
|
-
env:
|
38
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
39
31
|
- uses: actions/checkout@v1
|
40
32
|
- name: Install package dependencies
|
41
33
|
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
RSpec support for Hanami
|
4
4
|
|
5
|
+
## v2.2.0.beta1 - 2024-07-16
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
- [Sean Collins] Include `Dry::Monads[:result]` in tests via `support/operations.rb`
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Drop support for Ruby 3.0
|
14
|
+
|
5
15
|
## v2.1.0 - 2024-02-27
|
6
16
|
|
7
17
|
## v2.1.0.rc3 - 2024-02-16
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ RSpec and testing support for [Hanami applications](https://github.com/hanami/ha
|
|
5
5
|
## Status
|
6
6
|
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/hanami-rspec.svg)](https://badge.fury.io/rb/hanami-rspec)
|
8
|
-
[![CI](https://github.com/hanami/rspec/workflows/ci/badge.
|
8
|
+
[![CI](https://github.com/hanami/rspec/actions/workflows/ci.yml/badge.svgch=main)](https://github.com/hanami/rspec/actions?query=workflow%3Aci+branch%3Amain)
|
9
9
|
[![Depfu](https://badges.depfu.com/badges/a8545fb67cf32a2c75b6227bc0821027/overview.svg)](https://depfu.com/github/hanami/rspec?project=Bundler)
|
10
10
|
|
11
11
|
## Contact
|
@@ -13,15 +13,12 @@ RSpec and testing support for [Hanami applications](https://github.com/hanami/ha
|
|
13
13
|
- Home page: http://hanamirb.org
|
14
14
|
- Mailing List: http://hanamirb.org/mailing-list
|
15
15
|
- Bugs/Issues: https://github.com/hanami/rspec/issues
|
16
|
-
- Support: http://stackoverflow.com/questions/tagged/hanami
|
17
16
|
- Chat: http://chat.hanamirb.org
|
18
17
|
|
19
|
-
## Rubies
|
20
|
-
|
21
|
-
**Hanami::RSpec** supports Ruby (MRI) 3.0+
|
22
|
-
|
23
18
|
## Installation
|
24
19
|
|
20
|
+
**Hanami::RSpec** supports Ruby (MRI) 3.1+
|
21
|
+
|
25
22
|
Add this line to your application's Gemfile:
|
26
23
|
|
27
24
|
```ruby
|
@@ -57,4 +54,4 @@ Everyone interacting in the `Hanami::RSpec` project's codebases, issue trackers,
|
|
57
54
|
|
58
55
|
## Copyright
|
59
56
|
|
60
|
-
Copyright © 2014 Hanami Team – Released under MIT License
|
57
|
+
Copyright © 2014–2024 Hanami Team – Released under MIT License
|
data/hanami-rspec.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Hanami RSpec generators and Rake tasks"
|
13
13
|
spec.homepage = "https://hanamirb.org"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version =
|
15
|
+
spec.required_ruby_version = ">= 3.1"
|
16
16
|
|
17
17
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
18
18
|
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_dependency "hanami-cli", "~> 2.
|
32
|
+
spec.add_dependency "hanami-cli", "~> 2.2.beta"
|
33
33
|
spec.add_dependency "rspec", "~> 3.12"
|
34
34
|
spec.add_dependency "rake", "~> 13.0"
|
35
35
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
@@ -19,6 +19,7 @@ module Hanami
|
|
19
19
|
copy_spec_helper
|
20
20
|
copy_support_rspec
|
21
21
|
copy_support_features
|
22
|
+
copy_support_operations
|
22
23
|
copy_support_requests
|
23
24
|
|
24
25
|
generate_request_spec
|
@@ -68,6 +69,13 @@ module Hanami
|
|
68
69
|
)
|
69
70
|
end
|
70
71
|
|
72
|
+
def copy_support_operations
|
73
|
+
fs.cp(
|
74
|
+
fs.expand_path(fs.join("generators", "support_operations.rb"), __dir__),
|
75
|
+
fs.expand_path(fs.join("spec", "support", "operations.rb"))
|
76
|
+
)
|
77
|
+
end
|
78
|
+
|
71
79
|
def copy_support_requests
|
72
80
|
fs.cp(
|
73
81
|
fs.expand_path(fs.join("generators", "support_requests.rb"), __dir__),
|
data/lib/hanami/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-cli
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.beta
|
20
20
|
type: :runtime
|
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: 2.2.beta
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- lib/hanami/rspec/generators/slice/repository_spec.erb
|
123
123
|
- lib/hanami/rspec/generators/slice/view_spec.erb
|
124
124
|
- lib/hanami/rspec/generators/support_features.rb
|
125
|
+
- lib/hanami/rspec/generators/support_operations.rb
|
125
126
|
- lib/hanami/rspec/generators/support_requests.rb
|
126
127
|
- lib/hanami/rspec/generators/support_rspec.rb
|
127
128
|
- lib/hanami/rspec/rake_tasks.rb
|
@@ -143,14 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
144
|
requirements:
|
144
145
|
- - ">="
|
145
146
|
- !ruby/object:Gem::Version
|
146
|
-
version: 3.
|
147
|
+
version: '3.1'
|
147
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
149
|
requirements:
|
149
150
|
- - ">="
|
150
151
|
- !ruby/object:Gem::Version
|
151
152
|
version: '0'
|
152
153
|
requirements: []
|
153
|
-
rubygems_version: 3.5.
|
154
|
+
rubygems_version: 3.5.9
|
154
155
|
signing_key:
|
155
156
|
specification_version: 4
|
156
157
|
summary: Hanami RSpec
|