hanami-rspec 2.3.1 → 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: 1a2185e39d0b525de7f16d338057a0e2f87b1b2537663c63f0d0f2f9ddc09741
4
- data.tar.gz: 691c5b210355c983af3a879dca1cf69cfbb6197b6c7151a76d37d78b002748c4
3
+ metadata.gz: 52da36692e852f309936a6de50d48b1e39aae141cd0a90dc8c2a1a2905f7024e
4
+ data.tar.gz: 203f42d283c278333080bf223b5f51fb8d7510ba37b3b4421e8ac4f81434faec
5
5
  SHA512:
6
- metadata.gz: 79f9422d2a433e90b9b4cf0bc2a8e963c12869004aeac391425c1f23413d5b3c78f04683ba5bd44f10ec74a74c31a9ae99c7fee7f5c96c2e377efbe665b822eb
7
- data.tar.gz: 146c5ee5983d235ddd02a8263d74c67c13acf8e1f58e491c9c068ee0383f6e56e3e7972de2ba47ada5db3b5bca2f1e8cce00e8d11c4dfbb04b43dfa12a6974ac
6
+ metadata.gz: ace50373169fd424ffc76c832d13d04ad6f43388e1e552e09b776ba59e1b2f221b06fefbff60f455678290640f209dc06166975f16538ffc246a28a43a66e60a
7
+ data.tar.gz: 9ee94f6821a888afda9d331f6aa896766314d8192787fc16eb1288987af16815eea758682caafbae53af12c3db3bf969609e02c6243ddf241a58f84b70340408
data/CHANGELOG.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
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).
7
7
 
8
8
  ## [Unreleased]
9
9
 
@@ -19,13 +19,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  ### Security
21
21
 
22
- [Unreleased]: https://github.com/hanami/rspec/compare/v2.3.0...HEAD
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)
31
+
32
+ ### Changed
33
+
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
23
39
 
24
40
  ## [2.3.1] - 2026-01-23
25
41
 
26
42
  ### Fixed
27
43
 
28
- - 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). (@timriley in #41)
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
29
47
 
30
48
  ## [2.3.0] - 2025-11-12
31
49
 
@@ -35,7 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
53
 
36
54
  ### Changed
37
55
 
38
- - Drop support for Ruby 3.1
56
+ - Drop support for Ruby 3.1.
39
57
 
40
58
  [2.3.0.beta2]: https://github.com/hanami/rspec/compare/v2.3.0.beta1...v2.3.0.beta2
41
59
 
@@ -43,7 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
43
61
 
44
62
  ### Changed
45
63
 
46
- - [Aaron Allen] Change shared context name in generated `spec/support/requests.rb` to avoid a RuboCop RSpec offense (#40)
64
+ - Change shared context name in generated `spec/support/requests.rb` to avoid a RuboCop RSpec offense. (Aaron Allen in #40)
47
65
 
48
66
  [2.3.0.beta1]: https://github.com/hanami/rspec/compare/v2.2.1...v2.3.0.beta1
49
67
 
@@ -51,7 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
51
69
 
52
70
  ### Changed
53
71
 
54
- - [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)
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)
55
73
 
56
74
  [2.2.1]: https://github.com/hanami/rspec/compare/v2.2.0...v2.2.1
57
75
 
@@ -59,7 +77,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
59
77
 
60
78
  ### Changed
61
79
 
62
- - [Paweł Świątkowski, Seb Wilgosz] Only enhance `generate` CLI commands if the relevant gems are bundled (#29)
80
+ - Only enhance `generate` CLI commands if the relevant gems are bundled. (Paweł Świątkowski, Seb Wilgosz in #29)
63
81
 
64
82
  [2.2.0]: https://github.com/hanami/rspec/compare/v2.2.0.rc1...v2.2.0
65
83
 
@@ -67,11 +85,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
67
85
 
68
86
  ### Added
69
87
 
70
- - [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)
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)
71
89
 
72
90
  ### Changed
73
91
 
74
- - [Seb Wilgosz] Only enhance `generate` CLI commands if the relevant gems are bundled (#26)
92
+ - Only enhance `generate` CLI commands if the relevant gems are bundled. (Seb Wilgosz in #26)
75
93
 
76
94
  [2.2.0.rc1]: https://github.com/hanami/rspec/compare/v2.2.0.beta1...v2.2.0.rc1
77
95
 
@@ -79,12 +97,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
79
97
 
80
98
  ### Added
81
99
 
82
- - [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)
83
101
 
84
102
  ### Changed
85
103
 
86
104
  - Drop support for Ruby 3.0
87
- - [Sean Collins] In generated `spec_helper.rb`, require all files under `spec/support/` in a loop, rather than via manual requires (#24)
105
+ - In generated `spec_helper.rb`, require all files under `spec/support/` in a loop, rather than via manual requires. (Sean Collins in #24)
88
106
 
89
107
  [2.2.0.beta1]: https://github.com/hanami/rspec/compare/v2.1.0...v2.2.0.beta1
90
108
 
@@ -100,12 +118,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
100
118
 
101
119
  ### Added
102
120
 
103
- - [Tim Riley] Skip generating tests for `hanami generate` when `--skip-tests` CLI option is given
104
- - [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)
105
123
 
106
124
  ### Changed
107
125
 
108
- - [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)
109
127
 
110
128
  [2.1.0.rc2]: https://github.com/hanami/rspec/compare/v2.1.0.rc1...v2.1.0.rc2
111
129
 
@@ -113,11 +131,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
113
131
 
114
132
  ### Added
115
133
 
116
- - [Luca Guidi] Generate spec for `hanami generate part` command
134
+ - Generate spec for `hanami generate part` command. (Luca Guidi)
117
135
 
118
136
  ### Changed
119
137
 
120
- - [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)
121
139
 
122
140
  [2.1.0.rc1]: https://github.com/hanami/rspec/compare/v2.1.0.beta1...v2.1.0.rc1
123
141
 
@@ -129,7 +147,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
129
147
 
130
148
  ### Added
131
149
 
132
- - [Luca Guidi] Official support for Ruby 3.2
150
+ - Official support for Ruby 3.2. (Luca Guidi)
133
151
 
134
152
  [2.0.1]: https://github.com/hanami/rspec/compare/v2.0.0...v2.0.1
135
153
 
@@ -137,8 +155,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
137
155
 
138
156
  ### Added
139
157
 
140
- - [Tim Riley] Use Zeitwerk to autoload the gem
141
- - [Luca Guidi] Support RSpec 3.12
158
+ - Use Zeitwerk to autoload the gem. (Tim Riley)
159
+ - Support RSpec 3.12. (Luca Guidi)
142
160
 
143
161
  [2.0.0]: https://github.com/hanami/rspec/compare/v2.0.0.rc1...v2.0.0
144
162
 
@@ -146,7 +164,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146
164
 
147
165
  ### Changed
148
166
 
149
- - [Luca Guidi] Follow `hanami` versioning
167
+ - Follow `hanami` versioning. (Luca Guidi)
150
168
 
151
169
  [2.0.0.rc1]: https://github.com/hanami/rspec/compare/v3.11.0.beta4...v2.0.0.rc1
152
170
 
@@ -154,7 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154
172
 
155
173
  ### Changed
156
174
 
157
- - [Luca Guidi] Generate slice specs under `spec/slices/[slice_name]/` (#9)
175
+ - Generate slice specs under `spec/slices/[slice_name]/`. (Luca Guidi in #9)
158
176
 
159
177
  [3.11.0.beta4]: https://github.com/hanami/rspec/compare/v3.11.0.beta3...v3.11.0.beta4
160
178
 
@@ -162,8 +180,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
162
180
 
163
181
  ### Added
164
182
 
165
- - [Luca Guidi] Hook into `hanami new` and `hanami generate` to respect name pluralization
166
- - [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)
167
185
 
168
186
  [3.11.0.beta3]: https://github.com/hanami/rspec/compare/v3.11.0.beta2...v3.11.0.beta3
169
187
 
@@ -171,7 +189,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
171
189
 
172
190
  ### Added
173
191
 
174
- - [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)
175
193
 
176
194
  [3.11.0.beta2]: https://github.com/hanami/rspec/compare/v3.11.0.beta1...v3.11.0.beta2
177
195
 
@@ -179,6 +197,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
179
197
 
180
198
  ### Added
181
199
 
182
- - [Luca Guidi] Hook into `hanami install` to setup RSpec + Rack::Test
200
+ - Hook into `hanami install` to setup RSpec + Rack::Test. (Luca Guidi)
183
201
 
184
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,25 +103,9 @@ 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
- # @since 2.0.0
118
- # @api private
119
- def call(options = nil, name: nil, **)
120
- # Support multiple calling conventions for dry-cli cross-version compatibility:
121
- #
122
- # - dry-cli 1.3 calls with positional hash: call({name: "foo"})
123
- # - dry-cli 1.4+: calls with keyword arguments: call(name: "foo")
124
- #
125
- # TODO: Remove this with Hanami 2.4 (which will require dry-cli 1.4+).
126
- if options.is_a?(Hash)
127
- name = options[:name]
128
- end
129
-
108
+ def call(name: nil, **)
130
109
  slice = inflector.underscore(Shellwords.shellescape(name))
131
110
 
132
111
  generator = Generators::Slice.new(fs: fs, inflector: inflector)
@@ -134,24 +113,8 @@ module Hanami
134
113
  end
135
114
  end
136
115
 
137
- # @since 2.0.0
138
- # @api private
139
116
  class Action < Hanami::CLI::Commands::App::Command
140
- # @since 2.0.0
141
- # @api private
142
- def call(options = nil, name: nil, slice: nil, skip_tests: false, **)
143
- # Support multiple calling conventions for dry-cli cross-version compatibility:
144
- #
145
- # - dry-cli 1.3 calls with positional hash: call({name: "foo"})
146
- # - dry-cli 1.4+: calls with keyword arguments: call(name: "foo")
147
- #
148
- # TODO: Remove this with Hanami 2.4 (which will require dry-cli 1.4+).
149
- if options.is_a?(Hash)
150
- name = options[:name]
151
- slice = options[:slice]
152
- skip_tests = options[:skip_tests] || false
153
- end
154
-
117
+ def call(name: nil, slice: nil, skip_tests: false, **)
155
118
  return if skip_tests
156
119
 
157
120
  slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
@@ -165,24 +128,8 @@ module Hanami
165
128
  end
166
129
  end
167
130
 
168
- # @since 2.1.0
169
- # @api private
170
131
  class Part < Hanami::CLI::Commands::App::Command
171
- # @since 2.1.0
172
- # @api private
173
- def call(options = nil, name: nil, slice: nil, skip_tests: false, **)
174
- # Support multiple calling conventions for dry-cli cross-version compatibility:
175
- #
176
- # - dry-cli 1.3 calls with positional hash: call({name: "foo"})
177
- # - dry-cli 1.4+: calls with keyword arguments: call(name: "foo")
178
- #
179
- # TODO: Remove this with Hanami 2.4 (which will require dry-cli 1.4+).
180
- if options.is_a?(Hash)
181
- name = options[:name]
182
- slice = options[:slice]
183
- skip_tests = options[:skip_tests] || false
184
- end
185
-
132
+ def call(name: nil, slice: nil, skip_tests: false, **)
186
133
  return if skip_tests
187
134
 
188
135
  slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
@@ -192,6 +139,36 @@ module Hanami
192
139
  generator.call(app.namespace, slice, name)
193
140
  end
194
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
195
172
  end
196
173
  end
197
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.1"
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.1
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,43 +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
- - "4.0"
18
- - "3.4"
19
- - "3.3"
20
- - "3.2"
21
- steps:
22
- - uses: actions/checkout@v1
23
- - name: Install package dependencies
24
- run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
25
- - name: Set up Ruby
26
- uses: ruby/setup-ruby@v1
27
- with:
28
- ruby-version: ${{matrix.ruby}}
29
- - name: Install latest bundler
30
- run: |
31
- gem install bundler --no-document
32
- - name: Bundle install
33
- run: bundle install --jobs 4 --retry 3
34
- - name: Run all tests
35
- run: bundle exec rake
36
-
37
- workflow-keepalive:
38
- if: github.event_name == 'schedule'
39
- runs-on: ubuntu-latest
40
- permissions:
41
- actions: write
42
- steps:
43
- - 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