-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(award | ||
(explain "If a branch has a name that doesn\\\'t obey the convention, a penalty is given to the author") | ||
(aka | ||
(let fee -12) | ||
(let fee {{ -6 | times: anger }}) | ||
(give fee "as a basis") | ||
"deduct ${fee} points") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(award | ||
(explain "When someone pushes directly to the default branch, they get a penalty") | ||
(aka | ||
(let fee -16) | ||
(let fee {{ -8 | times: anger }}) | ||
(give fee "as a basis") | ||
"${fee} points") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,12 +30,12 @@ | |
# Author:: Yegor Bugayenko ([email protected]) | ||
# Copyright:: Copyright (c) 2024 Yegor Bugayenko | ||
# License:: MIT | ||
def Fbe.bylaws(anger: 2, love: 2) | ||
def Fbe.bylaws(anger: 2, love: 2, paranoia: 2) | ||
home = File.join(__dir__, '../../assets/bylaws') | ||
raise "The directory with templates is absent '#{home}'" unless File.exist?(home) | ||
Dir[File.join(home, '*.liquid')].to_h do |f| | ||
formula = Liquid::Template.parse(File.read(f)).render( | ||
'anger' => anger, 'love' => love | ||
'anger' => anger, 'love' => love, 'paranoia' => paranoia | ||
) | ||
[File.basename(f).gsub(/\.liquid$/, ''), formula] | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters