debugging 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/Gemfile +0 -4
- data/Gemfile.lock +6 -16
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -7
- data/Rakefile +4 -2
- data/debugging.gemspec +3 -4
- data/lib/debugging/all.rb +1 -2
- data/lib/debugging/version.rb +3 -1
- metadata +9 -37
- data/lib/debugging/repl.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 872be0c025197161f198fa80b00b9858ccd5c2a07fa9206614e167f3ece4127d
|
4
|
+
data.tar.gz: f3a4c854578c6a36be5919069a2448c2771e4d14e320a303194214d8a1c74d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1401c88701c1ff2e1a6a55452dce12f707beaefca1c1391be0f2733d094d93a43810103ce1627bff6165688ef4ae56c05e7f0555b67d65e8c14610fad6cac4
|
7
|
+
data.tar.gz: d219975b0a6656d4c3ce8828037a183d6e92aad103fdd41aacd5130fbd17db730aca2f51629171c9e24db2eded92368085eaaa0cffb6dcd46ec05153af65ca7c
|
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,22 +2,14 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
debugging (1.1.2)
|
5
|
-
binding.repl (~> 3.0)
|
6
5
|
paint (>= 0.9, < 3.0)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
debug_inspector (0.0.2)
|
15
|
-
diff-lcs (1.3)
|
16
|
-
json (1.8.6)
|
17
|
-
paint (2.0.0)
|
18
|
-
rake (10.5.0)
|
19
|
-
rdoc (3.12.2)
|
20
|
-
json (~> 1.4)
|
10
|
+
diff-lcs (1.4.4)
|
11
|
+
paint (2.2.1)
|
12
|
+
rake (13.0.6)
|
21
13
|
rspec (2.99.0)
|
22
14
|
rspec-core (~> 2.99.0)
|
23
15
|
rspec-expectations (~> 2.99.0)
|
@@ -31,11 +23,9 @@ PLATFORMS
|
|
31
23
|
ruby
|
32
24
|
|
33
25
|
DEPENDENCIES
|
34
|
-
binding_of_caller
|
35
26
|
debugging!
|
36
|
-
rake (~>
|
37
|
-
|
38
|
-
rspec (~> 2.4)
|
27
|
+
rake (~> 13.0)
|
28
|
+
rspec (~> 2.99)
|
39
29
|
|
40
30
|
BUNDLED WITH
|
41
|
-
2.2.
|
31
|
+
2.2.22
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Helps you to introspect and debug your code.
|
|
8
8
|
Install gem:
|
9
9
|
|
10
10
|
```
|
11
|
-
$ gem install debugging
|
11
|
+
$ gem install debugging
|
12
12
|
```
|
13
13
|
|
14
14
|
|
@@ -28,7 +28,6 @@ In a bundler project, you will need to add the gem to your project's `Gemfile`:
|
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
gem 'debugging', require: 'debugging/all'
|
31
|
-
gem 'binding_of_caller'
|
32
31
|
```
|
33
32
|
|
34
33
|
## Methods
|
@@ -163,11 +162,7 @@ Assists you when matching regexes againts strings. Try this one:
|
|
163
162
|
re "mail@janlelis.de", /\b([A-Z0-9._%+-]+)@([A-Z0-9.-]+\.[A-Z]{2,10})\b/i, 0..2
|
164
163
|
```
|
165
164
|
|
166
|
-
### repl
|
167
|
-
|
168
|
-
Starts your favorite IRB session from the current binding.
|
169
|
-
|
170
165
|
## J-_-L
|
171
166
|
|
172
|
-
Copyright (c) 2010-
|
167
|
+
Copyright (c) 2010-2021 Jan Lelis. MIT License. Originated from the
|
173
168
|
[zucker](https://github.com/janlelis/sugar_refinery) gem.
|
data/Rakefile
CHANGED
data/debugging.gemspec
CHANGED
@@ -16,13 +16,12 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
|
+
gem.metadata = { "rubygems_mfa_required" => "true" }
|
19
20
|
|
20
21
|
gem.required_ruby_version = '>= 2.0', '< 4.0'
|
21
22
|
|
22
23
|
gem.add_dependency 'paint', '>= 0.9', '< 3.0'
|
23
|
-
gem.add_dependency 'binding.repl', '~> 3.0'
|
24
24
|
|
25
|
-
gem.add_development_dependency 'rake', '~>
|
26
|
-
gem.add_development_dependency '
|
27
|
-
gem.add_development_dependency 'rspec', '~> 2.4'
|
25
|
+
gem.add_development_dependency 'rake', '~> 13.0'
|
26
|
+
gem.add_development_dependency 'rspec', '~> 2.99'
|
28
27
|
end
|
data/lib/debugging/all.rb
CHANGED
data/lib/debugging/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debugging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paint
|
@@ -30,62 +30,34 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '3.0'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: binding.repl
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '3.0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '3.0'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: rake
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
39
|
+
version: '13.0'
|
54
40
|
type: :development
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
44
|
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rdoc
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.0'
|
46
|
+
version: '13.0'
|
75
47
|
- !ruby/object:Gem::Dependency
|
76
48
|
name: rspec
|
77
49
|
requirement: !ruby/object:Gem::Requirement
|
78
50
|
requirements:
|
79
51
|
- - "~>"
|
80
52
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
53
|
+
version: '2.99'
|
82
54
|
type: :development
|
83
55
|
prerelease: false
|
84
56
|
version_requirements: !ruby/object:Gem::Requirement
|
85
57
|
requirements:
|
86
58
|
- - "~>"
|
87
59
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
60
|
+
version: '2.99'
|
89
61
|
description: Utilities for better "print debugging"
|
90
62
|
email:
|
91
63
|
- hi@ruby.consulting
|
@@ -113,7 +85,6 @@ files:
|
|
113
85
|
- lib/debugging/mof.rb
|
114
86
|
- lib/debugging/q.rb
|
115
87
|
- lib/debugging/re.rb
|
116
|
-
- lib/debugging/repl.rb
|
117
88
|
- lib/debugging/version.rb
|
118
89
|
- spec/howtocall_spec.rb
|
119
90
|
- spec/q_spec.rb
|
@@ -122,7 +93,8 @@ files:
|
|
122
93
|
homepage: https://github.com/janlelis/debugging
|
123
94
|
licenses:
|
124
95
|
- MIT
|
125
|
-
metadata:
|
96
|
+
metadata:
|
97
|
+
rubygems_mfa_required: 'true'
|
126
98
|
post_install_message:
|
127
99
|
rdoc_options: []
|
128
100
|
require_paths:
|
@@ -141,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
113
|
- !ruby/object:Gem::Version
|
142
114
|
version: '0'
|
143
115
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.3.3
|
145
117
|
signing_key:
|
146
118
|
specification_version: 4
|
147
119
|
summary: Print debugging helpers
|
data/lib/debugging/repl.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'debugging'
|
2
|
-
require 'binding.repl'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'binding_of_caller'
|
6
|
-
rescue LoadError
|
7
|
-
warn 'Using Debugging#repl requires the "binding_of_caller" gem. Please install it or add it to your Gemfile!'
|
8
|
-
end
|
9
|
-
|
10
|
-
module Debugging
|
11
|
-
private
|
12
|
-
|
13
|
-
def repl
|
14
|
-
binding.of_caller(1).repl.auto
|
15
|
-
end
|
16
|
-
end
|