hansel 0.2.0 → 0.2.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.2.0
1
+ 0.2.1
data/hansel.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hansel}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Mylchreest"]
@@ -1,21 +1,18 @@
1
1
  module HanselCore
2
2
  module Formatting
3
3
  def yaml_formatter
4
- load 'lib/hansel/formatting/yaml_formatter.rb'
5
4
  File.open(output_filename, "w+") do |file|
6
5
  file.puts YamlFormatter.format results
7
6
  end
8
7
  end
9
8
 
10
9
  def csv_formatter
11
- load 'lib/hansel/formatting/csv_formatter.rb'
12
10
  File.open(output_filename, "w+") do |file|
13
11
  file.puts CsvFormatter.format results
14
12
  end
15
13
  end
16
14
 
17
15
  def octave_formatter
18
- load 'lib/hansel/formatting/octave_formatter.rb'
19
16
  num_conns = results.first.num_conns rescue nil
20
17
  file_name = output_filename{ "-#{num_conns.to_s}" }
21
18
  File.open(file_name, "w+") do |file|
data/lib/hansel.rb CHANGED
@@ -5,6 +5,9 @@ $:.unshift File.dirname(__FILE__) + "/../lib/hansel"
5
5
 
6
6
  require 'arg_parser'
7
7
  require 'formatting/formatting'
8
+ require 'lib/hansel/formatting/yaml_formatter.rb'
9
+ require 'lib/hansel/formatting/csv_formatter.rb'
10
+ require 'lib/hansel/formatting/octave_formatter.rb'
8
11
  require 'httperf/httperf'
9
12
  require 'httperf_result'
10
13
  require 'httperf_result_parser'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Mylchreest