Skip to content

Commit

Permalink
Merge pull request #56 from evanthegrayt/55-entry-yield
Browse files Browse the repository at this point in the history
Fix Entry#create yield
  • Loading branch information
evanthegrayt authored May 7, 2021
2 parents 5203eac + 3ca812b commit b096a0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/standup_md/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ def self.config
#
# @return [StandupMD::Entry]
def self.create
entry = new(
new(
Date.today,
config.current,
config.previous,
config.impediments,
config.notes
)
yield config if block_given?
entry
).tap { |entry| yield entry if block_given? }
end

##
Expand Down
3 changes: 1 addition & 2 deletions lib/standup_md/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

module StandupMD

##
# Module that contains all gem version information. Follows semantic
# versioning. Read: https://semver.org/
Expand All @@ -17,7 +16,7 @@ module Version

##
# Patch version.
PATCH = 7
PATCH = 8

##
# Version as +MAJOR.MINOR.PATCH+
Expand Down

0 comments on commit b096a0e

Please sign in to comment.