hanami-webconsole 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 052be218e88e5341a0ae8a6864d40dbbf0be0b71ffd298190f790e4e7118f2f2
4
+ data.tar.gz: 879171c523550488215eb97f8619be493214b7bce1882fb412cd8ff204cda54d
5
+ SHA512:
6
+ metadata.gz: 8f594b364c6a057a707fa3a5b8ee7f8a9a62cfae6058c5bd5c5efe4d72056cc6eb36a869f2ffe6701676145ff0bc52a202ebc5850ed6f219bac75b7de9e60b94
7
+ data.tar.gz: c39d9338598e5fdb1d17e4d508c8ece6b62515b46d69978f73efdff2bf8975075b11c1ae8334aff9859678cf9c680804e9b6e7a2e4939f3a03a25c7991ee6ff0
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Hanami::Webconsole
2
+ Hanami development web console.
3
+
4
+ ## v0.1.0.beta1 - 2018-02-28
5
+ ### Added
6
+ - [Luca Guidi & Anton Davydov] Package as Hanami plugin
data/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ Copyright © 2018 Luca Guidi
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Hanami::Webconsole
2
+
3
+ [Hanami](http://hanamirb.org) development web console.
4
+
5
+ ## Status
6
+
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)
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Hanami project's `Gemfile`:
13
+
14
+ ```ruby
15
+ group :development do
16
+ gem "hanami-webconsole"
17
+ end
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ ```shell
23
+ $ bundle install
24
+ ```
25
+
26
+ **NOTE:** You need a version of `hanami` `1.2.0+`.
27
+
28
+ ## Usage
29
+
30
+ When an exception is raised during your local development in-browser, you'll see the web console.
31
+
32
+ ### Code reloading
33
+
34
+ This gem in incompatible with `hanami` code reloading.
35
+
36
+ In order to use this gem, you have two alternatives:
37
+
38
+ 1. Start the server without code reloading: `bundle exec hanami server --no-code-reloading`
39
+ 1. Use [`hanami-reloader`](https://rubygems.org/gems/hanami-reloader) gem and start the server as usual: `bundle exec hanami server`
40
+
41
+ ## Development
42
+
43
+ After checking out the repo, run `bin/setup` to install dependencies.
44
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
48
+ To run all the test, use `script/ci`.
49
+
50
+ ## Contributing
51
+
52
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hanami/webconsole.
53
+
54
+ ## Acknowledgements
55
+
56
+ This gem is based on the great work of [`better_errors`](https://rubygems.org/gems/better_errors) and [`binding_of_caller`](https://rubygems.org/gems/binding_of_caller) gems. Thank you!
57
+
58
+ ## Copyright
59
+
60
+ Copyright © 2018 Luca Guidi – Released under MIT License
@@ -0,0 +1,32 @@
1
+
2
+ # frozen_string_literal: true
3
+
4
+ lib = File.expand_path("../lib", __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require "hanami/webconsole/version"
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = "hanami-webconsole"
10
+ spec.version = Hanami::Webconsole::VERSION
11
+ spec.authors = ["Luca Guidi"]
12
+ spec.email = ["me@lucaguidi.com"]
13
+
14
+ spec.summary = "Hanami webconsole"
15
+ spec.description = "Hanami webconsole for development"
16
+ spec.homepage = "http://hanamirb.org"
17
+ spec.license = "MIT"
18
+
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) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_dependency "better_errors", "~> 2.4"
27
+ spec.add_dependency "binding_of_caller", "~> 0.8"
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.16"
30
+ spec.add_development_dependency "rake", "~> 12.0"
31
+ spec.add_development_dependency "rspec", "~> 3.7"
32
+ end
@@ -0,0 +1,9 @@
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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Hanami
4
+ module Webconsole
5
+ # @since 0.1.0
6
+ VERSION = "0.1.0.beta1"
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Hanami
4
+ # Hanami web console for development
5
+ #
6
+ # @since 0.1.0
7
+ module Webconsole
8
+ require "hanami/webconsole/version"
9
+ require "hanami/webconsole/plugin"
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hanami-webconsole
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.beta1
5
+ platform: ruby
6
+ authors:
7
+ - Luca Guidi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: better_errors
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
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
+ - - "~>"
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
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !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
+ - - "~>"
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
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '12.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.7'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.7'
83
+ description: Hanami webconsole for development
84
+ email:
85
+ - me@lucaguidi.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - CHANGELOG.md
91
+ - LICENSE.md
92
+ - README.md
93
+ - hanami-webconsole.gemspec
94
+ - lib/hanami/webconsole.rb
95
+ - lib/hanami/webconsole/plugin.rb
96
+ - lib/hanami/webconsole/version.rb
97
+ homepage: http://hanamirb.org
98
+ licenses:
99
+ - MIT
100
+ metadata:
101
+ allowed_push_host: https://rubygems.org
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">"
114
+ - !ruby/object:Gem::Version
115
+ version: 1.3.1
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 2.7.5
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: Hanami webconsole
122
+ test_files: []