gitrb 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/gitrb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gitrb'
3
- s.version = '0.2.5'
3
+ s.version = '0.2.6'
4
4
  s.summary = 'Pure ruby git implementation'
5
5
  s.author = 'Daniel Mendler'
6
6
  s.email = 'mail@daniel-mendler.de'
data/lib/gitrb/tree.rb CHANGED
@@ -53,6 +53,16 @@ module Gitrb
53
53
  id
54
54
  end
55
55
 
56
+ # Are there no children?
57
+ def empty?
58
+ @children.empty?
59
+ end
60
+
61
+ # Number of children
62
+ def size
63
+ @children.size
64
+ end
65
+
56
66
  # Does this key exist in the children?
57
67
  def exists?(name)
58
68
  self[name] != nil
data/lib/gitrb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gitrb
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitrb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Mendler