async-debug 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/lib/async/debug/application.rb +21 -0
  4. data/lib/async/debug/reactor_view.rb +7 -24
  5. data/lib/async/debug/version.rb +3 -20
  6. data/lib/async/debug.rb +15 -71
  7. data/license.md +21 -0
  8. data/readme.md +27 -0
  9. data.tar.gz.sig +0 -0
  10. metadata +15 -181
  11. metadata.gz.sig +0 -0
  12. data/pages/_heading.xnode +0 -2
  13. data/pages/_page.xnode +0 -42
  14. data/pages/controller.rb +0 -19
  15. data/pages/errors/exception.xnode +0 -5
  16. data/pages/errors/file-not-found.xnode +0 -5
  17. data/pages/index.xnode +0 -3
  18. data/pages/links.yaml +0 -4
  19. data/public/_components/@socketry/live/live.js +0 -157
  20. data/public/_components/@socketry/live/live.min.js +0 -1
  21. data/public/_components/jquery/jquery.js +0 -10872
  22. data/public/_components/jquery/jquery.min.js +0 -2
  23. data/public/_components/jquery/jquery.min.map +0 -1
  24. data/public/_components/jquery/jquery.slim.js +0 -8777
  25. data/public/_components/jquery/jquery.slim.min.js +0 -2
  26. data/public/_components/jquery/jquery.slim.min.map +0 -1
  27. data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +0 -12
  28. data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +0 -5
  29. data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +0 -8
  30. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +0 -4
  31. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +0 -2
  32. data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +0 -6
  33. data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +0 -14
  34. data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +0 -16
  35. data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +0 -5
  36. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +0 -3
  37. data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +0 -2
  38. data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +0 -6
  39. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +0 -2
  40. data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +0 -35
  41. data/public/_components/jquery-syntax/base/jquery.syntax.core.css +0 -58
  42. data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +0 -6
  43. data/public/_components/jquery-syntax/base/theme.js +0 -1
  44. data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +0 -27
  45. data/public/_components/jquery-syntax/bright/theme.js +0 -1
  46. data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +0 -3
  47. data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +0 -5
  48. data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +0 -3
  49. data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +0 -4
  50. data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +0 -2
  51. data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +0 -5
  52. data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +0 -5
  53. data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +0 -4
  54. data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +0 -5
  55. data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +0 -2
  56. data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +0 -3
  57. data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +0 -3
  58. data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +0 -4
  59. data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +0 -3
  60. data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +0 -4
  61. data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +0 -3
  62. data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +0 -2
  63. data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +0 -2
  64. data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +0 -3
  65. data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +0 -2
  66. data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +0 -4
  67. data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +0 -4
  68. data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +0 -4
  69. data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +0 -3
  70. data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +0 -4
  71. data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +0 -2
  72. data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +0 -2
  73. data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +0 -3
  74. data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +0 -5
  75. data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +0 -5
  76. data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +0 -4
  77. data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +0 -2
  78. data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +0 -4
  79. data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +0 -3
  80. data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +0 -3
  81. data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +0 -2
  82. data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +0 -4
  83. data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +0 -2
  84. data/public/_components/jquery-syntax/jquery.syntax.cache.js +0 -7
  85. data/public/_components/jquery-syntax/jquery.syntax.core.js +0 -34
  86. data/public/_components/jquery-syntax/jquery.syntax.editor.js +0 -11
  87. data/public/_components/jquery-syntax/jquery.syntax.js +0 -8
  88. data/public/_components/jquery-syntax/jquery.syntax.min.js +0 -13
  89. data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +0 -31
  90. data/public/_components/jquery-syntax/paper/theme.js +0 -1
  91. data/public/_components/morphdom/morphdom-esm.js +0 -755
  92. data/public/_components/morphdom/morphdom-factory.js +0 -691
  93. data/public/_components/morphdom/morphdom-umd.js +0 -763
  94. data/public/_components/morphdom/morphdom-umd.min.js +0 -1
  95. data/public/_components/morphdom/morphdom.js +0 -757
  96. data/public/_static/icon.png +0 -0
  97. data/public/_static/links.js +0 -21
  98. /data/public/_static/{site.css → index.css} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd98e04bd20ae2eef128dbefe1cf3db1a5a7ecddfdf96a0990bf284e5691e8db
4
- data.tar.gz: a3c58b2190a88917485f0fbbaac295fc343cfdb0b78bcd54a9002b4d0791796e
3
+ metadata.gz: 0b858de7bf77e5007766eb58b7055ffeea9903e11d828fa68408716ab50f4384
4
+ data.tar.gz: 2644ee870b34309c5a84f2b98cd0db4300ab18c98f55d9c77dcd9d4d798622ff
5
5
  SHA512:
6
- metadata.gz: ef672c42749a57f2e9cfb7c52b0a4c9d7603b71adeb8e1233109836ffe2ca286aab93bcc822beef4a36119ebbda0112966b9f7abc3ceffe11e60b50288ba1ce8
7
- data.tar.gz: 4e5661fda2e22705899b6d17cb3857564ce092bf058e64e6e5b7b7e77a5af77a38eeb75c34d656c6c367e6aa749116f1e167477734125f167977d4ca58b23a4e
6
+ metadata.gz: 72acc5ffb80085738e3b4a461cfb735de0b16be656fbf7b0d9e3974fe8258264c7da1094f86a57e8ec4a99a29dc77ee235dc6b4313688883075e72b82063c0fd
7
+ data.tar.gz: 39b59405bd64fdc847393b964fbf553bdadc410a869ad82edde8b8557039673da433f75f5da087b9dc86d9a59332206e45201506e4d02987e45f772b133482fd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
+
6
+ require 'lively/application'
7
+ require_relative 'reactor_view'
8
+
9
+ module Async
10
+ module Debug
11
+ class Application < Lively::Application
12
+ def self.resolver
13
+ Live::Resolver.allow(ReactorView)
14
+ end
15
+
16
+ def body(...)
17
+ ReactorView.new(...)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,35 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2021, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2021-2024, by Samuel Williams.
22
5
 
23
6
  require 'live'
24
7
 
25
8
  module Async
26
9
  module Debug
27
10
  class ReactorView < Live::View
28
- def initialize(id, **data)
11
+ def initialize(...)
29
12
  super
30
13
 
31
14
  @update = nil
32
- @top = Async::Task.current.reactor
15
+ @root = Async::Task.current.root
33
16
  end
34
17
 
35
18
  def bind(page)
@@ -38,7 +21,7 @@ module Async
38
21
  @update = Async do |task|
39
22
  while true
40
23
  task.sleep(1.0/10.0)
41
- self.replace!
24
+ self.update!
42
25
  end
43
26
  end
44
27
  end
@@ -50,10 +33,10 @@ module Async
50
33
  end
51
34
 
52
35
  def handle(event, details)
53
- replace!
36
+ update!
54
37
  end
55
38
 
56
- def render_node(builder, node = @top)
39
+ def render_node(builder, node = @root)
57
40
  klass = []
58
41
  title = []
59
42
 
@@ -1,27 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2021, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2021-2024, by Samuel Williams.
22
5
 
23
6
  module Async
24
7
  module Debug
25
- VERSION = "0.2.0"
8
+ VERSION = "0.3.0"
26
9
  end
27
10
  end
data/lib/async/debug.rb CHANGED
@@ -1,90 +1,34 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2021, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2021-2024, by Samuel Williams.
22
5
 
23
6
  require_relative "debug/version"
7
+ require_relative "debug/application"
24
8
 
25
- require 'utopia/localization'
26
- require 'falcon/endpoint'
27
- require 'falcon/server'
28
- require 'utopia/setup'
9
+ require 'lively/assets'
10
+ require 'async/http'
11
+ require 'protocol/http/middleware/builder'
29
12
 
30
13
  module Async
31
14
  module Debug
32
15
  # Start the debugger.
33
16
  #
34
- # @parameter endpoint [Async::IO::Endpoint] The endpoint to bind to. Defaults to <https://localhost:9090>.
17
+ # @parameter endpoint [Async::IO::Endpoint] The endpoint to bind to. Defaults to <http://localhost:9090>.
35
18
  def self.serve(endpoint: nil)
36
- endpoint ||= Falcon::Endpoint.parse("https://localhost:9090")
37
- builder = Rack::Builder.new
38
- self.call(builder)
39
- app = builder.to_app
40
- middleware = Falcon::Server.middleware(app)
19
+ endpoint ||= Async::HTTP::Endpoint.parse("http://localhost:9090")
20
+
21
+ middleware = ::Protocol::HTTP::Middleware.build do |builder|
22
+ builder.use Lively::Assets, root: File.expand_path("../../public", __dir__)
23
+
24
+ builder.use Lively::Assets
25
+ builder.use Debug::Application
26
+ end
41
27
 
42
28
  Async(transient: true, annotation: self) do
43
29
  Console.logger.info(self, "Live debugger binding to #{endpoint}...")
44
30
  Async::HTTP::Server.new(middleware, endpoint).run
45
31
  end
46
32
  end
47
-
48
- # The root directory of the web application files.
49
- SITE_ROOT = File.expand_path("../..", __dir__)
50
-
51
- # The root directory for the utopia middleware.
52
- PAGES_ROOT = File.expand_path("pages", SITE_ROOT)
53
-
54
- # The root directory for static assets.
55
- PUBLIC_ROOT = File.expand_path("public", SITE_ROOT)
56
-
57
- # Appends a project application to the rack builder.
58
- #
59
- # @parameter builder [Rack::Builder]
60
- # @parameter root [String] The file-system root path of the project/gem.
61
- # @parameter locales [Array(String)] an array of locales to support, e.g. `['en', 'ja']`.
62
- def self.call(builder, root = Dir.pwd, locales: nil, utopia: Utopia.setup)
63
- # We want to propate exceptions up when running tests:
64
- builder.use Rack::ShowExceptions
65
-
66
- builder.use Utopia::Static, root: PUBLIC_ROOT
67
-
68
- builder.use Utopia::Redirection::Rewrite, {
69
- '/' => '/index'
70
- }
71
-
72
- builder.use Utopia::Redirection::DirectoryIndex
73
-
74
- builder.use Utopia::Redirection::Errors, {
75
- 404 => '/errors/file-not-found'
76
- }
77
-
78
- if locales
79
- builder.use Utopia::Localization,
80
- default_locale: locales.first,
81
- locales: locales
82
- end
83
-
84
- builder.use Utopia::Controller, root: PAGES_ROOT
85
- builder.use Utopia::Content, root: PAGES_ROOT
86
-
87
- builder.run lambda { |env| [404, {}, []] }
88
- end
89
33
  end
90
34
  end
data/license.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright, 2021-2024, by Samuel Williams.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/readme.md ADDED
@@ -0,0 +1,27 @@
1
+ # Async::Debug
2
+
3
+ A web-based debugger for asynchronous applications.
4
+
5
+ [![Development Status](https://github.com/socketry/async-debug/workflows/Test/badge.svg)](https://github.com/socketry/async-debug/actions?workflow=Test)
6
+
7
+ ## Usage
8
+
9
+ Please see the [project documentation](https://socketry.github.io/async-debug/).
10
+
11
+ ## Contributing
12
+
13
+ We welcome contributions to this project.
14
+
15
+ 1. Fork it.
16
+ 2. Create your feature branch (`git checkout -b my-new-feature`).
17
+ 3. Commit your changes (`git commit -am 'Add some feature'`).
18
+ 4. Push to the branch (`git push origin my-new-feature`).
19
+ 5. Create new Pull Request.
20
+
21
+ ### Developer Certificate of Origin
22
+
23
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
24
+
25
+ ### Community Guidelines
26
+
27
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,120 +37,36 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2022-08-22 00:00:00.000000000 Z
40
+ date: 2024-07-14 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
- name: falcon
43
+ name: async-http
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.42.2
48
+ version: '0.69'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 0.42.2
55
+ version: '0.69'
56
56
  - !ruby/object:Gem::Dependency
57
- name: live
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: 0.5.0
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: 0.5.0
70
- - !ruby/object:Gem::Dependency
71
- name: utopia
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: async-rspec
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '1.1'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.1'
98
- - !ruby/object:Gem::Dependency
99
- name: bake
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: bundler
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: covered
57
+ name: lively
128
58
  requirement: !ruby/object:Gem::Requirement
129
59
  requirements:
130
60
  - - "~>"
131
61
  - !ruby/object:Gem::Version
132
62
  version: '0.10'
133
- type: :development
63
+ type: :runtime
134
64
  prerelease: false
135
65
  version_requirements: !ruby/object:Gem::Requirement
136
66
  requirements:
137
67
  - - "~>"
138
68
  - !ruby/object:Gem::Version
139
69
  version: '0.10'
140
- - !ruby/object:Gem::Dependency
141
- name: rspec
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: '3.6'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: '3.6'
154
70
  description:
155
71
  email:
156
72
  executables: []
@@ -158,99 +74,17 @@ extensions: []
158
74
  extra_rdoc_files: []
159
75
  files:
160
76
  - lib/async/debug.rb
77
+ - lib/async/debug/application.rb
161
78
  - lib/async/debug/reactor_view.rb
162
79
  - lib/async/debug/version.rb
163
- - pages/_heading.xnode
164
- - pages/_page.xnode
165
- - pages/controller.rb
166
- - pages/errors/exception.xnode
167
- - pages/errors/file-not-found.xnode
168
- - pages/index.xnode
169
- - pages/links.yaml
170
- - public/_components/@socketry/live/live.js
171
- - public/_components/@socketry/live/live.min.js
172
- - public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css
173
- - public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css
174
- - public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css
175
- - public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css
176
- - public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css
177
- - public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css
178
- - public/_components/jquery-syntax/base/jquery.syntax.brush.css.css
179
- - public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css
180
- - public/_components/jquery-syntax/base/jquery.syntax.brush.html.css
181
- - public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css
182
- - public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css
183
- - public/_components/jquery-syntax/base/jquery.syntax.brush.python.css
184
- - public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css
185
- - public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css
186
- - public/_components/jquery-syntax/base/jquery.syntax.core.css
187
- - public/_components/jquery-syntax/base/jquery.syntax.editor.css
188
- - public/_components/jquery-syntax/base/theme.js
189
- - public/_components/jquery-syntax/bright/jquery.syntax.core.css
190
- - public/_components/jquery-syntax/bright/theme.js
191
- - public/_components/jquery-syntax/jquery.syntax.brush.apache.js
192
- - public/_components/jquery-syntax/jquery.syntax.brush.applescript.js
193
- - public/_components/jquery-syntax/jquery.syntax.brush.assembly.js
194
- - public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js
195
- - public/_components/jquery-syntax/jquery.syntax.brush.bash.js
196
- - public/_components/jquery-syntax/jquery.syntax.brush.basic.js
197
- - public/_components/jquery-syntax/jquery.syntax.brush.clang.js
198
- - public/_components/jquery-syntax/jquery.syntax.brush.csharp.js
199
- - public/_components/jquery-syntax/jquery.syntax.brush.css.js
200
- - public/_components/jquery-syntax/jquery.syntax.brush.diff.js
201
- - public/_components/jquery-syntax/jquery.syntax.brush.go.js
202
- - public/_components/jquery-syntax/jquery.syntax.brush.haskell.js
203
- - public/_components/jquery-syntax/jquery.syntax.brush.html.js
204
- - public/_components/jquery-syntax/jquery.syntax.brush.io.js
205
- - public/_components/jquery-syntax/jquery.syntax.brush.java.js
206
- - public/_components/jquery-syntax/jquery.syntax.brush.javascript.js
207
- - public/_components/jquery-syntax/jquery.syntax.brush.kai.js
208
- - public/_components/jquery-syntax/jquery.syntax.brush.lisp.js
209
- - public/_components/jquery-syntax/jquery.syntax.brush.lua.js
210
- - public/_components/jquery-syntax/jquery.syntax.brush.nginx.js
211
- - public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js
212
- - public/_components/jquery-syntax/jquery.syntax.brush.ooc.js
213
- - public/_components/jquery-syntax/jquery.syntax.brush.pascal.js
214
- - public/_components/jquery-syntax/jquery.syntax.brush.perl5.js
215
- - public/_components/jquery-syntax/jquery.syntax.brush.php-script.js
216
- - public/_components/jquery-syntax/jquery.syntax.brush.php.js
217
- - public/_components/jquery-syntax/jquery.syntax.brush.plain.js
218
- - public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js
219
- - public/_components/jquery-syntax/jquery.syntax.brush.python.js
220
- - public/_components/jquery-syntax/jquery.syntax.brush.ruby.js
221
- - public/_components/jquery-syntax/jquery.syntax.brush.scala.js
222
- - public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js
223
- - public/_components/jquery-syntax/jquery.syntax.brush.sql.js
224
- - public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js
225
- - public/_components/jquery-syntax/jquery.syntax.brush.swift.js
226
- - public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
227
- - public/_components/jquery-syntax/jquery.syntax.brush.xml.js
228
- - public/_components/jquery-syntax/jquery.syntax.brush.yaml.js
229
- - public/_components/jquery-syntax/jquery.syntax.cache.js
230
- - public/_components/jquery-syntax/jquery.syntax.core.js
231
- - public/_components/jquery-syntax/jquery.syntax.editor.js
232
- - public/_components/jquery-syntax/jquery.syntax.js
233
- - public/_components/jquery-syntax/jquery.syntax.min.js
234
- - public/_components/jquery-syntax/paper/jquery.syntax.core.css
235
- - public/_components/jquery-syntax/paper/theme.js
236
- - public/_components/jquery/jquery.js
237
- - public/_components/jquery/jquery.min.js
238
- - public/_components/jquery/jquery.min.map
239
- - public/_components/jquery/jquery.slim.js
240
- - public/_components/jquery/jquery.slim.min.js
241
- - public/_components/jquery/jquery.slim.min.map
242
- - public/_components/morphdom/morphdom-esm.js
243
- - public/_components/morphdom/morphdom-factory.js
244
- - public/_components/morphdom/morphdom-umd.js
245
- - public/_components/morphdom/morphdom-umd.min.js
246
- - public/_components/morphdom/morphdom.js
247
- - public/_static/icon.png
248
- - public/_static/links.js
249
- - public/_static/site.css
80
+ - license.md
81
+ - public/_static/index.css
82
+ - readme.md
250
83
  homepage: https://github.com/socketry/async-debug
251
84
  licenses:
252
85
  - MIT
253
- metadata: {}
86
+ metadata:
87
+ source_code_uri: https://github.com/socketry/async-debug.git
254
88
  post_install_message:
255
89
  rdoc_options: []
256
90
  require_paths:
@@ -259,14 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
93
  requirements:
260
94
  - - ">="
261
95
  - !ruby/object:Gem::Version
262
- version: 2.5.0
96
+ version: '3.1'
263
97
  required_rubygems_version: !ruby/object:Gem::Requirement
264
98
  requirements:
265
99
  - - ">="
266
100
  - !ruby/object:Gem::Version
267
101
  version: '0'
268
102
  requirements: []
269
- rubygems_version: 3.3.7
103
+ rubygems_version: 3.5.11
270
104
  signing_key:
271
105
  specification_version: 4
272
106
  summary: Live debugging for Async.
metadata.gz.sig CHANGED
Binary file
data/pages/_heading.xnode DELETED
@@ -1,2 +0,0 @@
1
- <?r document.attributes[:title] ||= content ?>
2
- <h1><utopia:content/></h1>
data/pages/_page.xnode DELETED
@@ -1,42 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <?r response.cache! ?>
5
-
6
- <?r if title = self[:title] ?>
7
- <title>#{title.gsub(/<.*?>/, "")}</title>
8
- <?r else ?>
9
- <title>Async Debug</title>
10
- <?r end ?>
11
-
12
- <meta charset="UTF-8" />
13
- <meta name="viewport" content="width=device-width, initial-scale=1" />
14
-
15
- <link rel="icon" type="image/png" href="/_static/icon.png" />
16
- <link rel="stylesheet" href="/_static/site.css" type="text/css" media="screen" />
17
-
18
- <script src="/_components/jquery/jquery.min.js"></script>
19
- <script src="/_components/jquery-syntax/jquery.syntax.min.js"></script>
20
-
21
- <script src="/_static/links.js"></script>
22
-
23
- <script src="/_components/morphdom/morphdom-umd.js"></script>
24
- <script src="/_components/@socketry/live/live.js"></script>
25
-
26
- <script type="text/javascript">
27
- //<![CDATA[
28
- jQuery(function($) {
29
- $.syntax();
30
- });
31
- //]]>
32
- </script>
33
- </head>
34
-
35
- <body>
36
- <content:header />
37
-
38
- <main>
39
- <utopia:content/>
40
- </main>
41
- </body>
42
- </html>
data/pages/controller.rb DELETED
@@ -1,19 +0,0 @@
1
-
2
- require 'async/websocket/adapters/rack'
3
- require_relative '../lib/async/debug/reactor_view'
4
-
5
- prepend Actions
6
-
7
- RESOLVER = Live::Resolver.allow(Async::Debug::ReactorView)
8
-
9
- on 'live' do |request|
10
- adapter = Async::WebSocket::Adapters::Rack.open(request.env) do |connection|
11
- Live::Page.new(RESOLVER).run(connection)
12
- end
13
-
14
- respond?(adapter) or fail!
15
- end
16
-
17
- on 'index' do
18
- @tag = Async::Debug::ReactorView.new('reactor-view')
19
- end
@@ -1,5 +0,0 @@
1
- <content:page>
2
- <content:heading>Exception</content:heading>
3
-
4
- <p>It seems like something didn't quite work out as expected!</p>
5
- </content:page>
@@ -1,5 +0,0 @@
1
- <content:page>
2
- <content:heading>File Not Found</content:heading>
3
-
4
- <p>The file you requested is unfortunately not available at this time!</p>
5
- </content:page>
data/pages/index.xnode DELETED
@@ -1,3 +0,0 @@
1
- <content:page title="Reactor Overview">
2
- #{attributes[:tag].to_html}
3
- </content:page>
data/pages/links.yaml DELETED
@@ -1,4 +0,0 @@
1
- index:
2
- title: Async Debug
3
- errors:
4
- display: false