scarpe-components 0.3.0 → 0.5.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -3
  3. data/Gemfile.lock +6 -37
  4. data/README.md +2 -2
  5. data/assets/bootstrap-themes/bootstrap-cerulean.css +12229 -0
  6. data/assets/bootstrap-themes/bootstrap-cosmo.css +11810 -0
  7. data/assets/bootstrap-themes/bootstrap-cyborg.css +12210 -0
  8. data/assets/bootstrap-themes/bootstrap-darkly.css +12153 -0
  9. data/assets/bootstrap-themes/bootstrap-flatly.css +12126 -0
  10. data/assets/bootstrap-themes/bootstrap-icons.min.css +5 -0
  11. data/assets/bootstrap-themes/bootstrap-journal.css +12099 -0
  12. data/assets/bootstrap-themes/bootstrap-litera.css +12211 -0
  13. data/assets/bootstrap-themes/bootstrap-lumen.css +12369 -0
  14. data/assets/bootstrap-themes/bootstrap-lux.css +11928 -0
  15. data/assets/bootstrap-themes/bootstrap-materia.css +13184 -0
  16. data/assets/bootstrap-themes/bootstrap-minty.css +12177 -0
  17. data/assets/bootstrap-themes/bootstrap-morph.css +12750 -0
  18. data/assets/bootstrap-themes/bootstrap-pulse.css +11890 -0
  19. data/assets/bootstrap-themes/bootstrap-quartz.css +12622 -0
  20. data/assets/bootstrap-themes/bootstrap-sandstone.css +12201 -0
  21. data/assets/bootstrap-themes/bootstrap-simplex.css +12186 -0
  22. data/assets/bootstrap-themes/bootstrap-sketchy.css +12451 -0
  23. data/assets/bootstrap-themes/bootstrap-slate.css +12492 -0
  24. data/assets/bootstrap-themes/bootstrap-solar.css +12149 -0
  25. data/assets/bootstrap-themes/bootstrap-spacelab.css +12266 -0
  26. data/assets/bootstrap-themes/bootstrap-superhero.css +12216 -0
  27. data/assets/bootstrap-themes/bootstrap-united.css +12077 -0
  28. data/assets/bootstrap-themes/bootstrap-vapor.css +12549 -0
  29. data/assets/bootstrap-themes/bootstrap-yeti.css +12325 -0
  30. data/assets/bootstrap-themes/bootstrap-zephyr.css +12283 -0
  31. data/assets/bootstrap-themes/bootstrap.bundle.min.js +7 -0
  32. data/lib/scarpe/components/asset_server.rb +219 -0
  33. data/lib/scarpe/components/base64.rb +22 -0
  34. data/lib/scarpe/components/calzini/{art_widgets.rb → art_drawables.rb} +42 -18
  35. data/lib/scarpe/components/calzini/border.rb +38 -0
  36. data/lib/scarpe/components/calzini/button.rb +6 -8
  37. data/lib/scarpe/components/calzini/misc.rb +14 -16
  38. data/lib/scarpe/components/calzini/para.rb +218 -11
  39. data/lib/scarpe/components/calzini/slots.rb +16 -60
  40. data/lib/scarpe/components/calzini.rb +88 -1
  41. data/lib/scarpe/components/errors.rb +4 -0
  42. data/lib/scarpe/components/html.rb +4 -1
  43. data/lib/scarpe/components/minitest_export_reporter.rb +11 -3
  44. data/lib/scarpe/components/minitest_result.rb +41 -0
  45. data/lib/scarpe/components/port_helpers.rb +30 -0
  46. data/lib/scarpe/components/print_logger.rb +17 -2
  47. data/lib/scarpe/components/process_helpers.rb +37 -0
  48. data/lib/scarpe/components/segmented_file_loader.rb +1 -1
  49. data/lib/scarpe/components/tiranti.rb +42 -100
  50. data/lib/scarpe/components/unit_test_helpers.rb +3 -1
  51. data/lib/scarpe/components/version.rb +1 -1
  52. metadata +35 -10
  53. data/lib/scarpe/components/calzini/text_widgets.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 553966daf7d03ffd9c9b0262ea65c8ae0ac2de161b94eeb5d468c0ac5f38a51f
4
- data.tar.gz: fa7b2161160b5e49bf2bf15f73b5e991ad463a5bbed129cc4efa16d95ced77f6
3
+ metadata.gz: 104df28c1f4d78348ec014bfad0f454fa82c0c7e364c102ebc058e12bf159cff
4
+ data.tar.gz: 95840b6b2d209e0c90a0ef6228a51f869aaf484747d3f73825a5efef5b3d8b17
5
5
  SHA512:
6
- metadata.gz: cfe8b66b552128271fea15b7df830b680b12ce833e79725198804bd224394b6fd00dcada10dcd03ecb4f6d9c67b6cb87d8ede6e71d6277b8d181f5d2b985e9ef
7
- data.tar.gz: b531fe0af1d193f73a7e201afbde322152d659987bad14f51c8af65b65c823ebe330ffc1848f272dca169814dc10105672e3d0bfb617c723a9eb723ef556d44b
6
+ metadata.gz: af4c8a4a5885c8c3745af1e0012a7029a4eb5867af7fda07a5f29f416301288975f3f3a8951c8d5ca7e75fe03f4f8d8d8294f59842ad140675a84b90113066da
7
+ data.tar.gz: eaa1bdb5d61e48ba7470eab8696ae7f053c2d8684a27aff763a5e2ed27f0b4d25b07f26f71ce93113d2b191699c0317f0b5ad7ce0cb2de3285a06168a735f890
data/Gemfile CHANGED
@@ -8,15 +8,16 @@ gem "lacci", path: "../lacci"
8
8
 
9
9
  gem "rake", "~> 13.0"
10
10
 
11
- gem "nokogiri"
11
+ #gem "nokogiri"
12
12
 
13
13
  group :test do
14
14
  gem "minitest", "~> 5.0"
15
15
  gem "minitest-reporters"
16
+
17
+ # Dependencies for specific components being tested
18
+ gem "webrick"
16
19
  end
17
20
 
18
21
  group :development do
19
22
  gem "debug"
20
- gem "rubocop", "~> 1.21"
21
- gem "rubocop-shopify"
22
23
  end
data/Gemfile.lock CHANGED
@@ -1,20 +1,18 @@
1
1
  PATH
2
2
  remote: ../lacci
3
3
  specs:
4
- lacci (0.3.0)
5
- scarpe-components
4
+ lacci (0.4.0)
5
+ scarpe-components (~> 0.4.0)
6
6
 
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- scarpe-components (0.3.0)
10
+ scarpe-components (0.4.0)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  ansi (1.5.0)
16
- ast (2.4.2)
17
- base64 (0.1.1)
18
16
  builder (3.2.4)
19
17
  debug (1.8.0)
20
18
  irb (>= 1.5.0)
@@ -23,52 +21,25 @@ GEM
23
21
  irb (1.8.0)
24
22
  rdoc (~> 6.5)
25
23
  reline (>= 0.3.6)
26
- json (2.6.3)
27
- language_server-protocol (3.17.0.3)
28
24
  minitest (5.19.0)
29
25
  minitest-reporters (1.6.1)
30
26
  ansi
31
27
  builder
32
28
  minitest (>= 5.0)
33
29
  ruby-progressbar
34
- nokogiri (1.15.4-x86_64-darwin)
35
- racc (~> 1.4)
36
- parallel (1.23.0)
37
- parser (3.2.2.3)
38
- ast (~> 2.4.1)
39
- racc
40
30
  psych (5.1.0)
41
31
  stringio
42
- racc (1.7.1)
43
- rainbow (3.1.1)
44
32
  rake (13.0.6)
45
33
  rdoc (6.5.0)
46
34
  psych (>= 4.0.0)
47
- regexp_parser (2.8.1)
48
35
  reline (0.3.8)
49
36
  io-console (~> 0.5)
50
- rexml (3.2.6)
51
- rubocop (1.56.2)
52
- base64 (~> 0.1.1)
53
- json (~> 2.3)
54
- language_server-protocol (>= 3.17.0)
55
- parallel (~> 1.10)
56
- parser (>= 3.2.2.3)
57
- rainbow (>= 2.2.2, < 4.0)
58
- regexp_parser (>= 1.8, < 3.0)
59
- rexml (>= 3.2.5, < 4.0)
60
- rubocop-ast (>= 1.28.1, < 2.0)
61
- ruby-progressbar (~> 1.7)
62
- unicode-display_width (>= 2.4.0, < 3.0)
63
- rubocop-ast (1.29.0)
64
- parser (>= 3.2.1.0)
65
- rubocop-shopify (2.14.0)
66
- rubocop (~> 1.51)
67
37
  ruby-progressbar (1.13.0)
68
38
  stringio (3.0.8)
69
- unicode-display_width (2.4.2)
39
+ webrick (1.8.1)
70
40
 
71
41
  PLATFORMS
42
+ arm64-darwin-21
72
43
  x86_64-darwin-22
73
44
 
74
45
  DEPENDENCIES
@@ -76,11 +47,9 @@ DEPENDENCIES
76
47
  lacci!
77
48
  minitest (~> 5.0)
78
49
  minitest-reporters
79
- nokogiri
80
50
  rake (~> 13.0)
81
- rubocop (~> 1.21)
82
- rubocop-shopify
83
51
  scarpe-components!
52
+ webrick
84
53
 
85
54
  BUNDLED WITH
86
55
  2.4.14
data/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Scarpe is several things. We package up the Shoes API with as few implementation details as possible (called Lacci.) We have a Webview-based display library, in both local and over-a-socket (relay) versions. We have a Wasm display library (Scarpe-Wasm) in a separate gem.
4
4
 
5
- And we have various default implementations of different reusable components. Scarpe's hierarchical logger isn't particularly specific to your display library or underlying GUI library, but we'd like it to be usable by multiple display libs. CatsCradle is only useful if you're trying to fix up an impedance mismatch between Ruby and an evented under-layer, but it's not really specific to Webview. Scarpe's default downloader, using Ruby's built-in HTTP libraries, is good in many cases but you might want to replace it (e.g. with Typhoeus for better parallel downloads or Hystrix for robustness to bad network connections) in some cases.
5
+ And we have various default implementations of different reusable components. Calzini is a Shoes-to-HTML renderer shared between Scarpe-Webview and Scarpe-Wasm. Scarpe's hierarchical logger isn't particularly specific to your display library or underlying GUI library and we'd like it to be usable by multiple display libs. Scarpe's default downloader, using Ruby's built-in HTTP libraries, is good in many cases but you might want to replace it (e.g. with Typhoeus for better parallel downloads or Hystrix for robustness to bad network connections) in some cases.
6
6
 
7
- Part of our solution is the Scarpe-Components gem, which lives in the same repository as Scarpe (for now?). These components can live there. Any specific display library can pick and choose what it wants or needs and handle its dependencies as it sees fit.
7
+ Part of our solution is the Scarpe-Components gem, which lives in the same repository as Scarpe and Lacci for now. These components can live there. Any specific display library can pick and choose what it wants or needs and handle its dependencies as it sees fit.
8
8
 
9
9
  ## Dependency Hell
10
10