rulezilla 0.4.2 → 0.4.4

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: f4e4bb87057de1aef9b744c73d72122d654143a206f53be040fbcdfc618fc31b
4
- data.tar.gz: a134ffef8f09b9347548f24a488148f4293e6bd21d7024091606d3f2df101866
3
+ metadata.gz: b7b17c9edd83d16882c06bf4e600c91b47426e950986389b43959ea18bd2047b
4
+ data.tar.gz: 17322c90cc09145aeb2e501a7072cc302bff1cdff88b2fc59e438c55a4a58824
5
5
  SHA512:
6
- metadata.gz: 6737cfc274a2bff305e07c56cc528a5d436742d7486e875b926e40d2a6cd4042ee646b607bdb8fd9b42f66d2c2fde977d80213ece73b3e52e1853e46d8b68d69
7
- data.tar.gz: f91759fb60e7d93dc95e0b6fa28a8535249bb2354666ad1f6216f9d57bce3d0cc02de44805042f83a353342b660a644c375e5a45ff89ba86eaa4beb5bf089d1c
6
+ metadata.gz: 8c52638e124a89f66d065b794a864f8f0ae68d0c087ec350965e3d3589a9fb6e275e3230ce38a95f565bbf6fa7211726e08b31563bf28d394b0e8ef602ab2c4a
7
+ data.tar.gz: 50e144f4244eebd23357ff8f09d0a7c75c21c828e6b86e8724a03d58ede8db5cdf8edf9bb8909268f6908b8b1e07baa810a1604d70d01ccb2e6044aaee1fc626
@@ -1,4 +1,4 @@
1
- name: Publish Ruby Gem
1
+ name: Publish Ruby Gem (deploy)
2
2
 
3
3
  on:
4
4
  push:
@@ -29,7 +29,7 @@ jobs:
29
29
  GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
30
30
  - name: Get Gem Version
31
31
  id: get-gem-version
32
- run: echo "::set-output name=GEM_VERSION::$(bundle exec ruby -e 'puts Rulezilla::VERSION')"
32
+ run: echo "GEM_VERSION=$(bundle exec ruby -e 'puts Rulezilla::VERSION')" >> $GITHUB_OUTPUT
33
33
  - name: Create Release
34
34
  uses: actions/github-script@v6
35
35
  env:
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.2'
4
+ VERSION = '0.4.4'
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.2
4
+ version: 0.4.4
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-10-11 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec