standard-rspec 0.2.0 → 0.2.2

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: ec0d895ae8406f45ab179d5e65bdc1b48991fbf5bb4289482e7e522eabb6076a
4
- data.tar.gz: 13acd1dec3ed2caa7bc09bf9326ec17ca39f851ee613be2c97e1226354cc3b1d
3
+ metadata.gz: 6bb2611fe30f36c82c704fca7694f9f82188a0dd9a994c2934f9de55a52c0a07
4
+ data.tar.gz: 107acd22b24b9bacfdb35bd0f2afa391cf7d41418899379bfd09091efd047344
5
5
  SHA512:
6
- metadata.gz: 4387f0c1fb54c3cb8967944c56f1d4f8bb9e75dc5e7a456cf423ed6c7892cfdc673aa385b2e93b84a3125ad8056665a8fbb87b0a29459a7a1192126b6188edcd
7
- data.tar.gz: 15d71effe85f755dbfecd875acef1ce65454538a7ffbd91b5b2a078a74d7a84c16d2f105fba9f697e90f41ce0877a77cedc3ef6b095156dcb13923ff2c44ed67
6
+ metadata.gz: fbc0223f9f9efca8ec6c8774ce119d8711f613795cb1b910ab638290d48ba5e57dd32f09c109c1674003b24a648d8559ba55aed3a1a6d2822d7484fc381d7227
7
+ data.tar.gz: 8bf89e2d90869599379e65e5640b137960d3e5c7bda404e588c715206a7fa33288ae1984b9328e37fce414b86afaa33180266805d87ff0f4e6f145a4a8681b61
data/CHANGELOG.md CHANGED
@@ -7,3 +7,11 @@
7
7
  ## [0.1.6] - 2023-07-10
8
8
 
9
9
  - Fix cops paths, remove deprecated cops
10
+
11
+ ## [0.2.0] - 2023-07-11
12
+
13
+ - Add action-policy support
14
+
15
+ ## [0.2.1] - 2023-07-11
16
+
17
+ - Remove action-policy support, due to old rubocop version
@@ -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",
@@ -23,23 +19,21 @@ module Standard
23
19
  def rules(context)
24
20
  trick_rubocop_into_thinking_we_required_rubocop_rspec!
25
21
 
22
+ rules_value = begin
23
+ YAML.load_file(Pathname.new(__dir__).join("../../../config/base.yml"), aliases: true)
24
+ rescue ArgumentError
25
+ YAML.load_file(Pathname.new(__dir__).join("../../../config/base.yml"))
26
+ end
27
+
26
28
  LintRoller::Rules.new(
27
29
  type: :object,
28
30
  config_format: :rubocop,
29
- value: rules_with_config_applied
31
+ value: rules_value
30
32
  )
31
33
  end
32
34
 
33
35
  private
34
36
 
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
37
  # This is not fantastic.
44
38
  #
45
39
  # When you `require "rubocop-rspec"`, it will not only load the cops,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Standard
4
4
  module Rspec
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
@@ -1,5 +1,4 @@
1
1
  require "lint_roller"
2
- require "action_policy"
3
2
 
4
3
  require_relative "rspec/version"
5
4
  require_relative "rspec/plugin"
@@ -34,5 +34,4 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency "lint_roller", "~> 1.0"
35
35
  spec.add_dependency "rubocop-rspec", "~> 2.22.0"
36
36
  spec.add_dependency "rubocop-factory_bot", "~> 2.22"
37
- spec.add_dependency "action_policy", "~> 0.6.5"
38
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shilin-anton
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lint_roller
@@ -52,21 +52,7 @@ 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
- description:
55
+ description:
70
56
  email:
71
57
  - anton.d.shilin@gmail.com
72
58
  executables: []
@@ -93,7 +79,7 @@ metadata:
93
79
  source_code_uri: https://github.com/shilin-anton/standard-rspec
94
80
  changelog_uri: https://github.com/shilin-anton/standard-rspec/blob/main/CHANGELOG.md
95
81
  default_lint_roller_plugin: Standard::Rspec::Plugin
96
- post_install_message:
82
+ post_install_message:
97
83
  rdoc_options: []
98
84
  require_paths:
99
85
  - lib
@@ -108,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
94
  - !ruby/object:Gem::Version
109
95
  version: '0'
110
96
  requirements: []
111
- rubygems_version: 3.4.14
112
- signing_key:
97
+ rubygems_version: 3.0.3.1
98
+ signing_key:
113
99
  specification_version: 4
114
100
  summary: A Standard plugin that adds rubocop-rspec specific rules to Standard.
115
101
  test_files: []