mygithug 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6751dda6a22efa15518d78dbb043a6acfaad412
4
- data.tar.gz: f4dcbf287169c697762397bbcc5f7ae4b10f7677
3
+ metadata.gz: 0650631b8e3a436a49338b44bc12d3d6afbd43f9
4
+ data.tar.gz: 8d67f8de34e9206de5e895b732277be32db9fbca
5
5
  SHA512:
6
- metadata.gz: 73a0e4c58b1234e74415f300cdf5ab6ae0a2dbc9a804dd81cbea8eee4713355e1200bf1e493ba4109b73548f3a69422fefa92804334f882a566b9ae2c5a46a23
7
- data.tar.gz: 4c8be2a5c031a88d270aef536192b523cbe538f49eacb8b8c5fede9a5664e5720b6e4d9a1f292bfb90e5658437d4b21cde53feba77678711e3a86932e03d467d
6
+ metadata.gz: 531e4bd37129eee6bd74cb313642aa32a64a32241fef5cb084af0b550d18f837795ce2549a10c80f65510e59707c8c34bdabeae72b2ff98825980ae059a64f40
7
+ data.tar.gz: 9843fd85ae72ba12760685d64e9df4503e69f1c636926207ea9758cbd3d8019248248668107729ce89e5954ff2e40122376a9843fc8302ec87a4615ee1c8122b
data/.gitignore CHANGED
@@ -1,8 +1,3 @@
1
+ .profile.yml
1
2
  *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- *.swp
6
- .rvmrc
7
- git_hug/*
8
- .profile.yml
3
+ .gitignore
data/file1 ADDED
File without changes
data/file2 ADDED
File without changes
data/file3 ADDED
File without changes
data/file5 ADDED
File without changes
data/levels/alias_lg.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  difficulty 1
3
- description "使⽤git lg来查看带有树形结构的提交记录."
3
+ description "使⽤`git lg`来查看带有树形结构的提交记录. 使用`git fl`查看单个文件的提交记录和变更历史。"
4
4
 
5
5
  setup do
6
6
  repo.init
@@ -40,17 +40,21 @@ setup do
40
40
  end
41
41
 
42
42
  solution do
43
- valid = false
43
+ valid = true
44
44
 
45
45
  config_alias_lg = repo.config["alias.lg"]
46
+ config_alias_filelg = repo.config["alias.fl"]
46
47
 
47
- if "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(white)%ad%C(reset) %C(bold green)%s%C(reset) %C(auto)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'" == config_alias_lg
48
- valid = true
49
- end
48
+ return false unless "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(dim)%ad%C(reset) %C(cyan)%s%C(reset) %C(dim)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'" == config_alias_lg
49
+ return false unless "log -M --follow --stat --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(dim)%ad%C(reset) %C(cyan)%s%C(reset) %C(dim)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'" == config_alias_filelg
50
50
 
51
51
  valid
52
52
  end
53
53
 
54
54
  hint do
55
- puts "增加一个git别名,内容如下:log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(white)%ad%C(reset) %C(bold green)%s%C(reset) %C(auto)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'"
55
+ puts "增加两个别名:git lg 和git fl,分别如下:
56
+ lg: log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(dim)%ad%C(reset) %C(cyan)%s%C(reset) %C(dim)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'
57
+ fl: log -M --follow --stat --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(dim)%ad%C(reset) %C(cyan)%s%C(reset) %C(dim)- %an%C(reset)%C(auto)%d%C(reset)' --date=format:'%Y-%m-%d %H:%M:%S'
58
+
59
+ "
56
60
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Githug
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
data/newfile.txt ADDED
@@ -0,0 +1 @@
1
+ Hello
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mygithug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Rennie & Mei Xuesong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-23 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -82,6 +82,10 @@ files:
82
82
  - README.md
83
83
  - Rakefile
84
84
  - bin/mg
85
+ - file1
86
+ - file2
87
+ - file3
88
+ - file5
85
89
  - levels/add.rb
86
90
  - levels/alias_lg.rb
87
91
  - levels/alias_st.rb
@@ -505,6 +509,7 @@ files:
505
509
  - lib/githug/ui.rb
506
510
  - lib/githug/version.rb
507
511
  - mygithug.gemspec
512
+ - newfile.txt
508
513
  - spec/githug/cli_spec.rb
509
514
  - spec/githug/game_spec.rb
510
515
  - spec/githug/level_spec.rb