rulezilla 0.4.6 → 0.4.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25e5e96ef53b4b3ba95b4e6fb01b0ff0536471199a6abbaf550f3051efce97f4
4
- data.tar.gz: fa6e29ebec3ed0f5e11efdc2d36124bba8c13fda83eadf85ae2b72508c674a90
3
+ metadata.gz: 6941c7f485cc90010f97357c0662d7dd36c363be4067e02dd83d2e0aa034ab32
4
+ data.tar.gz: e87b673510615deeb29977215da82d056d17b33870d12982637b9af5f027374d
5
5
  SHA512:
6
- metadata.gz: 9cae51299b0c421375b732273a5fb27e34f6a4429f567a5f6f8ba4ed653b9acfaad99f980ac2099f82591c1cc14971af42829280d47feecc1f0c1d923ed0d867
7
- data.tar.gz: 83c14cb9fd566df2f86dd55c7eddb72ff4675be453c3fdf0a162346d0d4e9a2afb96ef004e45faf32571a7c837a4f0bbfc1e69042e4f9d8c1dd5704a5ac48851
6
+ metadata.gz: d0dd7029f354b0d45e13a300367cb56c34754e5df15985cef57c4e6c704805b3d1f3474f19c4d38ee83c0df33267cd7c0487e91aedeb711b2763e8c1f18df8a7
7
+ data.tar.gz: fab0af6a0152a830c58ef882c625e6e25861a3ffcd1a076d407a7592da96ad7abf3d22209cf9ed1575a85d5960fa462549a4cf6a6611cad373103907751540a3
@@ -18,7 +18,7 @@ jobs:
18
18
 
19
19
  strategy:
20
20
  matrix:
21
- ruby-version: [2.7, 3.0, 3.1]
21
+ ruby-version: [3.2, 3.3, 3.4]
22
22
 
23
23
  steps:
24
24
  - uses: actions/checkout@v3
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
 
15
15
  steps:
16
- - uses: simplybusiness/version-forget-me-not@v2.3.0
16
+ - uses: simplybusiness/version-forget-me-not@v2
17
17
  env:
18
18
  ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
19
  VERSION_FILE_PATH: "lib/rulezilla/version.rb"
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  .bundle
2
2
  Gemfile.lock
3
- .ruby-version
4
3
  .ruby-gemset
5
4
  .idea/
data/.rubocop_todo.yml CHANGED
@@ -1,36 +1,36 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-07-06 10:13:12 UTC using RuboCop version 1.31.1.
3
+ # on 2025-02-28 15:35:40 UTC using RuboCop version 1.73.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
9
  # Offense count: 1
10
- # Configuration parameters: Include.
10
+ # Configuration parameters: Severity, Include.
11
11
  # Include: **/*.gemspec
12
12
  Gemspec/RequiredRubyVersion:
13
13
  Exclude:
14
14
  - 'rulezilla.gemspec'
15
15
 
16
16
  # Offense count: 1
17
- # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
17
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
18
18
  Metrics/AbcSize:
19
19
  Max: 20
20
20
 
21
21
  # Offense count: 2
22
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
23
- # IgnoredMethods: refine
22
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
23
+ # AllowedMethods: refine
24
24
  Metrics/BlockLength:
25
25
  Max: 32
26
26
 
27
27
  # Offense count: 2
28
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
28
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
29
29
  Metrics/MethodLength:
30
30
  Max: 19
31
31
 
32
32
  # Offense count: 3
33
- # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
33
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
34
34
  # NamePrefix: is_, has_, have_
35
35
  # ForbiddenPrefixes: is_, has_, have_
36
36
  # AllowedMethods: is_a?
@@ -41,7 +41,7 @@ Naming/PredicateName:
41
41
  - 'lib/rulezilla/node.rb'
42
42
  - 'lib/rulezilla/tree.rb'
43
43
 
44
- # Offense count: 6
44
+ # Offense count: 5
45
45
  # Configuration parameters: AllowedConstants.
46
46
  Style/Documentation:
47
47
  Exclude:
@@ -51,11 +51,10 @@ Style/Documentation:
51
51
  - 'lib/rulezilla/dsl.rb'
52
52
  - 'lib/rulezilla/node.rb'
53
53
  - 'lib/rulezilla/tree.rb'
54
- - 'lib/rulezilla/version.rb'
55
54
 
56
- # Offense count: 3
55
+ # Offense count: 2
56
+ # This cop supports safe autocorrection (--autocorrect).
57
57
  # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
58
58
  Style/GuardClause:
59
59
  Exclude:
60
60
  - 'lib/rulezilla/dsl.rb'
61
- - 'rulezilla.gemspec'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.4.1
data/lib/rulezilla/dsl.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'ostruct'
4
+
3
5
  module Rulezilla
4
6
  module DSL
5
7
  def self.included(base)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rulezilla
4
- VERSION = '0.4.6'
4
+ VERSION = '0.4.7'
5
5
  end
data/rulezilla.gemspec CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.version = Rulezilla::VERSION
18
18
  gem.license = 'MIT'
19
19
 
20
+ gem.add_runtime_dependency('ostruct')
20
21
  gem.add_runtime_dependency('rspec')
21
22
  gem.add_development_dependency('pry')
22
23
  gem.add_development_dependency('pry-doc')
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rulezilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
10
+ date: 2025-02-28 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ostruct
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: rspec
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +134,6 @@ homepage: https://github.com/simplybusiness/rulezilla
121
134
  licenses:
122
135
  - MIT
123
136
  metadata: {}
124
- post_install_message:
125
137
  rdoc_options: []
126
138
  require_paths:
127
139
  - lib
@@ -136,8 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
148
  - !ruby/object:Gem::Version
137
149
  version: '0'
138
150
  requirements: []
139
- rubygems_version: 3.3.7
140
- signing_key:
151
+ rubygems_version: 3.6.2
141
152
  specification_version: 4
142
153
  summary: Rules DSL
143
154
  test_files: []