birch 0.0.6-java → 0.0.7-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -371,6 +371,9 @@ void Init_native(void) {
371
371
  */
372
372
  birch_tree = rb_define_class_under(birch, "Tree", rb_cObject);
373
373
 
374
+ // Mixin Enumerable.
375
+ rb_include_module(birch_tree, rb_mEnumerable);
376
+
374
377
  // Attribute accessors
375
378
  rb_attr(birch_tree, rb_intern("id"), 1, 1, 1);
376
379
  rb_attr(birch_tree, rb_intern("value"), 1, 1, 1);
@@ -2,6 +2,8 @@ module Birch
2
2
 
3
3
  class Tree
4
4
 
5
+ include Enumerable
6
+
5
7
  attr_accessor :id, :value
6
8
  attr_accessor :parent, :features
7
9
  attr_reader :children, :edges
@@ -1,3 +1,3 @@
1
1
  module Birch
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birch
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.0.7
4
5
  prerelease:
5
- version: 0.0.6
6
6
  platform: java
7
7
  authors:
8
8
  - Louis Mullie
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-14 00:00:00.000000000 Z
13
+ date: 2013-01-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -34,13 +34,15 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: !binary |-
38
+ MA==
38
39
  none: false
39
40
  requirement: !ruby/object:Gem::Requirement
40
41
  requirements:
41
42
  - - ! '>='
42
43
  - !ruby/object:Gem::Version
43
- version: '0'
44
+ version: !binary |-
45
+ MA==
44
46
  none: false
45
47
  prerelease: false
46
48
  type: :development
@@ -67,13 +69,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
69
  requirements:
68
70
  - - ! '>='
69
71
  - !ruby/object:Gem::Version
70
- version: '0'
72
+ version: !binary |-
73
+ MA==
71
74
  none: false
72
75
  required_rubygems_version: !ruby/object:Gem::Requirement
73
76
  requirements:
74
77
  - - ! '>='
75
78
  - !ruby/object:Gem::Version
76
- version: '0'
79
+ version: !binary |-
80
+ MA==
77
81
  none: false
78
82
  requirements: []
79
83
  rubyforge_project:
@@ -82,4 +86,3 @@ signing_key:
82
86
  specification_version: 3
83
87
  summary: A basic Ruby tree implementation with an optional C extension for speed.
84
88
  test_files: []
85
- ...