Sha256: 4634d4fb1a8e894288427f1cfcfdad7eed37d068e0bf3e85d737b03603e5f957

Contents?: true

Size: 350 Bytes

Versions: 13

Compression:

Stored size: 350 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mygithug-0.5.1 levels/tag.rb
githug-0.5.0 levels/tag.rb
githug-0.4.8 levels/tag.rb
githug-0.4.7 levels/tag.rb
githug-0.4.6 levels/tag.rb
githug-0.4.5 levels/tag.rb
githug-0.4.4 levels/tag.rb
githug-0.4.3 levels/tag.rb
githug-0.4.2 levels/tag.rb
githug-0.4.1 levels/tag.rb
githug-0.4.0 levels/tag.rb
githug-0.3.5 levels/tag.rb
githug-0.3.4 levels/tag.rb