stones 1.4.3 → 1.4.4

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: e634a3c080a59df498f2dc30c55184102209d04a3160c8a4827fcae2bea1d09a
4
- data.tar.gz: 55d131c6ab2cf07f719e8cd28b4b35b22453b61944deeb7ed7e7958b32ccfbee
3
+ metadata.gz: 07b1dc45b575d2759b6eefa1ba1a8f9d2f354fcf22982ae3e3de1321738a1e65
4
+ data.tar.gz: 77b8204871b84e8f8be6b0371f7cd348bf6041d87e7eeadb2b8623af7e1e007a
5
5
  SHA512:
6
- metadata.gz: b1a3b9d75e85f211c0a4c25e3c27d7b198d8925d8fdecc2a79e69b3eb0cc3548b378ae2829409b688202004cf3aedd70b9eb15f13341e3279663dc53af8fc8bb
7
- data.tar.gz: 70ce1beb31903c10b71dcc6ded3220997a44d68fda8cfca79527ab0baff20b181a75f9c3149635086d1f4dd2e383057338c134394be736fd5dd602828e38347e
6
+ metadata.gz: 9f43bea1c9e9ac54778c405789d166d8ca0502b5fdca477f355d95c4b07dbf928854034a43d464dbdd2e653ac654b07e9ad076d8ecff727f962ca3f39b56673a
7
+ data.tar.gz: 804d9fa4bc6ecc026f1b09c7378495c35465d7b9d54f65cc64dbe0b36d10c1ce07ff6218e9f29029c825a3871dcff6ab7166dc38833fa020e85d1847cc840826
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2025 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2012-2026 Dittmar Krall (www.matiq.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -80,5 +80,5 @@ render FlashComponent.new(flash)
80
80
 
81
81
  ## Miscellaneous
82
82
 
83
- Copyright (c) 2012-2025 Dittmar Krall (www.matiq.com),
83
+ Copyright (c) 2012-2026 Dittmar Krall (www.matiq.com),
84
84
  released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  class AboutComponent < ViewComponent::Base
4
2
  def initialize(text: "", title: nil, system_text: nil)
5
3
  @title = title
@@ -0,0 +1,50 @@
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,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  class FlashComponent < ViewComponent::Base
4
2
  def initialize(flash = {})
5
3
  @flash = flash
@@ -0,0 +1,21 @@
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
@@ -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
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stones
4
+ VERSION = "1.4.3" # 2025-12-21
5
+ # VERSION = "1.4.2" # 2025-12-13
6
+ # VERSION = "1.4.0" # 2025-11-03
7
+ # VERSION = "1.3.3" # 2025-10-30
8
+ # VERSION = "1.3.2" # 2025-06-20
9
+ # VERSION = "1.3.1" # 2024-10-21
10
+ # VERSION = "1.3.0" # 2024-04-20
11
+
12
+ # VERSION = "1.0.4" # 2018-08-06
13
+ # VERSION = "1.0.3"
14
+ end
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.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
@@ -70,7 +70,9 @@ 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
73
74
  - app/components/flash_component.rb
75
+ - app/components/flash_component.rb.bak
74
76
  - app/views/layouts/_body.slim
75
77
  - app/views/layouts/_flash.slim
76
78
  - app/views/layouts/_footer.slim
@@ -83,6 +85,7 @@ files:
83
85
  - lib/stones.rb
84
86
  - lib/stones/engine.rb
85
87
  - lib/stones/version.rb
88
+ - lib/stones/version.rb.bak
86
89
  homepage: https://github.com/matique/stones
87
90
  licenses:
88
91
  - MIT
@@ -92,7 +95,7 @@ require_paths:
92
95
  - lib
93
96
  required_ruby_version: !ruby/object:Gem::Requirement
94
97
  requirements:
95
- - - ">"
98
+ - - ">="
96
99
  - !ruby/object:Gem::Version
97
100
  version: '3'
98
101
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -101,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
104
  - !ruby/object:Gem::Version
102
105
  version: '0'
103
106
  requirements: []
104
- rubygems_version: 3.6.9
107
+ rubygems_version: 4.0.3
105
108
  specification_version: 4
106
109
  summary: Stones contains some basic files.
107
110
  test_files: []