cuke-step-bm 1.0.0 → 1.0.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.
data/README.rdoc CHANGED
@@ -4,7 +4,11 @@
4
4
 
5
5
  == Configuration
6
6
 
7
- * config/cuke_step_bm.rb or ~/.cuke_step_bm
7
+ * require : cucumber >= "1.1.1"
8
+
9
+ * Gemfile : gem "cuke-step-bm" # after gem "cucumber"
10
+
11
+ * config/cuke_step_bm.rb or ./.cuke_step_bm or $HOME/.cuke_step_bm"
8
12
 
9
13
  output_mode:
10
14
  # :bm => BenchMark(only for display)
@@ -26,7 +30,6 @@
26
30
  == TodoList Working in process
27
31
 
28
32
  * add spec test
29
- * add pp
30
33
  * add color
31
34
  * refator for something
32
35
  * ..
data/cuke-step-bm.gemspec CHANGED
@@ -1,9 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
+ require "cuke-step-bm/version"
3
4
 
4
5
  Gem::Specification.new do |s|
5
6
  s.name = "cuke-step-bm"
6
- s.version = "1.0.0"
7
+ s.version = CukeStepBm::VERSION
7
8
  s.authors = ["elvuel"]
8
9
  s.email = ["elvuel@gmail.com"]
9
10
  s.homepage = "https://github.com/elvuel"
data/lib/cuke-step-bm.rb CHANGED
@@ -3,8 +3,6 @@ require "cuke-step-bm/cli"
3
3
 
4
4
  module CukeStepBm
5
5
  # cuke_step_bm bm-cuke-step cuke-step-bm.rb
6
- VERSION = "0.0.1".freeze
7
-
8
6
  # :bm => BenchMark(only for display)
9
7
  # :std => SimpleTimeDiff
10
8
  # :std_with_log => SimpleTimeDiff log
@@ -23,7 +21,8 @@ module CukeStepBm
23
21
  use_defaults!
24
22
  paths = [
25
23
  File.expand_path("config/cuke_step_bm.rb", root),
26
- File.expand_path(".cuke_step_bm", root)
24
+ File.expand_path(".cuke_step_bm", root),
25
+ "#{ENV["HOME"]}/.cuke_step_bm"
27
26
  ]
28
27
  paths.each { |path| load(path) if File.exist?(path) }
29
28
  self.output_mode = :std unless BM_SUPPORTED_OUTPUT_MODES.include? output_mode
@@ -33,11 +33,11 @@ module CukeStepBm
33
33
  options[:act] = [ :within, [from_to.first, from_to.last] ]
34
34
  end
35
35
 
36
- opts.on("-l", "--less VALUE", Float, "Show the steps time-consuming less than or equal the given") do |v|
36
+ opts.on("-l", "--less VALUE", Float, "Show the steps time-consuming less than or equal the given(Mean value)") do |v|
37
37
  options[:act] = [ :less, v ]
38
38
  end
39
39
 
40
- opts.on("-m", "--more VALUE", Float, "Show the steps time-consuming more than or equal the given") do |v|
40
+ opts.on("-m", "--more VALUE", Float, "Show the steps time-consuming more than or equal the given(Mean value)") do |v|
41
41
  options[:act] = [ :more, v ]
42
42
  end
43
43
 
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+ module CukeStepBm
3
+ VERSION = "1.0.1"
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuke-step-bm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-18 00:00:00.000000000Z
12
+ date: 2011-11-21 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: cucumber steps benchmark
15
15
  email:
@@ -29,6 +29,7 @@ files:
29
29
  - features/test.feature
30
30
  - lib/cuke-step-bm.rb
31
31
  - lib/cuke-step-bm/cli.rb
32
+ - lib/cuke-step-bm/version.rb
32
33
  - test.rb
33
34
  homepage: https://github.com/elvuel
34
35
  licenses: []