glamour 0.1.0-aarch64-linux-musl → 0.2.1-aarch64-linux-musl
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 +4 -4
- data/README.md +3 -3
- data/ext/glamour/extension.c +1 -1
- data/glamour.gemspec +2 -2
- data/go/build/linux_arm64/libglamour.a +0 -0
- data/lib/glamour/3.2/glamour.so +0 -0
- data/lib/glamour/3.3/glamour.so +0 -0
- data/lib/glamour/3.4/glamour.so +0 -0
- data/lib/glamour/4.0/glamour.so +0 -0
- data/lib/glamour/style.rb +2 -2
- data/lib/glamour/version.rb +1 -2
- data/lib/glamour.rb +12 -4
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1d904878bb9d5cc68c78f6a343f958d6e7b6507e20a284e9ee9a077fba70b08
|
|
4
|
+
data.tar.gz: bcf1a77e405583c4a2a01667fbc2f25a7e587f6005b9910d689d8a108cdb7eb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db05bcb728e2f22e1cf0c5d48173559e03036b4935b55b7af6396e5eea6aad250edc6833f45b2c1531fb3e5c50363b8253a097edace698000b1f49545225913e
|
|
7
|
+
data.tar.gz: 2b746d9db4f1c1c010525f30c2dd26c069b5504ae2045dc4e8b8163c71ae777970699f3367090736db4d7c04df2bd1ffd5f659b7f9f5097a4293ab5b634e4ef7
|
data/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Glamour</h1>
|
|
3
|
-
<h4>Stylesheet-based
|
|
2
|
+
<h1>Glamour for Ruby</h1>
|
|
3
|
+
<h4>Stylesheet-based markdown rendering for your CLI apps.</h4>
|
|
4
4
|
|
|
5
5
|
<p>
|
|
6
6
|
<a href="https://rubygems.org/gems/glamour"><img alt="Gem Version" src="https://img.shields.io/gem/v/glamour"></a>
|
|
7
7
|
<a href="https://github.com/marcoroth/glamour-ruby/blob/main/LICENSE.txt"><img alt="License" src="https://img.shields.io/github/license/marcoroth/glamour-ruby"></a>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
<p>Ruby bindings for <a href="https://github.com/charmbracelet/glamour">charmbracelet/glamour</a>.<br/>Render markdown documents
|
|
10
|
+
<p>Ruby bindings for <a href="https://github.com/charmbracelet/glamour">charmbracelet/glamour</a>.<br/>Render markdown documents & templates on ANSI compatible terminals.</p>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
## Installation
|
data/ext/glamour/extension.c
CHANGED
|
@@ -171,7 +171,7 @@ static VALUE glamour_upstream_version_rb(VALUE self) {
|
|
|
171
171
|
static VALUE glamour_version_rb(VALUE self) {
|
|
172
172
|
VALUE gem_version = rb_const_get(self, rb_intern("VERSION"));
|
|
173
173
|
VALUE upstream_version = glamour_upstream_version_rb(self);
|
|
174
|
-
VALUE format_string = rb_utf8_str_new_cstr("glamour v%s (upstream
|
|
174
|
+
VALUE format_string = rb_utf8_str_new_cstr("glamour v%s (upstream %s) [Go native extension]");
|
|
175
175
|
|
|
176
176
|
return rb_funcall(rb_mKernel, rb_intern("sprintf"), 3, format_string, gem_version, upstream_version);
|
|
177
177
|
}
|
data/glamour.gemspec
CHANGED
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ["Marco Roth"]
|
|
9
9
|
spec.email = ["marco.roth@intergga.ch"]
|
|
10
10
|
|
|
11
|
-
spec.summary = "Ruby wrapper for Charm's glamour
|
|
12
|
-
spec.description =
|
|
11
|
+
spec.summary = "Ruby wrapper for Charm's glamour. Stylesheet-based markdown rendering for your CLI apps."
|
|
12
|
+
spec.description = "Glamour lets you render markdown documents & templates on ANSI compatible terminals."
|
|
13
13
|
spec.homepage = "https://github.com/marcoroth/glamour-ruby"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
spec.required_ruby_version = ">= 3.2.0"
|
|
Binary file
|
data/lib/glamour/3.2/glamour.so
CHANGED
|
Binary file
|
data/lib/glamour/3.3/glamour.so
CHANGED
|
Binary file
|
data/lib/glamour/3.4/glamour.so
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/glamour/style.rb
CHANGED
|
@@ -33,8 +33,8 @@ module Glamour
|
|
|
33
33
|
# @rbs markdown: String -- the markdown content to render
|
|
34
34
|
# @rbs width: Integer -- optional word wrap width
|
|
35
35
|
# @rbs return: String -- rendered output with ANSI escape codes
|
|
36
|
-
def render(markdown, width: 0, **)
|
|
37
|
-
Glamour.render(markdown, style: self, width: width, **)
|
|
36
|
+
def render(markdown, width: 0, **options)
|
|
37
|
+
Glamour.render(markdown, style: self, width: width, **options)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
# @rbs return: true
|
data/lib/glamour/version.rb
CHANGED
data/lib/glamour.rb
CHANGED
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
# rbs_inline: enabled
|
|
4
4
|
|
|
5
5
|
require "json"
|
|
6
|
+
|
|
6
7
|
require_relative "glamour/version"
|
|
7
|
-
|
|
8
|
+
|
|
9
|
+
begin
|
|
10
|
+
major, minor, _patch = RUBY_VERSION.split(".") #: [String, String, String]
|
|
11
|
+
require_relative "glamour/#{major}.#{minor}/glamour"
|
|
12
|
+
rescue LoadError
|
|
13
|
+
require_relative "glamour/glamour"
|
|
14
|
+
end
|
|
15
|
+
|
|
8
16
|
require_relative "glamour/renderer"
|
|
9
17
|
require_relative "glamour/style"
|
|
10
18
|
|
|
@@ -16,11 +24,11 @@ module Glamour
|
|
|
16
24
|
# @rbs style: String | singleton(Glamour::Style) -- style name or Style subclass
|
|
17
25
|
# @rbs width: Integer -- optional word wrap width
|
|
18
26
|
# @rbs return: String -- rendered output with ANSI escape codes
|
|
19
|
-
def render(markdown, style: "auto", width: 0, **)
|
|
27
|
+
def render(markdown, style: "auto", width: 0, **options)
|
|
20
28
|
if style_class?(style)
|
|
21
|
-
render_with_style_class(markdown, style, width: width, **)
|
|
29
|
+
render_with_style_class(markdown, style, width: width, **options)
|
|
22
30
|
else
|
|
23
|
-
render_native(markdown, style: style, width: width, **)
|
|
31
|
+
render_native(markdown, style: style, width: width, **options)
|
|
24
32
|
end
|
|
25
33
|
end
|
|
26
34
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glamour
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: aarch64-linux-musl
|
|
6
6
|
authors:
|
|
7
7
|
- Marco Roth
|
|
@@ -9,8 +9,8 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description:
|
|
13
|
-
|
|
12
|
+
description: Glamour lets you render markdown documents & templates on ANSI compatible
|
|
13
|
+
terminals.
|
|
14
14
|
email:
|
|
15
15
|
- marco.roth@intergga.ch
|
|
16
16
|
executables: []
|
|
@@ -31,6 +31,7 @@ files:
|
|
|
31
31
|
- lib/glamour/3.2/glamour.so
|
|
32
32
|
- lib/glamour/3.3/glamour.so
|
|
33
33
|
- lib/glamour/3.4/glamour.so
|
|
34
|
+
- lib/glamour/4.0/glamour.so
|
|
34
35
|
- lib/glamour/renderer.rb
|
|
35
36
|
- lib/glamour/style.rb
|
|
36
37
|
- lib/glamour/style_definition.rb
|
|
@@ -53,15 +54,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
53
54
|
version: '3.2'
|
|
54
55
|
- - "<"
|
|
55
56
|
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
57
|
+
version: 4.1.dev
|
|
57
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
59
|
requirements:
|
|
59
60
|
- - ">="
|
|
60
61
|
- !ruby/object:Gem::Version
|
|
61
62
|
version: 3.3.22
|
|
62
63
|
requirements: []
|
|
63
|
-
rubygems_version:
|
|
64
|
+
rubygems_version: 4.0.3
|
|
64
65
|
specification_version: 4
|
|
65
|
-
summary: Ruby wrapper for Charm's glamour
|
|
66
|
-
|
|
66
|
+
summary: Ruby wrapper for Charm's glamour. Stylesheet-based markdown rendering for
|
|
67
|
+
your CLI apps.
|
|
67
68
|
test_files: []
|