From 43fbdfe806e3052d398a9958662064d2fea2f82b Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 20 Jul 2018 01:25:59 +0000 Subject: Promote Tracer to default gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tracer.gemspec | 25 +++++++++++++++++++++++++ lib/tracer.rb | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 lib/tracer.gemspec (limited to 'lib') 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 -- cgit v1.2.3