hanami-webconsole 0.1.0 → 2.1.0.beta1

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: dac26a4584e27ecb119442dd0fa8503844ddf6165cae558dbab596cba2f59cc4
4
- data.tar.gz: 321fe39c2000a1df56f9c50ee85d530f7efe55dfcee1bc0b963022dbba35b4c5
3
+ metadata.gz: 10d922780a71a3529439f8cce8c0bd48bac8d27c5db5633fb3b7749d2fac7bc4
4
+ data.tar.gz: f1ef77acb63c493d9b6ffa3305066a3abc9c3b5eea6e3403d73a68013f558027
5
5
  SHA512:
6
- metadata.gz: ffb76ddfe634ef98813e06f451110b1188ebf3e853db1a20403489e3b6408385979234c122dbea0c55a5badaea027ff264f7beb1adfec065b3f160ee4308f359
7
- data.tar.gz: 81b3fec260f50d447083c5d11d728e016712374c57f4934e87e833d60e6cd5d4d5667a72b73420a4f93833dab4c5a30716f8df42b0bfff61765fd56023eda049
6
+ metadata.gz: ff3519fc3582a38da7c2c6f267caf5388c6f0e02ad6b1681e6089e021fc9b668b485aab8cf74eea05a09ab14ff09103e52b7a97a59f7ec51ca6e86fc9a3da59e
7
+ data.tar.gz: 8a23351a12fad599ddee2b64e6875191a89f30dc571607a54dfeb5baadf172bf63f3a086da72cb0e7fc812c0a0ee2f9a1edb9e33bfe92a58db1ce24a4d580a54
data/CHANGELOG.md CHANGED
@@ -1,6 +1,24 @@
1
1
  # Hanami::Webconsole
2
2
  Hanami development web console.
3
3
 
4
+ ## v2.1.0.beta1 - 2023-06-29
5
+
6
+ ### Added
7
+
8
+ - [Tim Riley] Introduce `Hanami::Webconsole::Middleware`, a Rack middleware automatically used in
9
+ the Hanami app when hanami-webconsole is bundled (#6)
10
+
11
+ ### Changed
12
+
13
+ - [Tim Riley] Remove the Hanami v1 plugin (#6)
14
+
15
+ ## v0.2.0 - 2019-01-18
16
+
17
+ ### Added
18
+
19
+ - [Luca Guidi] Official support for Ruby 2.6.0
20
+ - [Luca Guidi] Support for `bundler` 2.0+
21
+
4
22
  ## v0.1.0 - 2018-04-11
5
23
 
6
24
  ## v0.1.0.rc2 - 2018-04-06
@@ -10,5 +28,7 @@ Hanami development web console.
10
28
  ## v0.1.0.beta2 - 2018-03-23
11
29
 
12
30
  ## v0.1.0.beta1 - 2018-02-28
31
+
13
32
  ### Added
33
+
14
34
  - [Luca Guidi & Anton Davydov] Package as Hanami plugin
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2018 Luca Guidi
1
+ Copyright © 2014 Hanami Team
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -2,10 +2,17 @@
2
2
 
3
3
  [Hanami](http://hanamirb.org) development web console.
4
4
 
5
+ ## Version
6
+
7
+ **This branch contains the code for `hanami-webconsole` 2.x.**
8
+
5
9
  ## Status
6
10
 
7
- [![Gem Version](http://img.shields.io/gem/v/hanami-webconsole.svg)](https://badge.fury.io/rb/hanami-webconsole)
8
- [![Build Status](http://img.shields.io/travis/hanami/webconsole/master.svg)](https://travis-ci.org/hanami/webconsole?branch=master)
11
+ [![Gem Version](https://badge.fury.io/rb/hanami-webconsole.svg)](https://badge.fury.io/rb/hanami-webconsole)
12
+ [![CI](https://github.com/hanami/webconsole/workflows/ci/badge.svg?branch=main)](https://github.com/hanami/webconsole/actions?query=workflow%3Aci+branch%3Amain)
13
+ [![Test Coverage](https://codecov.io/gh/hanami/webconsole/branch/main/graph/badge.svg)](https://codecov.io/gh/hanami/webconsole)
14
+ [![Depfu](https://badges.depfu.com/badges/a8545fb67cf32a2c75b6227bc0821027/overview.svg)](https://depfu.com/github/hanami/webconsole?project=Bundler)
15
+ [![Inline Docs](http://inch-ci.org/github/hanami/webconsole.svg)](http://inch-ci.org/github/hanami/webconsole)
9
16
 
10
17
  ## Installation
11
18
 
@@ -57,4 +64,4 @@ This gem is based on the great work of [`better_errors`](https://rubygems.org/ge
57
64
 
58
65
  ## Copyright
59
66
 
60
- Copyright © 2018 Luca Guidi – Released under MIT License
67
+ Copyright © 2014 Hanami Team – Released under MIT License
@@ -1,4 +1,3 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
3
  lib = File.expand_path("../lib", __FILE__)
@@ -10,23 +9,17 @@ Gem::Specification.new do |spec|
10
9
  spec.version = Hanami::Webconsole::VERSION
11
10
  spec.authors = ["Luca Guidi"]
12
11
  spec.email = ["me@lucaguidi.com"]
13
-
14
12
  spec.summary = "Hanami webconsole"
15
13
  spec.description = "Hanami webconsole for development"
16
14
  spec.homepage = "http://hanamirb.org"
17
15
  spec.license = "MIT"
18
16
 
19
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
-
21
- spec.files = `git ls-files -- lib/* CHANGELOG.md LICENSE.md README.md hanami-webconsole.gemspec`.split($INPUT_RECORD_SEPARATOR)
22
- spec.bindir = "exe"
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
+ spec.files = `git ls-files -- lib/* CHANGELOG.md LICENSE.md README.md hanami-webconsole.gemspec`.split($INPUT_RECORD_SEPARATOR)
24
18
  spec.require_paths = ["lib"]
25
19
 
26
- spec.add_dependency "better_errors", "~> 2.4"
27
- spec.add_dependency "binding_of_caller", "~> 0.8"
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
28
21
 
29
- spec.add_development_dependency "bundler", "~> 1.16"
30
- spec.add_development_dependency "rake", "~> 12.0"
31
- spec.add_development_dependency "rspec", "~> 3.7"
22
+ # Avoid 2.10.0 until https://github.com/BetterErrors/better_errors/issues/516 is fixed
23
+ spec.add_dependency "better_errors", "~> 2.9", "< 2.10.0"
24
+ spec.add_dependency "binding_of_caller", "~> 1.0"
32
25
  end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Hanami
4
+ module Webconsole
5
+ # @api private
6
+ # @since 2.1.0
7
+ class Middleware
8
+ # @api private
9
+ # @since 2.1.0
10
+ def initialize(app)
11
+ @better_errors = BetterErrors::Middleware.new(app)
12
+ configure_better_errors
13
+ end
14
+
15
+ # @api private
16
+ # @since 2.1.0
17
+ def call(...)
18
+ @better_errors.call(...)
19
+ end
20
+
21
+ private
22
+
23
+ def configure_better_errors
24
+ BetterErrors.application_root = Hanami.app.root.to_s
25
+ end
26
+ end
27
+ end
28
+ end
@@ -3,6 +3,6 @@
3
3
  module Hanami
4
4
  module Webconsole
5
5
  # @since 0.1.0
6
- VERSION = "0.1.0"
6
+ VERSION = "2.1.0.beta1"
7
7
  end
8
8
  end
@@ -1,11 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "better_errors"
4
+ require "binding_of_caller"
5
+
3
6
  module Hanami
4
7
  # Hanami web console for development
5
8
  #
6
9
  # @since 0.1.0
7
10
  module Webconsole
8
- require "hanami/webconsole/version"
9
- require "hanami/webconsole/plugin"
11
+ require_relative "webconsole/version"
12
+ require_relative "webconsole/middleware"
10
13
  end
11
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-webconsole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 2.1.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2023-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors
@@ -16,70 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.4'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
19
+ version: '2.9'
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: '2.4'
27
- - !ruby/object:Gem::Dependency
28
- name: binding_of_caller
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.8'
22
+ version: 2.10.0
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
27
  - - "~>"
39
28
  - !ruby/object:Gem::Version
40
- version: '0.8'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.16'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.16'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
29
+ version: '2.9'
30
+ - - "<"
60
31
  - !ruby/object:Gem::Version
61
- version: '12.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '12.0'
32
+ version: 2.10.0
69
33
  - !ruby/object:Gem::Dependency
70
- name: rspec
34
+ name: binding_of_caller
71
35
  requirement: !ruby/object:Gem::Requirement
72
36
  requirements:
73
37
  - - "~>"
74
38
  - !ruby/object:Gem::Version
75
- version: '3.7'
76
- type: :development
39
+ version: '1.0'
40
+ type: :runtime
77
41
  prerelease: false
78
42
  version_requirements: !ruby/object:Gem::Requirement
79
43
  requirements:
80
44
  - - "~>"
81
45
  - !ruby/object:Gem::Version
82
- version: '3.7'
46
+ version: '1.0'
83
47
  description: Hanami webconsole for development
84
48
  email:
85
49
  - me@lucaguidi.com
@@ -92,14 +56,14 @@ files:
92
56
  - README.md
93
57
  - hanami-webconsole.gemspec
94
58
  - lib/hanami/webconsole.rb
95
- - lib/hanami/webconsole/plugin.rb
59
+ - lib/hanami/webconsole/middleware.rb
96
60
  - lib/hanami/webconsole/version.rb
97
61
  homepage: http://hanamirb.org
98
62
  licenses:
99
63
  - MIT
100
64
  metadata:
101
65
  allowed_push_host: https://rubygems.org
102
- post_install_message:
66
+ post_install_message:
103
67
  rdoc_options: []
104
68
  require_paths:
105
69
  - lib
@@ -110,13 +74,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
74
  version: '0'
111
75
  required_rubygems_version: !ruby/object:Gem::Requirement
112
76
  requirements:
113
- - - ">="
77
+ - - ">"
114
78
  - !ruby/object:Gem::Version
115
- version: '0'
79
+ version: 1.3.1
116
80
  requirements: []
117
- rubyforge_project:
118
- rubygems_version: 2.7.6
119
- signing_key:
81
+ rubygems_version: 3.4.13
82
+ signing_key:
120
83
  specification_version: 4
121
84
  summary: Hanami webconsole
122
85
  test_files: []
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "better_errors"
4
- require "binding_of_caller"
5
-
6
- Hanami.plugin do
7
- middleware.use BetterErrors::Middleware
8
- BetterErrors.application_root = Hanami.root.to_s
9
- end