zadt 0.1.3 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 334e463a37f9b5ed068e3c19c89747fe2faa53bf
4
- data.tar.gz: 0f00edaba06dacbb550ae31c17fce4a59dfa883a
3
+ metadata.gz: ada672cf055b26e5255eabb53ec8bb8c13428330
4
+ data.tar.gz: 55d215e115f5cba93b15bb770620e1e4c07d4097
5
5
  SHA512:
6
- metadata.gz: bf176ed96a9c517147d2352cda386458ad99b0fccb94b2a6062f58cda285a6f1f67fe60715e231caf6073014c4bf00c58564076f0c99fbb5353b33946990b776
7
- data.tar.gz: 07ed15191a6377bf31f7f24b63f03c236940b11b6ae4707d73fbb053a064aa1964986bafa7dadd125da9c487f605d96514fe0274f52761cb382596ed0c9ab3ca
6
+ metadata.gz: 3b9a3600bce768416801c549bde1ca73f0ba0e7efd636a84e63522e70c4d1cfd8b22fc872f279d080b1671cec3aa565be931e79fa7e57e9aba62d34009db047f
7
+ data.tar.gz: 0d7cd82210643aed5eda2ea704052431b7d4ead067e9a7e2103c4f628c10ac1780f30750ab1968006807e577c6097a1adc7f43619e31207977a07d5d93b232d0
data/README.md CHANGED
@@ -20,9 +20,11 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- zadt::ADT::help will return a list of objects in the collection, as well as a brief description of each type.
23
+ Zadt::ADT::help will return a list of objects in the collection, as well as a brief description of each type.
24
24
 
25
- I also made a "help" function for each Data Type. Type zadt::StackQueue.help get a list of functions for the StackQueue, and so on.
25
+ I also made a "help" function for each Data Type. Type Zadt::StackQueue.help get a list of functions for the StackQueue, and so on.
26
+
27
+ And don't forget to require 'zadt' at the top!
26
28
 
27
29
  ### MinMaxStackQueue
28
30
 
@@ -77,7 +77,6 @@ module Zadt
77
77
  # a vertex with the new face
78
78
  def add_attached_face(vertex_array, num_edges)
79
79
  # Make the vertices into a line
80
- # p vertex_array
81
80
  vertex_line = make_vertex_line(vertex_array)
82
81
  # This finds the "ends" of the vertex line
83
82
  end_vertices = [vertex_line.first, vertex_line.last]
@@ -87,7 +86,6 @@ module Zadt
87
86
  vertices_to_make = num_edges - vertex_array.length
88
87
  edges_to_make = vertices_to_make + 1
89
88
 
90
- vert_ref = []
91
89
  # Make new vertices
92
90
  vert_ref = Array.new(vertices_to_make) {Vertex.new}
93
91
 
@@ -98,10 +96,10 @@ module Zadt
98
96
  edge_ref << make_connection(vert_ref[vert_id], vert_ref[vert_id + 1])
99
97
  end
100
98
  # Connect "ends" of new vertices to "ends" of vertex line (making a circuit)
101
- # Connect "first" of new vertices to "first end" of old ones
102
- edge_ref << make_connection(vert_ref.first, end_vertices.first)
103
- # Connect "last" of new vertices to "last end" of old ones
104
- edge_ref << make_connection(vert_ref.last, end_vertices.last)
99
+ # Connect "first" of new vertices to "last end" of old ones
100
+ edge_ref << make_connection(vert_ref.first, end_vertices.last)
101
+ # Connect "last" of new vertices to "first end" of old ones
102
+ edge_ref << make_connection(vert_ref.last, end_vertices.first)
105
103
 
106
104
  # Add edges from vertex_line to edge_ref
107
105
  (vertex_line.length - 1).times do |vert_id|
@@ -1,3 +1,3 @@
1
1
  module Zadt
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Zagorski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler