stones 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/root/about.slim +49 -0
- data/lib/stones/version.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a130b8dd68791631c8ef273fd667462162f0172f5730b57ff9ba163ef97a1c58
|
4
|
+
data.tar.gz: 8ea219a385cf8283a327b7edc48f6afb904bc24421e53cee14c303150d79c6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e955524ade199938bd6b7097c5f44b6aafd9325db8235f7cca70af60fd128766aecc6b257b672fb65676818c7d6a882629fb4e59454bb5c286ad1614fff340f0
|
7
|
+
data.tar.gz: 0f201702aefebde121f84a99581aba058ded760081f6ea3a12436d3b94f4640cbe531c56ac7c48d6c79ad741e1183cb4039b65575e61c9eac88368f97f83bdfb
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/ A simple about rounded box
|
2
|
+
|
3
|
+
/ Requires locals: { title: 'A Title' }
|
4
|
+
/ and several predefined constants.
|
5
|
+
|
6
|
+
/ Usage:
|
7
|
+
/ app/controllers/root.rb:
|
8
|
+
/
|
9
|
+
/ def about
|
10
|
+
/ render 'about', locals: { title: 'An Application' }
|
11
|
+
/ end
|
12
|
+
|
13
|
+
|
14
|
+
ruby:
|
15
|
+
app = "#{APP.capitalize} #{APP_VERSION || VERSION}"
|
16
|
+
if Rails.env.production?
|
17
|
+
ruby = "Ruby #{RUBY_VERSION}"
|
18
|
+
rails = "Rails #{Rails.version}"
|
19
|
+
else
|
20
|
+
ruby = "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
21
|
+
rails = "Rails #{Rails.version} (#{Rails.env})"
|
22
|
+
end
|
23
|
+
|
24
|
+
css:
|
25
|
+
div#about {
|
26
|
+
height: 70%;
|
27
|
+
margin: 1em 0;
|
28
|
+
display: flex;
|
29
|
+
justify-content: center;
|
30
|
+
align-items: center;
|
31
|
+
font-size: 1.5em;
|
32
|
+
font-weight: bold;
|
33
|
+
}
|
34
|
+
div#about div#rounded-box {
|
35
|
+
border: 1px solid grey;
|
36
|
+
border-radius: 0.3em;
|
37
|
+
padding: 5px 8px;
|
38
|
+
}
|
39
|
+
|
40
|
+
div#about
|
41
|
+
div#rounded-box
|
42
|
+
- if title
|
43
|
+
h1 = title
|
44
|
+
hr
|
45
|
+
div #{app}
|
46
|
+
div #{rails}
|
47
|
+
div #{ruby}
|
48
|
+
div Started at #{STARTED_AT}
|
49
|
+
div Time #{Time.now.strftime(DATE_TIME_FORMAT)}
|
data/lib/stones/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- app/views/layouts/_header.slim
|
66
66
|
- app/views/layouts/_html_head.slim
|
67
67
|
- app/views/layouts/application.html.erb
|
68
|
+
- app/views/root/about.slim
|
68
69
|
- app/views/shared/_error_explanation.html.erb
|
69
70
|
- config/initializers/concerns.rb
|
70
71
|
- lib/stones.rb
|