gitdb 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/gitdb/Contacts.rb +2 -2
- data/lib/gitdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82c15d6c3b320f8328e2e6576f82888665ebda36
|
4
|
+
data.tar.gz: b7c2c5f28ccb37e5e89d062aed1eedc9cf6ee676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977e29076347cba628a1d987e7b279b61afc4df4e541d4b18fbf108d43ba03e647d8aa797b36b251114a67bc3d06488c106d1ed76394e7dfcc4bba9c72e97f10
|
7
|
+
data.tar.gz: a011e0a6547cfe521ddb5eb163892158ed283527cefd195dc593b55ebfa8e8e47467b47d346f1356bb5b0420e1ceffda2a5573c4443ec8aa98618eb7a3edb1c9
|
data/README.md
CHANGED
@@ -38,9 +38,10 @@ Or install it yourself as:
|
|
38
38
|
+ method: `access(contacts_id)`
|
39
39
|
+ method: `getmeta`
|
40
40
|
+ method: `setmeta(Hash)`
|
41
|
+
+ method: `get_cards { |card| }`
|
41
42
|
+ method: `get_all_cards`
|
42
43
|
+ method: `get_card_by_id(card_id)`
|
43
|
-
+ method: `read_change_history`
|
44
|
+
+ method: `read_change_history { |commit| }`
|
44
45
|
+ method: `revert_to(sha, {})`
|
45
46
|
+ method: `make_a_commit({})`
|
46
47
|
|
data/lib/gitdb/Contacts.rb
CHANGED
@@ -92,13 +92,13 @@ module Gitdb
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# 返回commit对象oid
|
95
|
-
def read_change_history
|
95
|
+
def read_change_history &block
|
96
96
|
if @repo.head_unborn?
|
97
97
|
[]
|
98
98
|
else
|
99
99
|
walker = Rugged::Walker.new repo
|
100
100
|
walker.push repo.last_commit
|
101
|
-
walker.
|
101
|
+
walker.map(&block).compact
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
data/lib/gitdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ran
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|