stackprof-run 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 143390d783d006f15b7393c89ebae02fd7acbcd21553e917175e96ece2983e2c
4
- data.tar.gz: 8636d68289c4fbf75063f50c36a8f8fd91f4e27b30dc184b48c644787cec4dec
2
+ SHA1:
3
+ metadata.gz: a459774aa94209217a58eb35cd9ad9f00b4ebc7a
4
+ data.tar.gz: e648427f9ac0ca763fe749890fd77eb3180157c1
5
5
  SHA512:
6
- metadata.gz: 6d185403afaf176507dcf47100a52ff794edf7d2c0b9c19b96b09fe73d39c6130d942adf9c76eb9e9aaa5291f14f26debf468c0619adb9a4015f9536c4b037a6
7
- data.tar.gz: 44d6424601a697ffeb6f0a1b03a52ccc438a7c835cf9bb323fb6f5ed727c55f3ff6018dc33232503e529d81e03737b425b53969771974d707d11daa7e20e74b6
6
+ metadata.gz: 1ff5db8bbdec6ee9de83bcd762a535c0d3815f7e725a9121a4642351da3cf490c636a70a50fa4c998f5e060dd458673c2b42db7d2f4dea09d2a5b0db2c2715d2
7
+ data.tar.gz: ba5b96483e78d00a5dedb65cfe68d49498547d782a939a32253a394c8b5c9da3b6315bb23d6df533f7629424c932c9a6d9d5d80e56780f9e85eb83871095c92f
data/exe/stackprof-run CHANGED
@@ -56,9 +56,13 @@ def exec_code(params)
56
56
  end
57
57
 
58
58
  def exec(params)
59
- opt = params.slice(:mode, :out, :interval, :raw).tap do |o|
60
- o[:aggregate] = !!params[:'no-aggregate']
61
- end
59
+ opt = {}
60
+ opt[:mode] = params[:mode] if params[:mode]
61
+ opt[:out] = params[:out] if params[:out]
62
+ opt[:interval] = params[:interval] if params[:interval]
63
+ opt[:raw] = params[:raw] if params[:raw]
64
+ opt[:aggregate] = !!params[:'no-aggregate']
65
+
62
66
  ex = nil
63
67
  StackProf.run(opt) do
64
68
  begin
@@ -1,5 +1,5 @@
1
1
  module Stackprof
2
2
  module Run
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackprof-run
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Kuwabara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-28 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stackprof
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.7.7
94
+ rubygems_version: 2.6.11
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Run a ruby script with stackprof.