yuimaru 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1b96ff775d7552bca0fc74a16ad7a3e8191dcdc9
4
+ data.tar.gz: 8fd3e0e67b2b30637020eda93f1c5eebee581b3a
5
+ SHA512:
6
+ metadata.gz: f6293b6c4d9fd07cd21a0eafb76fb85bc01d84770b54072cbeb96ca0bfdff3f7021c9924efd44a87d8d03e2203773a173e9a1cf35ceb7422fd51d772ed5b6bc0
7
+ data.tar.gz: 3fcb5821acbcfeaf340a13a109b3bb46ebba340e4eea5d91b68c8e901c745416116c44591989b937fc4ecf9b119226ef8e952f467faf2b9d8a5953b33533f647
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at hanachin@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in yuimaru.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Seiei Miyagi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ # Yuimaru
2
+
3
+ Generates sequence diagram.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'yuimaru'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install yuimaru
20
+
21
+ ## Usage
22
+
23
+ ```rb
24
+ # sample.rb
25
+ "alice" >> "hi bob" >> "bob"
26
+ "alice" << "hi alice" << "bob"
27
+ "alice" >> "hi carol" >> "carol"
28
+ "alice" << "hi alice" << "carol"
29
+ ```
30
+
31
+ ```console
32
+ $ bin/yuimaru sample.rb
33
+ ```
34
+
35
+ ![sample.png](sample.png)
36
+
37
+ ## Development
38
+
39
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+
41
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hanachin/yuimaru. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
+
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << "test"
6
+ t.test_files = FileList['test/**/test*.rb']
7
+ t.verbose = true
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "yuimaru"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require "pathname"
10
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("rake", "rake")
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'yuimaru' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require "pathname"
10
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("yuimaru", "yuimaru")
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "optparse"
4
+ require "yuimaru"
5
+
6
+ opt = OptionParser.new
7
+ opt.banner = "Usage: yuimaru file [options]"
8
+ opt.on('-o output') {|v| @output = v }
9
+
10
+ argv = opt.parse(ARGV)
11
+ @output ||= File.basename(argv[0], '.*') + '.png'
12
+ seq = Yuimaru.load_sequence(argv[0])
13
+ seq.save(@output)
@@ -0,0 +1,45 @@
1
+ require "yuimaru/version"
2
+ require "yuimaru/message"
3
+ require "yuimaru/dsl/default"
4
+ require "yuimaru/sequence"
5
+
6
+ module Yuimaru
7
+ class << self
8
+ attr_accessor :default_env
9
+
10
+ def sequence(seq, env: default_env)
11
+ add = -> (v) { current << v if v.is_a?(Yuimaru::Message) }
12
+ trace_var(:$_, add)
13
+
14
+ eval(seq, env)
15
+
16
+ Sequence.new(current)
17
+ ensure
18
+ untrace_var(:$_, add)
19
+ reset
20
+ end
21
+
22
+ def load_sequence(path, env: default_env)
23
+ seq = File.read(path)
24
+ sequence(seq)
25
+ end
26
+
27
+ def method_missing(name, *)
28
+ return super if /\A_+\z/ !~ name
29
+
30
+ current << []
31
+ end
32
+
33
+ private
34
+
35
+ def current
36
+ Thread.current[:yuimaru] ||= []
37
+ end
38
+
39
+ def reset
40
+ Thread.current[:yuimaru] = nil
41
+ end
42
+ end
43
+
44
+ Yuimaru.default_env =Yuimaru::Dsl::Default.env
45
+ end
@@ -0,0 +1,25 @@
1
+ require "yuimaru/message"
2
+
3
+ module Yuimaru
4
+ module Dsl
5
+ module Default
6
+ class << self
7
+ attr_accessor :env
8
+ end
9
+
10
+ refine(String) do
11
+ def <<(name)
12
+ $_ = Message.new(nil, name, self)
13
+ end
14
+
15
+ def >>(name)
16
+ $_ = Message.new(self, name, nil)
17
+ end
18
+ end
19
+
20
+ using self
21
+
22
+ self.env = binding
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ module Yuimaru
2
+ class Message < Struct.new(:from, :name, :to)
3
+ def <<(from)
4
+ self.tap {|m| m.from = from }
5
+ end
6
+
7
+ def >>(to)
8
+ self.tap {|m| m.to = to }
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,22 @@
1
+ require 'yuimaru/sequence/diagram'
2
+
3
+ module Yuimaru
4
+ class Sequence
5
+ attr_reader :messages
6
+
7
+ def initialize(messages)
8
+ @messages = messages
9
+ end
10
+
11
+ def actors
12
+ messages.map {|m| [m.from, m.to] }.flatten.uniq
13
+ end
14
+
15
+ def save(path)
16
+ diagram = Diagram.new(self)
17
+ diagram.draw do |surface|
18
+ surface.write_to_png(path)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,215 @@
1
+ require 'cairo'
2
+
3
+ module Yuimaru
4
+ class Sequence
5
+ class Diagram
6
+ HAND_FAMILY = 'Daniel'
7
+
8
+ attr_reader :surface, :context, :width, :height
9
+
10
+ def initialize(sequence)
11
+ @sequence = sequence
12
+ end
13
+
14
+ def draw
15
+ set_layout
16
+ init_surface
17
+ init_context
18
+ set_font
19
+ fill_background
20
+
21
+ draw_actors
22
+ draw_lifeline
23
+ draw_messages
24
+
25
+ yield surface
26
+ end
27
+
28
+ private
29
+
30
+ def set_layout
31
+ s = Cairo::ImageSurface.new(Cairo::FORMAT_ARGB32, 300, 200)
32
+ c = Cairo::Context.new(s)
33
+
34
+ set_font(context: c)
35
+
36
+ te = -> (text) { c.text_extents(text) }
37
+
38
+ @actors_layout = {}
39
+
40
+ actor_padding = 8
41
+ @sequence.actors.each do |a|
42
+ a_te = te[a]
43
+ @actors_layout[a] = {
44
+ text_width: a_te.width,
45
+ text_height: a_te.height,
46
+ width: actor_padding * 2 + a_te.width,
47
+ height: actor_padding * 2 + a_te.height
48
+ }
49
+ end
50
+
51
+ @messages_layout = {}
52
+ message_padding = 32
53
+ @sequence.messages.each do |m|
54
+ name_te = te[m.name]
55
+ @messages_layout[m] = {
56
+ text_width: name_te.width,
57
+ text_height: name_te.height,
58
+ width: message_padding * 2 + name_te.width,
59
+ height: message_padding * 2 + name_te.height
60
+ }
61
+ end
62
+
63
+ actor_margin = 16
64
+ @sequence.messages.each do |m|
65
+ @actors_layout[m.from][:max_distance] ||= {}
66
+ @actors_layout[m.from][:max_distance][m.to] = [
67
+ @actors_layout[m.from][:max_distance][m.to],
68
+ @messages_layout[m][:width],
69
+ @actors_layout[m.from][:width] / 2 + @actors_layout[m.to][:width] / 2,
70
+ actor_margin
71
+ ].compact.max
72
+ end
73
+
74
+ current_x = current_y = actor_margin
75
+ @sequence.actors.each_with_index do |a, i|
76
+ l = @actors_layout[a]
77
+ l[:x] = current_x
78
+ l[:y] = current_y
79
+ l[:text_x] = current_x + actor_padding
80
+ l[:text_y] = current_y + actor_padding + l[:text_height]
81
+ if d = l[:max_distance][@sequence.actors[i + 1]]
82
+ current_x += l[:width] + actor_margin + d
83
+ else
84
+ current_x += l[:width] + actor_margin
85
+ end
86
+ end
87
+ current_y = @actors_layout.map {|(a, pos)| pos[:y] + pos[:height] }.max
88
+
89
+ message_margin = 16
90
+ @sequence.messages.each do |m|
91
+ from_l = @actors_layout[m.from]
92
+ to_l = @actors_layout[m.to]
93
+ m_l = @messages_layout[m]
94
+
95
+ current_y += [from_l[:text_height], to_l[:text_height]].max
96
+ current_y += message_margin
97
+
98
+ m_l[:line_start] = {
99
+ x: from_l[:text_x] + from_l[:text_width] / 2,
100
+ y: current_y + m_l[:text_height]
101
+ }
102
+
103
+ m_l[:line_end] = {
104
+ x: to_l[:text_x] + to_l[:text_width] / 2,
105
+ y: current_y + m_l[:text_height]
106
+ }
107
+
108
+ m_l[:text_y] = current_y
109
+ m_l[:text_x] = m_l[:line_start][:x] + (m_l[:line_end][:x] - m_l[:line_start][:x]) / 2 - m_l[:text_width] / 2
110
+ current_y += m_l[:text_height]
111
+ current_y += message_margin
112
+ end
113
+
114
+ @lifeline_layout = {}
115
+ end_y = @sequence.messages.map {|m| @messages_layout[m][:line_end][:y] }.max
116
+ @sequence.actors.each do |a|
117
+ a_l = @actors_layout[a]
118
+ x = a_l[:text_x] + a_l[:text_width] / 2
119
+ start_y = a_l[:y] + a_l[:height]
120
+ @lifeline_layout[a] = {
121
+ line_start: {x: x, y: start_y},
122
+ line_end: {x: x, y: end_y}
123
+ }
124
+ end
125
+
126
+ @width = current_x
127
+ @height = current_y + actor_margin
128
+ end
129
+
130
+ def init_surface
131
+ format = Cairo::FORMAT_ARGB32
132
+ @surface = Cairo::ImageSurface.new(format, width, height)
133
+ end
134
+
135
+ def init_context
136
+ @context = Cairo::Context.new(@surface)
137
+ end
138
+
139
+ def set_font(context: self.context, family: HAND_FAMILY, font_size: 16)
140
+ context.font_face = Cairo::ToyFontFace.new(family)
141
+ context.font_size = font_size
142
+ end
143
+
144
+ def fill_background
145
+ context.fill do
146
+ context.set_source_rgb(1, 1, 1)
147
+ context.rectangle(0, 0, width, height)
148
+ end
149
+ end
150
+
151
+ def draw_actors
152
+ context.set_source_rgb(0, 0, 0)
153
+ @actors_layout.each do |a, pos|
154
+ context.move_to(pos[:text_x], pos[:text_y])
155
+ context.show_text(a)
156
+ context.stroke do
157
+ context.rectangle(pos[:x], pos[:y], pos[:width], pos[:height])
158
+ end
159
+ end
160
+ end
161
+
162
+ def draw_lifeline
163
+ dashes = 10
164
+ context.set_dash(dashes)
165
+ @lifeline_layout.each do |_a, pos|
166
+ context.stroke do
167
+ context.set_source_rgb(0, 0, 0)
168
+ context.move_to(pos[:line_start][:x], pos[:line_start][:y])
169
+ context.line_to(pos[:line_end][:x], pos[:line_end][:y] + dashes * 2)
170
+ end
171
+ end
172
+ end
173
+
174
+ def draw_messages
175
+ arrow_margin = 5
176
+ context.set_source_rgb(0, 0, 0)
177
+ context.set_dash(nil)
178
+ @messages_layout.each do |m, pos|
179
+ context.move_to(pos[:text_x], pos[:text_y])
180
+ context.show_text(m.name)
181
+ if pos[:line_end][:x] > pos[:line_start][:x]
182
+ s, e, dir = pos[:line_start], pos[:line_end], 0
183
+ else
184
+ e, s, dir = pos[:line_start], pos[:line_end], 1
185
+ end
186
+
187
+ context.stroke do
188
+ context.move_to(s[:x] + arrow_margin, s[:y])
189
+ context.line_to(e[:x] - arrow_margin, e[:y])
190
+ end
191
+
192
+ if dir.zero?
193
+ x = e[:x] - arrow_margin
194
+ else
195
+ x = s[:x] + arrow_margin
196
+ end
197
+
198
+ y = e[:y]
199
+ if dir.zero?
200
+ arrow_len = -10
201
+ else
202
+ arrow_len = 10
203
+ end
204
+
205
+ context.fill do
206
+ context.move_to(x, y)
207
+ context.line_to(x + arrow_len, y - arrow_len)
208
+ context.line_to(x + arrow_len, y + arrow_len)
209
+ context.move_to(x, y)
210
+ end
211
+ end
212
+ end
213
+ end
214
+ end
215
+ end
@@ -0,0 +1,3 @@
1
+ module Yuimaru
2
+ VERSION = "0.1.0"
3
+ end
Binary file
@@ -0,0 +1,4 @@
1
+ "alice" >> "hi bob" >> "bob"
2
+ "alice" << "hi alice" << "bob"
3
+ "alice" >> "hi carol" >> "carol"
4
+ "alice" << "hi alice" << "carol"
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'yuimaru/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "yuimaru"
8
+ spec.version = Yuimaru::VERSION
9
+ spec.authors = ["Seiei Miyagi"]
10
+ spec.email = ["hanachin@gmail.com"]
11
+
12
+ spec.summary = %q{Generates sequence diagram.}
13
+ spec.homepage = "https://github.com/hanachin/yuimaru"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "cairo"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.11"
24
+ spec.add_development_dependency "pry"
25
+ spec.add_development_dependency "pry-doc"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "test-unit"
28
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yuimaru
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Seiei Miyagi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cairo
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-doc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: test-unit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - hanachin@gmail.com
100
+ executables:
101
+ - yuimaru
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".gitignore"
106
+ - CODE_OF_CONDUCT.md
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - bin/console
112
+ - bin/rake
113
+ - bin/setup
114
+ - bin/yuimaru
115
+ - exe/yuimaru
116
+ - lib/yuimaru.rb
117
+ - lib/yuimaru/dsl/default.rb
118
+ - lib/yuimaru/message.rb
119
+ - lib/yuimaru/sequence.rb
120
+ - lib/yuimaru/sequence/diagram.rb
121
+ - lib/yuimaru/version.rb
122
+ - sample.png
123
+ - sample.rb
124
+ - yuimaru.gemspec
125
+ homepage: https://github.com/hanachin/yuimaru
126
+ licenses:
127
+ - MIT
128
+ metadata: {}
129
+ post_install_message:
130
+ rdoc_options: []
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubyforge_project:
145
+ rubygems_version: 2.5.1
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Generates sequence diagram.
149
+ test_files: []
150
+ has_rdoc: