hanami-rspec 2.3.0 → 3.0.0.rc1

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
  SHA256:
3
- metadata.gz: c35e14348417f5144f25a0adcad009e2565b4e6ae1389cf99369648f51df3c70
4
- data.tar.gz: 9981e1c6f375aa99b554166e96a4ab499d38b8550d1200369f6ad6119f29514e
3
+ metadata.gz: 52da36692e852f309936a6de50d48b1e39aae141cd0a90dc8c2a1a2905f7024e
4
+ data.tar.gz: 203f42d283c278333080bf223b5f51fb8d7510ba37b3b4421e8ac4f81434faec
5
5
  SHA512:
6
- metadata.gz: 72c72cc355cc6a1116123a9f5639cb6e1004ee0563220bfa4bdb2597f2eb3fd4c8b4c2f33bddfeceacd9e4d1a2aaf18efa2f3146a3e8a6d245a52aba812fc2a5
7
- data.tar.gz: c964883c6fbea6c167addd58df39e2fc5e3f46a6d24261f6227ee4074be1b4ffaa6a2cbd82344755fc0de211e357ea45eba9cb2a593f2d419ce817d759c773c7
6
+ metadata.gz: ace50373169fd424ffc76c832d13d04ad6f43388e1e552e09b776ba59e1b2f221b06fefbff60f455678290640f209dc06166975f16538ffc246a28a43a66e60a
7
+ data.tar.gz: 9ee94f6821a888afda9d331f6aa896766314d8192787fc16eb1288987af16815eea758682caafbae53af12c3db3bf969609e02c6243ddf241a58f84b70340408
data/CHANGELOG.md CHANGED
@@ -1,126 +1,202 @@
1
- # Hanami::RSpec
1
+ # Changelog
2
2
 
3
- RSpec support for Hanami
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- ## v2.3.0 - 2025-11-12
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
6
7
 
7
- ## v2.3.0.beta2 - 2025-10-17
8
+ ## [Unreleased]
9
+
10
+ ### Added
8
11
 
9
12
  ### Changed
10
13
 
11
- - Drop support for Ruby 3.1
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
20
+ ### Security
12
21
 
13
- ## v2.3.0.beta1 - 2025-10-03
22
+ [Unreleased]: https://github.com/hanami/rspec/compare/v3.0.0.rc1...HEAD
23
+
24
+ ## [v3.0.0.rc1] - 2026-06-16
25
+
26
+ ### Added
27
+
28
+ - Activate Dry Monads' RSpec extension in `spec/support/operations.rb`. (@timriley)
29
+ - Generate a starter spec when running `hanami generate operation`. (@timriley)
30
+ - Generate a starter spec when running `hanami generate mailer`. (@timriley)
14
31
 
15
32
  ### Changed
16
33
 
17
- - [Aaron Allen] Change shared context name in generated `spec/support/requests.rb` to avoid a RuboCop RSpec offense (#40)
34
+ - Use `prepend_before` for the generated DatabaseCleaner `:db` hook, so it runs before any other `before` hooks that might touch the database. This prevents factory calls in spec-level `before` blocks from running before the test transaction starts and leaking records across tests. (@timriley in #47)
35
+ - Check for presence of hanami-action gem rather than hanami-controller (now retired). (@cllns in #44)
36
+ - Require Ruby 3.3 or newer.
37
+
38
+ [v3.0.0.rc1]: https://github.com/hanami/rspec/compare/v2.3.1...v3.0.0.rc1
18
39
 
19
- ## v2.2.1 - 2024-11-12
40
+ ## [2.3.1] - 2026-01-23
41
+
42
+ ### Fixed
43
+
44
+ - Allow command callbacks to run with both Dry CLI 1.3 and 1.4 (1.4 corrects a longstanding bug regarding argument passing to command callbacks, which we had previously worked around here). (Tim Riley in #41)
45
+
46
+ [2.3.1]: https://github.com/hanami/rspec/compare/v2.3.0...v2.3.1
47
+
48
+ ## [2.3.0] - 2025-11-12
49
+
50
+ [2.3.0]: https://github.com/hanami/rspec/compare/v2.3.0.beta2...v2.3.0
51
+
52
+ ## [2.3.0.beta2] - 2025-10-17
20
53
 
21
54
  ### Changed
22
55
 
23
- - [Tim Riley] Modify `Gemfile` via a `before "install"` hook on the `hanami` CLI. This ensures that testing-related gems are installed as part of running `hanami new` (#30)
56
+ - Drop support for Ruby 3.1.
57
+
58
+ [2.3.0.beta2]: https://github.com/hanami/rspec/compare/v2.3.0.beta1...v2.3.0.beta2
24
59
 
25
- ## v2.2.0 - 2024-11-05
60
+ ## [2.3.0.beta1] - 2025-10-03
26
61
 
27
62
  ### Changed
28
63
 
29
- - [Paweł Świątkowski, Seb Wilgosz] Only enhance `generate` CLI commands if the relevant gems are bundled (#29)
64
+ - Change shared context name in generated `spec/support/requests.rb` to avoid a RuboCop RSpec offense. (Aaron Allen in #40)
30
65
 
31
- ## v2.2.0.rc1 - 2024-10-29
66
+ [2.3.0.beta1]: https://github.com/hanami/rspec/compare/v2.2.1...v2.3.0.beta1
32
67
 
33
- ### Added
68
+ ## [2.2.1] - 2024-11-12
69
+
70
+ ### Changed
34
71
 
35
- - [Tim Riley] As part of `hanami install`, add `database_cleaner-sequel` to the `Gemfile` and generate DatabaseCleaner configuration in `spec/support/db.rb` and `spec/support/db/cleaning.rb` (#28)
72
+ - Modify `Gemfile` via a `before "install"` hook on the `hanami` CLI. This ensures that testing-related gems are installed as part of running `hanami new`. (Tim Riley in #30)
73
+
74
+ [2.2.1]: https://github.com/hanami/rspec/compare/v2.2.0...v2.2.1
75
+
76
+ ## [2.2.0] - 2024-11-05
36
77
 
37
78
  ### Changed
38
79
 
39
- - [Seb Wilgosz] Only enhance `generate` CLI commands if the relevant gems are bundled (#26)
80
+ - Only enhance `generate` CLI commands if the relevant gems are bundled. (Paweł Świątkowski, Seb Wilgosz in #29)
81
+
82
+ [2.2.0]: https://github.com/hanami/rspec/compare/v2.2.0.rc1...v2.2.0
83
+
84
+ ## [2.2.0.rc1] - 2024-10-29
85
+
86
+ ### Added
40
87
 
41
- ## v2.2.0.beta1 - 2024-07-16
88
+ - As part of `hanami install`, add `database_cleaner-sequel` to the `Gemfile` and generate DatabaseCleaner configuration in `spec/support/db.rb` and `spec/support/db/cleaning.rb`. (Tim Riley in #28)
42
89
 
43
90
  ### Changed
44
91
 
45
- - [Sean Collins] In generated `spec_helper.rb`, require all files under `spec/support/` in a loop, rather than via manual requires (#24)
92
+ - Only enhance `generate` CLI commands if the relevant gems are bundled. (Seb Wilgosz in #26)
93
+
94
+ [2.2.0.rc1]: https://github.com/hanami/rspec/compare/v2.2.0.beta1...v2.2.0.rc1
46
95
 
47
- ## v2.2.0.beta1 - 2024-07-16
96
+ ## [2.2.0.beta1] - 2024-07-16
48
97
 
49
98
  ### Added
50
99
 
51
- - [Sean Collins] Include `Dry::Monads[:result]` in tests via `support/operations.rb`
100
+ - Include `Dry::Monads[:result]` in tests via `support/operations.rb`. (Sean Collins)
52
101
 
53
102
  ### Changed
54
103
 
55
104
  - Drop support for Ruby 3.0
105
+ - In generated `spec_helper.rb`, require all files under `spec/support/` in a loop, rather than via manual requires. (Sean Collins in #24)
106
+
107
+ [2.2.0.beta1]: https://github.com/hanami/rspec/compare/v2.1.0...v2.2.0.beta1
108
+
109
+ ## [2.1.0] - 2024-02-27
110
+
111
+ [2.1.0]: https://github.com/hanami/rspec/compare/v2.1.0.rc3...v2.1.0
56
112
 
57
- ## v2.1.0 - 2024-02-27
113
+ ## [2.1.0.rc3] - 2024-02-16
58
114
 
59
- ## v2.1.0.rc3 - 2024-02-16
115
+ [2.1.0.rc3]: https://github.com/hanami/rspec/compare/v2.1.0.rc2...v2.1.0.rc3
60
116
 
61
- ## v2.1.0.rc2 - 2023-11-08
117
+ ## [2.1.0.rc2] - 2023-11-08
62
118
 
63
119
  ### Added
64
120
 
65
- - [Tim Riley] Skip generating tests for `hanami generate` when `--skip-tests` CLI option is given.
66
- - [Tim Riley] Install Capybara and generate `spec/support/capybara.rb` in `hanami install` hook.
121
+ - Skip generating tests for `hanami generate` when `--skip-tests` CLI option is given. (Tim Riley)
122
+ - Install Capybara and generate `spec/support/capybara.rb` in `hanami install` hook. (Tim Riley)
67
123
 
68
124
  ### Changed
69
125
 
70
- - [Tim Riley] Add explanatory code comments to `spec/support/rspec.rb` generated in `hanami install` hook.
126
+ - Add explanatory code comments to `spec/support/rspec.rb` generated in `hanami install` hook. (Tim Riley)
71
127
 
72
- ## v2.1.0.rc1 - 2023-11-01
128
+ [2.1.0.rc2]: https://github.com/hanami/rspec/compare/v2.1.0.rc1...v2.1.0.rc2
129
+
130
+ ## [2.1.0.rc1] - 2023-11-01
73
131
 
74
132
  ### Added
75
133
 
76
- - [Luca Guidi] Generate spec for `hanami generate part` command
134
+ - Generate spec for `hanami generate part` command. (Luca Guidi)
77
135
 
78
136
  ### Changed
79
137
 
80
- - [Luca Guidi] Default request spec to expect 404, now that `hanami new` doesn't generate a default root route anymore
138
+ - Default request spec to expect 404, now that `hanami new` doesn't generate a default root route anymore. (Luca Guidi)
139
+
140
+ [2.1.0.rc1]: https://github.com/hanami/rspec/compare/v2.1.0.beta1...v2.1.0.rc1
141
+
142
+ ## [2.1.0.beta1] - 2023-06-29
81
143
 
82
- ## v2.1.0.beta1 - 2023-06-29
144
+ [2.1.0.beta1]: https://github.com/hanami/rspec/compare/v2.0.1...v2.1.0.beta1
83
145
 
84
- ## v2.0.1 - 2022-12-25
146
+ ## [2.0.1] - 2022-12-25
85
147
 
86
148
  ### Added
87
149
 
88
- - [Luca Guidi] Official support for Ruby 3.2
150
+ - Official support for Ruby 3.2. (Luca Guidi)
89
151
 
90
- ## v2.0.0 - 2022-11-22
152
+ [2.0.1]: https://github.com/hanami/rspec/compare/v2.0.0...v2.0.1
153
+
154
+ ## [2.0.0] - 2022-11-22
91
155
 
92
156
  ### Added
93
157
 
94
- - [Tim Riley] Use Zeitwerk to autoload the gem
95
- - [Luca Guidi] Support RSpec 3.12
158
+ - Use Zeitwerk to autoload the gem. (Tim Riley)
159
+ - Support RSpec 3.12. (Luca Guidi)
160
+
161
+ [2.0.0]: https://github.com/hanami/rspec/compare/v2.0.0.rc1...v2.0.0
96
162
 
97
- ## v2.0.0.rc1 - 2022-11-08
163
+ ## [2.0.0.rc1] - 2022-11-08
98
164
 
99
165
  ### Changed
100
166
 
101
- - [Luca Guidi] Follow `hanami` versioning
167
+ - Follow `hanami` versioning. (Luca Guidi)
102
168
 
103
- ## v3.11.0.beta4 - 2022-10-24
169
+ [2.0.0.rc1]: https://github.com/hanami/rspec/compare/v3.11.0.beta4...v2.0.0.rc1
170
+
171
+ ## [3.11.0.beta4] - 2022-10-24
104
172
 
105
173
  ### Changed
106
174
 
107
- - [Luca Guidi] Generate slice specs under `spec/slices/[slice_name]/` (#9)
175
+ - Generate slice specs under `spec/slices/[slice_name]/`. (Luca Guidi in #9)
176
+
177
+ [3.11.0.beta4]: https://github.com/hanami/rspec/compare/v3.11.0.beta3...v3.11.0.beta4
108
178
 
109
- ## v3.11.0.beta3 - 2022-09-21
179
+ ## [3.11.0.beta3] - 2022-09-21
110
180
 
111
181
  ### Added
112
182
 
113
- - [Luca Guidi] Hook into `hanami new` and `hanami generate` to respect name pluralization
114
- - [Luca Guidi] Hook into `hanami generate action` to generate action specs
183
+ - Hook into `hanami new` and `hanami generate` to respect name pluralization. (Luca Guidi)
184
+ - Hook into `hanami generate action` to generate action specs. (Luca Guidi)
185
+
186
+ [3.11.0.beta3]: https://github.com/hanami/rspec/compare/v3.11.0.beta2...v3.11.0.beta3
115
187
 
116
- ## v3.11.0.beta2 - 2022-08-16
188
+ ## [3.11.0.beta2] - 2022-08-16
117
189
 
118
190
  ### Added
119
191
 
120
- - [Luca Guidi] Hook into `hanami generate slice` to generate a slice directory in spec/ along with a placeholder base action spec [#5]
192
+ - Hook into `hanami generate slice` to generate a slice directory in spec/ along with a placeholder base action spec. (Luca Guidi in #5)
121
193
 
122
- ## v3.11.0.beta1 - 2022-07-20
194
+ [3.11.0.beta2]: https://github.com/hanami/rspec/compare/v3.11.0.beta1...v3.11.0.beta2
195
+
196
+ ## [3.11.0.beta1] - 2022-07-20
123
197
 
124
198
  ### Added
125
199
 
126
- - [Luca Guidi] Hook into `hanami install` to setup RSpec + Rack::Test
200
+ - Hook into `hanami install` to setup RSpec + Rack::Test. (Luca Guidi)
201
+
202
+ [3.11.0.beta1]: https://github.com/hanami/rspec/releases/tag/v3.11.0.beta1
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2026 Hanakai team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,18 +1,14 @@
1
- # Hanami::RSpec
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
2
2
 
3
- RSpec and testing support for [Hanami applications](https://github.com/hanami/hanami).
3
+ [actions]: https://github.com/hanami/hanami-rspec/actions
4
+ [chat]: https://discord.gg/naQApPAsZB
5
+ [forum]: https://discourse.hanamirb.org
6
+ [rubygem]: https://rubygems.org/gems/hanami-rspec
4
7
 
5
- ## Status
8
+ # Hanami RSpec [![Gem Version](https://badge.fury.io/rb/hanami-rspec.svg)][rubygem] [![CI Status](https://github.com/hanami/hanami-rspec/workflows/CI/badge.svg)][actions]
6
9
 
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/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/hanami/rspec/actions?query=workflow%3Aci+branch%3Amain)
9
-
10
- ## Contact
11
-
12
- - Home page: http://hanamirb.org
13
- - Mailing List: http://hanamirb.org/mailing-list
14
- - Bugs/Issues: https://github.com/hanami/rspec/issues
15
- - Chat: http://chat.hanamirb.org
10
+ [![Forum](https://img.shields.io/badge/Forum-dc360f?logo=discourse&logoColor=white)][forum]
11
+ [![Chat](https://img.shields.io/badge/Chat-717cf8?logo=discord&logoColor=white)][chat]
16
12
 
17
13
  ## Installation
18
14
 
@@ -41,14 +37,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
41
37
 
42
38
  Bug reports and pull requests are welcome on GitHub at https://github.com/hanami/rspec. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hanami/rspec/blob/main/CODE_OF_CONDUCT.md).
43
39
 
44
- ## License
40
+ ## Links
45
41
 
46
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
42
+ - [User documentation](https://hanamirb.org)
43
+ - [API documentation](http://rubydoc.info/gems/hanami-rspec)
47
44
 
48
- ## Code of Conduct
49
45
 
50
- Everyone interacting in the `Hanami::RSpec` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hanami/rspec/blob/main/CODE_OF_CONDUCT.md).
46
+ ## License
51
47
 
52
- ## Copyright
48
+ See `LICENSE` file.
53
49
 
54
- Copyright © 2014–2024 Hanami Team – Released under MIT License
data/hanami-rspec.gemspec CHANGED
@@ -1,39 +1,38 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/hanami/rspec/version"
3
+ # This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
4
+
5
+ lib = File.expand_path("lib", __dir__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+ require "hanami/rspec/version"
4
8
 
5
9
  Gem::Specification.new do |spec|
6
10
  spec.name = "hanami-rspec"
7
- spec.version = Hanami::RSpec::VERSION
8
11
  spec.authors = ["Hanakai team"]
9
12
  spec.email = ["info@hanakai.org"]
10
-
11
- spec.summary = "Hanami RSpec"
12
- spec.description = "Hanami RSpec generators and Rake tasks"
13
- spec.homepage = "https://hanamirb.org"
14
13
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 3.2"
16
-
17
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/hanami/rspec"
21
- spec.metadata["changelog_uri"] = "https://github.com/hanami/rspec/blob/master/CHANGELOG.md"
14
+ spec.version = Hanami::RSpec::VERSION.dup
22
15
 
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
- end
16
+ spec.summary = "Hanami RSpec generators and CLI commands"
17
+ spec.description = spec.summary
18
+ spec.homepage = "https://hanamirb.org"
19
+ spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "hanami-rspec.gemspec", "lib/**/*"]
28
20
  spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
21
+ spec.executables = Dir["exe/*"].map { |f| File.basename(f) }
30
22
  spec.require_paths = ["lib"]
31
23
 
32
- spec.add_dependency "hanami-cli", "~> 2.3.0"
33
- spec.add_dependency "rspec", "~> 3.12"
34
- spec.add_dependency "rake", "~> 13.0"
35
- spec.add_dependency "zeitwerk", "~> 2.6"
24
+ spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
25
+
26
+ spec.metadata["changelog_uri"] = "https://github.com/hanami/hanami-rspec/blob/main/CHANGELOG.md"
27
+ spec.metadata["source_code_uri"] = "https://github.com/hanami/hanami-rspec"
28
+ spec.metadata["bug_tracker_uri"] = "https://github.com/hanami/hanami-rspec/issues"
29
+ spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
36
30
 
37
- spec.add_development_dependency "rubocop", "~> 1.11"
38
- spec.metadata["rubygems_mfa_required"] = "true"
31
+ spec.required_ruby_version = ">= 3.3"
32
+
33
+ spec.add_runtime_dependency "hanami-cli", "~> 3.0.0.rc"
34
+ spec.add_runtime_dependency "rspec", "~> 3.12"
35
+ spec.add_runtime_dependency "rake", "~> 13.0"
36
+ spec.add_runtime_dependency "zeitwerk", "~> 2.6"
39
37
  end
38
+
@@ -4,14 +4,9 @@ require "shellwords"
4
4
 
5
5
  module Hanami
6
6
  module RSpec
7
- # @since 2.0.0
8
7
  # @api private
9
8
  module Commands
10
- # @since 2.0.0
11
- # @api private
12
9
  class Install < Hanami::CLI::Command
13
- # @since 2.0.0
14
- # @api private
15
10
  def call(*, **)
16
11
  append_gemfile
17
12
  append_gitignore
@@ -47,7 +42,7 @@ module Hanami
47
42
  def copy_dotrspec
48
43
  fs.cp(
49
44
  fs.expand_path(fs.join("generators", "dotrspec"), __dir__),
50
- fs.expand_path(fs.join(".rspec")),
45
+ fs.expand_path(fs.join(".rspec"))
51
46
  )
52
47
  end
53
48
 
@@ -108,33 +103,22 @@ module Hanami
108
103
  end
109
104
  end
110
105
 
111
- # @since 2.0.0
112
- # @api private
113
106
  module Generate
114
- # @since 2.0.0
115
- # @api private
116
107
  class Slice < Hanami::CLI::Command
117
- # FIXME: dry-cli kwargs aren't correctly forwarded in Ruby 3
118
- def call(options, **)
119
- slice = inflector.underscore(Shellwords.shellescape(options[:name]))
108
+ def call(name: nil, **)
109
+ slice = inflector.underscore(Shellwords.shellescape(name))
120
110
 
121
111
  generator = Generators::Slice.new(fs: fs, inflector: inflector)
122
112
  generator.call(slice)
123
113
  end
124
114
  end
125
115
 
126
- # @since 2.0.0
127
- # @api private
128
116
  class Action < Hanami::CLI::Commands::App::Command
129
- # @since 2.0.0
130
- # @api private
131
- def call(options, **)
132
- # FIXME: dry-cli kwargs aren't correctly forwarded in Ruby 3
117
+ def call(name: nil, slice: nil, skip_tests: false, **)
118
+ return if skip_tests
133
119
 
134
- return if options[:skip_tests]
135
-
136
- slice = inflector.underscore(Shellwords.shellescape(options[:slice])) if options[:slice]
137
- key = inflector.underscore(Shellwords.shellescape(options[:name]))
120
+ slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
121
+ key = inflector.underscore(Shellwords.shellescape(name))
138
122
 
139
123
  namespace = slice ? inflector.camelize(slice) : app.namespace
140
124
  base_path = slice ? "spec/slices/#{slice}" : "spec"
@@ -144,23 +128,47 @@ module Hanami
144
128
  end
145
129
  end
146
130
 
147
- # @since 2.1.0
148
- # @api private
149
131
  class Part < Hanami::CLI::Commands::App::Command
150
- # @since 2.1.0
151
- # @api private
152
- def call(options, **)
153
- # FIXME: dry-cli kwargs aren't correctly forwarded in Ruby 3
154
-
155
- return if options[:skip_tests]
132
+ def call(name: nil, slice: nil, skip_tests: false, **)
133
+ return if skip_tests
156
134
 
157
- slice = inflector.underscore(Shellwords.shellescape(options[:slice])) if options[:slice]
158
- name = inflector.underscore(Shellwords.shellescape(options[:name]))
135
+ slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
136
+ name = inflector.underscore(Shellwords.shellescape(name))
159
137
 
160
138
  generator = Generators::Part.new(fs: fs, inflector: inflector)
161
139
  generator.call(app.namespace, slice, name)
162
140
  end
163
141
  end
142
+
143
+ class Operation < Hanami::CLI::Commands::App::Command
144
+ def call(name: nil, slice: nil, skip_tests: false, **)
145
+ return if skip_tests
146
+
147
+ slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
148
+ key = inflector.underscore(Shellwords.shellescape(name))
149
+
150
+ namespace = slice ? inflector.camelize(slice) : app.namespace
151
+ base_path = slice ? "spec/slices/#{slice}" : "spec"
152
+
153
+ generator = Generators::Operation.new(fs:, inflector:)
154
+ generator.call(key:, namespace:, base_path:)
155
+ end
156
+ end
157
+
158
+ class Mailer < Hanami::CLI::Commands::App::Command
159
+ def call(name: nil, slice: nil, skip_tests: false, **)
160
+ return if skip_tests
161
+
162
+ slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
163
+ key = inflector.underscore(Shellwords.shellescape(name))
164
+
165
+ namespace = slice ? inflector.camelize(slice) : app.namespace
166
+ base_path = slice ? "spec/slices/#{slice}" : "spec"
167
+
168
+ generator = Generators::Mailer.new(fs:, inflector:)
169
+ generator.call(key:, namespace:, base_path:)
170
+ end
171
+ end
164
172
  end
165
173
  end
166
174
  end
@@ -36,7 +36,7 @@ module Hanami
36
36
  namespace: namespace,
37
37
  key: inflector.underscore(key),
38
38
  base_path: base_path,
39
- extra_namespace: "Actions",
39
+ extra_namespace: "Actions"
40
40
  )
41
41
  end
42
42
 
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "hanami/cli/generators/app/ruby_class_file"
4
+
5
+ module Hanami
6
+ module RSpec
7
+ module Generators
8
+ # @api private
9
+ class Mailer
10
+ attr_reader :fs, :inflector
11
+
12
+ def initialize(fs:, inflector:)
13
+ @fs = fs
14
+ @inflector = inflector
15
+ end
16
+
17
+ def call(key:, namespace:, base_path:)
18
+ mailer_class_file = mailer_class_file(key:, namespace:, base_path:)
19
+ spec_file_path = mailer_class_file.path.gsub(/\.rb$/, "_spec.rb")
20
+ mailer_class_name = mailer_class_file.fully_qualified_name
21
+
22
+ fs.write(spec_file_path, spec_content(mailer_class_name))
23
+ end
24
+
25
+ private
26
+
27
+ def mailer_class_file(key:, namespace:, base_path:)
28
+ Hanami::CLI::Generators::App::RubyClassFile.new(
29
+ fs:, inflector:, namespace:,
30
+ key: inflector.underscore(key),
31
+ base_path: base_path,
32
+ extra_namespace: "Mailers"
33
+ )
34
+ end
35
+
36
+ def spec_content(class_name)
37
+ <<~RUBY
38
+ # frozen_string_literal: true
39
+
40
+ RSpec.describe #{class_name} do
41
+ subject(:mailer) { described_class.new }
42
+
43
+ # Inspect the delivered message to set expectations on its contents:
44
+ #
45
+ # expect(result.message.to).to eq(["recipient@example.com"])
46
+ # expect(result.message.subject).to eq("Welcome")
47
+ # expect(result.message.html_body).to include("...")
48
+
49
+ xit "delivers" do
50
+ result = mailer.deliver
51
+
52
+ expect(result).to be_success
53
+ end
54
+ end
55
+ RUBY
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "hanami/cli/generators/app/ruby_class_file"
4
+
5
+ module Hanami
6
+ module RSpec
7
+ module Generators
8
+ # @api private
9
+ class Operation
10
+ attr_reader :fs, :inflector
11
+
12
+ def initialize(fs:, inflector:)
13
+ @fs = fs
14
+ @inflector = inflector
15
+ end
16
+
17
+ def call(key:, namespace:, base_path:)
18
+ operation_class_file = operation_class_file(key:, namespace:, base_path:)
19
+ spec_file_path = operation_class_file.path.gsub(/\.rb$/, "_spec.rb")
20
+ operation_class_name = operation_class_file.fully_qualified_name
21
+
22
+ fs.write(spec_file_path, spec_content(operation_class_name))
23
+ end
24
+
25
+ private
26
+
27
+ def operation_class_file(key:, namespace:, base_path:)
28
+ Hanami::CLI::Generators::App::RubyClassFile.new(
29
+ fs:, inflector:, namespace:,
30
+ key: inflector.underscore(key),
31
+ base_path: base_path
32
+ )
33
+ end
34
+
35
+ def spec_content(class_name)
36
+ <<~RUBY
37
+ # frozen_string_literal: true
38
+
39
+ RSpec.describe #{class_name} do
40
+ subject(:operation) { described_class.new }
41
+
42
+ # Use `be_success` and `be_failure` (from spec/support/operations.rb) to set expectations on an
43
+ # operation's result:
44
+ #
45
+ # expect(result).to be_success(expected_value)
46
+ # expect(result).to be_failure(:some_error)
47
+
48
+ xit "succeeds" do
49
+ result = operation.call
50
+
51
+ expect(result).to be_success
52
+ end
53
+ end
54
+ RUBY
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -25,7 +25,7 @@ RSpec.configure do |config|
25
25
  end
26
26
  end
27
27
 
28
- config.before :each, :db do |example|
28
+ config.prepend_before :each, :db do |example|
29
29
  strategy = example.metadata[:js] ? :truncation : :transaction
30
30
 
31
31
  all_databases.call.each do |db|
@@ -2,7 +2,8 @@
2
2
 
3
3
  require "dry/monads"
4
4
 
5
- RSpec.configure do |config|
6
- # Provide `Success` and `Failure` for testing operation results
7
- config.include Dry::Monads[:result]
8
- end
5
+ # Load Dry Monads' RSpec extension.
6
+ #
7
+ # This provides `be_success` and `be_failure` matchers for operation results, along with `Success`
8
+ # and `Failure` constructors for use within your examples.
9
+ Dry::Monads.load_extensions(:rspec)
@@ -4,8 +4,7 @@ module Hanami
4
4
  module RSpec
5
5
  # The current hanami-rspec version.
6
6
  #
7
- # @since 2.0.0
8
7
  # @api public
9
- VERSION = "2.3.0"
8
+ VERSION = "3.0.0.rc1"
10
9
  end
11
10
  end
data/lib/hanami/rspec.rb CHANGED
@@ -35,13 +35,21 @@ module Hanami
35
35
  Hanami::CLI.before "install", Commands::Install
36
36
  Hanami::CLI.after "generate slice", Commands::Generate::Slice
37
37
 
38
- if Hanami.bundled?("hanami-controller")
38
+ if Hanami.bundled?("dry-operation")
39
+ Hanami::CLI.after "generate operation", Commands::Generate::Operation
40
+ end
41
+
42
+ if Hanami.bundled?("hanami-action")
39
43
  Hanami::CLI.after "generate action", Commands::Generate::Action
40
44
  end
41
45
 
42
46
  if Hanami.bundled?("hanami-view")
43
47
  Hanami::CLI.after "generate part", Commands::Generate::Part
44
48
  end
49
+
50
+ if Hanami.bundled?("hanami-mailer")
51
+ Hanami::CLI.after "generate mailer", Commands::Generate::Mailer
52
+ end
45
53
  end
46
54
  end
47
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 2.3.0
18
+ version: 3.0.0.rc
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 2.3.0
25
+ version: 3.0.0.rc
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -65,39 +65,19 @@ dependencies:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '2.6'
68
- - !ruby/object:Gem::Dependency
69
- name: rubocop
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '1.11'
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.11'
82
- description: Hanami RSpec generators and Rake tasks
68
+ description: Hanami RSpec generators and CLI commands
83
69
  email:
84
70
  - info@hanakai.org
85
71
  executables: []
86
72
  extensions: []
87
- extra_rdoc_files: []
73
+ extra_rdoc_files:
74
+ - CHANGELOG.md
75
+ - LICENSE
76
+ - README.md
88
77
  files:
89
- - ".github/workflows/ci.yml"
90
- - ".gitignore"
91
- - ".rspec"
92
- - ".rubocop.yml"
93
78
  - CHANGELOG.md
94
- - CODE_OF_CONDUCT.md
95
- - Gemfile
96
- - LICENSE.md
79
+ - LICENSE
97
80
  - README.md
98
- - Rakefile
99
- - bin/console
100
- - bin/setup
101
81
  - hanami-rspec.gemspec
102
82
  - lib/hanami-rspec.rb
103
83
  - lib/hanami/rspec.rb
@@ -108,6 +88,8 @@ files:
108
88
  - lib/hanami/rspec/generators/gemfile_db
109
89
  - lib/hanami/rspec/generators/gitignore
110
90
  - lib/hanami/rspec/generators/helper.rb
91
+ - lib/hanami/rspec/generators/mailer.rb
92
+ - lib/hanami/rspec/generators/operation.rb
111
93
  - lib/hanami/rspec/generators/part.rb
112
94
  - lib/hanami/rspec/generators/part/part_base_spec.erb
113
95
  - lib/hanami/rspec/generators/part/part_slice_base_spec.erb
@@ -131,11 +113,10 @@ homepage: https://hanamirb.org
131
113
  licenses:
132
114
  - MIT
133
115
  metadata:
134
- allowed_push_host: https://rubygems.org
135
- homepage_uri: https://hanamirb.org
136
- source_code_uri: https://github.com/hanami/rspec
137
- changelog_uri: https://github.com/hanami/rspec/blob/master/CHANGELOG.md
138
- rubygems_mfa_required: 'true'
116
+ changelog_uri: https://github.com/hanami/hanami-rspec/blob/main/CHANGELOG.md
117
+ source_code_uri: https://github.com/hanami/hanami-rspec
118
+ bug_tracker_uri: https://github.com/hanami/hanami-rspec/issues
119
+ funding_uri: https://github.com/sponsors/hanami
139
120
  rdoc_options: []
140
121
  require_paths:
141
122
  - lib
@@ -143,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
124
  requirements:
144
125
  - - ">="
145
126
  - !ruby/object:Gem::Version
146
- version: '3.2'
127
+ version: '3.3'
147
128
  required_rubygems_version: !ruby/object:Gem::Requirement
148
129
  requirements:
149
130
  - - ">="
@@ -152,5 +133,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
133
  requirements: []
153
134
  rubygems_version: 3.6.9
154
135
  specification_version: 4
155
- summary: Hanami RSpec
136
+ summary: Hanami RSpec generators and CLI commands
156
137
  test_files: []
@@ -1,42 +0,0 @@
1
- name: ci
2
-
3
- on:
4
- push:
5
- pull_request:
6
- create:
7
- schedule:
8
- - cron: "30 4 * * *"
9
-
10
- jobs:
11
- tests:
12
- runs-on: ubuntu-latest
13
- strategy:
14
- fail-fast: false
15
- matrix:
16
- ruby:
17
- - "3.4"
18
- - "3.3"
19
- - "3.2"
20
- steps:
21
- - uses: actions/checkout@v1
22
- - name: Install package dependencies
23
- run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
24
- - name: Set up Ruby
25
- uses: ruby/setup-ruby@v1
26
- with:
27
- ruby-version: ${{matrix.ruby}}
28
- - name: Install latest bundler
29
- run: |
30
- gem install bundler --no-document
31
- - name: Bundle install
32
- run: bundle install --jobs 4 --retry 3
33
- - name: Run all tests
34
- run: bundle exec rake
35
-
36
- workflow-keepalive:
37
- if: github.event_name == 'schedule'
38
- runs-on: ubuntu-latest
39
- permissions:
40
- actions: write
41
- steps:
42
- - uses: liskin/gh-workflow-keepalive@v1
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- .rubocop-*
10
- Gemfile.lock
11
-
12
- # rspec failure tracking
13
- .rspec_status
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,28 +0,0 @@
1
- # Please keep AllCops, Bundler, Style, Metrics groups and then order cops
2
- # alphabetically
3
- inherit_from:
4
- - https://raw.githubusercontent.com/hanami/devtools/main/.rubocop.yml
5
- Layout/LineLength:
6
- Exclude:
7
- - Gemfile
8
- Naming/MethodParameterName:
9
- AllowedNames:
10
- - fs
11
- Naming/HeredocDelimiterNaming:
12
- Enabled: false
13
- Style/AccessorGrouping:
14
- Enabled: false
15
- Style/BlockDelimiters:
16
- Enabled: false
17
- Style/CommentedKeyword:
18
- Enabled: false
19
- Style/HashSyntax:
20
- EnforcedShorthandSyntax: either_consistent
21
- Style/LambdaCall:
22
- Enabled: false
23
- Style/TrailingCommaInArguments:
24
- Enabled: false
25
- Style/TrailingCommaInArrayLiteral:
26
- Enabled: false
27
- Style/TrailingCommaInHashLiteral:
28
- Enabled: false
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at me@lucaguidi.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- gemspec
5
-
6
- unless ENV["CI"]
7
- gem "byebug", platforms: :mri
8
- gem "yard"
9
- end
10
-
11
- gem "hanami-utils", github: "hanami/utils", branch: "main"
12
- gem "hanami-cli", github: "hanami/cli", branch: "main"
13
- gem "hanami", github: "hanami/hanami", branch: "main"
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright © 2014 Hanami Team
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "hanami/rspec"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here