shellfie 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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE +21 -0
- data/README.md +334 -0
- data/Rakefile +8 -0
- data/assets/logo-header.svg +28 -0
- data/examples/animation.yml +33 -0
- data/examples/colored.yml +20 -0
- data/examples/demo.gif +0 -0
- data/examples/demo.png +0 -0
- data/examples/demo_animation.yml +31 -0
- data/examples/headless.png +0 -0
- data/examples/headless.yml +16 -0
- data/examples/scrolling.yml +48 -0
- data/examples/simple.yml +21 -0
- data/examples/theme_macos.png +0 -0
- data/examples/theme_ubuntu.png +0 -0
- data/examples/theme_windows.png +0 -0
- data/exe/shellfie +6 -0
- data/exe/shf +5 -0
- data/lib/shellfie/ansi_parser.rb +174 -0
- data/lib/shellfie/cli.rb +228 -0
- data/lib/shellfie/config.rb +65 -0
- data/lib/shellfie/errors.rb +15 -0
- data/lib/shellfie/gif_generator.rb +151 -0
- data/lib/shellfie/parser.rb +90 -0
- data/lib/shellfie/renderer.rb +193 -0
- data/lib/shellfie/themes/base.rb +72 -0
- data/lib/shellfie/themes/macos.rb +51 -0
- data/lib/shellfie/themes/ubuntu.rb +57 -0
- data/lib/shellfie/themes/windows_terminal.rb +64 -0
- data/lib/shellfie/version.rb +5 -0
- data/lib/shellfie.rb +13 -0
- data/shellfie.gemspec +32 -0
- metadata +94 -0
data/shellfie.gemspec
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/shellfie/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "shellfie"
|
|
7
|
+
spec.version = Shellfie::VERSION
|
|
8
|
+
spec.authors = ["Yudai Takada"]
|
|
9
|
+
spec.email = ["t.yudai92@gmail.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Terminal screenshot-style image generator"
|
|
12
|
+
spec.description = "Generate beautiful terminal screenshot-style PNG images and animated GIFs from YAML configuration files. Perfect for README files and documentation."
|
|
13
|
+
spec.homepage = "https://github.com/ydah/shellfie"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
16
|
+
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
|
20
|
+
|
|
21
|
+
spec.files = Dir.chdir(__dir__) do
|
|
22
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
23
|
+
(File.expand_path(f) == __FILE__) ||
|
|
24
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
spec.bindir = "exe"
|
|
28
|
+
spec.executables = %w[shellfie shf]
|
|
29
|
+
spec.require_paths = ["lib"]
|
|
30
|
+
|
|
31
|
+
spec.add_dependency "mini_magick", ">= 4.12"
|
|
32
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: shellfie
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Yudai Takada
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: mini_magick
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '4.12'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '4.12'
|
|
26
|
+
description: Generate beautiful terminal screenshot-style PNG images and animated
|
|
27
|
+
GIFs from YAML configuration files. Perfect for README files and documentation.
|
|
28
|
+
email:
|
|
29
|
+
- t.yudai92@gmail.com
|
|
30
|
+
executables:
|
|
31
|
+
- shellfie
|
|
32
|
+
- shf
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- ".rspec"
|
|
37
|
+
- CHANGELOG.md
|
|
38
|
+
- LICENSE
|
|
39
|
+
- README.md
|
|
40
|
+
- Rakefile
|
|
41
|
+
- assets/logo-header.svg
|
|
42
|
+
- examples/animation.yml
|
|
43
|
+
- examples/colored.yml
|
|
44
|
+
- examples/demo.gif
|
|
45
|
+
- examples/demo.png
|
|
46
|
+
- examples/demo_animation.yml
|
|
47
|
+
- examples/headless.png
|
|
48
|
+
- examples/headless.yml
|
|
49
|
+
- examples/scrolling.yml
|
|
50
|
+
- examples/simple.yml
|
|
51
|
+
- examples/theme_macos.png
|
|
52
|
+
- examples/theme_ubuntu.png
|
|
53
|
+
- examples/theme_windows.png
|
|
54
|
+
- exe/shellfie
|
|
55
|
+
- exe/shf
|
|
56
|
+
- lib/shellfie.rb
|
|
57
|
+
- lib/shellfie/ansi_parser.rb
|
|
58
|
+
- lib/shellfie/cli.rb
|
|
59
|
+
- lib/shellfie/config.rb
|
|
60
|
+
- lib/shellfie/errors.rb
|
|
61
|
+
- lib/shellfie/gif_generator.rb
|
|
62
|
+
- lib/shellfie/parser.rb
|
|
63
|
+
- lib/shellfie/renderer.rb
|
|
64
|
+
- lib/shellfie/themes/base.rb
|
|
65
|
+
- lib/shellfie/themes/macos.rb
|
|
66
|
+
- lib/shellfie/themes/ubuntu.rb
|
|
67
|
+
- lib/shellfie/themes/windows_terminal.rb
|
|
68
|
+
- lib/shellfie/version.rb
|
|
69
|
+
- shellfie.gemspec
|
|
70
|
+
homepage: https://github.com/ydah/shellfie
|
|
71
|
+
licenses:
|
|
72
|
+
- MIT
|
|
73
|
+
metadata:
|
|
74
|
+
homepage_uri: https://github.com/ydah/shellfie
|
|
75
|
+
source_code_uri: https://github.com/ydah/shellfie
|
|
76
|
+
changelog_uri: https://github.com/ydah/shellfie/blob/main/CHANGELOG.md
|
|
77
|
+
rdoc_options: []
|
|
78
|
+
require_paths:
|
|
79
|
+
- lib
|
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: 3.0.0
|
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
requirements: []
|
|
91
|
+
rubygems_version: 4.0.3
|
|
92
|
+
specification_version: 4
|
|
93
|
+
summary: Terminal screenshot-style image generator
|
|
94
|
+
test_files: []
|