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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 473c7480e65b5d55f580fd6dd6f6f36c4f46e2be272bac867e8c5090cc748fe2
4
- data.tar.gz: 16832ec5156521c65e3e44fee570be2e4a297c7da6c9087ae6bbd6a89d762e3b
3
+ metadata.gz: c7f6ff5fef886f2d284b9bc0b9dae8e4dd33a8bf1591b8a014881332191098b9
4
+ data.tar.gz: 703b600f8c29f3a28e5942cfea74ed7e7fac3882b0d9b7982b730f3d902bb5ab
5
5
  SHA512:
6
- metadata.gz: c60792d50615aed0dda218fd68952f0f2de8269902c4522076c1ed7703f4261889bff361aeef9e693d7d7124b82ede5fb5d8f64999262f4d33f33695d6a2cd9d
7
- data.tar.gz: 4784ad5b5ccb2dce7ef58016b3263c4ad49400485e8eed084511f91e590bb4a02af69b2031a8666971de34448ad0bc4c7d4dbc4c47d0b6337ce390ea583cfb74
6
+ metadata.gz: cb4ceec4235ac214b863eed73a26c20cc98a58c43293acc319dd9f0f798828c43e3ab68152e04a6d6a74b48db79da322c78ef1d8f8f2cc5b410a11b5dcb01378
7
+ data.tar.gz: 8a125143366cf66aed24f2cc35768ddbee74cce5fec467a3a05290335a39a9395ec52c24e34e055a273765efda41614736e7809648fd166c59002a6682184e45
data/.rubocop.yml CHANGED
@@ -8,9 +8,6 @@ Layout/EmptyLineAfterGuardClause:
8
8
  Layout/SpaceAroundOperators:
9
9
  Enabled: false
10
10
 
11
- Lint/SendWithMixinArgument:
12
- Enabled: false
13
-
14
11
  Lint/ShadowingOuterLocalVariable:
15
12
  Enabled: false
16
13
 
data/Gemfile.lock CHANGED
@@ -1,14 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trace_eval (0.1.0)
5
- chunky_png
4
+ trace_eval (0.1.4)
6
5
 
7
6
  GEM
8
7
  remote: https://rubygems.org/
9
8
  specs:
10
9
  ast (2.4.2)
11
- chunky_png (1.4.0)
12
10
  minitest (5.14.4)
13
11
  parallel (1.21.0)
14
12
  parser (3.0.2.0)
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.0'
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
@@ -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.0
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: []