mygithug 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -4
  3. data/levels/add.rb +1 -0
  4. data/levels/alias_lg.rb +1 -0
  5. data/levels/alias_st.rb +1 -0
  6. data/levels/bisect.rb +1 -0
  7. data/levels/bisect/prog.rb +1 -0
  8. data/levels/bisect/test.rb +1 -0
  9. data/levels/blame.rb +1 -0
  10. data/levels/blame/config.rb +1 -0
  11. data/levels/branch.rb +1 -0
  12. data/levels/branch_at.rb +1 -0
  13. data/levels/checkout.rb +1 -0
  14. data/levels/checkout_file.rb +1 -0
  15. data/levels/checkout_tag.rb +1 -0
  16. data/levels/checkout_tag_over_branch.rb +1 -0
  17. data/levels/cherry-pick.rb +1 -0
  18. data/levels/clone.rb +1 -0
  19. data/levels/clone_to_folder.rb +1 -0
  20. data/levels/commit.rb +1 -0
  21. data/levels/commit_amend.rb +1 -0
  22. data/levels/commit_in_future.rb +1 -0
  23. data/levels/config.rb +1 -0
  24. data/levels/conflict.rb +1 -0
  25. data/levels/congratulation.rb +1 -0
  26. data/levels/contribute.rb +1 -0
  27. data/levels/delete_branch.rb +2 -1
  28. data/levels/diff.rb +1 -0
  29. data/levels/diff/app.rb +1 -0
  30. data/levels/fetch.rb +1 -0
  31. data/levels/find_old_branch.rb +1 -0
  32. data/levels/grep.rb +1 -0
  33. data/levels/grep/app.rb +1 -0
  34. data/levels/grep/config.rb +1 -0
  35. data/levels/ignore.rb +1 -0
  36. data/levels/include.rb +1 -0
  37. data/levels/init.rb +1 -0
  38. data/levels/log.rb +1 -0
  39. data/levels/merge.rb +1 -0
  40. data/levels/merge_squash.rb +1 -0
  41. data/levels/number_of_files_committed.rb +1 -0
  42. data/levels/pull.rb +1 -0
  43. data/levels/pull_rebase.rb +1 -0
  44. data/levels/push.rb +1 -0
  45. data/levels/push_branch.rb +1 -0
  46. data/levels/push_tags.rb +1 -0
  47. data/levels/rebase.rb +1 -0
  48. data/levels/rebase_conflict.rb +1 -0
  49. data/levels/rebase_onto.rb +1 -0
  50. data/levels/remote.rb +1 -0
  51. data/levels/remote_add.rb +1 -0
  52. data/levels/remote_url.rb +1 -0
  53. data/levels/rename.rb +1 -0
  54. data/levels/rename_commit.rb +1 -0
  55. data/levels/reorder.rb +1 -0
  56. data/levels/repack.rb +1 -0
  57. data/levels/reset.rb +1 -0
  58. data/levels/reset_soft.rb +1 -0
  59. data/levels/restore.rb +1 -0
  60. data/levels/restructure.rb +1 -0
  61. data/levels/revert.rb +1 -0
  62. data/levels/rm.rb +1 -0
  63. data/levels/rm_cached.rb +1 -0
  64. data/levels/squash.rb +1 -0
  65. data/levels/stage_lines.rb +1 -0
  66. data/levels/stash.rb +1 -0
  67. data/levels/status.rb +1 -0
  68. data/levels/submodule.rb +1 -0
  69. data/levels/tag.rb +1 -0
  70. data/levels/unstash.rb +1 -0
  71. data/lib/githug.rb +1 -0
  72. data/lib/githug/cli.rb +1 -0
  73. data/lib/githug/extensions/grit/ruby1.9.rb +1 -0
  74. data/lib/githug/game.rb +1 -0
  75. data/lib/githug/level.rb +1 -0
  76. data/lib/githug/profile.rb +1 -0
  77. data/lib/githug/repository.rb +1 -0
  78. data/lib/githug/ui.rb +1 -0
  79. data/lib/githug/version.rb +2 -1
  80. data/spec/githug/cli_spec.rb +1 -0
  81. data/spec/githug/game_spec.rb +1 -0
  82. data/spec/githug/level_spec.rb +1 -0
  83. data/spec/githug/profile_spec.rb +1 -0
  84. data/spec/githug/repository_spec.rb +1 -0
  85. data/spec/githug/ui_spec.rb +1 -0
  86. data/spec/githug_spec.rb +1 -0
  87. data/spec/spec_helper.rb +1 -0
  88. data/spec/support/files/test_level.rb +1 -0
  89. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32574daa79b1735c0ec65e5a4da4b71478d3cf1d
4
- data.tar.gz: ab6e228f06875d4452ec1997c9c42801cd8a5ea4
3
+ metadata.gz: 62d787167c277a450a0d1eba48e0f54d3add9415
4
+ data.tar.gz: 20c4b32c0d6f0449c7706c1f5b86cf91cb81959b
5
5
  SHA512:
6
- metadata.gz: 03f4f5b7917319290bcf26a9c6c84aee564ddb55d709dd7261abf674be1dd0d8907fc4f91be94b2441924ef4b0975141e045a82e9237e99252ba6060e94c4af0
7
- data.tar.gz: 2e827d31bb8ddf6bd564dd3331e04a2a9af82bd7f019b97b40072ee9fd0f62b8ed90b42e7da393e774cab51865d4e84289019c84618f54bd975897c13de7a3dc
6
+ metadata.gz: 218caca027d11f692cb63de0cec81e1405763628eaa1f86e86fde9789e2e2f5947fa53787c5cfd93f90952e14ad9697332d04c133ccada1b69327895d86cb600
7
+ data.tar.gz: ce73b2bf121b3a51870b1b998a429c9ff91c15dcdb6255bcc3dfe9418ab3ecbd20d9d800e63050a756d95a25cea9356697462daf7b1642d2f421bb328be7272a
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # MyGithug
2
2
  玩游戏一样练习Git操作。
3
3
 
4
- [![Build Status](https://travis-ci.org/meixuesong/githug?branch=master)](https://travis-ci.org/meixuesong/githug)
5
-
6
4
  ## About
7
5
 
8
6
  MyGithub是基于 [Githug](https://github.com/Gazler/githug) 修改的一个练习Git的项目。
@@ -30,13 +28,13 @@ ruby --version
30
28
 
31
29
  如果没有权限,你可能需要以管理员身份运行。或者在Linux/Mac下 `sudo`:
32
30
 
33
- sudo gem install githug
31
+ sudo gem install mygithug
34
32
 
35
33
  ### 开始游戏
36
34
 
37
35
  建议你为此游戏创建一个新的文件夹,然后在该文件夹下运行命令:
38
36
 
39
- githug
37
+ mygithug
40
38
 
41
39
  按照提示,系统会创建一个git_hug文件夹。
42
40
 
@@ -53,3 +51,23 @@ Type `y` (yes) to continue, `n` (no) to cancel and quit Githug.
53
51
  * reset - 重置命令,将当前任务恢复到初始状态。
54
52
  * levels - 列出所有的游戏级别。
55
53
 
54
+ 常用命令示例:
55
+
56
+ 默认命令 play
57
+ ```
58
+ > mygithug play
59
+ 或者
60
+ > mygithug
61
+ ```
62
+
63
+ 提示信息 hint
64
+
65
+ ```
66
+ > mygithug hint
67
+ ```
68
+
69
+ 重置第3关 reset
70
+
71
+ ```
72
+ > mygithug reset 3
73
+ ```
data/levels/add.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "你已经创建了文件 README, 请把它加到Stage区.
3
4
  Note: You start each level with a new repo. Don't look for files from the previous one."
data/levels/alias_lg.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "使⽤git lg来查看带有树形结构的提交记录."
3
4
 
data/levels/alias_st.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "使⽤短别名git st来查看git状态"
3
4
 
data/levels/bisect.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "A bug was introduced somewhere along the way. You know that running `ruby prog.rb 5` should output 15. You can also run `make test`. What are the first 7 chars of the hash of the commit that introduced the bug."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  #!/usr/bin/env ruby
2
3
 
3
4
  puts Integer((Integer(ARGV[0])-3)*9)-1
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  #!/usr/bin/env ruby
2
3
 
3
4
  line = gets
data/levels/blame.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Someone has put a password inside the file `config.rb` find out who it was."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class Config
2
3
  attr_accessor :name, :password
3
4
  def initialize(name, password = nil, options = {})
data/levels/branch.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "You want to work on a piece of code that has the potential to break things, create the branch test_code."
3
4
 
data/levels/branch_at.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "You forgot to branch at the previous commit and made a commit on top of it. Create branch test_branch at the commit before the last."
3
4
 
data/levels/checkout.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Create and switch to a new branch called my_branch. You will need to create a branch like you did in the previous level."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
 
3
4
  description "A file has been modified, but you don't want to keep the modification. Checkout the `config.rb` file from the last commit."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "You need to fix a bug in the version 1.2 of your app. Checkout the tag `v1.2`."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "You need to fix a bug in the version 1.2 of your app. Checkout the tag `v1.2` (Note: There is also a branch named `v1.2`)."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "你在hotfix分支修复生产环境的紧急问题,现在你已经修复完成,需要单独将这个修复(Filled in README.md with proper input) 合并到master分支."
3
4
 
data/levels/clone.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "Clone the repository at https://github.com/Gazler/cloneme."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "Clone the repository at https://github.com/Gazler/cloneme to `my_cloned_repo`."
3
4
 
data/levels/commit.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "The `README` file has been added to your staging area, now commit it."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "The `README` file has been committed, but it looks like the file `forgotten_file.rb` was missing from the commit. Add the file and amend your previous commit to include it."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'time'
2
3
 
3
4
  difficulty 2
data/levels/config.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "Set up your git name and email, this is important so that your commits can be identified."
3
4
 
data/levels/conflict.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "你需要将 `mybranch`分支的变更merge到当前分支 (master). 如果有冲突,请把它搞定."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 0
2
3
  description "恭喜!你已经通过了全部测试,祝工作顺利!"
3
4
 
data/levels/contribute.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "This is the final level, the goal is to contribute to this repository by making a pull request on GitHub. Please note that this level is designed to encourage you to add a valid contribution to Githug, not testing your ability to create a pull request. Contributions that are likely to be accepted are levels, bug fixes and improved documentation."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "You have created too many branches for your project. There is an old branch in your repo called 'delete_me', you should delete it."
@@ -12,4 +13,4 @@ end
12
13
 
13
14
  hint do
14
15
  puts "Running 'git --help branch' will give you a list of branch commands."
15
- end
16
+ end
data/levels/diff.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "There have been modifications to the `app.rb` file since your last commit. Find out which line has changed."
3
4
 
data/levels/diff/app.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'sinatra'
2
3
  require 'oauth2'
3
4
  require 'json'
data/levels/fetch.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "获取远程其他同事新创建的特性分⽀的代码,但是不要Merge.
3
4
  Looks like a new branch was pushed into our remote repository. Get the changes without merging them with the local repository "
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "You have been working on a branch but got distracted by a major issue and forgot the name of it. Switch back to that branch."
3
4
 
data/levels/grep.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Your project's deadline approaches, you should evaluate how many TODOs are left in your code"
3
4
 
data/levels/grep/app.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'sinatra'
2
3
  require 'oauth2'
3
4
  require 'json'
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class Config
2
3
  attr_accessor :name, :password
3
4
  def initialize(name, password = nil, options = {})
data/levels/ignore.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Java编译后会创建 `.class` 文件和 `target` 文件夹, 这些文件/夹并不需要放到代码库中,请配置Git忽略它们。"
3
4
 
data/levels/include.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Notice a few files with the '.a' extension. We want git to ignore all but the 'lib.a' file."
3
4
 
data/levels/init.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "A new directory, `git_hug`, has been created; initialize an empty repository in it."
3
4
 
data/levels/log.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "你需要提供最近一次提交的commit id,并找出新增的内容是什么。"
data/levels/merge.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你在 feature 分支开发完成了,现在需要合并到 Master分支。"
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "Merge all commits from the long-feature-branch as a single commit."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "There are some files in this repository, how many of the files will be committed?"
3
4
 
data/levels/pull.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "You need to pull changes from your origin repository."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你需获取远程所有分⽀最新代码,并让版本树尽量整洁(只有⼀个树⼲)."
3
4
 
data/levels/push.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "Your local master branch has diverged from " +
3
4
  "the remote origin/master branch. Rebase your branch onto " +
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你已经创建了本地分支 `test_branch`,开发已经完成,你需要将此分支 push 到远程代码库。
3
4
  注意:只能push `test_branch` 分支,不能push其它分支。"
data/levels/push_tags.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "There are tags in the repository that aren't pushed into remote repository. Push them now."
3
4
 
data/levels/rebase.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "We are using a git rebase workflow and the feature branch is ready to go into master. Let's rebase the feature branch onto our master branch."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你需获取远程的最新代码,请让版本树尽量整洁(只有⼀个树⼲).过程中如果有冲突,请解决掉它!"
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "You have created your branch from `wrong_branch` and already made some commits, \
data/levels/remote.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "This project has a remote repository. Identify it."
data/levels/remote_add.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "Add a remote repository called `origin` with the url https://github.com/githug/githug"
data/levels/remote_url.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "The remote repositories have a url associated to them. Please enter the url of remote_location."
data/levels/rename.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
 
3
4
  description "We have a file called `oldfile.txt`. We want to rename it to `newfile.txt` and stage this change."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
  description "Correct the typo in the message of your first (non-root) commit."
3
4
 
data/levels/reorder.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "You have committed several times but in the wrong order. Please reorder your commits."
3
4
 
data/levels/repack.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "Optimise how your repository is packaged ensuring that redundant packs are removed."
3
4
 
data/levels/reset.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "There are two files to be committed. The goal was to add each file as a separate commit, however both were added by accident. Unstage the file `to_commit_second.rb` using the reset command (don't commit anything)."
3
4
 
data/levels/reset_soft.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "You committed too soon. Now you want to undo the last commit, while keeping the index."
3
4
 
data/levels/restore.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "You decided to delete your latest commit by running `git reset --hard HEAD^`. (Not a smart thing to do.) You then change your mind, and want that commit back. Restore the deleted commit."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 3
2
3
 
3
4
  description "You added some files to your repository, but now realize that your project needs to be restructured. Make a new folder named `src` and using Git move all of the .html files into this folder."
data/levels/revert.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "你已经在本地做了几次提交,而且所有提交都Push到了远程代码库。现在你发现有一次提交(Bad commit)包含了Bug, 你需要把它回滚掉。"
3
4
 
data/levels/rm.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "A file has been removed from the working tree, however the file was not removed from the repository. Find out what this file was and remove it."
data/levels/rm_cached.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "A file has accidentally been added to your staging area, find out which file and remove it from the staging area. *NOTE* Do not remove the file from the file system, only from git."
data/levels/squash.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
  description "You have committed several times but would like all those changes to be one commit."
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 4
2
3
 
3
4
  description "You've made changes within a single file that belong to two different features, but neither of the changes are yet staged. Stage only the changes belonging to the first feature."
data/levels/stash.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你已经做了一些修改,现在请暂存它们,并切换到分支`featurehumans-txt`。"
3
4
 
data/levels/status.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "There are some files in this repository, one of the files is untracked, which file is it?"
3
4
 
data/levels/submodule.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "You want to include the files from the following repo: `https://github.com/jackmaney/githug-include-me` into the folder `./githug-include-me`. Do this without manually cloning the repo or copying the files from the repo into this repo."
3
4
 
data/levels/tag.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
 
3
4
  description "We have a git repo and we want to tag the current commit with `new_tag`."
data/levels/unstash.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 2
2
3
  description "你之前做了一些修改,并且暂存了它们,然后你又切换到了分支`featurehumans-txt`。
3
4
  现在请切回到master,并恢复你之前做的修改。
data/lib/githug.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'grit'
2
3
 
3
4
  require "githug/extensions/grit/ruby1.9"
data/lib/githug/cli.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'thor'
2
3
  require 'githug'
3
4
  module Githug
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class String
2
3
  if self.method_defined?(:ord)
3
4
  def getord(offset); self[offset].ord; end
data/lib/githug/game.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Githug
2
3
  class Game
3
4
 
data/lib/githug/level.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Githug
2
3
  class Level
3
4
  include UI
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'yaml'
2
3
  module Githug
3
4
  class Profile
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Githug
2
3
  class Repository
3
4
 
data/lib/githug/ui.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Githug
2
3
  module UI
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Githug
2
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
3
4
  end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
  require 'githug/cli'
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Githug::Game do
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
  require 'grit'
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Githug::Profile do
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Githug::Repository do
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  require 'spec_helper'
data/spec/githug_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  RSpec::Matchers.define :be_solved do
data/spec/spec_helper.rb CHANGED
@@ -1 +1,2 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require './lib/githug.rb'
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  difficulty 1
2
3
  description "A test description"
3
4
  setup do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mygithug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Rennie & Mei Xuesong