rbgraph 0.5.0 → 0.6.0

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. checksums.yaml +5 -5
  2. data/README.md +3 -3
  3. metadata +11 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8284a63b040d1fb014f4ca839ef4e66ca3d8fc19
4
- data.tar.gz: b31b8d5cd254f6b9d46320c05bea0ebfa3b13369
2
+ SHA256:
3
+ metadata.gz: 96c201896ebe1889b6761e2f833c9a46433dfd94310422db5320968d72433d50
4
+ data.tar.gz: 1bcb332e7a1d17e588c3a940c28b0bddc312869cb91a45ca7009b3cb212142bc
5
5
  SHA512:
6
- metadata.gz: 94efb880fb5e11ab8efa02e5df9da6f13cf8daca8f4ccbd4d452e8aa48731b6f699944f131c22a19f1ff5cc7230a062050bbbdc11af3d7111a32f160af50d207
7
- data.tar.gz: cd62f60bb91d2bc65421653c8abea219b5e3298ec28d200e41f214edcea4018c51b7c7e5fa0491a7bb0d39d1c0c6160be6e19e08870039b66dc35a6aa0479ffd
6
+ metadata.gz: 69e44b615f35384fc97f223187fed81ed792d10658b76caa1fe8fd43d09af0cc86dc862a555256e292683f17d3c77387e0cc4c822f321c3aa2a3fc86bfc73b3b
7
+ data.tar.gz: 563f2adfd57c871085a9990f76fc11af2a88af50bded41d96e89110daee1f067c90a2d68a1f68abba196239246b170ce45ac4ca20d6b3ba06195ce23b996ab9a
data/README.md CHANGED
@@ -13,7 +13,7 @@ or add it to your Gemfile
13
13
 
14
14
  ## Basic objects
15
15
 
16
- ####*Graph*:
16
+ #### *Graph*:
17
17
  Graphs can be undirected or directed.
18
18
  ```ruby
19
19
  graph = Rbgraph::UndirectedGraph.new
@@ -22,7 +22,7 @@ graph = Rbgraph::DirectedGraph.new
22
22
  Use ```graph.directed?``` to figure out if a graph is directed or not.
23
23
  The graph object has the ```nodes``` and ```edges``` properties which are ruby hashes, the keys being the ids of each object respectively.
24
24
 
25
- ####*Nodes*:
25
+ #### *Nodes*:
26
26
  Every node should have an already set ```id``` property upon initialization.
27
27
  Nodes also carry data, in the data attribute which is a ruby hash.
28
28
  Usually you will not need initialize a node directly, but rather just add one with the desired properties in the graph.
@@ -60,7 +60,7 @@ and the following methods:
60
60
  * root (works only in directed graph - return the root of this node if the graph is not cyclic)
61
61
 
62
62
 
63
- ####*Edges*:
63
+ #### *Edges*:
64
64
  Edges connect nodes with either a one-way (directional graph) or two-way (undirectional graph) link.
65
65
  Edges have an internally computed id, which is a string representation of the ids of the nodes they connect.
66
66
  Each node can also have a ```weight``` attribute, and a ```kind``` attribute, as well as carry additional data as a ruby hash in its ```data``` attribute.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbgraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Lamprianidis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2025-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,40 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.8.3
19
+ version: '2.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.8'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.8.3
26
+ version: '2.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rspec
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.1'
40
31
  - - ">="
41
32
  - !ruby/object:Gem::Version
42
33
  version: 3.1.0
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '3.1'
43
37
  type: :development
44
38
  prerelease: false
45
39
  version_requirements: !ruby/object:Gem::Requirement
46
40
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3.1'
50
41
  - - ">="
51
42
  - !ruby/object:Gem::Version
52
43
  version: 3.1.0
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.1'
53
47
  description: Simple generic graphs and operations on them in Ruby!
54
48
  email: giorgos.lamprianidis@gmail.com
55
49
  executables: []
@@ -85,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
79
  - !ruby/object:Gem::Version
86
80
  version: '0'
87
81
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.6.14
82
+ rubygems_version: 3.0.3.1
90
83
  signing_key:
91
84
  specification_version: 4
92
85
  summary: Ruby graphs!