trace_location 0.9.5 → 0.9.6

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: 7e9b33c09f5c3d68d4afe6d719568a7e316847910efa360443d7761ebaf622f0
4
- data.tar.gz: 2d8f4e0f8ccd193a9b5339a3d15e26aca2a50dace835ca546a78997a25fde082
3
+ metadata.gz: b99f37cfbaa87f60634dcecdc9d318da8a650ceaa49e8250fb1a2f845ba41143
4
+ data.tar.gz: 359e39f882d890826b351bbc55137d97b035d3e60df84944743ebd2bfc6472b1
5
5
  SHA512:
6
- metadata.gz: f840deed9afc1a0494485b6de9b3da8de04d2cd2d596c62ddfd9cbcda2f3d5262e4ff8c5fb2062da9038ca4772f3b99d6c404317416ec97bb64457893ebbe00f
7
- data.tar.gz: 80aa24a9ff34163d5294e44d280f4d5d5980f2f7a5e92640066300d6ffc0f810f0442101fa1d010d59ae3262891ce2e3741d12f4a34f8120927c977f2bb9f8a4
6
+ metadata.gz: 60a6a07c494abe8c796880792ba05616551f884e89f8a1ebb0199d9fc4c03751b26d2a68e67e9f931433914dc571bfee44ca65ba63b0b48dc72b8545531e77a3
7
+ data.tar.gz: 1db632d2595a66baf34facbe56ca976e530a385d37646f847176bfbd146164682c76859ff4140ea17f7b5b55bd07ddc581abda866a5636c2a1c43c2bf89b8a22
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.6
3
3
 
4
4
  Metrics:
5
5
  Enabled: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trace_location (0.9.5)
4
+ trace_location (0.9.6)
5
5
  binding_of_caller
6
6
  method_source
7
7
 
data/README.md CHANGED
@@ -37,7 +37,7 @@ Then you can get logs like this: [.md](https://github.com/yhirano55/trace_locati
37
37
 
38
38
  | name | content | example |
39
39
  |:-----|:--------|:--------|
40
- | format | `:markdown`, `:log`, `:csv` (default: `:markdown`) | `:markdown` |
40
+ | format | `:md`, `:log`, `:csv` (default: `:md`) | `:md` |
41
41
  | match | Regexp, Symbol, String or Array for allow list | `[:activerecord, :activesupport]` |
42
42
  | ignore | Regexp, Symbol, String or Array for deny list | `/bootsnap\|activesupport/` |
43
43
 
@@ -69,7 +69,7 @@ Results: [.md](https://github.com/yhirano55/trace_location/blob/master/examples/
69
69
  ```ruby
70
70
  class User < ApplicationRecord
71
71
  # temporary surrounding with TraceLocation#trace
72
- Trace.location(format: :markdown, ignore: /activesupport/) do
72
+ TraceLocation.trace(format: :md, ignore: /activesupport/) do
73
73
  has_secure_password
74
74
  end
75
75
  ```
@@ -87,7 +87,7 @@ class BooksController < ApplicationController
87
87
  @books = Book.all
88
88
 
89
89
  # temporary surrounding with TraceLocation#trace
90
- TraceLocation.trace(format: :markdown, ignore: /activesupport|rbenv|concurrent-ruby/) do
90
+ TraceLocation.trace(format: :md, ignore: /activesupport|rbenv|concurrent-ruby/) do
91
91
  render json: @books
92
92
  end
93
93
  end
@@ -7,7 +7,7 @@ module TraceLocation
7
7
  def initialize
8
8
  @current_dir = Dir.pwd
9
9
  @dest_dir = Dir.pwd
10
- @default_format = :markdown
10
+ @default_format = :md
11
11
  end
12
12
  end
13
13
  end
@@ -9,6 +9,7 @@ module TraceLocation
9
9
  GENERATORS = {
10
10
  csv: ::TraceLocation::Generator::Csv,
11
11
  log: ::TraceLocation::Generator::Log,
12
+ md: ::TraceLocation::Generator::Markdown,
12
13
  markdown: ::TraceLocation::Generator::Markdown
13
14
  }.freeze
14
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TraceLocation
4
- VERSION = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trace_location
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiyuki Hirano
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-07-12 00:00:00.000000000 Z
12
+ date: 2019-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: binding_of_caller