minstrel 0.2.20101115031938 → 0.2.20101115033015

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.textile +3 -3
  2. data/bin/minstrel +3 -1
  3. data/lib/minstrel.rb +1 -1
  4. metadata +3 -3
data/README.textile CHANGED
@@ -34,9 +34,9 @@ dlrow olleH
34
34
 
35
35
  h3. The 'minstrel' tool
36
36
 
37
- Since this doesn't work as expected in ruby 1.8 (or maybe all rubies): ruby
38
- -rrubygems -rminstrel ..., I provide 'minstrel' as a way to run ruby programs
39
- with minstrel preloaded.
37
+ Since the following doesn't work as expected in ruby 1.8 (or maybe all rubies):
38
+ ruby -rrubygems -rminstrel ..., I provide 'minstrel' as a way to run ruby
39
+ programs with minstrel preloaded.
40
40
 
41
41
  <pre>
42
42
  % cat test.rb
data/bin/minstrel CHANGED
@@ -3,4 +3,6 @@
3
3
  require "rubygems"
4
4
  require "minstrel"
5
5
 
6
- load ARGV[0]
6
+ $0 = ARGV[0]
7
+ ARGV.shift
8
+ load $0
data/lib/minstrel.rb CHANGED
@@ -151,7 +151,7 @@ if ENV["RUBY_INSTRUMENT"]
151
151
  ENV["RUBY_INSTRUMENT"].split(",").each do |klassname|
152
152
  instrument = Minstrel::Instrument.new
153
153
  instrument.wrap_classname(klassname) do |point, klass, method, *args|
154
- puts "#{point} #{klass.name}##{method}(#{args.inspect})"
154
+ puts "#{point} #{klass.name || klassname}##{method}(#{args.inspect})"
155
155
  end
156
156
  end
157
157
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minstrel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40202230063891
4
+ hash: 40202230066041
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 20101115031938
10
- version: 0.2.20101115031938
9
+ - 20101115033015
10
+ version: 0.2.20101115033015
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Sissel