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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73634b4beb653f0e05265c961dfb77f82a7af55b6d623e588768d041b756f5f1
4
- data.tar.gz: 487b8777837e9042b44891881784ae286c23fff98203d913b6d52e517265802c
3
+ metadata.gz: 8d827fbc532c6584ad135efec3cee38a01d4f09833121b9adf8d7c41eed84a8f
4
+ data.tar.gz: 136e4a9d4d3f40cf5fc52620b5f26615706eb0e1274ff9e6d29fcb9ef17f6f00
5
5
  SHA512:
6
- metadata.gz: dfd75357dd3ef4da9b644118bcc1f434e008823700c4a260cd02db2f024ad7f6916140649486e5db16a4df7dca669048efef8b293363aa328614136bf4ea71b6
7
- data.tar.gz: 0a8877f99fbc51ff5be791a979bb61a9d124104a705e545048553522850694011b288ac1576e6d92fa1ac00e35c616e066b46da1fff29a311c44fc9d1478556d
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
@@ -1,5 +1,8 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - rubocop-rake
5
+ - rubocop-rspec
3
6
 
4
7
  Metrics:
5
8
  Enabled: false
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
@@ -5,4 +5,6 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in trace_location.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rubocop'
8
+ gem 'rubocop', require: false
9
+ gem 'rubocop-rake', require: false
10
+ gem 'rubocop-rspec', require: false
data/Gemfile.lock CHANGED
@@ -1,50 +1,60 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trace_location (0.12.2)
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
- diff-lcs (1.5.0)
12
- json (2.6.3)
13
- method_source (1.0.0)
14
- parallel (1.22.1)
15
- parser (3.2.0.0)
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.0.6)
19
- regexp_parser (2.6.1)
20
- rexml (3.2.5)
21
- rspec (3.12.0)
22
- rspec-core (~> 3.12.0)
23
- rspec-expectations (~> 3.12.0)
24
- rspec-mocks (~> 3.12.0)
25
- rspec-core (3.12.0)
26
- rspec-support (~> 3.12.0)
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.12.0)
30
- rspec-mocks (3.12.1)
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.12.0)
33
- rspec-support (3.12.0)
34
- rubocop (1.42.0)
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.1.2.1)
42
+ parser (>= 3.3.0.2)
38
43
  rainbow (>= 2.2.2, < 4.0)
39
- regexp_parser (>= 1.8, < 3.0)
40
- rexml (>= 3.2.5, < 4.0)
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 (>= 1.4.0, < 3.0)
44
- rubocop-ast (1.24.1)
45
- parser (>= 3.1.1.0)
46
- ruby-progressbar (1.11.0)
47
- unicode-display_width (2.4.1)
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.1.4
72
+ 2.6.2
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # TraceLocation
2
2
 
3
- [![Build Status](https://travis-ci.org/yhirano55/trace_location.svg?branch=master)](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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TraceLocation
4
- VERSION = '0.12.2'
4
+ VERSION = '1.0'
5
5
  end
@@ -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 = '>= 2.6.0'
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.12.2
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: 2023-06-20 00:00:00.000000000 Z
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
- - ".travis.yml"
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: 2.6.0
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.3.26
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: []
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.7
7
- - 2.7.3
8
- - ruby-head
9
- before_install: gem install bundler -v 2.1.4
10
-
11
- matrix:
12
- allow_failures:
13
- - rvm: ruby-head