rspec-description_consistency 1.0.3 → 1.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/CHANGELOG.md +8 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +80 -0
- data/lib/rspec/description_consistency/consitency_verifier.rb +2 -3
- data/lib/rspec/description_consistency/resource_manager.rb +1 -0
- data/lib/rspec/description_consistency/version.rb +1 -1
- metadata +8 -7
- data/rspec-description_consistency.gemspec +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4adf3f07cd1af973e1adb15f2bb11567e4132850a872c12aac9e531b3d930ec
|
4
|
+
data.tar.gz: 388ca0b6dfa12e04a0ea259cd6ae264fbc5635cab800c0e889049cee9e6b0457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54437014957fdfdeacb7bec993d27e57eb08836324226c7f07c9cab8103025b07861ce09cebaf9f575489b87345a3217c2320f75c3de1862f60a4aa4bbc2df23
|
7
|
+
data.tar.gz: 2f7477484ac4fdda827927fade1ea770d962529e1ee551f1b423c60c25ce7f144402b4c348e113bb9a4196a018a3e264cea6c0dd09bfdc0f98fe4f341ff14a6d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [1.1.0] - 2024-11-28
|
4
|
+
|
5
|
+
- Do not release `StringIO` instances. [(#7)](https://github.com/viralpraxis/rspec-description_consistency/pull/7)
|
6
|
+
|
7
|
+
## [1.0.4] - 2024-08-13
|
8
|
+
|
9
|
+
- Fix `ActiveModel` attribute misdetection [(#4)](https://github.com/viralpraxis/rspec-description_consistency/pull/4)
|
10
|
+
|
3
11
|
## [1.0.3] - 2024-07-04
|
4
12
|
|
5
13
|
- Fix invalid private method verification [(#3)](https://github.com/viralpraxis/rspec-description_consistency/pull/3)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rspec-description_consistency (1.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
coderay (1.1.3)
|
11
|
+
diff-lcs (1.5.1)
|
12
|
+
docile (1.4.1)
|
13
|
+
json (2.7.2)
|
14
|
+
language_server-protocol (3.17.0.3)
|
15
|
+
method_source (1.1.0)
|
16
|
+
parallel (1.26.3)
|
17
|
+
parser (3.3.5.0)
|
18
|
+
ast (~> 2.4.1)
|
19
|
+
racc
|
20
|
+
pry (0.14.2)
|
21
|
+
coderay (~> 1.1)
|
22
|
+
method_source (~> 1.0)
|
23
|
+
racc (1.8.1)
|
24
|
+
rainbow (3.1.1)
|
25
|
+
rake (13.2.1)
|
26
|
+
regexp_parser (2.9.2)
|
27
|
+
rspec (3.13.0)
|
28
|
+
rspec-core (~> 3.13.0)
|
29
|
+
rspec-expectations (~> 3.13.0)
|
30
|
+
rspec-mocks (~> 3.13.0)
|
31
|
+
rspec-core (3.13.1)
|
32
|
+
rspec-support (~> 3.13.0)
|
33
|
+
rspec-expectations (3.13.3)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.13.0)
|
36
|
+
rspec-mocks (3.13.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.13.0)
|
39
|
+
rspec-support (3.13.1)
|
40
|
+
rubocop (1.66.1)
|
41
|
+
json (~> 2.3)
|
42
|
+
language_server-protocol (>= 3.17.0)
|
43
|
+
parallel (~> 1.10)
|
44
|
+
parser (>= 3.3.0.2)
|
45
|
+
rainbow (>= 2.2.2, < 4.0)
|
46
|
+
regexp_parser (>= 2.4, < 3.0)
|
47
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
48
|
+
ruby-progressbar (~> 1.7)
|
49
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
50
|
+
rubocop-ast (1.32.3)
|
51
|
+
parser (>= 3.3.1.0)
|
52
|
+
rubocop-rake (0.6.0)
|
53
|
+
rubocop (~> 1.0)
|
54
|
+
rubocop-rspec (3.0.5)
|
55
|
+
rubocop (~> 1.61)
|
56
|
+
ruby-progressbar (1.13.0)
|
57
|
+
simplecov (0.22.0)
|
58
|
+
docile (~> 1.1)
|
59
|
+
simplecov-html (~> 0.11)
|
60
|
+
simplecov_json_formatter (~> 0.1)
|
61
|
+
simplecov-html (0.13.1)
|
62
|
+
simplecov_json_formatter (0.1.4)
|
63
|
+
unicode-display_width (2.6.0)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
x86_64-linux
|
68
|
+
|
69
|
+
DEPENDENCIES
|
70
|
+
pry
|
71
|
+
rake (~> 13.0)
|
72
|
+
rspec (~> 3.0)
|
73
|
+
rspec-description_consistency!
|
74
|
+
rubocop
|
75
|
+
rubocop-rake
|
76
|
+
rubocop-rspec
|
77
|
+
simplecov
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.5.16
|
@@ -45,10 +45,9 @@ module RSpec
|
|
45
45
|
|
46
46
|
if description.start_with?('#')
|
47
47
|
return true if klass.instance_methods.include?(method_name)
|
48
|
-
return
|
49
|
-
return true if klass.private_instance_methods.include?(method_name)
|
48
|
+
return true if klass.respond_to?(:attribute_names) && klass.attribute_names.include?(method_name.to_s)
|
50
49
|
|
51
|
-
|
50
|
+
include_private && klass.private_instance_methods.include?(method_name)
|
52
51
|
elsif description.start_with?('.')
|
53
52
|
correct_class_method?(method_name, klass, include_private: include_private)
|
54
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-description_consistency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iaroslav Kurbatov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Automatic checking of consistency of descriptions in context and describe
|
14
14
|
blocks, and class or module methods.
|
@@ -24,6 +24,8 @@ files:
|
|
24
24
|
- ".rubocop.yml"
|
25
25
|
- CHANGELOG.md
|
26
26
|
- CODE_OF_CONDUCT.md
|
27
|
+
- Gemfile
|
28
|
+
- Gemfile.lock
|
27
29
|
- LICENSE
|
28
30
|
- README.md
|
29
31
|
- Rakefile
|
@@ -34,7 +36,6 @@ files:
|
|
34
36
|
- lib/rspec/description_consistency/resource_manager.rb
|
35
37
|
- lib/rspec/description_consistency/state.rb
|
36
38
|
- lib/rspec/description_consistency/version.rb
|
37
|
-
- rspec-description_consistency.gemspec
|
38
39
|
homepage: https://github.com/viralpraxis/rspec-description_consistency
|
39
40
|
licenses:
|
40
41
|
- MIT
|
@@ -42,7 +43,7 @@ metadata:
|
|
42
43
|
homepage_uri: https://github.com/viralpraxis/rspec-description_consistency
|
43
44
|
changelog_uri: https://github.com/viralpraxis/rspec-description_consistency/blob/main/CHANGELOG.md
|
44
45
|
rubygems_mfa_required: 'true'
|
45
|
-
post_install_message:
|
46
|
+
post_install_message:
|
46
47
|
rdoc_options: []
|
47
48
|
require_paths:
|
48
49
|
- lib
|
@@ -57,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
58
|
- !ruby/object:Gem::Version
|
58
59
|
version: '0'
|
59
60
|
requirements: []
|
60
|
-
rubygems_version: 3.5.
|
61
|
-
signing_key:
|
61
|
+
rubygems_version: 3.5.11
|
62
|
+
signing_key:
|
62
63
|
specification_version: 4
|
63
64
|
summary: RSpec extension for automatic description consistency verification
|
64
65
|
test_files: []
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/rspec/description_consistency/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'rspec-description_consistency'
|
7
|
-
spec.version = Rspec::DescriptionConsistency::VERSION
|
8
|
-
spec.authors = ['Iaroslav Kurbatov']
|
9
|
-
spec.email = ['iaroslav2k@gmail.com']
|
10
|
-
|
11
|
-
spec.summary = 'RSpec extension for automatic description consistency verification'
|
12
|
-
spec.description = <<~TXT
|
13
|
-
Automatic checking of consistency of descriptions in context and describe blocks, and class or module methods.
|
14
|
-
TXT
|
15
|
-
spec.homepage = 'https://github.com/viralpraxis/rspec-description_consistency'
|
16
|
-
spec.license = 'MIT'
|
17
|
-
spec.required_ruby_version = '>= 3.0.0'
|
18
|
-
|
19
|
-
spec.metadata['homepage_uri'] = 'https://github.com/viralpraxis/rspec-description_consistency'
|
20
|
-
spec.metadata['changelog_uri'] = 'https://github.com/viralpraxis/rspec-description_consistency/blob/main/CHANGELOG.md'
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(__dir__) do
|
25
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
-
(File.expand_path(f) == __FILE__) ||
|
27
|
-
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
|
28
|
-
end
|
29
|
-
end
|
30
|
-
spec.require_paths = ['lib']
|
31
|
-
|
32
|
-
spec.metadata['rubygems_mfa_required'] = 'true'
|
33
|
-
end
|