blitz 0.1.4 → 0.1.5

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.
data/bin/blitz CHANGED
@@ -8,4 +8,4 @@ require 'blitz'
8
8
  argv = ARGV.dup
9
9
  ARGV.clear
10
10
  cmd = argv.shift.strip rescue 'help'
11
- Blitz.run cmd, argv
11
+ Blitz.run cmd, argv
data/blitz.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blitz}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["pcapr"]
12
- s.date = %q{2011-03-19}
12
+ s.date = %q{2011-04-18}
13
13
  s.default_executable = %q{blitz}
14
14
  s.description = %q{Make load and performance testing a fun sport}
15
15
  s.email = %q{kowsik@gmail.com}
data/lib/blitz.rb CHANGED
@@ -5,7 +5,7 @@ require 'pp'
5
5
 
6
6
  class Blitz
7
7
  require 'blitz/helper'
8
- Version = "0.1.4".freeze
8
+ Version = "0.1.5".freeze
9
9
 
10
10
  extend Blitz::Helper
11
11
 
data/lib/blitz/command.rb CHANGED
@@ -2,13 +2,19 @@ require 'test/unit/assertions'
2
2
 
3
3
  # The default template string contains what was sent and received. Strip
4
4
  # these out since we don't need them
5
- class Test::Unit::Assertions::AssertionMessage
6
- alias :old_template :template
7
-
8
- def template
9
- @template_string = ''
10
- @parameters = []
11
- old_template
5
+ unless RUBY_VERSION =~ /^1.9/
6
+ class Test::Unit::Assertions::AssertionMessage
7
+ alias :old_template :template
8
+
9
+ def template
10
+ @template_string = ''
11
+ @parameters = []
12
+ old_template
13
+ end
14
+ end
15
+ else
16
+ module ::Test::Unit
17
+ AssertionFailedError = MiniTest::Assertion
12
18
  end
13
19
  end
14
20
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blitz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - pcapr
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-19 00:00:00 -07:00
18
+ date: 2011-04-18 00:00:00 -07:00
19
19
  default_executable: blitz
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency