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 +4 -4
- data/lib/stones/version.rb +2 -1
- data/lib/stones/version.rb.bak +2 -1
- metadata +2 -4
- data/app/components/about_component.rb.bak +0 -50
- data/app/components/flash_component.rb.bak +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3a2a2c4a6c26ff238a39d21bce1ba58f6cd601786c9f0a0938ffac3c2c6e45d
|
|
4
|
+
data.tar.gz: 456eae333114d2213c7138a1d8de01ac86e98cca1503c64fc1b08ab4959b34a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efee278132578958b36fc210bbf0fc342161fc2ad316d910229cd093a1cd7e42d282a63628555eeee7361e78ccdeaf4559f9d7cf54b9fa3fbae53205d8ecf0e4
|
|
7
|
+
data.tar.gz: d8d146007a97277d84312cffd8c73d78ebc292ac8451dfcc4aef86757c4aae4dfb4835a2aa931daa2023b2a6281c06f9c905dc1f8d3f9e2f7f8c842b1ac2de2b
|
data/lib/stones/version.rb
CHANGED
data/lib/stones/version.rb.bak
CHANGED
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
|
+
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.
|
|
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
|