trace_tree 0.2.12 → 0.2.13

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
2
  SHA256:
3
- metadata.gz: a4888f227248272b967eb8e49c8571f03fc7a308b4d1d3e77db133538258ed40
4
- data.tar.gz: da4ee9a28804d9036a1e554155683581b739da004ca6a9aa646415633d70abb9
3
+ metadata.gz: 2d9800567c18a1f0da8c72a9ab43a5efaca66838c27ee7c25b0be9ad838d1270
4
+ data.tar.gz: b51f1049c0e2f57c94bed9e1f75dbf6bc95262fb8c770f4edb150c9869d409cf
5
5
  SHA512:
6
- metadata.gz: 94a1676563c16dfaa2734bc0ef83becbc5a9788f8ae02ba74da18c86d00e7f7b294ee431a70f6dbe46f540f494989ad10957fb5fa6348e7f87c32f68e7aabf51
7
- data.tar.gz: 6460f66de423f728b36c88887722cdbba5fc68ba57400611112030cb63ad779c333e5a81c7733c5ccb2c21ecbb99795b5845744cb14ff5f3ee3fc0eaa60c19af
6
+ metadata.gz: 7eb271350b80c64949d9f06b5eb5fd1db5c6fdb686a2a2bb0d4f5cf4570b2e2be59d24d1d447e7b7b1a9630ba3a29ed49abb67baf52973292e442494737365a3
7
+ data.tar.gz: c8e959775810fd2a024d53a712b79ab8ac9aa72a4255554954ea42933a4d270c8877c6af304cca9060f0588e5f744124b72335052df6b58dff97315f73cf6c58
data/README.md CHANGED
@@ -50,7 +50,7 @@ end
50
50
  * `:color => true` by default. It makes method names have different color than source_location in output. When you print the output to file, you may want to set it false to discard those color ANSI escape sequences.
51
51
  * `:gem => true` by default. Replace the gem paths in source_location with $GemPathN, which shorten lines. To see what are replaced, inspect `TraceTree::GemPaths`.
52
52
  * `:html => nil` by default. Set it true to generate a html in which a tree constructed with `<ul>`, `<li>`. (No need to set `color`).
53
- * `:tmp => nil` by default. Set it true or a string or an array of string to specify a tmp file under the default tmp dir of your system. (No need to provide `file` argument. It makes parent directories as needed)
53
+ * `:tmp => nil` by default. Set it true or a string or an array of string to specify a tmp file under the default tmp dir of your system. (No need to provide `file` argument. It makes parent directories as needed). The tmp dir location can be found with `TraceTree.tmp`.
54
54
  * `:htmp => nil` by default. It is combination of `:html` and `:tmp`.
55
55
  * `:return => true` by default. It stores return values of functions in generated html. Hover function call and press `r` to print return value in console.
56
56
  * `:args => false` by default. Set it true to puts arguments of `:call` functions into html. Since arguments are always return values of other functions, so this option is not necessary.
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  class TraceTree
4
4
  GemPaths = {}
5
5
 
6
- ::YAML.load(`gem env`)["RubyGems Environment"].
6
+ ::YAML.load(`gem env`.gsub(/=>/, ':'))["RubyGems Environment"].
7
7
  select{|h| h.has_key?("GEM PATHS")}[0].
8
8
  values[0].
9
9
  each_with_index do |path, i|
@@ -2,6 +2,12 @@ require 'tmpdir'
2
2
  require 'fileutils'
3
3
 
4
4
  class TraceTree
5
+ class << self
6
+ def tmp
7
+ Dir.tmpdir
8
+ end
9
+ end
10
+
5
11
  class TmpFile
6
12
 
7
13
  DefaultName = 'trace_tree.html'
@@ -1,3 +1,3 @@
1
1
  class TraceTree
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trace_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2019-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler