standard-rspec 0.2.1 → 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: b02820cd6332351c176112c615829c2ba5d239a83f834ef66c010385f71025d2
4
- data.tar.gz: 185da87bb73a4b43865947ee627a46ffc80c71b80c9a018c7e8a24257986a656
3
+ metadata.gz: 6bb2611fe30f36c82c704fca7694f9f82188a0dd9a994c2934f9de55a52c0a07
4
+ data.tar.gz: 107acd22b24b9bacfdb35bd0f2afa391cf7d41418899379bfd09091efd047344
5
5
  SHA512:
6
- metadata.gz: 35892520da97669019ba0375da0585ade8b12b9b9bb26c5bc0886c215c149355f828f7d52e60b0c07790cafb25024cd1680b3b45e6e1673e09331d7f92fcdd77
7
- data.tar.gz: d03f7b0fa20ea9e4a8e2b30921457ee1ddfd06e5bf1b94e4f0910c984b5114675a48e247d0caf5755be1829bb37774b8994bf27b5ba72da8fc573d46596d2adc
6
+ metadata.gz: fbc0223f9f9efca8ec6c8774ce119d8711f613795cb1b910ab638290d48ba5e57dd32f09c109c1674003b24a648d8559ba55aed3a1a6d2822d7484fc381d7227
7
+ data.tar.gz: 8bf89e2d90869599379e65e5640b137960d3e5c7bda404e588c715206a7fa33288ae1984b9328e37fce414b86afaa33180266805d87ff0f4e6f145a4a8681b61
@@ -19,10 +19,16 @@ module Standard
19
19
  def rules(context)
20
20
  trick_rubocop_into_thinking_we_required_rubocop_rspec!
21
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
+
22
28
  LintRoller::Rules.new(
23
29
  type: :object,
24
30
  config_format: :rubocop,
25
- value: YAML.load_file(Pathname.new(__dir__).join("../../../config/base.yml"), aliases: true)
31
+ value: rules_value
26
32
  )
27
33
  end
28
34
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Standard
4
4
  module Rspec
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  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.1
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,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.22'
55
- description:
55
+ description:
56
56
  email:
57
57
  - anton.d.shilin@gmail.com
58
58
  executables: []
@@ -79,7 +79,7 @@ metadata:
79
79
  source_code_uri: https://github.com/shilin-anton/standard-rspec
80
80
  changelog_uri: https://github.com/shilin-anton/standard-rspec/blob/main/CHANGELOG.md
81
81
  default_lint_roller_plugin: Standard::Rspec::Plugin
82
- post_install_message:
82
+ post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - lib
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.4.14
98
- signing_key:
97
+ rubygems_version: 3.0.3.1
98
+ signing_key:
99
99
  specification_version: 4
100
100
  summary: A Standard plugin that adds rubocop-rspec specific rules to Standard.
101
101
  test_files: []