hanami-webconsole 0.1.0.rc2 → 2.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/LICENSE.md +1 -1
- data/README.md +10 -3
- data/hanami-webconsole.gemspec +5 -12
- data/lib/hanami/webconsole/middleware.rb +28 -0
- data/lib/hanami/webconsole/version.rb +1 -1
- data/lib/hanami/webconsole.rb +5 -2
- metadata +18 -55
- data/lib/hanami/webconsole/plugin.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d922780a71a3529439f8cce8c0bd48bac8d27c5db5633fb3b7749d2fac7bc4
|
4
|
+
data.tar.gz: f1ef77acb63c493d9b6ffa3305066a3abc9c3b5eea6e3403d73a68013f558027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3519fc3582a38da7c2c6f267caf5388c6f0e02ad6b1681e6089e021fc9b668b485aab8cf74eea05a09ab14ff09103e52b7a97a59f7ec51ca6e86fc9a3da59e
|
7
|
+
data.tar.gz: 8a23351a12fad599ddee2b64e6875191a89f30dc571607a54dfeb5baadf172bf63f3a086da72cb0e7fc812c0a0ee2f9a1edb9e33bfe92a58db1ce24a4d580a54
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
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
|
+
|
22
|
+
## v0.1.0 - 2018-04-11
|
23
|
+
|
4
24
|
## v0.1.0.rc2 - 2018-04-06
|
5
25
|
|
6
26
|
## v0.1.0.rc1 - 2018-03-30
|
@@ -8,5 +28,7 @@ Hanami development web console.
|
|
8
28
|
## v0.1.0.beta2 - 2018-03-23
|
9
29
|
|
10
30
|
## v0.1.0.beta1 - 2018-02-28
|
31
|
+
|
11
32
|
### Added
|
33
|
+
|
12
34
|
- [Luca Guidi & Anton Davydov] Package as Hanami plugin
|
data/LICENSE.md
CHANGED
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](
|
8
|
-
[![
|
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 ©
|
67
|
+
Copyright © 2014 Hanami Team – Released under MIT License
|
data/hanami-webconsole.gemspec
CHANGED
@@ -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.
|
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.
|
27
|
-
spec.add_dependency "binding_of_caller", "~> 0.8"
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
28
21
|
|
29
|
-
|
30
|
-
spec.
|
31
|
-
spec.
|
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
|
data/lib/hanami/webconsole.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
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:
|
4
|
+
version: 2.1.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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.
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !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
|
-
- - "~>"
|
19
|
+
version: '2.9'
|
20
|
+
- - "<"
|
32
21
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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: '
|
41
|
-
-
|
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
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '12.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
29
|
+
version: '2.9'
|
30
|
+
- - "<"
|
67
31
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
32
|
+
version: 2.10.0
|
69
33
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
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: '
|
76
|
-
type: :
|
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: '
|
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/
|
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
|
@@ -114,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
78
|
- !ruby/object:Gem::Version
|
115
79
|
version: 1.3.1
|
116
80
|
requirements: []
|
117
|
-
|
118
|
-
|
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: []
|