stones 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/MIT-LICENSE +3 -1
- data/README.md +21 -15
- data/app/views/layouts/_flash.slim +13 -4
- data/app/views/layouts/_footer.slim +7 -7
- data/app/views/layouts/_html_head.slim +1 -1
- data/lib/stones/version.rb +3 -1
- data/stones.gemspec +2 -7
- metadata +6 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0426b77d8831b4dca0c6521606b41567730e7b66adf1c7926af2f34f67db944f
|
4
|
+
data.tar.gz: 7837a92e39b691de3b8cb3e5bdb230cf84bd9ea365bd223229cf1760b2b9d594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f6197525133cbb5961430d171125f8106473084c1a820775c7939da461374901e5eaf3602d26e6ccdec29217df62e4abd2c95ee63c1d98cbcfaadf2da7cabd
|
7
|
+
data.tar.gz: 2a21ca55fda3356fea7b9cdd229d3231a5512786b3f7dbc92a94a295f09dde9727b91c87af346f1057aa202680e6f3897fae0f826413af422df0771beacd0880
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.2.2
|
data/MIT-LICENSE
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com)
|
2
4
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
6
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
Stones
|
2
|
-
|
1
|
+
# Stones
|
2
|
+
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/stones.png)](http://badge.fury.io/rb/stones)
|
4
4
|
|
5
5
|
Each time I created a new Rails project these files are required.
|
@@ -27,20 +27,20 @@ Files:
|
|
27
27
|
app/views/shared/_error_explanation.html.erb
|
28
28
|
config/initializers/concerns.rb
|
29
29
|
|
30
|
-
Installation
|
31
|
-
------------
|
32
|
-
To install add the following to your Gemfile:
|
33
|
-
|
34
|
-
gem 'stones'
|
30
|
+
## Installation
|
35
31
|
|
36
|
-
|
32
|
+
As usual:
|
33
|
+
```ruby
|
34
|
+
# Gemfile
|
35
|
+
gem "stones"
|
36
|
+
```
|
37
|
+
and run "bundle install".
|
37
38
|
|
38
|
-
Recommended
|
39
|
-
-----------
|
39
|
+
## Recommended
|
40
40
|
|
41
41
|
- rvm
|
42
|
-
- ruby 3.1
|
43
|
-
- rails 7.0
|
42
|
+
- ruby 3.1+
|
43
|
+
- rails 7.0+
|
44
44
|
|
45
45
|
Dropped/cleaned files (still available in version 0.2.5):
|
46
46
|
|
@@ -48,7 +48,13 @@ Dropped/cleaned files (still available in version 0.2.5):
|
|
48
48
|
- .watchr
|
49
49
|
- lib/tasks/backup.rake
|
50
50
|
|
51
|
-
Rails
|
52
|
-
|
51
|
+
## Rails
|
52
|
+
|
53
|
+
"stones" takes care of a tag-head change introduced by Rails 7.x.
|
54
|
+
|
55
|
+
## Miscellaneous
|
56
|
+
|
57
|
+
Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com),
|
58
|
+
released under the MIT license:
|
53
59
|
|
54
|
-
|
60
|
+
* https://opensource.org/licenses/MIT
|
@@ -1,5 +1,14 @@
|
|
1
|
+
/ # Show complete flash
|
2
|
+
/ # flash[:notice] are faded out after 5 seconds
|
3
|
+
|
4
|
+
css:
|
5
|
+
.flash_notice {
|
6
|
+
animation: animate_notice 5s linear 2s forwards;
|
7
|
+
}
|
8
|
+
@keyframes animate_notice {
|
9
|
+
from { opacity: 1; }
|
10
|
+
to { opacity: 0; }
|
11
|
+
}
|
12
|
+
|
1
13
|
- (flash || {}).each do |key, value|
|
2
|
-
|
3
|
-
- if key.to_s == 'notice'
|
4
|
-
script(type="text/javascript")
|
5
|
-
| $('.flash_notice').fadeOut(5000, function() { $(this).remove(); });
|
14
|
+
p class="flash_#{key}" = sanitize(value)
|
@@ -15,19 +15,19 @@ ruby:
|
|
15
15
|
info_dev = "#{rails} | #{ruby} | #{STARTED_AT}"
|
16
16
|
end
|
17
17
|
|
18
|
-
# e.g. http://
|
19
|
-
# e.g. https://
|
20
|
-
base = 'http://
|
18
|
+
# e.g. http://matiq.com/de/privacy-policy before v1.1.0
|
19
|
+
# e.g. https://matiq.com/home/page?page=gtc
|
20
|
+
base = 'http://matiq.com/home/page'
|
21
21
|
|
22
22
|
footer
|
23
23
|
div
|
24
|
-
a href='http://
|
24
|
+
a href='http://matiq.com' © #{year} matiq UG (haftungsbeschränkt)
|
25
25
|
= separator
|
26
26
|
= link_to app.html_safe, about_path
|
27
27
|
div
|
28
|
-
= link_to
|
28
|
+
= link_to t("button.terms"), "#{base}?page=gtc"
|
29
29
|
= separator
|
30
|
-
= link_to
|
30
|
+
= link_to t("button.privacy"), "#{base}?page=privacy_policy"
|
31
31
|
= separator
|
32
|
-
= link_to
|
32
|
+
= link_to t("button.impressum"), "#{base}?page=about"
|
33
33
|
div = info_dev
|
@@ -14,5 +14,5 @@ meta name="viewport" content="width=device-width,initial-scale=1"
|
|
14
14
|
= csrf_meta_tags
|
15
15
|
= csp_meta_tag
|
16
16
|
|
17
|
-
= stylesheet_link_tag
|
17
|
+
= stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
|
18
18
|
= javascript_importmap_tags
|
data/lib/stones/version.rb
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
# rubocop: disable all
|
3
3
|
|
4
4
|
module Stones
|
5
|
-
VERSION = '1.2.
|
5
|
+
VERSION = '1.2.2' # 2023-04-15
|
6
|
+
# VERSION = '1.2.1' # 2022-09-29
|
7
|
+
# VERSION = '1.2.0' # 2022-02-12
|
6
8
|
# VERSION = '1.1.3' # 2021-06-23
|
7
9
|
# VERSION = '1.1.2' # 2020-04-27
|
8
10
|
# VERSION = '1.1.1' # 2020-03-22
|
data/stones.gemspec
CHANGED
@@ -9,17 +9,12 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.summary = "Stones contains some basic files."
|
10
10
|
s.description = "A collection of, hopefully, useful files."
|
11
11
|
s.authors = ["Dittmar Krall"]
|
12
|
-
s.email = ["dittmar.krall@
|
13
|
-
s.homepage = "http://
|
12
|
+
s.email = ["dittmar.krall@matiq.com"]
|
13
|
+
s.homepage = "http://matiq.com"
|
14
14
|
s.license = "MIT"
|
15
15
|
|
16
16
|
s.metadata["source_code_uri"] = "https://github.com/matique/stones"
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
|
-
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
-
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
19
|
s.require_paths = ["lib"]
|
22
|
-
|
23
|
-
s.add_development_dependency "bundler"
|
24
|
-
s.add_development_dependency "rake"
|
25
20
|
end
|
metadata
CHANGED
@@ -1,46 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
11
|
+
date: 2023-04-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
41
13
|
description: A collection of, hopefully, useful files.
|
42
14
|
email:
|
43
|
-
- dittmar.krall@
|
15
|
+
- dittmar.krall@matiq.com
|
44
16
|
executables: []
|
45
17
|
extensions: []
|
46
18
|
extra_rdoc_files: []
|
@@ -72,7 +44,7 @@ files:
|
|
72
44
|
- lib/stones/engine.rb
|
73
45
|
- lib/stones/version.rb
|
74
46
|
- stones.gemspec
|
75
|
-
homepage: http://
|
47
|
+
homepage: http://matiq.com
|
76
48
|
licenses:
|
77
49
|
- MIT
|
78
50
|
metadata:
|
@@ -92,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
64
|
- !ruby/object:Gem::Version
|
93
65
|
version: '0'
|
94
66
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
67
|
+
rubygems_version: 3.4.10
|
96
68
|
signing_key:
|
97
69
|
specification_version: 4
|
98
70
|
summary: Stones contains some basic files.
|