forked from Gazler/githug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'dtrod/tag_level'
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 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,4 +1,4 @@ | ||
source "http://rubygems.org" | ||
|
||
# Specify your gem's dependencies in gitscrub.gemspec | ||
# Specify your gem's dependencies in githug.gemspec | ||
gemspec |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
difficulty 2 | ||
|
||
description "We have a git repo and we want to tag the current commit with new_tag." | ||
|
||
setup do | ||
repo.init | ||
FileUtils.touch("somefile.txt") | ||
repo.add("somefile.txt") | ||
repo.commit_all("Added some file to the repo") | ||
end | ||
|
||
solution do | ||
repo.tags.first.name == "new_tag" | ||
end | ||
|
||
hint do | ||
puts "Take a look at `git tag`" | ||
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