galaaz 2.1.9 → 2.1.10.pre.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: 3e591ab4464b4ef2d75313c91b9f22de54229f2e83ed9758d66de69758e6828e
4
- data.tar.gz: a8978965526f22ba7abfc1f643c20516b2f962297e2254d0fc5105a96733c7f7
3
+ metadata.gz: ef32ca6ee37e23bda90feb1792a354f2f340e2d1897e8d03e2077f9fd653ee2f
4
+ data.tar.gz: 578c0c6c4a379f4e30563ba5c52995c0ed66218a6b0ab50f8aa5d63326e3754a
5
5
  SHA512:
6
- metadata.gz: 3dfe41a6abb29b76ff48d9282dbce82d450975fb96b6f84eb3d564b9fda75f4220e5a773f64f59a7b416749bdcb58ab58cd63b8928ce878160d6983134ae6c80
7
- data.tar.gz: 3bfcbf82a7dacbfa2357532d6fb0db4c651acd8b98d8b231da1d07cb36c7e47d73c2947773752afe80a78dc0b1b8f5c660d310887cddffba98235de984a85491
6
+ metadata.gz: 4a5005e35096ea61a162f822f620969bbea7323d94a58ca7de3dfab7bf4b361a59a3e1f1ba411416bdf3f3967a94ad88d75ef649c784262a6e203d427716a77f
7
+ data.tar.gz: f2ad0ce59fed08866d4768645508064f48efeac9e9615b62c12ba5403f0255a5e12c98c7283a484d67b8e52afb33830293ac6792fe05b0c04b6c76f2690e0f88
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ### Fixed
6
+
7
+ - **gemspec**: `_logo_before_body.html` and `images/galaaz-lockup-stacked.png`
8
+ were excluded by the `.html`/`.png` filter — pandoc error 99 on Omarchy
9
+ after `gem install`. Blog asset whitelist now ensures these ship with the gem.
10
+ - **doctor**: checks sty assets (`galaaz-header.png`, `galaaz-headers-from-p3.tex`)
11
+ and per-blog knit assets (`_logo_before_body.html`, lockup PNG).
12
+
5
13
  ## 2.1.9
6
14
 
7
15
  ### Added
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -286,8 +286,8 @@ end
286
286
 
287
287
  ```
288
288
  ## R class: Table
289
- ## IPC in: galaaz_ipc_35027_0eb039500ea01e8a.arrow
290
- ## IPC out: galaaz_ipc_35027_2e528c6c1bf2152d.arrow
289
+ ## IPC in: galaaz_ipc_13052_2619c7e03eb6183f.arrow
290
+ ## IPC out: galaaz_ipc_13052_d3c1ca403681a261.arrow
291
291
  ## g0 n=100 total=897 wsum=448.5
292
292
  ## g1 n=100 total=895 wsum=895.0
293
293
  ## g2 n=100 total=893 wsum=1339.5
@@ -604,8 +604,8 @@ reads row hashes. NewBridge only carries paths.
604
604
 
605
605
  \begin{verbatim}
606
606
  ## R class: Table
607
- ## IPC in: galaaz_ipc_34797_f9f16fd1b739f5ed.arrow
608
- ## IPC out: galaaz_ipc_34797_0f200cc9e2be2726.arrow
607
+ ## IPC in: galaaz_ipc_13052_591525d03a159b06.arrow
608
+ ## IPC out: galaaz_ipc_13052_705dc9da0fdb2479.arrow
609
609
  ## g0 n=100 total=897 wsum=448.5
610
610
  ## g1 n=100 total=895 wsum=895.0
611
611
  ## g2 n=100 total=893 wsum=1339.5
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <p style="text-align:center; margin: 0.75rem 0 1.25rem;">
2
+ <img src="images/galaaz-lockup-stacked.png" alt="Galaaz R-on-Rails" width="280" />
3
+ </p>
data/lib/galaaz/cli.rb CHANGED
@@ -342,8 +342,21 @@ module Galaaz
342
342
  blogs = detect_blogs_dir
343
343
  puts " blogs: #{blogs || '(not initialized)'}"
344
344
  if blogs
345
- sty = File.join(File.dirname(blogs), 'sty', 'galaaz.sty')
345
+ sty_dir = File.join(File.dirname(blogs), 'sty')
346
+ sty = File.join(sty_dir, 'galaaz.sty')
346
347
  puts " sty: #{File.file?(sty) ? sty : "MISSING (expected #{sty} for PDF blogs)"}"
348
+ %w[galaaz-header.png galaaz-headers-from-p3.tex].each do |name|
349
+ f = File.join(sty_dir, name)
350
+ puts " sty/#{name}: #{File.file?(f) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
351
+ end
352
+ # Check first blog for required knit assets
353
+ sample = File.join(blogs, BLOG_NAMES.first)
354
+ if File.directory?(sample)
355
+ logo_html = File.join(sample, '_logo_before_body.html')
356
+ logo_png = File.join(sample, 'images', 'galaaz-lockup-stacked.png')
357
+ puts " before_body: #{File.file?(logo_html) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
358
+ puts " lockup PNG: #{File.file?(logo_png) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
359
+ end
347
360
  end
348
361
 
349
362
  profiles = listed_profiles
@@ -39,7 +39,7 @@ def signed_area(pts) -> float:
39
39
 
40
40
 
41
41
  def fix_hole_windings(glyph: TTGlyph) -> None:
42
- """TrueType: outer CW (area < 0), holes CCW (area > 0)."""
42
+ """TrueType nonzero fill: outer CW (area < 0), holes CCW (area > 0)."""
43
43
  if glyph.numberOfContours <= 0:
44
44
  return
45
45
  coords = list(glyph.coordinates)
@@ -53,10 +53,10 @@ def fix_hole_windings(glyph: TTGlyph) -> None:
53
53
  pts = coords[start : end + 1]
54
54
  fl = flags[start : end + 1]
55
55
  area = signed_area(pts)
56
- # First contour = outer; rest = holes (rails are positive fills keep CW)
57
- # Contours after first that are nested holes need opposite winding.
58
- # Heuristic: second contour in our SVG is the gem hole; rails stay CW.
59
- if i == 1 and area < 0:
56
+ # Contour 0 = outer (CW); contour 1 = gem hole (CCW). Extra contours = CW fills.
57
+ want_cw = i != 1
58
+ is_cw = area < 0
59
+ if want_cw != is_cw:
60
60
  pts = list(reversed(pts))
61
61
  fl = list(reversed(fl))
62
62
  new_coords.extend(pts)
@@ -1,34 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Monochrome Galaaz mark for the Omarchy menu icon font (menu-size silhouette).
4
- Solid R with left top spur + diamond gem cutout (minimum-size spirit).
5
- Straight segments only. Optical box ~150..880 in a 1000 viewBox.
6
- -->
2
+ <!-- From logos/galaaz-minimum-size.png — solid R + ruby cutout (Omarchy menu glyph). -->
7
3
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" fill="#000">
8
4
  <path fill-rule="evenodd" d="
9
- M 160 150
10
- H 500
11
- L 620 150
12
- L 700 230
13
- L 720 340
14
- L 700 450
15
- L 620 520
16
- L 530 545
17
- L 760 880
18
- H 580
19
- L 400 560
20
- H 320
21
- V 880
22
- H 200
23
- V 280
24
- H 160
25
- V 150
26
- Z
27
-
28
- M 460 280
29
- L 380 350
30
- L 460 420
31
- L 540 350
32
- Z
5
+ M 457.1 672.3 L 390.1 672.1 L 390.1 654.5 L 381.1 654.2 L 381.1 614.2 L 390.1 613.8 L 390.1 587.3 L 483.9 587.2 L 504.1 606.9 L 618.9 494.0 L 567.2 401.3 L 441.0 401.3 L 424.6 430.4 L 390.3 430.4 L 390.1 354.4 L 582.5 354.2 L 582.9 363.2 L 609.4 363.2 L 609.7 372.2 L 627.3 372.2 L 627.5 380.9 L 636.2 381.1 L 636.4 389.9 L 645.2 390.1 L 645.4 398.8 L 654.3 399.2 L 654.3 416.8 L 663.3 417.1 L 663.3 443.6 L 672.3 444.0 L 672.3 492.9 L 663.3 493.3 L 663.3 519.8 L 654.3 520.2 L 654.3 537.7 L 645.6 537.9 L 645.4 546.7 L 636.6 546.8 L 636.4 555.6 L 627.5 556.0 L 627.5 578.0 L 636.2 578.2 L 636.4 587.0 L 645.4 587.3 L 645.4 604.9 L 654.2 605.1 L 654.3 613.8 L 663.1 614.0 L 663.3 622.8 L 672.3 623.2 L 672.3 640.7 L 681.0 640.9 L 681.2 649.7 L 690.2 650.1 L 690.2 663.1 L 587.3 663.3 L 587.2 654.5 L 578.4 654.3 L 578.2 645.6 L 569.4 645.4 L 569.1 636.4 L 466.4 636.4 L 466.2 663.1 L 457.4 663.3 L 457.1 672.3 Z M 470.1 573.7 L 390.3 573.7 L 390.1 515.7 L 411.2 515.5 L 470.1 573.7 Z
33
6
  "/>
34
7
  </svg>
Binary file
data/version.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  $gem_name = "galaaz"
2
- $version="2.1.9"
2
+ $version="2.1.10.pre.1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galaaz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Botafogo
@@ -124,11 +124,13 @@ files:
124
124
  - bin/run_slow_rspec
125
125
  - blogs/R-on-Rails-Planning-Document.md
126
126
  - blogs/README.md
127
+ - blogs/galaaz_2_0/_logo_before_body.html
127
128
  - blogs/galaaz_2_0/galaaz_2_0.Rmd
128
129
  - blogs/galaaz_2_0/galaaz_2_0.md
129
130
  - blogs/galaaz_2_0/galaaz_2_0.tex
130
131
  - blogs/galaaz_2_0/images/galaaz-header.png
131
132
  - blogs/galaaz_2_0/images/galaaz-lockup-stacked.png
133
+ - blogs/galaaz_ggplot/_logo_before_body.html
132
134
  - blogs/galaaz_ggplot/galaaz_ggplot.Rmd
133
135
  - blogs/galaaz_ggplot/galaaz_ggplot.md
134
136
  - blogs/galaaz_ggplot/galaaz_ggplot.tex
@@ -141,6 +143,7 @@ files:
141
143
  - blogs/galaaz_ggplot/images/galaaz-lockup-stacked.png
142
144
  - blogs/galaaz_ggplot/midwest.Rmd
143
145
  - blogs/galaaz_ggplot/midwest_external_png
146
+ - blogs/gknit/_logo_before_body.html
144
147
  - blogs/gknit/gknit.Rmd
145
148
  - blogs/gknit/gknit.md
146
149
  - blogs/gknit/gknit.tex
@@ -153,6 +156,7 @@ files:
153
156
  - blogs/gknit/lst.rds
154
157
  - blogs/gknit/model.rb
155
158
  - blogs/gknit/stats.bib
159
+ - blogs/manual/_logo_before_body.html
156
160
  - blogs/manual/images/galaaz-lockup-stacked.png
157
161
  - blogs/manual/include_model_local_repro.Rmd
158
162
  - blogs/manual/include_model_local_repro.md
@@ -166,16 +170,19 @@ files:
166
170
  - blogs/manual/manual_files/figure-markdown_github/bubble-1.png
167
171
  - blogs/manual/manual_files/figure-markdown_github/diverging_bar.png
168
172
  - blogs/manual/model.rb
173
+ - blogs/nse_dplyr/_logo_before_body.html
169
174
  - blogs/nse_dplyr/images/galaaz-lockup-stacked.png
170
175
  - blogs/nse_dplyr/nse_dplyr.Rmd
171
176
  - blogs/nse_dplyr/nse_dplyr.md
172
177
  - blogs/nse_dplyr/nse_dplyr.tex
178
+ - blogs/oh_my/_logo_before_body.html
173
179
  - blogs/oh_my/images/galaaz-lockup-stacked.png
174
180
  - blogs/oh_my/not_so.rb
175
181
  - blogs/oh_my/oh_my.Rmd
176
182
  - blogs/oh_my/oh_my.md
177
183
  - blogs/oh_my/oh_my.tex
178
184
  - blogs/oh_my/old.Rmd
185
+ - blogs/r_on_rails_ledger/_logo_before_body.html
179
186
  - blogs/r_on_rails_ledger/images/00_portfolio_page.png
180
187
  - blogs/r_on_rails_ledger/images/01_results_panel.png
181
188
  - blogs/r_on_rails_ledger/images/02_density_tail_risk.png
@@ -185,6 +192,7 @@ files:
185
192
  - blogs/r_on_rails_ledger/r_on_rails_ledger.Rmd
186
193
  - blogs/r_on_rails_ledger/r_on_rails_ledger.md
187
194
  - blogs/r_on_rails_ledger/r_on_rails_ledger.tex
195
+ - blogs/ruby_plot/_logo_before_body.html
188
196
  - blogs/ruby_plot/images/galaaz-lockup-stacked.png
189
197
  - blogs/ruby_plot/ruby_plot.Rmd
190
198
  - blogs/ruby_plot/ruby_plot.md