githug 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -0
  3. data/README.md +15 -18
  4. data/levels/fetch.rb +2 -2
  5. data/levels/push.rb +1 -1
  6. data/levels/push_branch.rb +1 -1
  7. data/levels/rebase.rb +16 -0
  8. data/levels/rebase/.githug/COMMIT_EDITMSG +1 -0
  9. data/levels/rebase/.githug/HEAD +1 -0
  10. data/levels/rebase/.githug/ORIG_HEAD +1 -0
  11. data/levels/rebase/.githug/config +7 -0
  12. data/levels/rebase/.githug/index +0 -0
  13. data/levels/rebase/.githug/logs/HEAD +13 -0
  14. data/levels/rebase/.githug/logs/refs/heads/feature +4 -0
  15. data/levels/rebase/.githug/logs/refs/heads/master +2 -0
  16. data/levels/rebase/.githug/objects/0c/d212c5b28da2e65ed4900712dd36c8adce48ad +0 -0
  17. data/levels/rebase/.githug/objects/44/19b972c0cd1b346ac90332aa7c5cc949589f78 +0 -0
  18. data/levels/rebase/.githug/objects/54/3b9bebdc6bd5c4b22136034a95dd097a57d3dd +0 -0
  19. data/levels/rebase/.githug/objects/81/78c76d627cade75005b40711b92f4177bc6cfc +0 -0
  20. data/levels/rebase/.githug/objects/98/205e9faf10cf33d2ef7c0f66e402540c62613a +2 -0
  21. data/levels/rebase/.githug/objects/a7/8bcab6232e9382a86436cdfcb2ed0391b1f0ac +4 -0
  22. data/levels/rebase/.githug/objects/b7/7313d7be366609dd2e77aa96d7fd73f4e27853 +0 -0
  23. data/levels/rebase/.githug/objects/b9/2d5d55d379cfb90b750e6472fc983f32ad9a71 +0 -0
  24. data/levels/rebase/.githug/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
  25. data/levels/rebase/.githug/objects/ed/0fdcf366b21b8984fb37ea34106978a2e5c5ba +0 -0
  26. data/levels/rebase/.githug/refs/heads/feature +1 -0
  27. data/levels/rebase/.githug/refs/heads/master +1 -0
  28. data/levels/rebase/README +1 -0
  29. data/levels/reorder.rb +1 -4
  30. data/levels/restructure.rb +1 -1
  31. data/lib/githug/cli.rb +30 -15
  32. data/lib/githug/level.rb +1 -1
  33. data/lib/githug/profile.rb +21 -12
  34. data/lib/githug/ui.rb +6 -12
  35. data/lib/githug/version.rb +1 -1
  36. data/spec/githug/cli_spec.rb +47 -46
  37. data/spec/githug/game_spec.rb +12 -12
  38. data/spec/githug/level_spec.rb +64 -93
  39. data/spec/githug/profile_spec.rb +34 -28
  40. data/spec/githug/repository_spec.rb +37 -38
  41. data/spec/githug/ui_spec.rb +51 -51
  42. data/spec/githug_spec.rb +60 -53
  43. data/spec/support/files/test_level.rb +16 -0
  44. metadata +26 -3
@@ -0,0 +1,16 @@
1
+ difficulty 1
2
+ description "A test description"
3
+ setup do
4
+ "test"
5
+ end
6
+ solution do
7
+ Grit::Repo.new("githug/notadir")
8
+ end
9
+
10
+ hints [
11
+ "this is hint 1",
12
+ "this is hint 2"]
13
+
14
+ hint do
15
+ puts "this is a hint"
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Rennie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -403,6 +403,28 @@ files:
403
403
  - levels/push.rb
404
404
  - levels/push_branch.rb
405
405
  - levels/push_tags.rb
406
+ - levels/rebase.rb
407
+ - levels/rebase/.githug/COMMIT_EDITMSG
408
+ - levels/rebase/.githug/HEAD
409
+ - levels/rebase/.githug/ORIG_HEAD
410
+ - levels/rebase/.githug/config
411
+ - levels/rebase/.githug/index
412
+ - levels/rebase/.githug/logs/HEAD
413
+ - levels/rebase/.githug/logs/refs/heads/feature
414
+ - levels/rebase/.githug/logs/refs/heads/master
415
+ - levels/rebase/.githug/objects/0c/d212c5b28da2e65ed4900712dd36c8adce48ad
416
+ - levels/rebase/.githug/objects/44/19b972c0cd1b346ac90332aa7c5cc949589f78
417
+ - levels/rebase/.githug/objects/54/3b9bebdc6bd5c4b22136034a95dd097a57d3dd
418
+ - levels/rebase/.githug/objects/81/78c76d627cade75005b40711b92f4177bc6cfc
419
+ - levels/rebase/.githug/objects/98/205e9faf10cf33d2ef7c0f66e402540c62613a
420
+ - levels/rebase/.githug/objects/a7/8bcab6232e9382a86436cdfcb2ed0391b1f0ac
421
+ - levels/rebase/.githug/objects/b7/7313d7be366609dd2e77aa96d7fd73f4e27853
422
+ - levels/rebase/.githug/objects/b9/2d5d55d379cfb90b750e6472fc983f32ad9a71
423
+ - levels/rebase/.githug/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
424
+ - levels/rebase/.githug/objects/ed/0fdcf366b21b8984fb37ea34106978a2e5c5ba
425
+ - levels/rebase/.githug/refs/heads/feature
426
+ - levels/rebase/.githug/refs/heads/master
427
+ - levels/rebase/README
406
428
  - levels/remote.rb
407
429
  - levels/remote_add.rb
408
430
  - levels/remote_url.rb
@@ -461,6 +483,7 @@ files:
461
483
  - spec/githug/ui_spec.rb
462
484
  - spec/githug_spec.rb
463
485
  - spec/spec_helper.rb
486
+ - spec/support/files/test_level.rb
464
487
  homepage: ''
465
488
  licenses: []
466
489
  metadata: {}
@@ -480,7 +503,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
480
503
  version: '0'
481
504
  requirements: []
482
505
  rubyforge_project: githug
483
- rubygems_version: 2.0.6
506
+ rubygems_version: 2.2.2
484
507
  signing_key:
485
508
  specification_version: 4
486
509
  summary: An interactive way to learn git.