rulezilla 0.4.3 → 0.4.5

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: c1f45aeab429ea8f189c8992164dafbf4e7ac3277f9b1f6023b2ab26ba602750
4
- data.tar.gz: 15e53f8880ce1d2e187ad6a26e5917c1a226e92a27e8933b730a2ca4eee98841
3
+ metadata.gz: a8ee7727cfe6615645b0684d845b89a12acb2f2c67791ce3a0804500ee5e2ab9
4
+ data.tar.gz: d087ce428c000b31fb7c5a63fd0fbfa63de0784103cb08792724977d59a1855b
5
5
  SHA512:
6
- metadata.gz: fb05d672ee26d72b3668364d54af3cd24fee9fa184b9fd215018183f9571dd54a457f9586653fa49d476d54030b6332aa20e073b023e7bcd7bbea68514ee769c
7
- data.tar.gz: 242326de7efea8652c078207f4d459219be388cd08ddd7593eee99ff12a6d161fe8016ae216bfbb079a93668d8ee0d84db160633748adece798fbeecb105ab61
6
+ metadata.gz: be36cd5e03915645c49ac0ed3abcd893ae54c3a33cf650635bbe82457b45cd8499e1beb72816d2e1feedb1829177f9fc89dd5e7e9790c144a3e333255b4f90d3
7
+ data.tar.gz: 16f3705107ff1e3d9ad3e0a45740b90ad60b4aad80d340a0bf97ab0ef2a38ee800deca1480f0ba6c71acceb1fd7fd9056703811c53fb18f538fc87edfa19ee02
@@ -1,4 +1,4 @@
1
- name: Publish Ruby Gem
1
+ name: Publish Ruby Gem (deploy)
2
2
 
3
3
  on:
4
4
  push:
@@ -10,7 +10,7 @@ permissions:
10
10
  statuses: write
11
11
  jobs:
12
12
  version-check:
13
- runs-on: ubuntu-18.04
13
+ runs-on: ubuntu-latest
14
14
 
15
15
  steps:
16
16
  - uses: simplybusiness/version-forget-me-not@v2.3.0
data/lib/rulezilla/dsl.rb CHANGED
@@ -51,14 +51,14 @@ module Rulezilla
51
51
  def apply(record = {})
52
52
  result_node = trace(record).last
53
53
 
54
- result_node.nil? ? nil : result_node.result(record_klass_instance(record))
54
+ result_node&.result(record_klass_instance(record))
55
55
  end
56
56
 
57
57
  def all(record = {})
58
58
  validate_missing_attributes(record)
59
59
  result_node = tree.find_all(record_klass_instance(record))
60
60
 
61
- result_node.nil? ? nil : result_node.map { |node| node.result(record_klass_instance(record)) }
61
+ result_node&.map { |node| node.result(record_klass_instance(record)) }
62
62
  end
63
63
 
64
64
  def results(record = nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rulezilla
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rulezilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec