[前][次][番号順一覧][スレッド一覧]

ruby-changes:51789

From: hsbt <ko1@a...>
Date: Fri, 20 Jul 2018 10:26:05 +0900 (JST)
Subject: [ruby-changes:51789] hsbt:r64000 (trunk): Promote Tracer to default gems.

hsbt	2018-07-20 10:25:59 +0900 (Fri, 20 Jul 2018)

  New Revision: 64000

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64000

  Log:
    Promote Tracer to default gems.

  Added files:
    trunk/lib/tracer.gemspec
  Modified files:
    trunk/doc/maintainers.rdoc
    trunk/doc/standard_library.rdoc
    trunk/lib/tracer.rb
    trunk/tool/sync_default_gems.rb
Index: lib/tracer.rb
===================================================================
--- lib/tracer.rb	(revision 63999)
+++ lib/tracer.rb	(revision 64000)
@@ -60,6 +60,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/tracer.rb#L60
 # by Keiju ISHITSUKA(keiju@i...)
 #
 class Tracer
+
+  VERSION = "0.1.0"
+
   class << self
     # display additional debug information (defaults to false)
     attr_accessor :verbose
Index: lib/tracer.gemspec
===================================================================
--- lib/tracer.gemspec	(nonexistent)
+++ lib/tracer.gemspec	(revision 64000)
@@ -0,0 +1,25 @@ https://github.com/ruby/ruby/blob/trunk/lib/tracer.gemspec#L1
+require_relative "lib/tracer"
+
+Gem::Specification.new do |spec|
+  spec.name          = "tracer"
+  spec.version       = Tracer::VERSION
+  spec.authors       = ["Keiju ISHITSUKA"]
+  spec.email         = ["keiju@r..."]
+
+  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
Index: tool/sync_default_gems.rb
===================================================================
--- tool/sync_default_gems.rb	(revision 63999)
+++ tool/sync_default_gems.rb	(revision 64000)
@@ -29,6 +29,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L29
 # * https://github.com/ruby/rss
 # * https://github.com/ruby/irb
 # * https://github.com/ruby/sync
+# * https://github.com/ruby/tracer
 #
 
 $repositories = {
@@ -60,7 +61,8 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L61
   rexml: 'ruby/rexml',
   rss: 'ruby/rss',
   irb: 'ruby/irb',
-  sync: 'ruby/sync'
+  sync: 'ruby/sync',
+  tracer: 'ruby/tracer'
 }
 
 def sync_default_gems(gem)
@@ -219,6 +221,11 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L221
     `cp -rf ../sync/lib/* lib`
     `cp -rf ../sync/test/thread test`
     `cp -f ../sync/sync.gemspec lib`
+  when "tracer"
+    `rm -rf lib/tracer.rb test/test_tracer.rb`
+    `cp -rf ../tracer/lib/* lib`
+    `cp -rf ../tracer/test/test_tracer.rb test`
+    `cp -f ../tracer/tracer.gemspec lib`
   when "rexml", "rss", "matrix", "irb", "csv"
     sync_lib gem
   else
Index: doc/maintainers.rdoc
===================================================================
--- doc/maintainers.rdoc	(revision 63999)
+++ doc/maintainers.rdoc	(revision 64000)
@@ -133,8 +133,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L133
   Tanaka Akira (akr)
 [lib/timeout.rb]
   Yukihiro Matsumoto (matz)
-[lib/tracer.rb]
-  Keiju ISHITSUKA (keiju)
 [lib/tsort.rb]
   Tanaka Akira (akr)
 [lib/un.rb]
@@ -223,6 +221,8 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L221
   https://github.com/ruby/scanf
 [lib/sync.rb]
   Keiju ISHITSUKA (keiju)
+[lib/tracer.rb]
+  Keiju ISHITSUKA (keiju)
 [lib/webrick.rb, lib/webrick/*]
   Eric Wong (normalperson)
   https://bugs.ruby-lang.org/
Index: doc/standard_library.rdoc
===================================================================
--- doc/standard_library.rdoc	(revision 63999)
+++ doc/standard_library.rdoc	(revision 64000)
@@ -55,7 +55,6 @@ ThreadsWait:: Watches for termination of https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L55
 Time:: Extends the Time class with methods for parsing and conversion
 Timeout:: Auto-terminate potentially long-running operations in Ruby
 tmpdir.rb:: Extends the Dir class to manage the OS temporary file path
-Tracer:: Outputs a source level execution trace of a Ruby program
 TSort:: Topological sorting using Tarjan's algorithm
 un.rb:: Utilities to replace common UNIX commands
 URI:: A Ruby module providing support for Uniform Resource Identifiers
@@ -95,6 +94,7 @@ REXML:: An XML toolkit for Ruby https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L94
 RSS:: Family of libraries that support various formats of XML "feeds"
 Scanf:: A Ruby implementation of the C function scanf(3)
 Synchronizer:: A module that provides a two-phase lock with a counter
+Tracer:: Outputs a source level execution trace of a Ruby program
 WEBrick:: An HTTP server toolkit for Ruby
 
 == Extensions

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]