Skip to content

Commit 45e54a1

Browse files
committed
Ease the gem requirements
1 parent 7620b10 commit 45e54a1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Please keep AllCops, Bundler, Style, Metrics groups and then order cops
22
# alphabetically
33
inherit_from:
4-
- https://raw.githubusercontent.com/hanami/devtools/master/.rubocop-unstable.yml
4+
- https://raw.githubusercontent.com/hanami/devtools/main/.rubocop.yml
55
Layout/LineLength:
66
Exclude:
77
- Gemfile

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
source "https://rubygems.org"
44
gemspec
55

6-
gem "dry-files", "~> 0.1", require: false, git: "https://github.com/dry-rb/dry-files.git", branch: "master"
7-
gem "hanami-cli", "2.0.0.alpha1", require: false, git: "https://github.com/hanami/cli.git", branch: "main"
6+
gem "dry-files", "~> 0.1", require: false, git: "https://github.com/dry-rb/dry-files.git", branch: "main"
7+
gem "hanami-cli", "~> 2.0.0.alpha", require: false, git: "https://github.com/hanami/cli.git", branch: "main"
88
gem "hanami", require: false, git: "https://github.com/hanami/hanami.git", branch: "feature/hanami-2-cli"
99

1010
gem "byebug"

hanami-rspec.gemspec

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = "Hanami RSpec generators and Rake tasks"
1313
spec.homepage = "https://hanamirb.org"
1414
spec.license = "MIT"
15-
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
15+
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
1616

1717
spec.metadata["allowed_push_host"] = "https://rubygems.org"
1818

@@ -29,9 +29,10 @@ Gem::Specification.new do |spec|
2929
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3030
spec.require_paths = ["lib"]
3131

32-
spec.add_dependency "hanami-cli", "2.0.0.alpha1"
32+
spec.add_dependency "hanami-cli", "~> 2.0.0.alpha"
3333
spec.add_dependency "rspec", "~> 3.9"
3434
spec.add_dependency "rake", "~> 13.0"
3535

3636
spec.add_development_dependency "rubocop", "~> 1.11"
37+
spec.metadata["rubygems_mfa_required"] = "true"
3738
end

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
Kernel.srand config.seed
2424
end
2525

26-
Dir.glob("#{__dir__}/support/**/*.rb").sort.each(&method(:require))
26+
Dir.glob("#{__dir__}/support/**/*.rb").each(&method(:require))

0 commit comments

Comments
 (0)