Skip to content

Commit 29704f4

Browse files
committed
Rename module from Aa2Img to AA2img for consistent naming convention
1 parent 7fd2066 commit 29704f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+117
-117
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ aa = <<~AA
138138
AA
139139

140140
# Get SVG string
141-
svg = Aa2Img.convert(aa, format: :svg, theme: "default", valign: :center)
141+
svg = AA2img.convert(aa, format: :svg, theme: "default", valign: :center)
142142

143143
# Write to file (format inferred from extension)
144-
Aa2Img.convert_to_file(aa, "diagram.png", theme: "monochrome", scale: 2, valign: :top)
144+
AA2img.convert_to_file(aa, "diagram.png", theme: "monochrome", scale: 2, valign: :top)
145145
```
146146

147147
## Diagram Syntax
@@ -214,7 +214,7 @@ custom_theme = {
214214
"font_family" => "'Noto Sans JP', sans-serif"
215215
}
216216

217-
svg = Aa2Img.convert(aa, format: :svg, theme: custom_theme)
217+
svg = AA2img.convert(aa, format: :svg, theme: custom_theme)
218218
```
219219

220220
## Notes

aa2img.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require_relative "lib/aa2img/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = "aa2img"
7-
spec.version = Aa2Img::VERSION
7+
spec.version = AA2img::VERSION
88
spec.authors = ["Yudai Takada"]
99
spec.email = ["t.yudai92@gmail.com"]
1010

examples/basic_usage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
└─────────────────────────────────────┘
1717
AA
1818

19-
svg = Aa2Img.convert(aa_text, format: :svg, valign: :center, theme: :modern)
19+
svg = AA2img.convert(aa_text, format: :svg, valign: :center, theme: :modern)
2020
File.write("output.svg", svg)
2121
puts "Generated output.svg"

exe/aa2img

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
require "aa2img"
55

6-
Aa2Img::CLI.start(ARGV)
6+
AA2img::CLI.start(ARGV)

lib/aa2img.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
require_relative "aa2img/theme"
3434
require_relative "aa2img/cli"
3535

36-
module Aa2Img
36+
module AA2img
3737
class Error < StandardError; end
3838

3939
class << self

lib/aa2img/ast/annotation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Aa2Img
3+
module AA2img
44
module AST
55
class Annotation < BaseElement
66
attr_accessor :text, :row, :arrow_col

lib/aa2img/ast/base_element.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Aa2Img
3+
module AA2img
44
module AST
55
class BaseElement
66
def initialize(**attrs)

lib/aa2img/ast/box.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Aa2Img
3+
module AA2img
44
module AST
55
class Box < BaseElement
66
attr_accessor :top, :left, :bottom, :right

lib/aa2img/ast/edge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Aa2Img
3+
module AA2img
44
module AST
55
class Edge < BaseElement
66
attr_accessor :from, :to, :style, :arrow

lib/aa2img/ast/label.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Aa2Img
3+
module AA2img
44
module AST
55
class Label < BaseElement
66
attr_accessor :text, :row, :col, :align

0 commit comments

Comments
 (0)