hanami-rspec 3.0.0 → 3.11.0.beta2
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.
Potentially problematic release.
This version of hanami-rspec might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +40 -0
- data/.gitignore +13 -0
- data/.rspec +1 -0
- data/.rubocop.yml +26 -0
- data/CHANGELOG.md +4 -212
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +21 -0
- data/README.md +32 -17
- data/Rakefile +12 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/hanami-rspec.gemspec +26 -26
- data/lib/hanami/rspec/commands.rb +15 -113
- data/lib/hanami/rspec/error.rb +8 -0
- data/lib/hanami/rspec/generators/gemfile +0 -2
- data/lib/hanami/rspec/generators/helper.rb +2 -1
- data/lib/hanami/rspec/generators/request.rb +4 -4
- data/lib/hanami/rspec/generators/slice/action_spec.erb +1 -1
- data/lib/hanami/rspec/generators/slice/repository_spec.erb +1 -1
- data/lib/hanami/rspec/generators/slice/view_spec.erb +1 -1
- data/lib/hanami/rspec/generators/slice.rb +13 -23
- data/lib/hanami/rspec/generators/support_requests.rb +2 -3
- data/lib/hanami/rspec/generators/support_rspec.rb +2 -36
- data/lib/hanami/rspec/generators.rb +9 -0
- data/lib/hanami/rspec/rake_tasks.rb +2 -0
- data/lib/hanami/rspec/version.rb +1 -4
- data/lib/hanami/rspec.rb +2 -47
- data/lib/hanami-rspec.rb +1 -1
- metadata +39 -42
- data/LICENSE +0 -20
- data/lib/hanami/rspec/generators/action.rb +0 -60
- data/lib/hanami/rspec/generators/gemfile_db +0 -9
- data/lib/hanami/rspec/generators/gitignore +0 -1
- data/lib/hanami/rspec/generators/mailer.rb +0 -60
- data/lib/hanami/rspec/generators/operation.rb +0 -59
- data/lib/hanami/rspec/generators/part/part_base_spec.erb +0 -10
- data/lib/hanami/rspec/generators/part/part_slice_base_spec.erb +0 -10
- data/lib/hanami/rspec/generators/part/part_slice_spec.erb +0 -10
- data/lib/hanami/rspec/generators/part/part_spec.erb +0 -10
- data/lib/hanami/rspec/generators/part.rb +0 -114
- data/lib/hanami/rspec/generators/support_db.rb +0 -10
- data/lib/hanami/rspec/generators/support_db_cleaning.rb +0 -40
- data/lib/hanami/rspec/generators/support_features.rb +0 -5
- data/lib/hanami/rspec/generators/support_mailers.rb +0 -20
- data/lib/hanami/rspec/generators/support_operations.rb +0 -9
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require "hanami/cli"
|
|
3
4
|
require "shellwords"
|
|
5
|
+
require "hanami/cli/generators/context"
|
|
6
|
+
require_relative "./generators"
|
|
4
7
|
|
|
5
8
|
module Hanami
|
|
6
9
|
module RSpec
|
|
7
|
-
# @api private
|
|
8
10
|
module Commands
|
|
9
11
|
class Install < Hanami::CLI::Command
|
|
10
12
|
def call(*, **)
|
|
11
13
|
append_gemfile
|
|
12
|
-
append_gitignore
|
|
13
14
|
copy_dotrspec
|
|
14
15
|
copy_spec_helper
|
|
15
16
|
copy_support_rspec
|
|
16
|
-
copy_support_db
|
|
17
|
-
copy_support_features
|
|
18
|
-
copy_support_operations
|
|
19
|
-
copy_support_mailers
|
|
20
17
|
copy_support_requests
|
|
21
18
|
|
|
22
19
|
generate_request_spec
|
|
@@ -25,25 +22,18 @@ module Hanami
|
|
|
25
22
|
private
|
|
26
23
|
|
|
27
24
|
def append_gemfile
|
|
28
|
-
gemfile_template = Hanami.bundled?("hanami-db") ? "gemfile_db" : "gemfile"
|
|
29
|
-
|
|
30
25
|
fs.append(
|
|
31
26
|
fs.expand_path("Gemfile"),
|
|
32
|
-
fs.read(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def append_gitignore
|
|
37
|
-
fs.append(
|
|
38
|
-
fs.expand_path(".gitignore"),
|
|
39
|
-
fs.read(fs.expand_path(fs.join("generators", "gitignore"), __dir__))
|
|
27
|
+
fs.read(
|
|
28
|
+
fs.expand_path(fs.join("generators", "gemfile"), __dir__)
|
|
29
|
+
),
|
|
40
30
|
)
|
|
41
31
|
end
|
|
42
32
|
|
|
43
33
|
def copy_dotrspec
|
|
44
34
|
fs.cp(
|
|
45
35
|
fs.expand_path(fs.join("generators", "dotrspec"), __dir__),
|
|
46
|
-
fs.expand_path(fs.join(".rspec"))
|
|
36
|
+
fs.expand_path(fs.join(".rspec")),
|
|
47
37
|
)
|
|
48
38
|
end
|
|
49
39
|
|
|
@@ -61,43 +51,6 @@ module Hanami
|
|
|
61
51
|
)
|
|
62
52
|
end
|
|
63
53
|
|
|
64
|
-
def copy_support_db
|
|
65
|
-
return unless Hanami.bundled?("hanami-db")
|
|
66
|
-
|
|
67
|
-
fs.cp(
|
|
68
|
-
fs.expand_path(fs.join("generators/support_db.rb"), __dir__),
|
|
69
|
-
fs.expand_path(fs.join("spec", "support", "db.rb"))
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
fs.cp(
|
|
73
|
-
fs.expand_path(fs.join("generators/support_db_cleaning.rb"), __dir__),
|
|
74
|
-
fs.expand_path(fs.join("spec", "support", "db", "cleaning.rb"))
|
|
75
|
-
)
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def copy_support_features
|
|
79
|
-
fs.cp(
|
|
80
|
-
fs.expand_path(fs.join("generators", "support_features.rb"), __dir__),
|
|
81
|
-
fs.expand_path(fs.join("spec", "support", "features.rb"))
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
def copy_support_operations
|
|
86
|
-
fs.cp(
|
|
87
|
-
fs.expand_path(fs.join("generators", "support_operations.rb"), __dir__),
|
|
88
|
-
fs.expand_path(fs.join("spec", "support", "operations.rb"))
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
def copy_support_mailers
|
|
93
|
-
return unless Hanami.bundled?("hanami-mailer")
|
|
94
|
-
|
|
95
|
-
fs.cp(
|
|
96
|
-
fs.expand_path(fs.join("generators", "support_mailers.rb"), __dir__),
|
|
97
|
-
fs.expand_path(fs.join("spec", "support", "mailers.rb"))
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
54
|
def copy_support_requests
|
|
102
55
|
fs.cp(
|
|
103
56
|
fs.expand_path(fs.join("generators", "support_requests.rb"), __dir__),
|
|
@@ -115,71 +68,20 @@ module Hanami
|
|
|
115
68
|
|
|
116
69
|
module Generate
|
|
117
70
|
class Slice < Hanami::CLI::Command
|
|
118
|
-
|
|
119
|
-
|
|
71
|
+
# FIXME: dry-cli kwargs aren't correctly forwarded in Ruby 3
|
|
72
|
+
def call(options, **)
|
|
73
|
+
slice = inflector.underscore(Shellwords.shellescape(options[:name]))
|
|
120
74
|
|
|
121
75
|
generator = Generators::Slice.new(fs: fs, inflector: inflector)
|
|
122
76
|
generator.call(slice)
|
|
123
77
|
end
|
|
124
78
|
end
|
|
125
|
-
|
|
126
|
-
class Action < Hanami::CLI::Commands::App::Command
|
|
127
|
-
def call(name: nil, slice: nil, skip_tests: false, **)
|
|
128
|
-
return if skip_tests
|
|
129
|
-
|
|
130
|
-
slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
|
|
131
|
-
key = inflector.underscore(Shellwords.shellescape(name))
|
|
132
|
-
|
|
133
|
-
namespace = slice ? inflector.camelize(slice) : app.namespace
|
|
134
|
-
base_path = slice ? "spec/slices/#{slice}" : "spec"
|
|
135
|
-
|
|
136
|
-
generator = Generators::Action.new(fs:, inflector:)
|
|
137
|
-
generator.call(key:, namespace:, base_path:)
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
class Part < Hanami::CLI::Commands::App::Command
|
|
142
|
-
def call(name: nil, slice: nil, skip_tests: false, **)
|
|
143
|
-
return if skip_tests
|
|
144
|
-
|
|
145
|
-
slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
|
|
146
|
-
name = inflector.underscore(Shellwords.shellescape(name))
|
|
147
|
-
|
|
148
|
-
generator = Generators::Part.new(fs: fs, inflector: inflector)
|
|
149
|
-
generator.call(app.namespace, slice, name)
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
class Operation < Hanami::CLI::Commands::App::Command
|
|
154
|
-
def call(name: nil, slice: nil, skip_tests: false, **)
|
|
155
|
-
return if skip_tests
|
|
156
|
-
|
|
157
|
-
slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
|
|
158
|
-
key = inflector.underscore(Shellwords.shellescape(name))
|
|
159
|
-
|
|
160
|
-
namespace = slice ? inflector.camelize(slice) : app.namespace
|
|
161
|
-
base_path = slice ? "spec/slices/#{slice}" : "spec"
|
|
162
|
-
|
|
163
|
-
generator = Generators::Operation.new(fs:, inflector:)
|
|
164
|
-
generator.call(key:, namespace:, base_path:)
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
class Mailer < Hanami::CLI::Commands::App::Command
|
|
169
|
-
def call(name: nil, slice: nil, skip_tests: false, **)
|
|
170
|
-
return if skip_tests
|
|
171
|
-
|
|
172
|
-
slice = inflector.underscore(Shellwords.shellescape(slice)) if slice
|
|
173
|
-
key = inflector.underscore(Shellwords.shellescape(name))
|
|
174
|
-
|
|
175
|
-
namespace = slice ? inflector.camelize(slice) : app.namespace
|
|
176
|
-
base_path = slice ? "spec/slices/#{slice}" : "spec"
|
|
177
|
-
|
|
178
|
-
generator = Generators::Mailer.new(fs:, inflector:)
|
|
179
|
-
generator.call(key:, namespace:, base_path:)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
79
|
end
|
|
183
80
|
end
|
|
184
81
|
end
|
|
185
82
|
end
|
|
83
|
+
|
|
84
|
+
if Hanami::CLI.within_hanami_app?
|
|
85
|
+
Hanami::CLI.after "install", Hanami::RSpec::Commands::Install
|
|
86
|
+
Hanami::CLI.after "generate slice", Hanami::RSpec::Commands::Generate::Slice
|
|
87
|
+
end
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe "Root", type: :request do
|
|
4
|
-
it "is
|
|
4
|
+
it "is successful" do
|
|
5
5
|
get "/"
|
|
6
6
|
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
expect(last_response.
|
|
7
|
+
# Find me in `config/routes.rb`
|
|
8
|
+
expect(last_response).to be_successful
|
|
9
|
+
expect(last_response.body).to eq("Hello from Hanami")
|
|
10
10
|
end
|
|
11
11
|
end
|
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "erb"
|
|
4
|
+
require "hanami/cli/generators/app/slice_context"
|
|
4
5
|
|
|
5
6
|
module Hanami
|
|
6
7
|
module RSpec
|
|
7
8
|
module Generators
|
|
8
|
-
# @since 2.0.0
|
|
9
|
-
# @api private
|
|
10
9
|
class Slice
|
|
11
|
-
# @since 2.0.0
|
|
12
|
-
# @api private
|
|
13
10
|
def initialize(fs:, inflector:)
|
|
14
11
|
@fs = fs
|
|
15
12
|
@inflector = inflector
|
|
16
13
|
end
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
fs.write("spec
|
|
27
|
-
# fs.write("spec
|
|
28
|
-
# fs.write("spec
|
|
29
|
-
|
|
30
|
-
fs.write("spec/slices/#{slice}/actions/.keep", t("keep.erb", context))
|
|
31
|
-
# fs.write("spec/slices/#{slice}/views/.keep", t("keep.erb", context))
|
|
32
|
-
# fs.write("spec/slices/#{slice}/templates/.keep", t("keep.erb", context))
|
|
33
|
-
# fs.write("spec/slices/#{slice}/templates/layouts/.keep", t("keep.erb", context))
|
|
34
|
-
# fs.write("spec/slices/#{slice}/entities/.keep", t("keep.erb", context))
|
|
35
|
-
# fs.write("spec/slices/#{slice}/repositories/.keep", t("keep.erb", context))
|
|
15
|
+
def call(slice, context: Hanami::CLI::Generators::App::SliceContext.new(inflector, nil, slice, nil))
|
|
16
|
+
fs.write("spec/#{slice}/action_spec.rb", t("action_spec.erb", context))
|
|
17
|
+
# fs.write("spec/#{slice}/view_spec.rb", t("view_spec.erb", context))
|
|
18
|
+
# fs.write("spec/#{slice}/repository_spec.rb", t("repository_spec.erb", context))
|
|
19
|
+
|
|
20
|
+
fs.write("spec/#{slice}/actions/.keep", t("keep.erb", context))
|
|
21
|
+
# fs.write("spec/#{slice}/views/.keep", t("keep.erb", context))
|
|
22
|
+
# fs.write("spec/#{slice}/templates/.keep", t("keep.erb", context))
|
|
23
|
+
# fs.write("spec/#{slice}/templates/layouts/.keep", t("keep.erb", context))
|
|
24
|
+
# fs.write("spec/#{slice}/entities/.keep", t("keep.erb", context))
|
|
25
|
+
# fs.write("spec/#{slice}/repositories/.keep", t("keep.erb", context))
|
|
36
26
|
end
|
|
37
27
|
|
|
38
28
|
private
|
|
@@ -46,7 +36,7 @@ module Hanami
|
|
|
46
36
|
|
|
47
37
|
ERB.new(
|
|
48
38
|
File.read(__dir__ + "/slice/#{path}")
|
|
49
|
-
).result(context.
|
|
39
|
+
).result(context.ctx)
|
|
50
40
|
end
|
|
51
41
|
|
|
52
42
|
alias_method :t, :template
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
require "rack/test"
|
|
4
4
|
|
|
5
|
-
RSpec.shared_context "
|
|
6
|
-
# Define the app for Rack::Test requests
|
|
5
|
+
RSpec.shared_context "Hanami app" do
|
|
7
6
|
let(:app) { Hanami.app }
|
|
8
7
|
end
|
|
9
8
|
|
|
10
9
|
RSpec.configure do |config|
|
|
11
10
|
config.include Rack::Test::Methods, type: :request
|
|
12
|
-
config.include_context "
|
|
11
|
+
config.include_context "Hanami app", type: :request
|
|
13
12
|
end
|
|
@@ -1,61 +1,27 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.configure do |config|
|
|
4
|
-
# Use the recommended non-monkey patched syntax.
|
|
5
|
-
config.disable_monkey_patching!
|
|
6
|
-
|
|
7
|
-
# Use and configure rspec-expectations.
|
|
8
4
|
config.expect_with :rspec do |expectations|
|
|
9
|
-
# This option will default to `true` in RSpec 4.
|
|
10
5
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
11
6
|
end
|
|
12
7
|
|
|
13
|
-
# Use and configure rspec-mocks.
|
|
14
8
|
config.mock_with :rspec do |mocks|
|
|
15
|
-
# Prevents you from mocking or stubbing a method that does not exist on a
|
|
16
|
-
# real object.
|
|
17
9
|
mocks.verify_partial_doubles = true
|
|
18
10
|
end
|
|
19
11
|
|
|
20
|
-
# This option will default to `:apply_to_host_groups` in RSpec 4.
|
|
21
12
|
config.shared_context_metadata_behavior = :apply_to_host_groups
|
|
22
13
|
|
|
23
|
-
# Limit a spec run to individual examples or groups you care about by tagging
|
|
24
|
-
# them with `:focus` metadata. When nothing is tagged with `:focus`, all
|
|
25
|
-
# examples get run.
|
|
26
|
-
#
|
|
27
|
-
# RSpec also provides aliases for `it`, `describe`, and `context` that include
|
|
28
|
-
# `:focus` metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
|
29
14
|
config.filter_run_when_matching :focus
|
|
30
15
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# configure your source control system to ignore this file.
|
|
34
|
-
config.example_status_persistence_file_path = "spec/examples.txt"
|
|
35
|
-
|
|
36
|
-
# Uncomment this to enable warnings. This is recommended, but in some cases
|
|
37
|
-
# may be too noisy due to issues in dependencies.
|
|
38
|
-
# config.warnings = true
|
|
16
|
+
config.disable_monkey_patching!
|
|
17
|
+
config.warnings = true
|
|
39
18
|
|
|
40
|
-
# Show more verbose output when running an individual spec file.
|
|
41
19
|
if config.files_to_run.one?
|
|
42
20
|
config.default_formatter = "doc"
|
|
43
21
|
end
|
|
44
22
|
|
|
45
|
-
# Print the 10 slowest examples and example groups at the end of the spec run,
|
|
46
|
-
# to help surface which specs are running particularly slow.
|
|
47
23
|
config.profile_examples = 10
|
|
48
24
|
|
|
49
|
-
# Run specs in random order to surface order dependencies. If you find an
|
|
50
|
-
# order dependency and want to debug it, you can fix the order by providing
|
|
51
|
-
# the seed, which is printed after each run:
|
|
52
|
-
#
|
|
53
|
-
# --seed 1234
|
|
54
25
|
config.order = :random
|
|
55
|
-
|
|
56
|
-
# Seed global randomization in this process using the `--seed` CLI option.
|
|
57
|
-
# This allows you to use `--seed` to deterministically reproduce test failures
|
|
58
|
-
# related to randomization by passing the same `--seed` value as the one that
|
|
59
|
-
# triggered the failure.
|
|
60
26
|
Kernel.srand config.seed
|
|
61
27
|
end
|
data/lib/hanami/rspec/version.rb
CHANGED
data/lib/hanami/rspec.rb
CHANGED
|
@@ -1,55 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "hanami/cli"
|
|
4
|
-
require "zeitwerk"
|
|
5
|
-
|
|
6
|
-
# @see Hanami::RSpec
|
|
7
|
-
# @since 2.0.0
|
|
8
3
|
module Hanami
|
|
9
|
-
# RSpec and testing support for Hanami applications.
|
|
10
|
-
#
|
|
11
|
-
# @since 2.0.0
|
|
12
|
-
# @api private
|
|
13
4
|
module RSpec
|
|
14
|
-
# @since 2.0.0
|
|
15
|
-
# @api private
|
|
16
|
-
def self.gem_loader
|
|
17
|
-
@gem_loader ||= Zeitwerk::Loader.new.tap do |loader|
|
|
18
|
-
root = File.expand_path("..", __dir__)
|
|
19
|
-
loader.tag = "hanami-rspec"
|
|
20
|
-
loader.inflector = Zeitwerk::GemInflector.new("#{root}/hanami-rspec.rb")
|
|
21
|
-
loader.push_dir(root)
|
|
22
|
-
loader.ignore(
|
|
23
|
-
"#{root}/hanami-rspec.rb",
|
|
24
|
-
"#{root}/hanami/rspec/{rake_tasks,version}.rb"
|
|
25
|
-
)
|
|
26
|
-
loader.inflector.inflect("rspec" => "RSpec")
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
gem_loader.setup
|
|
31
5
|
require_relative "rspec/version"
|
|
6
|
+
require_relative "rspec/error"
|
|
7
|
+
require_relative "rspec/commands"
|
|
32
8
|
require_relative "rspec/rake_tasks"
|
|
33
|
-
|
|
34
|
-
if Hanami::CLI.within_hanami_app?
|
|
35
|
-
Hanami::CLI.before "install", Commands::Install
|
|
36
|
-
Hanami::CLI.after "generate slice", Commands::Generate::Slice
|
|
37
|
-
|
|
38
|
-
if Hanami.bundled?("dry-operation")
|
|
39
|
-
Hanami::CLI.after "generate operation", Commands::Generate::Operation
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
if Hanami.bundled?("hanami-action")
|
|
43
|
-
Hanami::CLI.after "generate action", Commands::Generate::Action
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
if Hanami.bundled?("hanami-view")
|
|
47
|
-
Hanami::CLI.after "generate part", Commands::Generate::Part
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
if Hanami.bundled?("hanami-mailer")
|
|
51
|
-
Hanami::CLI.after "generate mailer", Commands::Generate::Mailer
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
9
|
end
|
|
55
10
|
end
|
data/lib/hanami-rspec.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hanami-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.11.0.beta2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Luca Guidi
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: hanami-cli
|
|
@@ -15,28 +16,28 @@ dependencies:
|
|
|
15
16
|
requirements:
|
|
16
17
|
- - "~>"
|
|
17
18
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
19
|
+
version: 2.0.0.beta
|
|
19
20
|
type: :runtime
|
|
20
21
|
prerelease: false
|
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
23
|
requirements:
|
|
23
24
|
- - "~>"
|
|
24
25
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
26
|
+
version: 2.0.0.beta
|
|
26
27
|
- !ruby/object:Gem::Dependency
|
|
27
28
|
name: rspec
|
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
31
|
- - "~>"
|
|
31
32
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '3.
|
|
33
|
+
version: '3.11'
|
|
33
34
|
type: :runtime
|
|
34
35
|
prerelease: false
|
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
37
|
requirements:
|
|
37
38
|
- - "~>"
|
|
38
39
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '3.
|
|
40
|
+
version: '3.11'
|
|
40
41
|
- !ruby/object:Gem::Dependency
|
|
41
42
|
name: rake
|
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,60 +53,53 @@ dependencies:
|
|
|
52
53
|
- !ruby/object:Gem::Version
|
|
53
54
|
version: '13.0'
|
|
54
55
|
- !ruby/object:Gem::Dependency
|
|
55
|
-
name:
|
|
56
|
+
name: rubocop
|
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
|
57
58
|
requirements:
|
|
58
59
|
- - "~>"
|
|
59
60
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
61
|
-
type: :
|
|
61
|
+
version: '1.11'
|
|
62
|
+
type: :development
|
|
62
63
|
prerelease: false
|
|
63
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
65
|
requirements:
|
|
65
66
|
- - "~>"
|
|
66
67
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
68
|
-
description: Hanami RSpec generators and
|
|
68
|
+
version: '1.11'
|
|
69
|
+
description: Hanami RSpec generators and Rake tasks
|
|
69
70
|
email:
|
|
70
|
-
-
|
|
71
|
+
- me@lucaguidi.com
|
|
71
72
|
executables: []
|
|
72
73
|
extensions: []
|
|
73
|
-
extra_rdoc_files:
|
|
74
|
-
- CHANGELOG.md
|
|
75
|
-
- LICENSE
|
|
76
|
-
- README.md
|
|
74
|
+
extra_rdoc_files: []
|
|
77
75
|
files:
|
|
76
|
+
- ".github/workflows/ci.yml"
|
|
77
|
+
- ".gitignore"
|
|
78
|
+
- ".rspec"
|
|
79
|
+
- ".rubocop.yml"
|
|
78
80
|
- CHANGELOG.md
|
|
79
|
-
-
|
|
81
|
+
- CODE_OF_CONDUCT.md
|
|
82
|
+
- Gemfile
|
|
83
|
+
- LICENSE.txt
|
|
80
84
|
- README.md
|
|
85
|
+
- Rakefile
|
|
86
|
+
- bin/console
|
|
87
|
+
- bin/setup
|
|
81
88
|
- hanami-rspec.gemspec
|
|
82
89
|
- lib/hanami-rspec.rb
|
|
83
90
|
- lib/hanami/rspec.rb
|
|
84
91
|
- lib/hanami/rspec/commands.rb
|
|
85
|
-
- lib/hanami/rspec/
|
|
92
|
+
- lib/hanami/rspec/error.rb
|
|
93
|
+
- lib/hanami/rspec/generators.rb
|
|
86
94
|
- lib/hanami/rspec/generators/dotrspec
|
|
87
95
|
- lib/hanami/rspec/generators/gemfile
|
|
88
|
-
- lib/hanami/rspec/generators/gemfile_db
|
|
89
|
-
- lib/hanami/rspec/generators/gitignore
|
|
90
96
|
- lib/hanami/rspec/generators/helper.rb
|
|
91
|
-
- lib/hanami/rspec/generators/mailer.rb
|
|
92
|
-
- lib/hanami/rspec/generators/operation.rb
|
|
93
|
-
- lib/hanami/rspec/generators/part.rb
|
|
94
|
-
- lib/hanami/rspec/generators/part/part_base_spec.erb
|
|
95
|
-
- lib/hanami/rspec/generators/part/part_slice_base_spec.erb
|
|
96
|
-
- lib/hanami/rspec/generators/part/part_slice_spec.erb
|
|
97
|
-
- lib/hanami/rspec/generators/part/part_spec.erb
|
|
98
97
|
- lib/hanami/rspec/generators/request.rb
|
|
99
98
|
- lib/hanami/rspec/generators/slice.rb
|
|
100
99
|
- lib/hanami/rspec/generators/slice/action_spec.erb
|
|
101
100
|
- lib/hanami/rspec/generators/slice/keep.erb
|
|
102
101
|
- lib/hanami/rspec/generators/slice/repository_spec.erb
|
|
103
102
|
- lib/hanami/rspec/generators/slice/view_spec.erb
|
|
104
|
-
- lib/hanami/rspec/generators/support_db.rb
|
|
105
|
-
- lib/hanami/rspec/generators/support_db_cleaning.rb
|
|
106
|
-
- lib/hanami/rspec/generators/support_features.rb
|
|
107
|
-
- lib/hanami/rspec/generators/support_mailers.rb
|
|
108
|
-
- lib/hanami/rspec/generators/support_operations.rb
|
|
109
103
|
- lib/hanami/rspec/generators/support_requests.rb
|
|
110
104
|
- lib/hanami/rspec/generators/support_rspec.rb
|
|
111
105
|
- lib/hanami/rspec/rake_tasks.rb
|
|
@@ -114,10 +108,12 @@ homepage: https://hanamirb.org
|
|
|
114
108
|
licenses:
|
|
115
109
|
- MIT
|
|
116
110
|
metadata:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
allowed_push_host: https://rubygems.org
|
|
112
|
+
homepage_uri: https://hanamirb.org
|
|
113
|
+
source_code_uri: https://github.com/hanami/rspec
|
|
114
|
+
changelog_uri: https://github.com/hanami/rspec/blob/master/CHANGELOG.md
|
|
115
|
+
rubygems_mfa_required: 'true'
|
|
116
|
+
post_install_message:
|
|
121
117
|
rdoc_options: []
|
|
122
118
|
require_paths:
|
|
123
119
|
- lib
|
|
@@ -125,14 +121,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
125
121
|
requirements:
|
|
126
122
|
- - ">="
|
|
127
123
|
- !ruby/object:Gem::Version
|
|
128
|
-
version:
|
|
124
|
+
version: 3.0.0
|
|
129
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
126
|
requirements:
|
|
131
|
-
- - "
|
|
127
|
+
- - ">"
|
|
132
128
|
- !ruby/object:Gem::Version
|
|
133
|
-
version:
|
|
129
|
+
version: 1.3.1
|
|
134
130
|
requirements: []
|
|
135
|
-
rubygems_version: 3.
|
|
131
|
+
rubygems_version: 3.3.7
|
|
132
|
+
signing_key:
|
|
136
133
|
specification_version: 4
|
|
137
|
-
summary: Hanami RSpec
|
|
134
|
+
summary: Hanami RSpec
|
|
138
135
|
test_files: []
|
data/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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.
|