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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afe267ce9b44683e2dae746f7ff91468761ae694c54654c5b6e1478eec1913a9
4
- data.tar.gz: 9c3fe451cbf354c890975d43576b7b4ea2e2489162592602b99c686a242d19df
3
+ metadata.gz: 00adc942df0ca890186617621e678775cf866f57cd6d1ba8a50bafdd854d23cc
4
+ data.tar.gz: b2c9a0785d8a2ff0ff5c834b02fdb9c807fb5a640447c41bcc4e9ce03e385e55
5
5
  SHA512:
6
- metadata.gz: e316c0edb7b2f36e246a92126a64da7d7c6e8c0bd0055d87278a807a0e479d0c844a4583a586958ec0c935e2bc2a77a4551072035f4790551c73b67a0718c8b4
7
- data.tar.gz: 69d5d45f49c02afddd967c4112be0971a3e706c5be06d2c4406f44bb3ecc3d0f868b1656dfeaf5905fe191c36365e3ea16faa6c894baba8c74f7aee7e74b4a4f
6
+ metadata.gz: a8a4ff2b166eced30a043402f7116e7bd0dfbef200eaa547f1d94bc41438f6b8060b2a38f84655bdd6466d3ca56be78c3311c72bbc52e4d4adc4c6d4dc3a802e
7
+ data.tar.gz: 4097ed4bca59b9282270ff7451e395952ecf44c8faf26f5c39ea4ca5d5573b6de607c7f3baeea1b9feaa585f7a9c4762fd0f65e0d4bdfda6ed6cc9e86e5c5068
@@ -1,3 +1,9 @@
1
+ # 1.4.0 - 2020-03-27
2
+
3
+ * Support Ruby 2.6 and 2.7
4
+ * Drop support for Ruby 2.4
5
+ * Update gems
6
+
1
7
  # 1.3.0 - 2018-03-13
2
8
 
3
9
  * Rubies prior to 2.2 are no longer supported.
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.1.6, cute_print works with these versions of Ruby:
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
- For older versions of Ruby, use cute_print version 1.2.0, which works
197
- with:
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)
@@ -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.0")
79
- s.add_development_dependency("rake", "~> 12.0")
80
- s.add_development_dependency("redcarpet", "~> 3.2")
81
- s.add_development_dependency("rspec", "~> 3.1")
82
- s.add_development_dependency("rspec-given", "~> 3.5")
83
- s.add_development_dependency("yard", "~> 0.9.9")
84
- s.add_runtime_dependency("ruby2ruby", "~> 2.1")
85
- s.add_runtime_dependency("ruby_parser", "~> 3.6")
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
- define_method :evaluate do |src, line_no|
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
@@ -6,8 +6,8 @@ module CutePrint
6
6
  # by the library as well.
7
7
  module Release
8
8
 
9
- VERSION = "1.3.0"
10
- DATE = "2018-03-13"
9
+ VERSION = "1.4.0"
10
+ DATE = "2020-03-27"
11
11
 
12
12
  end
13
13
  end
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.3.0
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: 2018-03-13 00:00:00.000000000 Z
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.0'
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.0'
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: '12.0'
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: '12.0'
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.2'
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.2'
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.1'
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.1'
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.5'
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.5'
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.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.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.1'
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.1'
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.6'
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.6'
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
- rubyforge_project:
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