mtg_card_maker 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.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +16 -0
  3. data/CODE_OF_CONDUCT.md +131 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +305 -0
  6. data/bin/mtg_card_maker +7 -0
  7. data/lib/mtg_card_maker/base_card.rb +210 -0
  8. data/lib/mtg_card_maker/cli.rb +221 -0
  9. data/lib/mtg_card_maker/color_palette.rb +135 -0
  10. data/lib/mtg_card_maker/color_scheme.rb +305 -0
  11. data/lib/mtg_card_maker/core_ext/deep_merge.rb +21 -0
  12. data/lib/mtg_card_maker/fonts/Goudy Mediaeval DemiBold.ttf +0 -0
  13. data/lib/mtg_card_maker/fonts/goudy_base64.txt +1 -0
  14. data/lib/mtg_card_maker/icon_service.rb +95 -0
  15. data/lib/mtg_card_maker/icons/black.svg +1 -0
  16. data/lib/mtg_card_maker/icons/blue.svg +1 -0
  17. data/lib/mtg_card_maker/icons/colorless.svg +1 -0
  18. data/lib/mtg_card_maker/icons/green.svg +1 -0
  19. data/lib/mtg_card_maker/icons/jsharp.svg +1 -0
  20. data/lib/mtg_card_maker/icons/qrcode.svg +1 -0
  21. data/lib/mtg_card_maker/icons/red.svg +1 -0
  22. data/lib/mtg_card_maker/icons/white.svg +1 -0
  23. data/lib/mtg_card_maker/layer_config.rb +289 -0
  24. data/lib/mtg_card_maker/layer_factory.rb +122 -0
  25. data/lib/mtg_card_maker/layer_initializer.rb +12 -0
  26. data/lib/mtg_card_maker/layers/art_layer.rb +63 -0
  27. data/lib/mtg_card_maker/layers/border_layer.rb +166 -0
  28. data/lib/mtg_card_maker/layers/frame_layer.rb +62 -0
  29. data/lib/mtg_card_maker/layers/name_layer.rb +82 -0
  30. data/lib/mtg_card_maker/layers/power_layer.rb +69 -0
  31. data/lib/mtg_card_maker/layers/text_box_layer.rb +107 -0
  32. data/lib/mtg_card_maker/layers/type_line_layer.rb +86 -0
  33. data/lib/mtg_card_maker/mana_cost.rb +220 -0
  34. data/lib/mtg_card_maker/metallic_renderer.rb +174 -0
  35. data/lib/mtg_card_maker/sprite_sheet_assets.rb +158 -0
  36. data/lib/mtg_card_maker/sprite_sheet_builder.rb +90 -0
  37. data/lib/mtg_card_maker/sprite_sheet_service.rb +126 -0
  38. data/lib/mtg_card_maker/svg_gradient_service.rb +159 -0
  39. data/lib/mtg_card_maker/text_rendering_service.rb +160 -0
  40. data/lib/mtg_card_maker/version.rb +8 -0
  41. data/lib/mtg_card_maker.rb +268 -0
  42. data/sig/mtg_card_maker.rbs +4 -0
  43. metadata +149 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 86af6b0b99b18a80e1c1262b0dee561827cd44bb5c3cda356b80ea82084bb6a5
4
+ data.tar.gz: 44666f6b704373a2200ab303605a28681f699bc3d3286ae334a53d08e1d974c8
5
+ SHA512:
6
+ metadata.gz: c89f4152f692fcae4517b2ed0ee3905b3ade4d64f066a9604734a80d3fb1d8ea1faae059b8490d672d0c2bf7c278f90887cc4075c548444b02b97e760c9021d3
7
+ data.tar.gz: 83a778be41a404a1fa74cf813d8d9d7cc360c370381fb6417e295c790a33139668eb6a89b41573b793ccb7de27b88a6516919b2b2d5a0534d54e1a6a7a659215
data/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-07-12
4
+
5
+ ### 🎯 Initial Release
6
+ ### ✨ Features
7
+
8
+ #### 🎴 Card Generation
9
+ - **Single Card Generation**: Create individual MTG cards with full customization
10
+ - **Sprite Sheet Generation**: Generate multiple cards in a single SVG file for efficient printing and web display
11
+ - **YAML Configuration**: Define multiple cards in YAML files for batch processing
12
+
13
+ #### 📋 System Requirements
14
+ - Ruby 3.2 or higher
15
+ - Compatible with Ruby 3.5.0 (manually tested)
16
+ - Cross-platform support (macOS, Linux, Windows (untested))
@@ -0,0 +1,131 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement by emailing joesharp13@gmail.com.
63
+ All complaints will be reviewed and investigated promptly and fairly.
64
+
65
+ All community leaders are obligated to respect the privacy and security of the
66
+ reporter of any incident.
67
+
68
+ ## Enforcement Guidelines
69
+
70
+ Community leaders will follow these Community Impact Guidelines in determining
71
+ the consequences for any action they deem in violation of this Code of Conduct:
72
+
73
+ ### 1. Correction
74
+
75
+ **Community Impact**: Use of inappropriate language or other behavior deemed
76
+ unprofessional or unwelcome in the community.
77
+
78
+ **Consequence**: A private, written warning from community leaders, providing
79
+ clarity around the nature of the violation and an explanation of why the
80
+ behavior was inappropriate. A public apology may be requested.
81
+
82
+ ### 2. Warning
83
+
84
+ **Community Impact**: A violation through a single incident or series of
85
+ actions.
86
+
87
+ **Consequence**: A warning with consequences for continued behavior. No
88
+ interaction with the people involved, including unsolicited interaction with
89
+ those enforcing the Code of Conduct, for a specified period of time. This
90
+ includes avoiding interactions in community spaces as well as external channels
91
+ like social media. Violating these terms may lead to a temporary or permanent
92
+ ban.
93
+
94
+ ### 3. Temporary Ban
95
+
96
+ **Community Impact**: A serious violation of community standards, including
97
+ sustained inappropriate behavior.
98
+
99
+ **Consequence**: A temporary ban from any sort of interaction or public
100
+ communication with the community for a specified period of time. No public or
101
+ private interaction with the people involved, including unsolicited interaction
102
+ with those enforcing the Code of Conduct, is allowed during this period.
103
+ Violating these terms may lead to a permanent ban.
104
+
105
+ ### 4. Permanent Ban
106
+
107
+ **Community Impact**: Demonstrating a pattern of violation of community
108
+ standards, including sustained inappropriate behavior, harassment of an
109
+ individual, or aggression toward or disparagement of classes of individuals.
110
+
111
+ **Consequence**: A permanent ban from any sort of public interaction within the
112
+ community.
113
+
114
+ ## Attribution
115
+
116
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117
+ version 2.1, available at
118
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
119
+
120
+ Community Impact Guidelines were inspired by
121
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
122
+
123
+ For answers to common questions about this code of conduct, see the FAQ at
124
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
125
+ [https://www.contributor-covenant.org/translations][translations].
126
+
127
+ [homepage]: https://www.contributor-covenant.org
128
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
129
+ [Mozilla CoC]: https://github.com/mozilla/diversity
130
+ [FAQ]: https://www.contributor-covenant.org/faq
131
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International (CC BY-NC-ND 4.0)
2
+
3
+ Copyright (c) 2025 joe-sharp
4
+
5
+ This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
6
+
7
+ You are free to:
8
+ Share — copy and redistribute the material in any medium or format
9
+
10
+ The licensor cannot revoke these freedoms as long as you follow the license terms.
11
+ Under the following terms:
12
+ - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
13
+ - NonCommercial — You may not use the material for commercial purposes.
14
+ - NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
15
+ No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
16
+
17
+ Notices:
18
+ You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
19
+
20
+ No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
data/README.md ADDED
@@ -0,0 +1,305 @@
1
+ # MTG Card Maker
2
+
3
+ <p align=center>
4
+ <img src="images/mtgcm_card.png" width="300" />
5
+ </p>
6
+
7
+ A Ruby gem for creating fan-made Magic: The Gathering cards. This tool allows you to generate custom MTG cards with proper formatting, mana costs, and card layouts. All you need to supply is the artwork image url/path, or simply overlay on top of an image of your choosing.
8
+
9
+ Please note this gem is in early beta, and should not be used in any production application. **Using it commercially is a violation of the license.** Please suggest feature ideas you have after reviewing the open issues here: https://github.com/joe-sharp/mtg_card_maker/issues
10
+
11
+ ## Features
12
+ #### 🎨 Card Customization
13
+
14
+ **Core Card Properties:**
15
+ - **Card Name**: Customizable card titles with optional font support
16
+ - **Mana Cost**: Support for 0-9, X, and all MTG mana symbols (W, U, B, R, G, C), alternate icon sets coming soon!
17
+ - **Type Line**: Customizable Card types and subtypes (Creature, Instant, Sorcery, etc.)
18
+ - **Description**: Rules text with automatic word wrapping and formatting
19
+ - **Flavor Text**: Optional italicized flavor text at the bottom of cards
20
+ - **Power/Toughness**: For creature cards, customizable power and toughness values, frame hides when omitted
21
+
22
+ **Visual Customization:**
23
+ - **Color Schemes**: 8 built-in colors (white, blue, black, red, green, colorless, gold, artifact), split colors coming soon!
24
+ - **Border Color**: Customizable border colors (white, black, gold, silver)
25
+ - **Art Integration**: Support for custom artwork via image URLs, or simply layer the svg over your art of choice
26
+
27
+ #### 🖼️ Sprite Sheet Features
28
+
29
+ **Efficiency Optimizations:**
30
+ - **Shared Assets**: Fonts, gradients, and masks defined once per sprite sheet
31
+ - **Reduced File Size**: Significantly smaller file sizes compared to individual cards
32
+ - **Layout Optimization**: Ideal for web applications, printing and digital displays
33
+
34
+ **Layout Control:**
35
+ - **Cards Per Row**: Configurable number of cards per row (default: 4)
36
+ - **Spacing Control**: Adjustable spacing between cards in pixels (default: 30)
37
+ - **Automatic Sizing**: Dynamic sprite sheet dimensions based on card count
38
+
39
+ **Batch Processing:**
40
+ - **YAML Configuration**: Define multiple cards in structured YAML files
41
+ - **CLI Integration**: Command-line tools for adding cards to YAML files
42
+ - **Error Handling**: Robust error handling for invalid configurations
43
+
44
+ #### 🛠️ Technical Features
45
+
46
+ **SVG Generation:**
47
+ - **Vector Graphics**: High-quality SVG output suitable for any size
48
+ - **Print Ready**: Optimized for both digital and print applications
49
+ - **Cross-Platform**: Compatible with all modern browsers and design software
50
+
51
+ **Development Tools:**
52
+ - **Guard Integration**: Automated testing and code quality monitoring
53
+ - **Status Summary**: Real-time development status with integrity checks
54
+ - **Comprehensive Testing**: 95%+ test coverage with RSpec
55
+ - **Code Quality**: RuboCop integration for consistent code style
56
+
57
+ **Documentation:**
58
+ - **YARD Documentation**: Comprehensive API documentation (95.96% documented)
59
+ - **CLI Help**: Detailed command-line help and examples
60
+ - **Examples**: Multiple example configurations and use cases
61
+
62
+ ## Installation
63
+
64
+ ### Prerequisites
65
+
66
+ This gem requires Ruby 3.2 or higher. The version of Ruby included with macOS is typically outdated and won't work. You can install a newer version of Ruby using tools like [asdf](https://asdf-vm.com/) (with the [Ruby plugin](https://github.com/asdf-vm/asdf-ruby)), [rbenv](https://github.com/rbenv/rbenv) or [RVM](https://rvm.io/). Note: This gem seems to work just fine on Ruby 3.5.0 but cannot be tested in CI currently.
67
+
68
+ Install the gem:
69
+ ```bash
70
+ gem install mtg_card_maker
71
+ ```
72
+
73
+ ## Usage
74
+ ### 🔧 Configuration Options
75
+
76
+ **Card Properties:**
77
+
78
+ Optionals without a default hide when omitted.
79
+ ```yaml
80
+ name: "Card Name" # Required
81
+ type_line: "Creature - Dragon" # Required
82
+ rules_text: "Card rules text" # Required
83
+ mana_cost: 2RR # Optional
84
+ flavor_text: "Flavor text" # Optional
85
+ power: 4 # Optional
86
+ toughness: 4 # Optional
87
+ color: red # Optional (default: colorless)
88
+ border_color: gold # Optional (default: white)
89
+ art: path/to/art.jpg # Optional
90
+ ```
91
+
92
+ **Color Schemes Available:**
93
+ ```rb
94
+ `artifact` => Artifact cards (Brown, legacy)
95
+ `black` => Black cards
96
+ `blue` => Blue cards
97
+ `colorless` => Artifact/Land cards (Grey)
98
+ `gold` => Multicolor cards (Metallic Gold)
99
+ `green` => Green cards
100
+ `red` => Red cards
101
+ `white` => White cards
102
+ ```
103
+
104
+ ### 🚀 Usage Examples
105
+
106
+ ### Single Card
107
+
108
+ **Generate:**
109
+ ```bash
110
+ mtg_card_maker generate_card \
111
+ --name="Lightning Bolt" \
112
+ --mana-cost=R \
113
+ --type-text=Instant \
114
+ --description="Deal 3 damage to any target." \
115
+ --color=red
116
+ ```
117
+
118
+ **Add to YAML:**
119
+ ```bash
120
+ mtg_card_maker add_card deck.yml \
121
+ --name="Counterspell" \
122
+ --mana-cost="UU" \
123
+ --type-text="Instant" \
124
+ --description="Counter target spell." \
125
+ --color="blue"
126
+ ```
127
+ *Shortcuts:*
128
+ - `g` or `gc` for `generate_card`
129
+ - `a` or `ac` for `add_card`
130
+
131
+ ### Generate a Sprite Sheet
132
+
133
+ For printing or displaying multiple cards on a webpage, using a sprite sheet is recommended. This approach embeds fonts and gradients once per sheet instead of repeating them for each individual card, improving file size and loading efficiency.
134
+ Generate a sprite sheet from YAML configuration:
135
+
136
+ **Required Arguments:**
137
+ - `YAML_FILE`: Path to YAML configuration file
138
+ - `OUTPUT_FILE`: Output filename for the sprite sheet
139
+
140
+ **Optional Options:**
141
+ - `--cards-per-row`: Number of cards per row in sprite (default: 4)
142
+ - `--spacing`: Spacing between cards in pixels (default: 30)
143
+
144
+
145
+ ```bash
146
+ mtg_card_maker generate_sprite deck.yml sprite_sheet.svg \
147
+ --cards-per-row=3 --spacing=5
148
+ ```
149
+ *Shortcuts:*
150
+ - `gs` or `gcs` for `generate_sprite`
151
+
152
+ ### Examples
153
+
154
+ <p>
155
+ <img align=right src="images/joe-sharp_card.png" alt="a sample card generated by the application" width="300" />
156
+ </p>
157
+
158
+ **Generate a simple creature:**
159
+
160
+ ```bash
161
+ mtg_card_maker generate_card \
162
+ --name="Joe Sharp" \
163
+ --mana-cost=2UR \
164
+ --type-text="Engineer - Fullstack" \
165
+ --description='When Joe Sharp enters the battlefield, create a 1/1 Code token with "This token can debug any program."\n\nWhenever you cast a Red spell, draw a card.' \
166
+ --flavor-text='"I write code everyday." - Joe Sharp' \
167
+ --power=3 \
168
+ --toughness=3 \
169
+ --border-color=gold \
170
+ --color=blue
171
+ ```
172
+
173
+ **Add multiple cards to a YAML file:**
174
+ ```bash
175
+ mtg_card_maker add_card deck.yml --name="Lightning Bolt" --mana-cost="R" --type-text="Instant" --description="Deal 3 damage to any target." --color="red"
176
+
177
+ mtg_card_maker add_card deck.yml --name="Counterspell" --mana-cost="UU" --type-text="Instant" --description="Counter target spell." --color="blue"
178
+ ```
179
+
180
+ **Generate a sprite sheet from YAML:**
181
+ ```bash
182
+ mtg_card_maker generate_sprite deck.yml sprite_sheet.svg --cards-per-row=3 --spacing=20
183
+ ```
184
+
185
+ ## Development
186
+
187
+ ### Setup
188
+
189
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
190
+
191
+ ### Development Workflow with Guard
192
+
193
+ This project uses [Guard](https://github.com/guard/guard) for automated testing and code quality checks during development. Guard monitors file changes and automatically runs relevant tests and checks.
194
+
195
+ **Start Guard:**
196
+ ```bash
197
+ bundle exec guard
198
+ ```
199
+
200
+ **What Guard monitors:**
201
+ - **RuboCop**: Automatically checks code style when Ruby files change
202
+ - **RSpec**: Runs tests when spec files or corresponding lib files change
203
+ - **Status Summary**: Monitors changes and runs `bin/status_summary` to check card generation integrity (end-to-end tests)
204
+
205
+ **Guard Output:**
206
+ - RuboCop results are saved to `tmp/rubocop_status.txt`
207
+ - RSpec results are saved to `tmp/rspec_status.txt`
208
+ - Status summary provides real-time feedback on code quality and card generation
209
+
210
+ ### Status Summary Script
211
+
212
+ The `bin/status_summary` script provides a comprehensive development status overview, it is meant to only be run by guard.
213
+
214
+ **What it does:**
215
+ - Generates test cards and sprite sheets to verify functionality
216
+ - Compares generated output against expected fixtures
217
+ - Checks for unexpected changes in SVG files
218
+ - Displays status indicators, requires you run with guard:
219
+ - ✅ RuboCop violations (with count if any)
220
+ - ✅ RSpec test failures (with count if any)
221
+ - ✅ Card generation integrity
222
+ - ✅ Sprite sheet generation integrity
223
+
224
+ **Status Indicators:**
225
+ - `✅` - All good
226
+ - `⚠️` - Issues detected (with count)
227
+ - `❌` - Failures
228
+ - `🔄` - Unexpected changes detected
229
+
230
+ ### Interactive Development
231
+
232
+ **Console:**
233
+ ```bash
234
+ bin/console
235
+ ```
236
+
237
+ Start an interactive Ruby console with the gem loaded for experimentation.
238
+
239
+ **Manual Testing:**
240
+ Note: just use guard
241
+ ```bash
242
+ # Run all tests
243
+ bundle exec rspec
244
+
245
+ # Check code style
246
+ bundle exec rubocop
247
+
248
+ # Generate test cards
249
+
250
+ # See examples above, but you will need to use bin/mtg_card_maker from the project root to use the in-development code.
251
+
252
+ # Or run `bundle exec guard` and monitor output_card.svg and color_cards_sprite.svg for changes, it is far better, really.
253
+ ```
254
+
255
+ ## Documentation
256
+
257
+ ### API Documentation
258
+
259
+ The gem includes comprehensive YARD documentation for all classes and methods. You can generate and view the documentation locally:
260
+
261
+ **Generate Documentation:**
262
+ ```bash
263
+ bundle exec yard doc
264
+ ```
265
+
266
+ **Serve Documentation Locally:**
267
+ ```bash
268
+ bundle exec yard server
269
+ ```
270
+ Then visit `http://localhost:8808` to browse the documentation.
271
+
272
+ ### Key Classes
273
+
274
+ - **MtgCardMaker**: Main module with card generation examples
275
+ - **BaseCard**: High-level card creation interface
276
+ - **Template**: SVG canvas and layer management
277
+ - **BaseLayer**: Abstract base class for all card layers
278
+ - **ColorScheme**: Unified color system for all MTG colors
279
+ - **LayerFactory**: Factory pattern for creating card layers
280
+ - **CLI**: Command-line interface with Thor integration
281
+
282
+ ### Installation and Release
283
+
284
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
285
+
286
+ ## Contributing
287
+
288
+ Bug reports and pull requests are welcome on GitHub at https://github.com/joe-sharp/mtg_card_maker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/joe-sharp/mtg_card_maker/blob/main/CODE_OF_CONDUCT.md).
289
+
290
+ ## License
291
+
292
+ <a href="https://projects.joe-sharp.com/mtg_card_maker">MTG Card Maker</a> © 2025 by <a href="https://github.com/joe-sharp/mtg_card_maker">Joe Sharp</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</a> <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" width="20" valign=bottom><img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" width="20" valign=bottom><img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" width="20" valign=bottom><img src="https://mirrors.creativecommons.org/presskit/icons/nd.svg" width="20" valign=bottom>
293
+
294
+ The gem is available as open source under the terms of this license.
295
+
296
+ ## Copyright
297
+
298
+ © 2025 Joe Sharp. Some rights reserved.
299
+ MTG Card Maker is unofficial Fan Content permitted under the [Fan Content Policy.](https://company.wizards.com/en/legal/fancontentpolicy) Not approved/endorsed by Wizards. Portions of the materials used are property of Wizards of the Coast. © Wizards of the Coast LLC.
300
+
301
+ The removal or alteration of copyright notices, attributions, and/or QR codes from generated images constitutes a material breach of the license agreement. All copyright notices and identifying marks must remain intact and unmodified in accordance with the terms of use.
302
+
303
+ ## Code of Conduct
304
+
305
+ Everyone interacting in the MTG Card Maker project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/joe-sharp/mtg_card_maker/blob/main/CODE_OF_CONDUCT.md).
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'mtg_card_maker'
6
+
7
+ MtgCardMaker::CLI.start(ARGV)