cute_print 1.3.0 → 1.4.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 +6 -0
- data/README.md +17 -3
- data/cute_print.gemspec +9 -9
- data/lib/cute_print/core_ext/irb.rb +5 -2
- data/lib/cute_print/release.rb +2 -2
- metadata +33 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00adc942df0ca890186617621e678775cf866f57cd6d1ba8a50bafdd854d23cc
|
4
|
+
data.tar.gz: b2c9a0785d8a2ff0ff5c834b02fdb9c807fb5a640447c41bcc4e9ce03e385e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a4ff2b166eced30a043402f7116e7bd0dfbef200eaa547f1d94bc41438f6b8060b2a38f84655bdd6466d3ca56be78c3311c72bbc52e4d4adc4c6d4dc3a802e
|
7
|
+
data.tar.gz: 4097ed4bca59b9282270ff7451e395952ecf44c8faf26f5c39ea4ca5d5573b6de607c7f3baeea1b9feaa585f7a9c4762fd0f65e0d4bdfda6ed6cc9e86e5c5068
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -186,15 +186,29 @@ The "tap" methods are not available when using CutePrint this way.
|
|
186
186
|
|
187
187
|
## Ruby versions
|
188
188
|
|
189
|
-
As of version 1.
|
189
|
+
As of version 1.4.0, cute_print is known to work with these versions
|
190
|
+
of Ruby:
|
191
|
+
|
192
|
+
* ruby-2.7.0
|
193
|
+
* ruby-2.6.6
|
194
|
+
* ruby-2.5.7
|
195
|
+
|
196
|
+
As of version 1.3.0, cute_print is known to work with these versions
|
197
|
+
of Ruby:
|
198
|
+
|
199
|
+
* ruby-2.5.7
|
200
|
+
* ruby-2.4.9
|
201
|
+
|
202
|
+
As of version 1.1.6, cute_print is known to work with these versions
|
203
|
+
of Ruby:
|
190
204
|
|
191
205
|
* ruby-2.5.0
|
192
206
|
* ruby-2.4.3
|
193
207
|
* ruby-2.3.6
|
194
208
|
* ruby-2.2.9
|
195
209
|
|
196
|
-
|
197
|
-
|
210
|
+
As of version 1.1.5, cute_print is known to work with these versin of
|
211
|
+
Ruby:
|
198
212
|
|
199
213
|
* ruby-2.1.10
|
200
214
|
* ruby-1.9.3 (tests pass but with warnings)
|
data/cute_print.gemspec
CHANGED
@@ -75,13 +75,13 @@ Gem::Specification.new do |s|
|
|
75
75
|
s.rubygems_version = "2.5.1"
|
76
76
|
s.summary = "print debug to stderr, with flair"
|
77
77
|
s.specification_version = 4
|
78
|
-
s.add_development_dependency("cucumber", "~> 3.
|
79
|
-
s.add_development_dependency("
|
80
|
-
s.add_development_dependency("
|
81
|
-
s.add_development_dependency("
|
82
|
-
s.add_development_dependency("rspec
|
83
|
-
s.add_development_dependency("
|
84
|
-
s.
|
85
|
-
s.add_runtime_dependency("
|
78
|
+
s.add_development_dependency("cucumber", "~> 3.1")
|
79
|
+
s.add_development_dependency("irb", "~> 1.2")
|
80
|
+
s.add_development_dependency("rake", "~> 13.0")
|
81
|
+
s.add_development_dependency("redcarpet", "~> 3.5")
|
82
|
+
s.add_development_dependency("rspec", "~> 3.9")
|
83
|
+
s.add_development_dependency("rspec-given", "~> 3.8")
|
84
|
+
s.add_development_dependency("yard", "~> 0.9.24")
|
85
|
+
s.add_runtime_dependency("ruby2ruby", "~> 2.4")
|
86
|
+
s.add_runtime_dependency("ruby_parser", "~> 3.14")
|
86
87
|
end
|
87
|
-
|
@@ -15,11 +15,14 @@ if defined? IRB
|
|
15
15
|
|
16
16
|
# Save every line that is evaluated. This gives cute_print a
|
17
17
|
# way to get the source when it is run in irb.
|
18
|
-
|
18
|
+
undef_method :evaluate
|
19
|
+
define_method :evaluate do |src, line_no, **etc|
|
20
|
+
p src
|
21
|
+
p line_no
|
19
22
|
@all_lines ||= []
|
20
23
|
@all_lines += ["\n"] * (line_no - @all_lines.size - 1)
|
21
24
|
@all_lines += src.lines.to_a
|
22
|
-
original_evaluate.bind(self).call src, line_no
|
25
|
+
original_evaluate.bind(self).call src, line_no, **etc
|
23
26
|
end
|
24
27
|
|
25
28
|
end
|
data/lib/cute_print/release.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cute_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wayne Conrad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -16,112 +16,126 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: irb
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.2'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '13.0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '13.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: redcarpet
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
61
|
+
version: '3.5'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
68
|
+
version: '3.5'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
75
|
+
version: '3.9'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
82
|
+
version: '3.9'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec-given
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
89
|
+
version: '3.8'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
96
|
+
version: '3.8'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: yard
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.9.
|
103
|
+
version: 0.9.24
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.9.
|
110
|
+
version: 0.9.24
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: ruby2ruby
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
117
|
+
version: '2.4'
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '2.
|
124
|
+
version: '2.4'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: ruby_parser
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
131
|
+
version: '3.14'
|
118
132
|
type: :runtime
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
138
|
+
version: '3.14'
|
125
139
|
description: cute_print writes debug output to stderr. Optionally prints the source
|
126
140
|
filename and line number, or the source of the debug statement. Easily inspect the
|
127
141
|
middle of a call chain.
|
@@ -191,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
205
|
- !ruby/object:Gem::Version
|
192
206
|
version: '0'
|
193
207
|
requirements: []
|
194
|
-
|
195
|
-
rubygems_version: 2.7.3
|
208
|
+
rubygems_version: 3.1.2
|
196
209
|
signing_key:
|
197
210
|
specification_version: 4
|
198
211
|
summary: print debug to stderr, with flair
|