rcomic 0.1.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 82292d7c8ee816fcaf7af3d417e6d62f989906b5
4
+ data.tar.gz: 84af23f6eb2168d279cfb468096167ad39afb50d
5
+ SHA512:
6
+ metadata.gz: 47cbb66acab69cbeb8e4c8a520ab3a2b61ebb31bf686abb6b129b73cfd1d5ffa407cb58f8fefdfccc4db859da86d077b9dc34d1c6655477f964b4cf885dad18f
7
+ data.tar.gz: a212f759bfb5018176cc2d8795880bc7ea134c943684439f55aa245353f9ea9a81f815d700830e2157f3b8ad03a015ea772e8bc0fa4e9971ce6d83e68994a188
@@ -0,0 +1,42 @@
1
+ [![Build Status](https://travis-ci.org/RComic/rcomic.svg?branch=master)](https://travis-ci.org/RComic/rcomic)
2
+
3
+ # Rcomic
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rcomic`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'rcomic'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install rcomic
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rcomic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
38
+
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,2 @@
1
+ require "rcomic/version"
2
+ require "rcomic/base"
@@ -0,0 +1,29 @@
1
+ module Rcomic
2
+ class Base
3
+ def self.config(*kclasses)
4
+ self.new.run(kclasses)
5
+ end
6
+
7
+ def run(kclasses)
8
+ trace = TracePoint.new(:return) do |tp|
9
+ commands = <<-RUBY
10
+ local_variables.each do |variable|
11
+ puts variable.to_s + " = " + eval(variable.to_s).inspect
12
+ end
13
+ instance_variables.each do |variable|
14
+ puts variable.to_s + " = " + eval(variable.to_s).inspect
15
+ end
16
+ RUBY
17
+ if kclasses.empty? || contain_classname?(kclasses, tp.defined_class)
18
+ puts "--- #{tp.path}:#{tp.lineno} - #{tp.defined_class}##{tp.method_id}---"
19
+ eval(commands, tp.binding)
20
+ end
21
+ end.enable
22
+ end
23
+
24
+ def contain_classname?(kclasses, kclass)
25
+ result = kclasses.select { |kcl| kcl.to_s.include?(kclass.to_s) || kclass.to_s.include?(kcl.to_s) }
26
+ !result.empty?
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,3 @@
1
+ module Rcomic
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rcomic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Phat Le
8
+ - Long Nguyen
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2017-04-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.14'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.14'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10.0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.0'
56
+ description: Visualize Tracer
57
+ email:
58
+ - ltanphat@gmail.com
59
+ - long.polyglot@gmail.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - README.md
65
+ - Rakefile
66
+ - lib/rcomic.rb
67
+ - lib/rcomic/base.rb
68
+ - lib/rcomic/version.rb
69
+ homepage: https://github.com/RComic/rcomic
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.5.1
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Visualize Tracer
93
+ test_files: []