rubocop-obsession 0.1.11 → 0.1.12

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: 62021f3300a611b694f183d834d74980723b59de9bc5f6f5d3da4927ba76f9c5
4
- data.tar.gz: 94a19e5aa898c0bd7a1d640c16468fb89ab1b8284c4298d2ceb470a1f5de4f41
3
+ metadata.gz: 799bc0f4a5060b91a26dc8b75b2ecf442e66c4956bcbe78f245e070cc26e2e94
4
+ data.tar.gz: 1ed8f6958eb2953939825077bb251d86d1270634b042cca54a13eb90e740d1fd
5
5
  SHA512:
6
- metadata.gz: 14b1aaa409b329ecd1d23f63949bf792671e62fb0899caff882a3c108be4b5419b066d3f425092432b317c9e3f5b142f43518f93f56b9294378b8f65fd0d0fba
7
- data.tar.gz: d95815962cfdedf98dedfaa834b906e2b1fe5b88b60367aa99be33ed3d7359810bc487e8a8c144700bf973b15e88641c1c476b04a6b0a4bb6cada13aab7bd548
6
+ metadata.gz: 5204e24cd86b37dceaa338cda3a78ef501498726c1da4e39fd7b146c51d90a588c17f07516e3ee32591a3a6d48be27c34610227d26605badf5b3b7ea20c9c928
7
+ data.tar.gz: '09ab0bf1a0cf21e4d15176482e9e4f4dba6633ed9c507844f4de1c9f1a892914a2690c5bbd4598a214fe4226159820965b8f26dda8893dd28340c4079269d07d'
@@ -94,13 +94,7 @@ module RuboCop
94
94
  end
95
95
 
96
96
  def parse_file(file_path)
97
- parser_class = ::Parser.const_get(:"Ruby#{target_ruby_version.to_s.sub('.', '')}")
98
- parser = parser_class.new(RuboCop::AST::Builder.new)
99
-
100
- buffer = Parser::Source::Buffer.new(file_path, 1)
101
- buffer.source = File.read(file_path)
102
-
103
- parser.parse(buffer)
97
+ parse(File.read(file_path)).ast
104
98
  end
105
99
 
106
100
  def find_private_methods(class_node)
@@ -1,5 +1,5 @@
1
1
  module Rubocop
2
2
  module Obsession
3
- VERSION = '0.1.11'
3
+ VERSION = '0.1.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-obsession
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerome Dalbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport