irb-benchmark 0.1.0 → 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e99833e79ed7de742b596a9d84ba3eb32a32a70c
4
+ data.tar.gz: 4aafe1a0950a0ccd3a44613c8e9a70e2efedf9b4
5
+ SHA512:
6
+ metadata.gz: bc126a5264ff451a01478fb3b19e49b59331c68079d4335dd30d9db750f0446401a64e72e02ad698744e0afb1c922a8fbb14326b0a34f4ddc872486cc248b688
7
+ data.tar.gz: 6dbbf40b0bcdb622ea11b46e786c01f09795bdc026a7c103a9ac39bb21ac0c20c97d419907224ba5353b4565e03e94ddb0a4e9c1ce1fffec4cf88762a3ddc51b
data/README.rdoc CHANGED
@@ -11,10 +11,10 @@ the results after the command execution. Simple and powerful.
11
11
 
12
12
  == Usage
13
13
 
14
- Single shot usage: open irb and <tt>require 'irb_benchmark'</tt>
14
+ Single shot usage: open irb and <tt>require 'irb-benchmark'</tt>
15
15
 
16
16
  In <tt>.irbrc</tt>:
17
- * classic require: <tt>require 'irb_benchmark'</tt>
17
+ * classic require: <tt>require 'irb-benchmark'</tt>
18
18
  * irbtools option: <tt>Irbtools.add_library :irb_benchmark, :late => true</tt> (require can be used with irbtools too)
19
19
 
20
20
  Enabling / disabling: <tt>IrbBenchmark.enabled = true / false</tt>
@@ -37,6 +37,10 @@ Fell free to open an issue[https://github.com/ProGNOMmers/irb-benchmark/issues]
37
37
  for problems or feature requests, or fork it and make a pull request, it will
38
38
  be taken in consideration.
39
39
 
40
+ == Thanks to
41
+ janlelis[https://github.com/janlelis] and its fancy_irb[https://github.com/janlelis/fancy_irb]
42
+ which saved me from spend time to discover how to monkey-patch Irb :-)
43
+
40
44
  == Copyright
41
45
 
42
46
  Copyright (c) 2012 Maurizio De Santis. See LICENSE.txt for
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,49 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "irb-benchmark"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Maurizio De Santis"]
12
+ s.date = "2013-03-07"
13
+ s.description = "irb-benchmark wraps irb commands in a Benchmark.measure{ ... } block and displays \nthe results after the command execution"
14
+ s.email = "desantis.maurizio@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "irb-benchmark.gemspec",
27
+ "lib/irb-benchmark.rb",
28
+ "lib/irb_benchmark.rb",
29
+ "lib/irb_benchmark/irb_ext.rb"
30
+ ]
31
+ s.homepage = "http://github.com/ProGNOMmers/irb-benchmark"
32
+ s.licenses = ["MIT"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = "2.0.1"
35
+ s.summary = "Auto-benchmarking of irb commands"
36
+
37
+ if s.respond_to? :specification_version then
38
+ s.specification_version = 4
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
42
+ else
43
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
44
+ end
45
+ else
46
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
47
+ end
48
+ end
49
+
@@ -0,0 +1 @@
1
+ require 'irb_benchmark'
data/lib/irb_benchmark.rb CHANGED
@@ -10,9 +10,9 @@ module IrbBenchmark
10
10
 
11
11
  def print(bm)
12
12
  if defined?(Wirb) and (!defined?(FancyIrb) || FancyIrb[:colorize, :output])
13
- $stdout.print Wirb.colorize_result bm.inspect
13
+ $stdout.print Wirb.colorize_result bm.to_s
14
14
  else
15
- $stdout.print bm.inspect
15
+ $stdout.print bm.to_s
16
16
  end
17
17
  end
18
18
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irb-benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Maurizio De Santis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-14 00:00:00.000000000 Z
11
+ date: 2013-03-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jeweler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,12 +20,11 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.8.4
30
- description: ! "irb-benchmark wraps irb commands in a Benchmark.measure{ ... } block
27
+ description: "irb-benchmark wraps irb commands in a Benchmark.measure{ ... } block
31
28
  and displays \nthe results after the command execution"
32
29
  email: desantis.maurizio@gmail.com
33
30
  executables: []
@@ -42,34 +39,32 @@ files:
42
39
  - README.rdoc
43
40
  - Rakefile
44
41
  - VERSION
42
+ - irb-benchmark.gemspec
43
+ - lib/irb-benchmark.rb
45
44
  - lib/irb_benchmark.rb
46
45
  - lib/irb_benchmark/irb_ext.rb
47
46
  homepage: http://github.com/ProGNOMmers/irb-benchmark
48
47
  licenses:
49
48
  - MIT
49
+ metadata: {}
50
50
  post_install_message:
51
51
  rdoc_options: []
52
52
  require_paths:
53
53
  - lib
54
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
55
  requirements:
57
- - - ! '>='
56
+ - - '>='
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
- segments:
61
- - 0
62
- hash: 642731209741343320
63
59
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
60
  requirements:
66
- - - ! '>='
61
+ - - '>='
67
62
  - !ruby/object:Gem::Version
68
63
  version: '0'
69
64
  requirements: []
70
65
  rubyforge_project:
71
- rubygems_version: 1.8.24
66
+ rubygems_version: 2.0.1
72
67
  signing_key:
73
- specification_version: 3
68
+ specification_version: 4
74
69
  summary: Auto-benchmarking of irb commands
75
70
  test_files: []