rubocop-git2 0.1.5 → 0.1.7

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: 4b3ebd323c15d20d452fff488d6f4710bb97104acf4cddab72faaaa2421f461a
4
- data.tar.gz: 3f502393adaf844a52f37bd9c85b5bca049c5c1fffa39bfd04391bd63ec6abac
3
+ metadata.gz: ac45e4164a5510b31784af505fe32ed431bc2e227d3f6657e2f184751a1211c4
4
+ data.tar.gz: dca02c93e25b703faffef6bbc5c39047ef167057c6111a42c4044e43a2ffb042
5
5
  SHA512:
6
- metadata.gz: a301bd97fbefb05b71880a7e927ebc48b7789f040a3dfe4e85fe4f7731e68b2fa03b44f05a760525599f345b57d23b1bc9112c85c9ad0ae948a0de5d748e8dd5
7
- data.tar.gz: 00ec8f7a896238519a26f0c3007e65c8eedf0743d576f93cd7086e58e137615b3d9fb620e8b1c42a41bb9f87e5e9c52e243be0b82bcb0d7ae71affed6e6d2f17
6
+ metadata.gz: 965f61d6adb82981b31b601599f2c23cd512b60b4e10eb7e092d09cd51c930315115f3768bfd38b834acdde72ddbb8df680478a4db8064e9d4442e6a22f0cbb2
7
+ data.tar.gz: c4680da7833b692bc5b4b518259544778362334a3b283dda3d4dbd925fea9d4c9fc6a87e434d037e275011777c8a87e4e9e96c9c29da212d99d7a4d47fce98db
data/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.7] - 2024-02-04
8
+
9
+ ### Fixed
10
+
11
+ - deprecation warning for rubocop >= 1.68.0
12
+
13
+
14
+ ## [0.1.6] - 2023-03-27
15
+
16
+ ### Fixed
17
+
18
+ - deprecation warning for rubocop >= 1.65.0
19
+
7
20
  ## [0.1.5] - 2023-03-27
8
21
 
9
22
  ### Fixed
@@ -10,9 +10,10 @@ class RuboCop::Git::StyleGuide
10
10
  if ignored_file?(file)
11
11
  []
12
12
  else
13
- parsed_source = parse_source(file)
14
- team = RuboCop::Cop::Team.new(enabled_cops, config, rubocop_options)
15
- team.inspect_file(parsed_source)
13
+ src = process_source(file)
14
+ t_class = RuboCop::Cop::Team
15
+ team = t_class.send(t_class.respond_to?(:mobilize) ? :mobilize : :new, enabled_cops, config, rubocop_options)
16
+ team.respond_to?(:investigate) ? team.investigate(src).offenses : team.inspect_file(src)
16
17
  end
17
18
  end
18
19
 
@@ -48,7 +49,7 @@ class RuboCop::Git::StyleGuide
48
49
  config.file_to_exclude?(file.absolute_path)
49
50
  end
50
51
 
51
- def parse_source(file)
52
+ def process_source(file)
52
53
  source = RuboCop::ProcessedSource.new(
53
54
  file.content,
54
55
  config.target_ruby_version,
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Git
3
- VERSION = '0.1.5'.freeze
3
+ VERSION = '0.1.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-git2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Takeuchi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-03-27 00:00:00.000000000 Z
12
+ date: 2025-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.4.1
89
+ rubygems_version: 3.5.22
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: RuboCop for git diff.