trace_eval 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -3
- data/Gemfile.lock +1 -3
- data/README.md +14 -8
- data/lib/trace_eval/version.rb +1 -1
- data/lib/trace_eval.rb +1 -3
- data/trace_eval.gemspec +1 -3
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f6ff5fef886f2d284b9bc0b9dae8e4dd33a8bf1591b8a014881332191098b9
|
4
|
+
data.tar.gz: 703b600f8c29f3a28e5942cfea74ed7e7fac3882b0d9b7982b730f3d902bb5ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4ceec4235ac214b863eed73a26c20cc98a58c43293acc319dd9f0f798828c43e3ab68152e04a6d6a74b48db79da322c78ef1d8f8f2cc5b410a11b5dcb01378
|
7
|
+
data.tar.gz: 8a125143366cf66aed24f2cc35768ddbee74cce5fec467a3a05290335a39a9395ec52c24e34e055a273765efda41614736e7809648fd166c59002a6682184e45
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
# TraceEval
|
2
2
|
|
3
|
-
|
4
|
-
need to be able to package up your Ruby library into a gem. Put your
|
5
|
-
Ruby code in the file `lib/trace_eval`. To experiment with that code,
|
6
|
-
run `bin/console` for an interactive prompt.
|
7
|
-
|
8
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Evaluates the Ruby expression(s) in string and prints each executing line.
|
9
4
|
|
10
5
|
## Installation
|
11
6
|
|
@@ -25,7 +20,17 @@ Or install it yourself as:
|
|
25
20
|
|
26
21
|
## Usage
|
27
22
|
|
28
|
-
|
23
|
+
```
|
24
|
+
$ ./bin/console
|
25
|
+
irb(main):001:0> extend TraceEval
|
26
|
+
=> main
|
27
|
+
irb(main):002:0> trace_eval "a = 2\nb = 2\nputs a+b\n"
|
28
|
+
a = 2
|
29
|
+
b = 2
|
30
|
+
puts a+b
|
31
|
+
4
|
32
|
+
=> nil
|
33
|
+
```
|
29
34
|
|
30
35
|
## Development
|
31
36
|
|
@@ -41,7 +46,8 @@ push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
41
46
|
|
42
47
|
## Contributing
|
43
48
|
|
44
|
-
Bug reports and pull requests are welcome on
|
49
|
+
Bug reports and pull requests are welcome on GitLab at
|
50
|
+
https://gitlab.com/fjc/trace_eval.
|
45
51
|
|
46
52
|
## License
|
47
53
|
|
data/lib/trace_eval/version.rb
CHANGED
data/lib/trace_eval.rb
CHANGED
@@ -19,7 +19,7 @@ module TraceEval
|
|
19
19
|
next unless tp.binding.local_variable_get(
|
20
20
|
:__wzpxmnrjafemvlrwflblbbyenywk__
|
21
21
|
)==__wzpxmnrjafemvlrwflblbbyenywk__
|
22
|
-
print lines[tp.lineno]
|
22
|
+
$stderr.print lines[tp.lineno]
|
23
23
|
rescue NameError
|
24
24
|
ensure
|
25
25
|
tp.enable
|
@@ -33,5 +33,3 @@ module TraceEval
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
37
|
-
Kernel.send :extend, TraceEval
|
data/trace_eval.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Frank J. Cameron']
|
9
9
|
spec.email = ['fjc@fastmail.net']
|
10
10
|
|
11
|
-
spec.summary = ''
|
11
|
+
spec.summary = 'Evaluates the Ruby expression(s) in string and prints each executing line.'
|
12
12
|
spec.homepage = 'https://gitlab.com/fjc/trace_eval'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
spec.required_ruby_version = '>= 2.7.0'
|
@@ -26,6 +26,4 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.bindir = 'exe'
|
27
27
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ['lib']
|
29
|
-
|
30
|
-
spec.add_dependency 'chunky_png'
|
31
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trace_eval
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
@@ -9,21 +9,7 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-11-02 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: chunky_png
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
12
|
+
dependencies: []
|
27
13
|
description:
|
28
14
|
email:
|
29
15
|
- fjc@fastmail.net
|
@@ -66,5 +52,5 @@ requirements: []
|
|
66
52
|
rubygems_version: 3.1.6
|
67
53
|
signing_key:
|
68
54
|
specification_version: 4
|
69
|
-
summary:
|
55
|
+
summary: Evaluates the Ruby expression(s) in string and prints each executing line.
|
70
56
|
test_files: []
|