bench_press 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/bench_press.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bench_press}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sandro Turriate"]
data/bin/bench_press CHANGED
@@ -18,6 +18,7 @@ abort "You must supply a filename that you want to benchmark." if filename.nil?
18
18
 
19
19
  file = File.join(Dir.pwd, ARGV.first)
20
20
  if File.exists?(file)
21
+ $0 = file
21
22
  load file
22
23
  else
23
24
  abort "The file #{file} does not exist."
data/lib/bench_press.rb CHANGED
@@ -58,7 +58,7 @@ module BenchPress
58
58
  protected
59
59
 
60
60
  def default_report_name
61
- module_name || ActiveSupport::Inflector.titleize(File.basename(__FILE__, ".rb"))
61
+ module_name || ActiveSupport::Inflector.titleize(File.basename($0, ".rb"))
62
62
  end
63
63
 
64
64
  def report_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bench_press
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Turriate