Skip to content

Commit

Permalink
Merge pull request #37 from simplybusiness/moltenice-patch-1
Browse files Browse the repository at this point in the history
Mention the word "deploy"
  • Loading branch information
addersuk authored Jan 9, 2023
2 parents 835c820 + 9514fa5 commit b81e9c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gem-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Ruby Gem
name: Publish Ruby Gem (deploy)

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions lib/rulezilla/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ def mandatory_attributes
def apply(record = {})
result_node = trace(record).last

result_node.nil? ? nil : result_node.result(record_klass_instance(record))
result_node&.result(record_klass_instance(record))
end

def all(record = {})
validate_missing_attributes(record)
result_node = tree.find_all(record_klass_instance(record))

result_node.nil? ? nil : result_node.map { |node| node.result(record_klass_instance(record)) }
result_node&.map { |node| node.result(record_klass_instance(record)) }
end

def results(record = nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/rulezilla/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Rulezilla
VERSION = '0.4.3'
VERSION = '0.4.4'
end

0 comments on commit b81e9c3

Please sign in to comment.