birch 0.0.5-java → 0.0.6-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/birch/pure.rb +2 -7
  2. data/lib/birch/version.rb +1 -1
  3. metadata +1 -1
data/lib/birch/pure.rb CHANGED
@@ -117,13 +117,8 @@ module Birch
117
117
  attr_reader :directed, :direction
118
118
 
119
119
  def initialize(node_a, node_b, directed = false, direction = 0)
120
- unless [3, 4].include?(args.size)
121
- raise ArgumentError, "Wrong number of arguments."
122
- end
123
- @node_a = args[0]
124
- @node_b = args[1]
125
- @directed = args[2]
126
- @direction = args.size == 4 ? args[3] : nil
120
+ @node_a, @node_b = node_a, node_b
121
+ @directed, @direction = directed, direction
127
122
  end
128
123
  end
129
124
 
data/lib/birch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Birch
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: birch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: java
7
7
  authors:
8
8
  - Louis Mullie