hanami-cli 2.0.0.alpha4 → 2.0.0.alpha7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de637259c61267b5589f64a633fb38ba6e7eb5a8f5dcc0bd689a3942a57b6dba
4
- data.tar.gz: 87be564477f075f9a357edcad9a39e69a74bc6971de10bd353f22f75f0964b01
3
+ metadata.gz: 80f6066c0b36cef2401b924e8a928e20008e4411259d3b7025b8a884ab4917b4
4
+ data.tar.gz: b1f04b56bdc61124aaddcfd6353942ad334437353b5db2114b412e3f5a98d42a
5
5
  SHA512:
6
- metadata.gz: 23aa8295f0f6148ce79041296e4ea6a51a42378672ac95fadd0cbcd8b43f9e3325ff4fb7d263993331d620ae64daf099c3520a3b62ba253ebba5d9b6490cbebe
7
- data.tar.gz: a5d92abd72e92442fb5c9e6a3471160906172dbd3013dd2248259deb233f1ceccb17faf9a320bec0b27a7fe9c44d2ab3d820af6b4152618e9f7b662e57e06832
6
+ metadata.gz: 26e7a26bdbf7b6d1e2817854fdca35655633228029b69ab4c5154981a1edd0b72ffe0048951d42bc20605460e5c2693a60cba3b048f2e466260d5566172392fd
7
+ data.tar.gz: e8110ea215488c966b7f309087fbb29d5d358fd55a0dc4e438077af70e68b7bcb4de3d59dda4d5699f3478756b4bb5dbfb0db59978f6443b4609c419676ebe8c
@@ -12,7 +12,9 @@ name: ci
12
12
  - ".rubocop.yml"
13
13
  pull_request:
14
14
  branches:
15
- - master
15
+ - main
16
+ schedule:
17
+ - cron: "30 4 * * *"
16
18
  create:
17
19
 
18
20
  jobs:
@@ -22,10 +24,16 @@ jobs:
22
24
  fail-fast: false
23
25
  matrix:
24
26
  ruby:
27
+ - "3.1"
25
28
  - "3.0"
26
- - "2.7"
27
- - "2.6"
28
29
  steps:
30
+ - uses: ravsamhq/notify-slack-action@v1
31
+ if: always()
32
+ with:
33
+ status: ${{ job.status }}
34
+ notify_when: "failure"
35
+ env:
36
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29
37
  - uses: actions/checkout@v1
30
38
  - name: Install package dependencies
31
39
  run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
data/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  # Hanami::CLI
2
2
  Hanami Command Line Interface
3
3
 
4
+ ## v2.0.0.alpha7 - 2022-03-11
5
+
6
+ ### Changed
7
+ - [Tim Riley] [Internal] Update console slice readers to work with new `Hanami::Application.slices` API
8
+
9
+ ## v2.0.0.alpha6.1 - 2022-02-11
10
+ ### Fixed
11
+ - [Viet Tran] Ensure `hanami db` commands to work with `hanami` `v2.0.0.alpha6`
12
+
13
+ ## v2.0.0.alpha6 - 2022-02-10
14
+ ### Added
15
+ - [Luca Guidi] Official support for Ruby: MRI 3.1
16
+
17
+ ### Changed
18
+ - [Luca Guidi] Drop support for Ruby: MRI 2.6, and 2.7
19
+
4
20
  ## v2.0.0.alpha4 - 2021-12-07
5
21
  ### Added
6
22
  - [Tim Riley] Display a custom prompt when using irb-based console (consistent with pry-based console)
data/README.md CHANGED
@@ -36,8 +36,8 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
36
 
37
37
  ## Code of Conduct
38
38
 
39
- Everyone interacting in the Hanami::Cli project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hanami/cli/blob/main/CODE_OF_CONDUCT.md).
39
+ Everyone interacting in the `Hanami::CLI` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hanami/cli/blob/main/CODE_OF_CONDUCT.md).
40
40
 
41
41
  ## Copyright
42
42
 
43
- Copyright © 2014-2021 Luca Guidi – Released under MIT License
43
+ Copyright © 2014-2022 Hanami Team – Released under MIT License
data/hanami-cli.gemspec CHANGED
@@ -12,7 +12,6 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Hanami command line"
13
13
  spec.homepage = "https://hanamirb.org"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
16
15
 
17
16
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
17
 
@@ -28,6 +27,8 @@ Gem::Specification.new do |spec|
28
27
  spec.bindir = "exe"
29
28
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
29
  spec.require_paths = ["lib"]
30
+ spec.metadata["rubygems_mfa_required"] = "true"
31
+ spec.required_ruby_version = ">= 3.0"
31
32
 
32
33
  spec.add_dependency "bundler", "~> 2.1"
33
34
  spec.add_dependency "rake", "~> 13.0"
@@ -36,8 +37,5 @@ Gem::Specification.new do |spec|
36
37
  spec.add_dependency "dry-inflector", "~> 0.2"
37
38
 
38
39
  spec.add_development_dependency "rspec", "~> 3.9"
39
- spec.add_development_dependency "rubocop", "~> 1.11"
40
- spec.metadata = {
41
- "rubygems_mfa_required" => "true"
42
- }
40
+ spec.add_development_dependency "rubocop", "~> 1.0"
43
41
  end
@@ -25,7 +25,7 @@ module Hanami
25
25
  def application
26
26
  @application ||=
27
27
  begin
28
- require "hanami/init"
28
+ require "hanami/prepare"
29
29
  Hanami.application
30
30
  end
31
31
  end
@@ -69,7 +69,7 @@ module Hanami
69
69
  def rom_config
70
70
  @rom_config ||=
71
71
  begin
72
- application.init_bootable(:persistence)
72
+ application.prepare(:persistence)
73
73
  application.container["persistence.config"]
74
74
  end
75
75
  end
@@ -37,7 +37,7 @@ module Hanami
37
37
  # @api private
38
38
  def name
39
39
  (application.container.config.name || inflector.underscore(application.name))
40
- .split("/")[0]
40
+ .to_s.split("/")[0]
41
41
  end
42
42
 
43
43
  # @api private
@@ -10,7 +10,7 @@ module Hanami
10
10
  # @api public
11
11
  class Pry < Core
12
12
  # @api private
13
- class Context # rubocop:disable Lint/EmptyClass
13
+ class Context
14
14
  end
15
15
 
16
16
  # @api public
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanami
4
4
  module CLI
5
- VERSION = "2.0.0.alpha4"
5
+ VERSION = "2.0.0.alpha7"
6
6
  end
7
7
  end
@@ -12,8 +12,8 @@ module Hanami
12
12
  def initialize(application)
13
13
  super()
14
14
 
15
- application.slices.each do |(name, slice)|
16
- define_method(name) do
15
+ application.slices.each do |slice|
16
+ define_method(slice.slice_name) do
17
17
  slice
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha4
4
+ version: 2.0.0.alpha7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.11'
103
+ version: '1.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.11'
110
+ version: '1.0'
111
111
  description: Hanami command line
112
112
  email:
113
113
  - me@lucaguidi.com
@@ -210,6 +210,10 @@ homepage: https://hanamirb.org
210
210
  licenses:
211
211
  - MIT
212
212
  metadata:
213
+ allowed_push_host: https://rubygems.org
214
+ homepage_uri: https://hanamirb.org
215
+ source_code_uri: https://github.com/hanami/cli
216
+ changelog_uri: https://github.com/hanami/cli/blob/master/CHANGELOG.md
213
217
  rubygems_mfa_required: 'true'
214
218
  post_install_message:
215
219
  rdoc_options: []
@@ -219,14 +223,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
223
  requirements:
220
224
  - - ">="
221
225
  - !ruby/object:Gem::Version
222
- version: 2.6.0
226
+ version: '3.0'
223
227
  required_rubygems_version: !ruby/object:Gem::Requirement
224
228
  requirements:
225
229
  - - ">"
226
230
  - !ruby/object:Gem::Version
227
231
  version: 1.3.1
228
232
  requirements: []
229
- rubygems_version: 3.2.29
233
+ rubygems_version: 3.3.3
230
234
  signing_key:
231
235
  specification_version: 4
232
236
  summary: Hanami CLI