trace_eval 0.1.3 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47d5884511a2afc958e76505ce8c23f9bda5bdc5272781c699d265469c318c6a
4
- data.tar.gz: 7c2f1e8a763b1c79a2f2404dec1388e0a588ae75f2096c1db5c46dcc94c91d8e
3
+ metadata.gz: c7f6ff5fef886f2d284b9bc0b9dae8e4dd33a8bf1591b8a014881332191098b9
4
+ data.tar.gz: 703b600f8c29f3a28e5942cfea74ed7e7fac3882b0d9b7982b730f3d902bb5ab
5
5
  SHA512:
6
- metadata.gz: 7761787e86f8c56d5797bd3db706216414d476ca0ae11c8e018d0fcce447dc1a755d981767cc145477160cc17f4530f97f87702630bedaf1e6bb42390fb2ab45
7
- data.tar.gz: 5a11cbab44cfaf7d4da9771d0e957ea5e72052b0cb8b3032334f09a39ddbe00df97c4c5a5166662c1f608ab8709dc1173c71eaae3aa9d4f6674d758c8750cd37
6
+ metadata.gz: cb4ceec4235ac214b863eed73a26c20cc98a58c43293acc319dd9f0f798828c43e3ab68152e04a6d6a74b48db79da322c78ef1d8f8f2cc5b410a11b5dcb01378
7
+ data.tar.gz: 8a125143366cf66aed24f2cc35768ddbee74cce5fec467a3a05290335a39a9395ec52c24e34e055a273765efda41614736e7809648fd166c59002a6682184e45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trace_eval (0.1.3)
4
+ trace_eval (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,11 +1,6 @@
1
1
  # TraceEval
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you
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
- TODO: Write usage instructions here
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 GitHub at https://gitlab.com/fjc/trace_eval.
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TraceEval
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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
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'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Cameron
@@ -52,5 +52,5 @@ requirements: []
52
52
  rubygems_version: 3.1.6
53
53
  signing_key:
54
54
  specification_version: 4
55
- summary: ''
55
+ summary: Evaluates the Ruby expression(s) in string and prints each executing line.
56
56
  test_files: []