stones 1.1.3 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/MIT-LICENSE +1 -1
- data/README.md +8 -2
- data/Rakefile +3 -3
- data/app/views/layouts/_flash.slim +13 -4
- data/app/views/layouts/_footer.slim +7 -7
- data/app/views/layouts/_html_head.slim +17 -4
- data/lib/stones/version.rb +13 -11
- data/stones.gemspec +14 -17
- metadata +5 -6
- data/.rubocop.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eba2b2f46cbe6e1d2afc38d54143133f9bdab7a89e92d1a0ee545a55e05e075
|
4
|
+
data.tar.gz: 56082d244461431fd26acdf8e503f237df08c8dcb5a258799fd6c942addf090c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e539abb9dcb37807ba4033fb580fa43b41af5eba1d15b77c176b65e478ade69a5b5aedfc2d92379302a41781361badfeaf9a29242c9cf5df93f3d8c2f4b72a8d
|
7
|
+
data.tar.gz: 8ce7c505fd68ea6e16ad5740a7ceb5fc69eb2a04fde13a86b66246697600b488c01d89749a4a08651fecdc78c67680eb546b492eef0201d168845ec4ea303984
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-7.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.1.2
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
Stones
|
2
2
|
======
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/stones.png)](http://badge.fury.io/rb/stones)
|
3
4
|
|
4
5
|
Each time I created a new Rails project these files are required.
|
5
6
|
I got tired of it and collected them in a gem.
|
@@ -38,11 +39,16 @@ Recommended
|
|
38
39
|
-----------
|
39
40
|
|
40
41
|
- rvm
|
41
|
-
- ruby
|
42
|
-
- rails
|
42
|
+
- ruby 3.1.0
|
43
|
+
- rails 7.0.1
|
43
44
|
|
44
45
|
Dropped/cleaned files (still available in version 0.2.5):
|
45
46
|
|
46
47
|
- Rakefile
|
47
48
|
- .watchr
|
48
49
|
- lib/tasks/backup.rake
|
50
|
+
|
51
|
+
Rails
|
52
|
+
-----
|
53
|
+
|
54
|
+
"stones" takes care of a tag-head change introduced by Rails 7.x.
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
begin
|
2
|
-
require
|
3
|
-
require
|
2
|
+
require "bundler"
|
3
|
+
require "bundler/setup"
|
4
4
|
rescue LoadError
|
5
|
-
puts
|
5
|
+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
6
6
|
end
|
7
7
|
|
8
8
|
Bundler::GemHelper.install_tasks
|
@@ -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
|
@@ -1,6 +1,19 @@
|
|
1
|
+
- version = Rails.version.to_f
|
2
|
+
|
3
|
+
- if version < 7.0
|
4
|
+
title = (APP || 'app').capitalize
|
5
|
+
= favicon_link_tag
|
6
|
+
= stylesheet_link_tag @stylesheet || 'application', media: 'all'
|
7
|
+
= stylesheet_link_tag 'print', media: 'print'
|
8
|
+
= javascript_include_tag 'application'
|
9
|
+
= csrf_meta_tags
|
10
|
+
- return
|
11
|
+
|
1
12
|
title = (APP || 'app').capitalize
|
2
|
-
=
|
3
|
-
= stylesheet_link_tag @stylesheet || 'application', media: 'all'
|
4
|
-
= stylesheet_link_tag 'print', media: 'print'
|
5
|
-
= javascript_include_tag 'application'
|
13
|
+
meta name="viewport" content="width=device-width,initial-scale=1"
|
6
14
|
= csrf_meta_tags
|
15
|
+
= csp_meta_tag
|
16
|
+
|
17
|
+
/= stylesheet_link_tag "application", "data-turbo-track": "reload"
|
18
|
+
= stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
|
19
|
+
= javascript_importmap_tags
|
data/lib/stones/version.rb
CHANGED
@@ -2,15 +2,17 @@
|
|
2
2
|
# rubocop: disable all
|
3
3
|
|
4
4
|
module Stones
|
5
|
-
VERSION = '1.1
|
6
|
-
# VERSION = '1.
|
7
|
-
# VERSION = '1.1.
|
8
|
-
# VERSION = '1.1.
|
9
|
-
# VERSION = '1.
|
10
|
-
# VERSION = '1.0
|
11
|
-
# VERSION = '1.0.
|
12
|
-
# VERSION = '1.0.
|
13
|
-
# VERSION = '1.0.
|
14
|
-
# VERSION = '1.0.
|
15
|
-
# VERSION = '1.0.
|
5
|
+
VERSION = '1.2.1' # 2022-09-29
|
6
|
+
# VERSION = '1.2.0' # 2022-02-12
|
7
|
+
# VERSION = '1.1.3' # 2021-06-23
|
8
|
+
# VERSION = '1.1.2' # 2020-04-27
|
9
|
+
# VERSION = '1.1.1' # 2020-03-22
|
10
|
+
# VERSION = '1.1.0' # 2020-03-02
|
11
|
+
# VERSION = '1.0.10'# 2019-09-27
|
12
|
+
# VERSION = '1.0.9' # 2018-11-11
|
13
|
+
# VERSION = '1.0.7' # 2018-11-10
|
14
|
+
# VERSION = '1.0.6' # 2018-10-29
|
15
|
+
# VERSION = '1.0.5' # 2018-09-09
|
16
|
+
# VERSION = '1.0.4' # 2018-08-06
|
17
|
+
# VERSION = '1.0.3'
|
16
18
|
end
|
data/stones.gemspec
CHANGED
@@ -1,26 +1,23 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require "stones/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name
|
7
|
-
s.version
|
8
|
-
s.platform
|
9
|
-
s.summary
|
6
|
+
s.name = "stones"
|
7
|
+
s.version = Stones::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.summary = "Stones contains some basic files."
|
10
10
|
s.description = "A collection of, hopefully, useful files."
|
11
|
-
s.authors
|
12
|
-
s.email
|
13
|
-
s.homepage
|
14
|
-
s.license
|
15
|
-
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["Dittmar Krall"]
|
12
|
+
s.email = ["dittmar.krall@matiq.com"]
|
13
|
+
s.homepage = "http://matiq.com"
|
14
|
+
s.license = "MIT"
|
16
15
|
|
17
|
-
s.metadata[
|
16
|
+
s.metadata["source_code_uri"] = "https://github.com/matique/stones"
|
18
17
|
|
19
|
-
s.files
|
20
|
-
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
-
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.files = `git ls-files`.split("\n")
|
22
19
|
s.require_paths = ["lib"]
|
23
20
|
|
24
|
-
s.add_development_dependency
|
25
|
-
s.add_development_dependency
|
21
|
+
s.add_development_dependency "bundler"
|
22
|
+
s.add_development_dependency "rake"
|
26
23
|
end
|
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.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -40,13 +40,12 @@ dependencies:
|
|
40
40
|
version: '0'
|
41
41
|
description: A collection of, hopefully, useful files.
|
42
42
|
email:
|
43
|
-
- dittmar.krall@
|
43
|
+
- dittmar.krall@matiq.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
|
-
- ".rubocop.yml"
|
50
49
|
- ".ruby-gemset"
|
51
50
|
- ".ruby-version"
|
52
51
|
- Gemfile
|
@@ -73,7 +72,7 @@ files:
|
|
73
72
|
- lib/stones/engine.rb
|
74
73
|
- lib/stones/version.rb
|
75
74
|
- stones.gemspec
|
76
|
-
homepage: http://
|
75
|
+
homepage: http://matiq.com
|
77
76
|
licenses:
|
78
77
|
- MIT
|
79
78
|
metadata:
|
@@ -93,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: '0'
|
95
94
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.3.7
|
97
96
|
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Stones contains some basic files.
|