standard-rspec 0.2.0 → 0.2.1
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/lib/standard/rspec/plugin.rb +1 -13
- data/lib/standard/rspec/version.rb +1 -1
- data/lib/standard/rspec.rb +0 -1
- data/standard-rspec.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b02820cd6332351c176112c615829c2ba5d239a83f834ef66c010385f71025d2
|
4
|
+
data.tar.gz: 185da87bb73a4b43865947ee627a46ffc80c71b80c9a018c7e8a24257986a656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35892520da97669019ba0375da0585ade8b12b9b9bb26c5bc0886c215c149355f828f7d52e60b0c07790cafb25024cd1680b3b45e6e1673e09331d7f92fcdd77
|
7
|
+
data.tar.gz: d03f7b0fa20ea9e4a8e2b30921457ee1ddfd06e5bf1b94e4f0910c984b5114675a48e247d0caf5755be1829bb37774b8994bf27b5ba72da8fc573d46596d2adc
|
data/CHANGELOG.md
CHANGED
@@ -3,10 +3,6 @@ require "yaml"
|
|
3
3
|
module Standard
|
4
4
|
module Rspec
|
5
5
|
class Plugin < LintRoller::Plugin
|
6
|
-
def initialize(config)
|
7
|
-
@config = config
|
8
|
-
end
|
9
|
-
|
10
6
|
def about
|
11
7
|
LintRoller::About.new(
|
12
8
|
name: "standard-rspec",
|
@@ -26,20 +22,12 @@ module Standard
|
|
26
22
|
LintRoller::Rules.new(
|
27
23
|
type: :object,
|
28
24
|
config_format: :rubocop,
|
29
|
-
value:
|
25
|
+
value: YAML.load_file(Pathname.new(__dir__).join("../../../config/base.yml"), aliases: true)
|
30
26
|
)
|
31
27
|
end
|
32
28
|
|
33
29
|
private
|
34
30
|
|
35
|
-
def rules_with_config_applied
|
36
|
-
YAML.load_file(Pathname.new(__dir__).join("../../../config/base.yml"), aliases: true).tap do |rules|
|
37
|
-
if @config["action_policy_enabled"]
|
38
|
-
rules["inherit_gem"] = { "action_policy" => "config/rubocop-rspec.yml" }
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
31
|
# This is not fantastic.
|
44
32
|
#
|
45
33
|
# When you `require "rubocop-rspec"`, it will not only load the cops,
|
data/lib/standard/rspec.rb
CHANGED
data/standard-rspec.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shilin-anton
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.22'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: action_policy
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.6.5
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.6.5
|
69
55
|
description:
|
70
56
|
email:
|
71
57
|
- anton.d.shilin@gmail.com
|