micro-lite-gem 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. checksums.yaml +7 -0
  2. data/byebug-13.0.0/CHANGELOG.md +980 -0
  3. data/byebug-13.0.0/CONTRIBUTING.md +58 -0
  4. data/byebug-13.0.0/GUIDE.md +1806 -0
  5. data/byebug-13.0.0/LICENSE +23 -0
  6. data/byebug-13.0.0/README.md +197 -0
  7. data/byebug-13.0.0/exe/byebug +6 -0
  8. data/byebug-13.0.0/ext/byebug/breakpoint.c +522 -0
  9. data/byebug-13.0.0/ext/byebug/byebug.c +906 -0
  10. data/byebug-13.0.0/ext/byebug/byebug.h +147 -0
  11. data/byebug-13.0.0/ext/byebug/context.c +682 -0
  12. data/byebug-13.0.0/ext/byebug/extconf.rb +12 -0
  13. data/byebug-13.0.0/ext/byebug/locker.c +96 -0
  14. data/byebug-13.0.0/ext/byebug/threads.c +254 -0
  15. data/byebug-13.0.0/lib/byebug/attacher.rb +48 -0
  16. data/byebug-13.0.0/lib/byebug/breakpoint.rb +94 -0
  17. data/byebug-13.0.0/lib/byebug/command.rb +111 -0
  18. data/byebug-13.0.0/lib/byebug/command_list.rb +34 -0
  19. data/byebug-13.0.0/lib/byebug/commands/break.rb +114 -0
  20. data/byebug-13.0.0/lib/byebug/commands/catch.rb +78 -0
  21. data/byebug-13.0.0/lib/byebug/commands/condition.rb +55 -0
  22. data/byebug-13.0.0/lib/byebug/commands/continue.rb +68 -0
  23. data/byebug-13.0.0/lib/byebug/commands/debug.rb +38 -0
  24. data/byebug-13.0.0/lib/byebug/commands/delete.rb +55 -0
  25. data/byebug-13.0.0/lib/byebug/commands/disable/breakpoints.rb +42 -0
  26. data/byebug-13.0.0/lib/byebug/commands/disable/display.rb +43 -0
  27. data/byebug-13.0.0/lib/byebug/commands/disable.rb +33 -0
  28. data/byebug-13.0.0/lib/byebug/commands/display.rb +66 -0
  29. data/byebug-13.0.0/lib/byebug/commands/down.rb +45 -0
  30. data/byebug-13.0.0/lib/byebug/commands/edit.rb +69 -0
  31. data/byebug-13.0.0/lib/byebug/commands/enable/breakpoints.rb +42 -0
  32. data/byebug-13.0.0/lib/byebug/commands/enable/display.rb +43 -0
  33. data/byebug-13.0.0/lib/byebug/commands/enable.rb +33 -0
  34. data/byebug-13.0.0/lib/byebug/commands/finish.rb +57 -0
  35. data/byebug-13.0.0/lib/byebug/commands/frame.rb +57 -0
  36. data/byebug-13.0.0/lib/byebug/commands/help.rb +64 -0
  37. data/byebug-13.0.0/lib/byebug/commands/history.rb +39 -0
  38. data/byebug-13.0.0/lib/byebug/commands/info/breakpoints.rb +65 -0
  39. data/byebug-13.0.0/lib/byebug/commands/info/display.rb +49 -0
  40. data/byebug-13.0.0/lib/byebug/commands/info/file.rb +80 -0
  41. data/byebug-13.0.0/lib/byebug/commands/info/line.rb +35 -0
  42. data/byebug-13.0.0/lib/byebug/commands/info/program.rb +49 -0
  43. data/byebug-13.0.0/lib/byebug/commands/info.rb +37 -0
  44. data/byebug-13.0.0/lib/byebug/commands/interrupt.rb +34 -0
  45. data/byebug-13.0.0/lib/byebug/commands/irb.rb +51 -0
  46. data/byebug-13.0.0/lib/byebug/commands/kill.rb +45 -0
  47. data/byebug-13.0.0/lib/byebug/commands/list.rb +159 -0
  48. data/byebug-13.0.0/lib/byebug/commands/method.rb +53 -0
  49. data/byebug-13.0.0/lib/byebug/commands/next.rb +40 -0
  50. data/byebug-13.0.0/lib/byebug/commands/pry.rb +41 -0
  51. data/byebug-13.0.0/lib/byebug/commands/quit.rb +42 -0
  52. data/byebug-13.0.0/lib/byebug/commands/restart.rb +64 -0
  53. data/byebug-13.0.0/lib/byebug/commands/save.rb +72 -0
  54. data/byebug-13.0.0/lib/byebug/commands/set.rb +79 -0
  55. data/byebug-13.0.0/lib/byebug/commands/show.rb +45 -0
  56. data/byebug-13.0.0/lib/byebug/commands/skip.rb +85 -0
  57. data/byebug-13.0.0/lib/byebug/commands/source.rb +40 -0
  58. data/byebug-13.0.0/lib/byebug/commands/step.rb +40 -0
  59. data/byebug-13.0.0/lib/byebug/commands/thread/current.rb +37 -0
  60. data/byebug-13.0.0/lib/byebug/commands/thread/list.rb +43 -0
  61. data/byebug-13.0.0/lib/byebug/commands/thread/resume.rb +45 -0
  62. data/byebug-13.0.0/lib/byebug/commands/thread/stop.rb +43 -0
  63. data/byebug-13.0.0/lib/byebug/commands/thread/switch.rb +46 -0
  64. data/byebug-13.0.0/lib/byebug/commands/thread.rb +34 -0
  65. data/byebug-13.0.0/lib/byebug/commands/tracevar.rb +54 -0
  66. data/byebug-13.0.0/lib/byebug/commands/undisplay.rb +51 -0
  67. data/byebug-13.0.0/lib/byebug/commands/untracevar.rb +36 -0
  68. data/byebug-13.0.0/lib/byebug/commands/up.rb +45 -0
  69. data/byebug-13.0.0/lib/byebug/commands/var/all.rb +41 -0
  70. data/byebug-13.0.0/lib/byebug/commands/var/args.rb +39 -0
  71. data/byebug-13.0.0/lib/byebug/commands/var/const.rb +49 -0
  72. data/byebug-13.0.0/lib/byebug/commands/var/global.rb +37 -0
  73. data/byebug-13.0.0/lib/byebug/commands/var/instance.rb +39 -0
  74. data/byebug-13.0.0/lib/byebug/commands/var/local.rb +39 -0
  75. data/byebug-13.0.0/lib/byebug/commands/var.rb +37 -0
  76. data/byebug-13.0.0/lib/byebug/commands/where.rb +64 -0
  77. data/byebug-13.0.0/lib/byebug/commands.rb +40 -0
  78. data/byebug-13.0.0/lib/byebug/context.rb +157 -0
  79. data/byebug-13.0.0/lib/byebug/core.rb +115 -0
  80. data/byebug-13.0.0/lib/byebug/errors.rb +29 -0
  81. data/byebug-13.0.0/lib/byebug/frame.rb +185 -0
  82. data/byebug-13.0.0/lib/byebug/helpers/bin.rb +47 -0
  83. data/byebug-13.0.0/lib/byebug/helpers/eval.rb +124 -0
  84. data/byebug-13.0.0/lib/byebug/helpers/file.rb +67 -0
  85. data/byebug-13.0.0/lib/byebug/helpers/frame.rb +75 -0
  86. data/byebug-13.0.0/lib/byebug/helpers/parse.rb +82 -0
  87. data/byebug-13.0.0/lib/byebug/helpers/path.rb +40 -0
  88. data/byebug-13.0.0/lib/byebug/helpers/reflection.rb +19 -0
  89. data/byebug-13.0.0/lib/byebug/helpers/string.rb +33 -0
  90. data/byebug-13.0.0/lib/byebug/helpers/thread.rb +67 -0
  91. data/byebug-13.0.0/lib/byebug/helpers/toggle.rb +62 -0
  92. data/byebug-13.0.0/lib/byebug/helpers/var.rb +70 -0
  93. data/byebug-13.0.0/lib/byebug/history.rb +120 -0
  94. data/byebug-13.0.0/lib/byebug/interface.rb +146 -0
  95. data/byebug-13.0.0/lib/byebug/interfaces/local_interface.rb +63 -0
  96. data/byebug-13.0.0/lib/byebug/interfaces/remote_interface.rb +50 -0
  97. data/byebug-13.0.0/lib/byebug/interfaces/script_interface.rb +33 -0
  98. data/byebug-13.0.0/lib/byebug/interfaces/test_interface.rb +67 -0
  99. data/byebug-13.0.0/lib/byebug/option_setter.rb +95 -0
  100. data/byebug-13.0.0/lib/byebug/printers/base.rb +68 -0
  101. data/byebug-13.0.0/lib/byebug/printers/plain.rb +44 -0
  102. data/byebug-13.0.0/lib/byebug/printers/texts/base.yml +115 -0
  103. data/byebug-13.0.0/lib/byebug/printers/texts/plain.yml +33 -0
  104. data/byebug-13.0.0/lib/byebug/processors/command_processor.rb +173 -0
  105. data/byebug-13.0.0/lib/byebug/processors/control_processor.rb +24 -0
  106. data/byebug-13.0.0/lib/byebug/processors/post_mortem_processor.rb +18 -0
  107. data/byebug-13.0.0/lib/byebug/processors/script_processor.rb +49 -0
  108. data/byebug-13.0.0/lib/byebug/remote/client.rb +57 -0
  109. data/byebug-13.0.0/lib/byebug/remote/server.rb +47 -0
  110. data/byebug-13.0.0/lib/byebug/remote.rb +85 -0
  111. data/byebug-13.0.0/lib/byebug/runner.rb +198 -0
  112. data/byebug-13.0.0/lib/byebug/setting.rb +79 -0
  113. data/byebug-13.0.0/lib/byebug/settings/autoirb.rb +29 -0
  114. data/byebug-13.0.0/lib/byebug/settings/autolist.rb +29 -0
  115. data/byebug-13.0.0/lib/byebug/settings/autopry.rb +29 -0
  116. data/byebug-13.0.0/lib/byebug/settings/autosave.rb +17 -0
  117. data/byebug-13.0.0/lib/byebug/settings/basename.rb +16 -0
  118. data/byebug-13.0.0/lib/byebug/settings/callstyle.rb +20 -0
  119. data/byebug-13.0.0/lib/byebug/settings/fullpath.rb +16 -0
  120. data/byebug-13.0.0/lib/byebug/settings/histfile.rb +20 -0
  121. data/byebug-13.0.0/lib/byebug/settings/histsize.rb +20 -0
  122. data/byebug-13.0.0/lib/byebug/settings/linetrace.rb +22 -0
  123. data/byebug-13.0.0/lib/byebug/settings/listsize.rb +21 -0
  124. data/byebug-13.0.0/lib/byebug/settings/post_mortem.rb +27 -0
  125. data/byebug-13.0.0/lib/byebug/settings/savefile.rb +20 -0
  126. data/byebug-13.0.0/lib/byebug/settings/stack_on_error.rb +15 -0
  127. data/byebug-13.0.0/lib/byebug/settings/width.rb +20 -0
  128. data/byebug-13.0.0/lib/byebug/source_file_formatter.rb +71 -0
  129. data/byebug-13.0.0/lib/byebug/subcommands.rb +54 -0
  130. data/byebug-13.0.0/lib/byebug/version.rb +8 -0
  131. data/byebug-13.0.0/lib/byebug.rb +3 -0
  132. data/micro-lite-gem.gemspec +12 -0
  133. metadata +172 -0
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2018 David Rodríguez <deivid.rodriguez@riseup.net>
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,197 @@
1
+ # Byebug
2
+
3
+ [![Version][gem]][gem_url]
4
+ [![Tidelift][tid]][tid_url]
5
+ [![Gitter][irc]][irc_url]
6
+
7
+ [gem]: https://img.shields.io/gem/v/byebug.svg
8
+ [tid]: https://tidelift.com/badges/package/rubygems/byebug
9
+ [irc]: https://img.shields.io/badge/IRC%20(gitter)-devs%20%26%20users-brightgreen.svg
10
+
11
+ [gem_url]: https://rubygems.org/gems/byebug
12
+ [tid_url]: https://tidelift.com/subscription/pkg/rubygems-byebug?utm_source=rubygems-byebug&utm_medium=readme_badge
13
+ [irc_url]: https://gitter.im/deivid-rodriguez/byebug
14
+
15
+ Byebug is a simple to use and feature rich debugger for Ruby. It uses the
16
+ TracePoint API for execution control and the Debug Inspector API for call stack
17
+ navigation. Therefore, Byebug doesn't depend on internal core sources. Byebug is also
18
+ fast because it is developed as a C extension and reliable because it is supported
19
+ by a full test suite.
20
+
21
+ The debugger permits the ability to understand what is going on _inside_ a Ruby program
22
+ while it executes and offers many of the traditional debugging features such as:
23
+
24
+ * Stepping: Running your program one line at a time.
25
+ * Breaking: Pausing the program at some event or specified instruction, to
26
+ examine the current state.
27
+ * Evaluating: Basic REPL functionality, although [pry] does a better job at
28
+ that.
29
+ * Tracking: Keeping track of the different values of your variables or the
30
+ different lines executed by your program.
31
+
32
+ ## For enterprise
33
+
34
+ Byebug for enterprise is available via the Tidelift Subscription. [Learn
35
+ more][Tidelift for enterprise].
36
+
37
+ ## Build Status
38
+
39
+ ![ubuntu](https://github.com/deivid-rodriguez/byebug/workflows/ubuntu/badge.svg)
40
+ ![windows](https://github.com/deivid-rodriguez/byebug/workflows/windows/badge.svg)
41
+
42
+ ## Requirements
43
+
44
+ * _Required_: MRI 3.2.0 or higher.
45
+
46
+ ## Install
47
+
48
+ ```shell
49
+ gem install byebug
50
+ ```
51
+
52
+ Alternatively, if you use `bundler`:
53
+
54
+ ```shell
55
+ bundle add byebug --group "development, test"
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ ### From within the Ruby code
61
+
62
+ Simply include `byebug` wherever you want to start debugging and the execution will
63
+ stop there. For example, if you were debugging Rails, you would add `byebug` to
64
+ your code:
65
+
66
+ ```ruby
67
+ def index
68
+ byebug
69
+ @articles = Article.find_recent
70
+ end
71
+ ```
72
+
73
+ And then start a Rails server:
74
+
75
+ ```shell
76
+ bin/rails s
77
+ ```
78
+
79
+ Once the execution gets to your `byebug` command, you will receive a debugging prompt.
80
+
81
+ ### From the command line
82
+
83
+ If you want to debug a Ruby script without editing it, you can invoke byebug from the command line.
84
+
85
+ ```shell
86
+ byebug myscript.rb
87
+ ```
88
+
89
+ ## Byebug's commands
90
+
91
+ Command | Aliases | Subcommands
92
+ ------- | ------- | -----------
93
+ `backtrace` | `bt` `w` `where`|
94
+ `break` | `b` |
95
+ `catch` | `cat` |
96
+ `condition` | `cond` |
97
+ `continue` | `c` `cont` |
98
+ `continue!` | `c!` `cont!` |
99
+ `debug` | |
100
+ `delete` | `del` |
101
+ `disable` | `dis` | `breakpoints` `display`
102
+ `display` | `disp` |
103
+ `down` | |
104
+ `edit` | `ed` |
105
+ `enable` | `en` | `breakpoints` `display`
106
+ `finish` | `fin` |
107
+ `frame` | `f` |
108
+ `help` | `h` |
109
+ `history` | `hist` |
110
+ `info` | `i` | `args` `breakpoints` `catch` `display` `file` `line` `program`
111
+ `interrupt` | `int` |
112
+ `irb` | |
113
+ `kill` | |
114
+ `list` | `l` |
115
+ `method` | `m` | `instance`
116
+ `next` | `n` |
117
+ `pry` | |
118
+ `quit` | `q` |
119
+ `quit!` | `q!` |
120
+ `restart` | |
121
+ `save` | `sa` |
122
+ `set` | | `autoirb` `autolist` `autopry` `autosave` `basename` `callstyle` `fullpath` `histfile` `histsize` `linetrace` `listsize` `post_mortem` `savefile` `stack_on_error` `width`
123
+ `show` | | `autoirb` `autolist` `autopry` `autosave` `basename` `callstyle` `fullpath` `histfile` `histsize` `linetrace` `listsize` `post_mortem` `savefile` `stack_on_error` `width`
124
+ `skip` | `sk` |
125
+ `source` | `so` |
126
+ `step` | `s` |
127
+ `thread` | `th` | `current` `list` `resume` `stop` `switch`
128
+ `tracevar` | `tr` |
129
+ `undisplay` | `undisp` |
130
+ `untracevar`| `untr` |
131
+ `up` | |
132
+ `var` | `v` | `all` `constant` `global` `instance` `local`
133
+
134
+ ## Semantic Versioning
135
+
136
+ Byebug attempts to follow [semantic versioning](https://semver.org) and
137
+ bump major version only when backwards incompatible changes are released.
138
+ Backwards compatibility is targeted to [pry-byebug] and any other plugins
139
+ relying on `byebug`.
140
+
141
+ ## Getting Started
142
+
143
+ Read [byebug's markdown
144
+ guide](https://github.com/deivid-rodriguez/byebug/blob/main/GUIDE.md) to get
145
+ started. Proper documentation will be eventually written.
146
+
147
+ ## Related projects
148
+
149
+ * [pry-byebug] adds `next`, `step`, `finish`, `continue` and `break` commands
150
+ to `pry` using `byebug`.
151
+ * [ruby-debug-passenger] adds a rake task that restarts Passenger with Byebug
152
+ connected.
153
+ * [minitest-byebug] starts a byebug session on minitest failures.
154
+ * [sublime_debugger] provides a plugin for ruby debugging on Sublime Text.
155
+ * [atom-byebug] provides integration with the Atom editor [EXPERIMENTAL].
156
+
157
+ ## Contribute
158
+
159
+ See [Getting Started with Development](CONTRIBUTING.md).
160
+
161
+ ## Funding
162
+
163
+ Subscribe to [Tidelift][Tidelift support] to ensure byebug stays actively
164
+ maintained, and at the same time get licensing assurances and timely security
165
+ notifications for your open source dependencies.
166
+
167
+ You can also help `byebug` by leaving a small (or big) tip through [Liberapay].
168
+
169
+ ## Security contact information
170
+
171
+ Please use the Tidelift security contact to [report a security vulnerability].
172
+ Tidelift will coordinate the fix and disclosure.
173
+
174
+ ## Credits
175
+
176
+ Everybody who has ever contributed to this forked and reforked piece of
177
+ software, especially:
178
+
179
+ * @ko1, author of the awesome TracePoint API for Ruby.
180
+ * @cldwalker, [debugger]'s maintainer.
181
+ * @denofevil, author of [debase], the starting point of this.
182
+ * @kevjames3 for testing, bug reports and the interest in the project.
183
+ * @FooBarWidget for working and helping with remote debugging.
184
+
185
+ [debugger]: https://github.com/cldwalker/debugger
186
+ [pry]: https://github.com/pry/pry
187
+ [debase]: https://github.com/denofevil/debase
188
+ [pry-byebug]: https://github.com/deivid-rodriguez/pry-byebug
189
+ [ruby-debug-passenger]: https://github.com/davejamesmiller/ruby-debug-passenger
190
+ [minitest-byebug]: https://github.com/kaspth/minitest-byebug
191
+ [sublime_debugger]: https://github.com/shuky19/sublime_debugger
192
+ [atom-byebug]: https://github.com/izaera/atom-byebug
193
+ [Liberapay]: https://liberapay.com/byebug/donate
194
+ [Tidelift]: https://tidelift.com/subscription/pkg/rubygems-byebug?utm_source=rubygems-byebug&utm_medium=readme_text
195
+ [Tidelift for enterprise]: https://tidelift.com/subscription/pkg/rubygems-byebug?utm_source=rubygems-byebug&utm_medium=referral&utm_campaign=github&utm_content=enterprise
196
+ [Tidelift support]: https://tidelift.com/subscription/pkg/rubygems-byebug?utm_source=rubygems-byebug&utm_medium=referral&utm_campaign=github&utm_content=support
197
+ [report a security vulnerability]: https://tidelift.com/security
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "byebug/runner"
5
+
6
+ Byebug::Runner.new.run