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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa6018d95449efb2183029a5944a5ef0311850a
4
- data.tar.gz: 844937233a926d9e64455bf960e9f130dd7dc933
3
+ metadata.gz: 82c15d6c3b320f8328e2e6576f82888665ebda36
4
+ data.tar.gz: b7c2c5f28ccb37e5e89d062aed1eedc9cf6ee676
5
5
  SHA512:
6
- metadata.gz: 80a6012d3b3c0c0ac842c5d5bc149332dd085d8d512f332de6543f051ce0cb37dcd9f1b58bf3e53d5771f297937b35e6bcdb58fda8fa68f23f2db85526a4b9f5
7
- data.tar.gz: f0bf2535fe3e5a543104fd197a5b606c6cb86d5b1598e8f70edd341c91156421e5258ac818b467f76d36182a56066eeafb8b64692020e70b2b7b7507641cb2ec
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
 
@@ -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.collect.each { |commit| commit.oid }
101
+ walker.map(&block).compact
102
102
  end
103
103
  end
104
104
 
data/lib/gitdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gitdb
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-20 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged