graphviz_aasm 0.1.0 → 0.1.1

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: 28a18dd491297bcba72b3a7160f73503c6cd2bd6
4
- data.tar.gz: ff8a330b75161ebf7ae909e99979ba3db307e9b5
3
+ metadata.gz: f30ac9d7e44f5184032ccecd59dee04b61b29077
4
+ data.tar.gz: d561716f405d044d03aa2813176a13d47bcd9259
5
5
  SHA512:
6
- metadata.gz: dd5073864e4e385a5fbe6c643448db974eb884df4e95d83a825696617179874a6f7920dc0c1b201ef31d3733f0cfef415d7e1887fbc19c6ca8e1638fc6711cac
7
- data.tar.gz: 00e3308b8f44587be0a50f6a130ed2c8eaa06c67e04353bc5f8b73d6811f93668dc8b7a14eb36eb576891c07005b2f03acf78be0a135ebfd58e9f30887fb7fcb
6
+ metadata.gz: 91edd1a7f5229c2f6e2825016a267de4099a53e3dc50422affe94e6a3b121ab875c1e19719417155ef1aba894cda2402c0efef51e33274a08b089344f6e8aa43
7
+ data.tar.gz: 18a7a88f6d5e373842b5592662fd8a6995bd4ba151c6790712470535511b89da9b5108ce07ef897eac059b9dcf9d59faf84fb0dc5714281aff5089912ec93017
@@ -29,7 +29,7 @@ module GraphvizAasm
29
29
 
30
30
  AASM::Core::State.class_eval do
31
31
  def draw(graph)
32
- node = graph.add_nodes(self.human_name, shape: final? ? "doublecircle" : "ellipse")
32
+ node = graph.add_nodes(self.to_s, shape: final? ? "doublecircle" : "ellipse")
33
33
  graph.add_edge(graph.add_nodes("starting_state", shape: "point"), node) if initial?
34
34
  end
35
35
 
@@ -49,7 +49,7 @@ module GraphvizAasm
49
49
  AASM::Core::Event.class_eval do
50
50
  def draw(graph)
51
51
  transitions.each do |transition|
52
- graph.add_edge(transition.from.to_s.capitalize, transition.to.to_s.capitalize)
52
+ graph.add_edge(transition.from.to_s, transition.to.to_s)
53
53
  end
54
54
  end
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module GraphvizAasm
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphviz_aasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Trofimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.2.2
138
+ rubygems_version: 2.4.8
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Use Ruby-GraphViz for AASM.