lipgloss 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 822cdc4a08be4d36feab181fe8933cf9486c1eba70935eca9d73eb6a573d47f1
4
- data.tar.gz: 2ac7c9626a365e2747050dd8b2cd067ccad05992b4c063b3dbb3668eff6dbc10
3
+ metadata.gz: 21670956c057c75cc20ecddc90d112ec73c0329d6dcacef3b3db667de202cfef
4
+ data.tar.gz: 99456be1f0aad47ffb9fc43668dd69748f5cde6812c644532a6c7d135238309f
5
5
  SHA512:
6
- metadata.gz: e1ee9fc15a1935945789032584bdac9fb983614e24daf66aca646593ae262dcc9cd395f4e5e74ebbe8589ab2f378245e07c660af66d2baf184451f4c843934ed
7
- data.tar.gz: f67ac668b982e0f6f06ffa6b1c17031ea491a90df729cc2e9f655e0c0ba78b7217020e39adc940be4c0f9864c7f3418f995dd282ffa29996a4dd9609be4b2389
6
+ metadata.gz: 6ce3d0fff553eb4dcef76b170ed9315dc1b9446e980a25c655a178828a69787af198cf584863e4d237e42bd48e2ffc4bb33fdfef4f17e15acd5d3f1c3c6859fc
7
+ data.tar.gz: 92646ae76273f4451e8c7ad36b6b541199c05955310e691b43bd0f6dc36e387035cb7739f388ad195e9031ccc132c3181f000db2307dd5d6613675df58c8772a
data/README.md CHANGED
@@ -296,8 +296,7 @@ puts list.render
296
296
  **Create tree structures:**
297
297
 
298
298
  ```ruby
299
- tree = Lipgloss::Tree.new
300
- .root("Project")
299
+ tree = Lipgloss::Tree.root("Project")
301
300
  .child("src")
302
301
  .child("lib")
303
302
  .child("test")
@@ -308,11 +307,10 @@ puts tree.render
308
307
  **Nested trees:**
309
308
 
310
309
  ```ruby
311
- src = Lipgloss::Tree.new.root("src").child("main.rb").child("helper.rb")
312
- test = Lipgloss::Tree.new.root("test").child("test_main.rb")
310
+ src = Lipgloss::Tree.root("src").child("main.rb").child("helper.rb")
311
+ test = Lipgloss::Tree.root("test").child("test_main.rb")
313
312
 
314
- tree = Lipgloss::Tree.new
315
- .root("Project")
313
+ tree = Lipgloss::Tree.root("Project")
316
314
  .child(src)
317
315
  .child(test)
318
316
 
@@ -487,4 +485,14 @@ The gem is available as open source under the terms of the MIT License.
487
485
 
488
486
  ## Acknowledgments
489
487
 
490
- This gem wraps [charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss), part of the excellent [Charm](https://charm.sh) ecosystem.
488
+ This gem wraps [charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss), part of the excellent [Charm](https://charm.sh) ecosystem. Charm Ruby is not affiliated with or endorsed by Charmbracelet, Inc.
489
+
490
+ ---
491
+
492
+ Part of [Charm Ruby](https://charm-ruby.dev).
493
+
494
+ <a href="https://charm-ruby.dev"><img alt="Charm Ruby" src="https://marcoroth.dev/images/heros/glamorous-christmas.png" width="400"></a>
495
+
496
+ [Lipgloss](https://github.com/marcoroth/lipgloss-ruby) • [Bubble Tea](https://github.com/marcoroth/bubbletea-ruby) • [Bubbles](https://github.com/marcoroth/bubbles-ruby) • [Glamour](https://github.com/marcoroth/glamour-ruby) • [Huh?](https://github.com/marcoroth/huh-ruby) • [Harmonica](https://github.com/marcoroth/harmonica-ruby) • [Bubblezone](https://github.com/marcoroth/bubblezone-ruby) • [Gum](https://github.com/marcoroth/gum-ruby) • [ntcharts](https://github.com/marcoroth/ntcharts-ruby)
497
+
498
+ The terminal doesn't have to be boring.
@@ -42,16 +42,20 @@ unless File.exist?(File.join(go_lib_dir, "liblipgloss.a"))
42
42
  ERROR
43
43
  end
44
44
 
45
+ go_lib_path = File.join(go_lib_dir, "liblipgloss.a")
46
+
45
47
  $LDFLAGS << " -L#{go_lib_dir}"
46
48
  $INCFLAGS << " -I#{go_lib_dir}"
47
49
 
48
- $LOCAL_LIBS << " #{go_lib_dir}/liblipgloss.a"
49
-
50
50
  case RbConfig::CONFIG["host_os"]
51
51
  when /darwin/
52
+ $LDFLAGS << " -Wl,-load_hidden,#{go_lib_path}"
53
+ $LDFLAGS << " -Wl,-exported_symbol,_Init_lipgloss"
52
54
  $LDFLAGS << " -framework CoreFoundation -framework Security -framework SystemConfiguration"
53
55
  $LDFLAGS << " -lresolv"
54
56
  when /linux/
57
+ $LOCAL_LIBS << " #{go_lib_path}"
58
+ $LDFLAGS << " -Wl,--exclude-libs,ALL"
55
59
  $LDFLAGS << " -lpthread -lm -ldl"
56
60
  $LDFLAGS << " -lresolv" if find_library("resolv", "res_query")
57
61
  end
@@ -2,5 +2,5 @@
2
2
  # rbs_inline: enabled
3
3
 
4
4
  module Lipgloss
5
- VERSION = "0.2.0" #: String
5
+ VERSION = "0.2.1" #: String
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipgloss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth