summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 01:25:59 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 01:25:59 +0000
commit43fbdfe806e3052d398a9958662064d2fea2f82b (patch)
tree3e1779e91e9ad1cfb466ff2262dbe2b8afa12b8c /lib
parentc86fc2bba5db7b5fc38714deeec29fd2948cc786 (diff)
Promote Tracer to default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/tracer.gemspec25
-rw-r--r--lib/tracer.rb3
2 files changed, 28 insertions, 0 deletions
diff --git a/lib/tracer.gemspec b/lib/tracer.gemspec
new file mode 100644
index 0000000000..b84bcd9b56
--- /dev/null
+++ b/lib/tracer.gemspec
@@ -0,0 +1,25 @@
+require_relative "lib/tracer"
+
+Gem::Specification.new do |spec|
+ spec.name = "tracer"
+ spec.version = Tracer::VERSION
+ spec.authors = ["Keiju ISHITSUKA"]
+ spec.email = ["keiju@ruby-lang.org"]
+
+ spec.summary = %q{Outputs a source level execution trace of a Ruby program.}
+ spec.description = %q{Outputs a source level execution trace of a Ruby program.}
+ spec.homepage = "https://github.com/ruby/tracer"
+ spec.license = "BSD-2-Clause"
+
+ # Specify which files should be added to the gem when it is released.
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ end
+ spec.bindir = "exe"
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+
+ spec.add_development_dependency "bundler"
+ spec.add_development_dependency "rake"
+end
diff --git a/lib/tracer.rb b/lib/tracer.rb
index faafd803f4..0c482d1876 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -60,6 +60,9 @@
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
class Tracer
+
+ VERSION = "0.1.0"
+
class << self
# display additional debug information (defaults to false)
attr_accessor :verbose