trace_location 0.12.2 → 1.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +33 -0
- data/.github/workflows/rubocop.yml +24 -0
- data/.rubocop.yml +5 -2
- data/.rubocop_todo.yml +113 -0
- data/CHANGELOG.md +15 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +43 -31
- data/README.md +0 -2
- data/lib/trace_location/version.rb +1 -1
- data/trace_location.gemspec +2 -1
- metadata +22 -8
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d827fbc532c6584ad135efec3cee38a01d4f09833121b9adf8d7c41eed84a8f
|
4
|
+
data.tar.gz: 136e4a9d4d3f40cf5fc52620b5f26615706eb0e1274ff9e6d29fcb9ef17f6f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59652ac39265a2f53184b57816bd3dc2eea074cc459bcb33f536d3c11b7ddc277d029aa8ee7f3ae835b9d7caacf30283f9e0c85beba004026a63681c32dbd76e
|
7
|
+
data.tar.gz: 3ef04effcc47aae7f34a399b015c0bc0777edc8606ad369494f1ae5d4412b24df957601950d7c7559e41bf54da27141e796c6123fd1f31adad42836f890204e0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
tests:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
continue-on-error: ${{ matrix.experimental }}
|
13
|
+
name: ${{ matrix.ruby }}
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
experimental: [false]
|
17
|
+
ruby:
|
18
|
+
- "3.1"
|
19
|
+
- "3.2"
|
20
|
+
- "3.3"
|
21
|
+
- "3.4"
|
22
|
+
include:
|
23
|
+
- { ruby: head, experimental: true }
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v3
|
26
|
+
- name: Set up Ruby
|
27
|
+
uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: ${{ matrix.ruby }}
|
30
|
+
bundler-cache: true
|
31
|
+
- name: Run tests
|
32
|
+
timeout-minutes: 5
|
33
|
+
run: bundle exec rake
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby:
|
15
|
+
- "3.1"
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v3
|
18
|
+
- name: Set up Ruby
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
22
|
+
bundler-cache: true
|
23
|
+
- name: Run linter
|
24
|
+
run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.69.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
10
|
+
# Configuration parameters: AllowSafeAssignment.
|
11
|
+
Lint/AssignmentInCondition:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/trace_location/cli.rb'
|
14
|
+
|
15
|
+
# Configuration parameters: AllowComments, AllowNil.
|
16
|
+
Lint/SuppressedException:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/trace_location/collector.rb'
|
19
|
+
|
20
|
+
# This cop supports safe autocorrection (--autocorrect).
|
21
|
+
# Configuration parameters: EnforcedStyle.
|
22
|
+
# SupportedStyles: be, be_nil
|
23
|
+
RSpec/BeNil:
|
24
|
+
Exclude:
|
25
|
+
- 'spec/trace_location_spec.rb'
|
26
|
+
|
27
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
28
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
|
29
|
+
# SupportedStyles: described_class, explicit
|
30
|
+
RSpec/DescribedClass:
|
31
|
+
Exclude:
|
32
|
+
- 'spec/trace_location_spec.rb'
|
33
|
+
|
34
|
+
# This cop supports safe autocorrection (--autocorrect).
|
35
|
+
# Configuration parameters: AutoCorrect.
|
36
|
+
RSpec/HooksBeforeExamples:
|
37
|
+
Exclude:
|
38
|
+
- 'spec/trace_location_spec.rb'
|
39
|
+
|
40
|
+
# Configuration parameters: Max, AllowedGroups.
|
41
|
+
RSpec/NestedGroups:
|
42
|
+
Exclude:
|
43
|
+
- 'spec/trace_location_spec.rb'
|
44
|
+
|
45
|
+
Security/Eval:
|
46
|
+
Exclude:
|
47
|
+
- 'lib/trace_location/cli.rb'
|
48
|
+
|
49
|
+
# This cop supports safe autocorrection (--autocorrect).
|
50
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
51
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
52
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
53
|
+
# FunctionalMethods: let, let!, subject, watch
|
54
|
+
# AllowedMethods: lambda, proc, it
|
55
|
+
Style/BlockDelimiters:
|
56
|
+
Exclude:
|
57
|
+
- 'spec/trace_location_spec.rb'
|
58
|
+
|
59
|
+
# Configuration parameters: AllowedConstants.
|
60
|
+
Style/Documentation:
|
61
|
+
Exclude:
|
62
|
+
- 'spec/**/*'
|
63
|
+
- 'test/**/*'
|
64
|
+
- 'lib/trace_location/cli.rb'
|
65
|
+
|
66
|
+
# This cop supports safe autocorrection (--autocorrect).
|
67
|
+
Style/EvalWithLocation:
|
68
|
+
Exclude:
|
69
|
+
- 'spec/trace_location_spec.rb'
|
70
|
+
|
71
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
72
|
+
# Configuration parameters: EnforcedStyle.
|
73
|
+
# SupportedStyles: always, always_true, never
|
74
|
+
Style/FrozenStringLiteralComment:
|
75
|
+
Exclude:
|
76
|
+
- 'exe/trace_location'
|
77
|
+
- 'lib/trace_location/cli.rb'
|
78
|
+
|
79
|
+
# This cop supports safe autocorrection (--autocorrect).
|
80
|
+
Style/RedundantFreeze:
|
81
|
+
Exclude:
|
82
|
+
- 'lib/trace_location/event.rb'
|
83
|
+
|
84
|
+
# This cop supports safe autocorrection (--autocorrect).
|
85
|
+
Style/RedundantRegexpEscape:
|
86
|
+
Exclude:
|
87
|
+
- 'lib/trace_location/event.rb'
|
88
|
+
|
89
|
+
# This cop supports safe autocorrection (--autocorrect).
|
90
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
91
|
+
Style/Semicolon:
|
92
|
+
Exclude:
|
93
|
+
- 'spec/trace_location_spec.rb'
|
94
|
+
|
95
|
+
# This cop supports safe autocorrection (--autocorrect).
|
96
|
+
Style/StderrPuts:
|
97
|
+
Exclude:
|
98
|
+
- 'lib/trace_location.rb'
|
99
|
+
|
100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
101
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
102
|
+
# SupportedStyles: single_quotes, double_quotes
|
103
|
+
Style/StringLiterals:
|
104
|
+
Exclude:
|
105
|
+
- 'lib/trace_location.rb'
|
106
|
+
|
107
|
+
# This cop supports safe autocorrection (--autocorrect).
|
108
|
+
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
109
|
+
# URISchemes: http, https
|
110
|
+
Layout/LineLength:
|
111
|
+
Exclude:
|
112
|
+
- 'lib/trace_location/event.rb'
|
113
|
+
- 'trace_location.gemspec'
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# TraceLocation changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## 1.0.0 (2025-01-01)
|
6
|
+
|
7
|
+
* Use GitHub Actions for CI instead of Travis CI
|
8
|
+
* Bump rexml from 3.2.8 to 3.3.9 (#36)
|
9
|
+
* Add csv dependency to gemspec (#35 by @tnagatomi)
|
10
|
+
* Support Ruby 3.4
|
11
|
+
* Drop Ruby <= 3.0 support
|
12
|
+
* Update development dependencies.
|
13
|
+
* Add rubocop-rake, rubocop-rspec to development dependencies.
|
14
|
+
* Generate `.rubocop_todo.yml`
|
15
|
+
* Add rubocop jobs to GitHub Actions
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,50 +1,60 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trace_location (0
|
4
|
+
trace_location (1.0)
|
5
|
+
csv
|
5
6
|
method_source
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
11
|
ast (2.4.2)
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
csv (3.3.2)
|
13
|
+
diff-lcs (1.5.1)
|
14
|
+
json (2.9.1)
|
15
|
+
language_server-protocol (3.17.0.3)
|
16
|
+
method_source (1.1.0)
|
17
|
+
parallel (1.26.3)
|
18
|
+
parser (3.3.6.0)
|
16
19
|
ast (~> 2.4.1)
|
20
|
+
racc
|
21
|
+
racc (1.8.1)
|
17
22
|
rainbow (3.1.1)
|
18
|
-
rake (13.
|
19
|
-
regexp_parser (2.
|
20
|
-
|
21
|
-
|
22
|
-
rspec-
|
23
|
-
rspec-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
rspec-expectations (3.12.1)
|
23
|
+
rake (13.2.1)
|
24
|
+
regexp_parser (2.10.0)
|
25
|
+
rspec (3.13.0)
|
26
|
+
rspec-core (~> 3.13.0)
|
27
|
+
rspec-expectations (~> 3.13.0)
|
28
|
+
rspec-mocks (~> 3.13.0)
|
29
|
+
rspec-core (3.13.2)
|
30
|
+
rspec-support (~> 3.13.0)
|
31
|
+
rspec-expectations (3.13.3)
|
28
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
-
rspec-support (~> 3.
|
30
|
-
rspec-mocks (3.
|
33
|
+
rspec-support (~> 3.13.0)
|
34
|
+
rspec-mocks (3.13.2)
|
31
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.
|
33
|
-
rspec-support (3.
|
34
|
-
rubocop (1.
|
36
|
+
rspec-support (~> 3.13.0)
|
37
|
+
rspec-support (3.13.2)
|
38
|
+
rubocop (1.69.2)
|
35
39
|
json (~> 2.3)
|
40
|
+
language_server-protocol (>= 3.17.0)
|
36
41
|
parallel (~> 1.10)
|
37
|
-
parser (>= 3.
|
42
|
+
parser (>= 3.3.0.2)
|
38
43
|
rainbow (>= 2.2.2, < 4.0)
|
39
|
-
regexp_parser (>=
|
40
|
-
|
41
|
-
rubocop-ast (>= 1.24.1, < 2.0)
|
44
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
45
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
42
46
|
ruby-progressbar (~> 1.7)
|
43
|
-
unicode-display_width (>=
|
44
|
-
rubocop-ast (1.
|
45
|
-
parser (>= 3.
|
46
|
-
|
47
|
-
|
47
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
48
|
+
rubocop-ast (1.37.0)
|
49
|
+
parser (>= 3.3.1.0)
|
50
|
+
rubocop-rake (0.6.0)
|
51
|
+
rubocop (~> 1.0)
|
52
|
+
rubocop-rspec (3.3.0)
|
53
|
+
rubocop (~> 1.61)
|
54
|
+
ruby-progressbar (1.13.0)
|
55
|
+
unicode-display_width (3.1.3)
|
56
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
57
|
+
unicode-emoji (4.0.4)
|
48
58
|
|
49
59
|
PLATFORMS
|
50
60
|
ruby
|
@@ -54,7 +64,9 @@ DEPENDENCIES
|
|
54
64
|
rake
|
55
65
|
rspec
|
56
66
|
rubocop
|
67
|
+
rubocop-rake
|
68
|
+
rubocop-rspec
|
57
69
|
trace_location!
|
58
70
|
|
59
71
|
BUNDLED WITH
|
60
|
-
2.
|
72
|
+
2.6.2
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# TraceLocation
|
2
2
|
|
3
|
-
[](https://travis-ci.org/yhirano55/trace_location)
|
4
|
-
|
5
3
|
TraceLocation helps you trace the source location to ease reading huge open-source libraries in Ruby.
|
6
4
|
|
7
5
|
## Installation
|
data/trace_location.gemspec
CHANGED
@@ -21,8 +21,9 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.bindir = 'exe'
|
22
22
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
s.require_paths = ['lib']
|
24
|
-
s.required_ruby_version = '>=
|
24
|
+
s.required_ruby_version = '>= 3.1.0'
|
25
25
|
|
26
|
+
s.add_dependency 'csv'
|
26
27
|
s.add_dependency 'method_source'
|
27
28
|
|
28
29
|
s.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,16 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trace_location
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiyuki Hirano
|
8
8
|
- Misaki Shioi
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-01-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: csv
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: method_source
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,10 +90,13 @@ executables:
|
|
77
90
|
extensions: []
|
78
91
|
extra_rdoc_files: []
|
79
92
|
files:
|
93
|
+
- ".github/workflows/ci.yml"
|
94
|
+
- ".github/workflows/rubocop.yml"
|
80
95
|
- ".gitignore"
|
81
96
|
- ".rspec"
|
82
97
|
- ".rubocop.yml"
|
83
|
-
- ".
|
98
|
+
- ".rubocop_todo.yml"
|
99
|
+
- CHANGELOG.md
|
84
100
|
- Gemfile
|
85
101
|
- Gemfile.lock
|
86
102
|
- LICENSE.txt
|
@@ -122,7 +138,6 @@ homepage: https://github.com/yhirano55/trace_location
|
|
122
138
|
licenses:
|
123
139
|
- MIT
|
124
140
|
metadata: {}
|
125
|
-
post_install_message:
|
126
141
|
rdoc_options: []
|
127
142
|
require_paths:
|
128
143
|
- lib
|
@@ -130,15 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
145
|
requirements:
|
131
146
|
- - ">="
|
132
147
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
148
|
+
version: 3.1.0
|
134
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
150
|
requirements:
|
136
151
|
- - ">="
|
137
152
|
- !ruby/object:Gem::Version
|
138
153
|
version: '0'
|
139
154
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
141
|
-
signing_key:
|
155
|
+
rubygems_version: 3.6.2
|
142
156
|
specification_version: 4
|
143
157
|
summary: helps you get tracing the source location of codes
|
144
158
|
test_files: []
|