rubocop-thread_safety 0.3.2 → 0.3.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13776da27788c6433f309cf3d0be0ffb09381a84
|
4
|
+
data.tar.gz: 38012b9b51d40c2a56d424ec92ea7d42d61af9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14293fa18d9a313becc63dd6b54f245c2b28a84dee116184b4a120e4c0790203af031d0b642494c368975e16fb668af437038fc79d66d947fc873959824eabf
|
7
|
+
data.tar.gz: af2cd90701fb180d691824dc2014e709ce4e1fb145fd6eb478bd2107b295074726baf1809ddaec8b9f7c8a3b809c5a1f9f4900e5fb2ec1f9ea4267481dca5284
|
data/.rubocop.yml
CHANGED
@@ -6,9 +6,14 @@ AllCops:
|
|
6
6
|
Exclude:
|
7
7
|
- vendor/**/*
|
8
8
|
|
9
|
+
Metrics/BlockLength:
|
10
|
+
Exclude:
|
11
|
+
- "spec/**/*"
|
12
|
+
|
9
13
|
Style/FileName:
|
10
14
|
Exclude:
|
11
15
|
- lib/rubocop-thread_safety.rb
|
16
|
+
- rubocop-thread_safety.gemspec
|
12
17
|
|
13
18
|
# Enable more cops that are disabled by default:
|
14
19
|
|
@@ -51,7 +51,7 @@ module RuboCop
|
|
51
51
|
|
52
52
|
def singleton_method_definition?(node)
|
53
53
|
node.ancestors.any? do |ancestor|
|
54
|
-
next unless ancestor.children.first.is_a? AST::
|
54
|
+
next unless ancestor.children.first.is_a? AST::SendNode
|
55
55
|
ancestor.children.first.command? :define_singleton_method
|
56
56
|
end
|
57
57
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'rubocop/thread_safety/version'
|
@@ -14,14 +15,17 @@ Gem::Specification.new do |spec|
|
|
14
15
|
Thread-safety checks via static analysis.
|
15
16
|
A plugin for the RuboCop code style enforcing & linting tool.
|
16
17
|
end_description
|
17
|
-
spec.homepage
|
18
|
+
spec.homepage = 'https://github.com/covermymeds/rubocop-thread_safety'
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
21
|
+
f.match(%r{^(test|spec|features)/})
|
22
|
+
end
|
18
23
|
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
24
|
spec.bindir = 'exe'
|
21
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
26
|
spec.require_paths = ['lib']
|
23
27
|
|
24
|
-
spec.add_runtime_dependency 'rubocop', '>= 0.
|
28
|
+
spec.add_runtime_dependency 'rubocop', '>= 0.48.0'
|
25
29
|
|
26
30
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
27
31
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-thread_safety
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.48.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.48.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|