stones 1.4.4 → 1.4.5

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: 07b1dc45b575d2759b6eefa1ba1a8f9d2f354fcf22982ae3e3de1321738a1e65
4
- data.tar.gz: 77b8204871b84e8f8be6b0371f7cd348bf6041d87e7eeadb2b8623af7e1e007a
3
+ metadata.gz: a3a2a2c4a6c26ff238a39d21bce1ba58f6cd601786c9f0a0938ffac3c2c6e45d
4
+ data.tar.gz: 456eae333114d2213c7138a1d8de01ac86e98cca1503c64fc1b08ab4959b34a3
5
5
  SHA512:
6
- metadata.gz: 9f43bea1c9e9ac54778c405789d166d8ca0502b5fdca477f355d95c4b07dbf928854034a43d464dbdd2e653ac654b07e9ad076d8ecff727f962ca3f39b56673a
7
- data.tar.gz: 804d9fa4bc6ecc026f1b09c7378495c35465d7b9d54f65cc64dbe0b36d10c1ce07ff6218e9f29029c825a3871dcff6ab7166dc38833fa020e85d1847cc840826
6
+ metadata.gz: efee278132578958b36fc210bbf0fc342161fc2ad316d910229cd093a1cd7e42d282a63628555eeee7361e78ccdeaf4559f9d7cf54b9fa3fbae53205d8ecf0e4
7
+ data.tar.gz: d8d146007a97277d84312cffd8c73d78ebc292ac8451dfcc4aef86757c4aae4dfb4835a2aa931daa2023b2a6281c06f9c905dc1f8d3f9e2f7f8c842b1ac2de2b
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stones
4
- VERSION = "1.4.4" # 2026-01-04
4
+ VERSION = "1.4.5" # 2026-03-31
5
+ # VERSION = "1.4.4" # 2026-01-04
5
6
  # VERSION = "1.4.3" # 2025-12-21
6
7
  # VERSION = "1.4.2" # 2025-12-13
7
8
  # VERSION = "1.4.0" # 2025-11-03
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stones
4
- VERSION = "1.4.3" # 2025-12-21
4
+ VERSION = "1.4.4" # 2026-01-04
5
+ # VERSION = "1.4.3" # 2025-12-21
5
6
  # VERSION = "1.4.2" # 2025-12-13
6
7
  # VERSION = "1.4.0" # 2025-11-03
7
8
  # VERSION = "1.3.3" # 2025-10-30
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stones
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
@@ -70,9 +70,7 @@ files:
70
70
  - app/assets/stylesheets/print.css
71
71
  - app/assets/stylesheets/reset.css
72
72
  - app/components/about_component.rb
73
- - app/components/about_component.rb.bak
74
73
  - app/components/flash_component.rb
75
- - app/components/flash_component.rb.bak
76
74
  - app/views/layouts/_body.slim
77
75
  - app/views/layouts/_flash.slim
78
76
  - app/views/layouts/_footer.slim
@@ -104,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
102
  - !ruby/object:Gem::Version
105
103
  version: '0'
106
104
  requirements: []
107
- rubygems_version: 4.0.3
105
+ rubygems_version: 4.0.6
108
106
  specification_version: 4
109
107
  summary: Stones contains some basic files.
110
108
  test_files: []
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class AboutComponent < ViewComponent::Base
4
- def initialize(text: "", title: nil, system_text: nil)
5
- @title = title
6
- arr = text.split("\n")
7
-
8
- arr += system_text ? system_text.split("\n") : system_default
9
- arr << "Time #{Time.now.localtime}"
10
- @lines = arr.flatten
11
- end
12
-
13
- slim_template <<~HEREDOC
14
- css:
15
- div.about {
16
- height: 70%;
17
- margin: 1em 0;
18
- display: flex;
19
- justify-content: center;
20
- align-items: center;
21
- font-size: 1.2em;
22
- font-weight: bold;
23
- }
24
- div.about div.rounded-box {
25
- border: 1px solid grey;
26
- border-radius: 0.3em;
27
- padding: 5px 8px;
28
- }
29
-
30
- .about
31
- .rounded-box
32
- - if @title
33
- h1 = @title
34
- hr
35
- - @lines.each do |line|
36
- p = line
37
- HEREDOC
38
-
39
- private
40
-
41
- def system_default
42
- arr = []
43
- str = "Ruby #{RUBY_VERSION}"
44
- str += "-p#{RUBY_PATCHLEVEL}" unless Rails.env.production?
45
- arr << str
46
- str = "Rails #{Rails.version}"
47
- str += " (#{Rails.env})" unless Rails.env.production?
48
- arr << str
49
- end
50
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class FlashComponent < ViewComponent::Base
4
- def initialize(flash = {})
5
- @flash = flash
6
- end
7
-
8
- slim_template <<~HEREDOC
9
- css:
10
- .flash_notice {
11
- animation: animate_notice 5s linear 2s forwards;
12
- }
13
- @keyframes animate_notice {
14
- from { opacity: 1; }
15
- to { opacity: 0; }
16
- }
17
-
18
- - @flash.each do |key, value|
19
- p class="flash_#\{key}" = sanitize(value)
20
- HEREDOC
21
- end