stones 1.0.10 → 1.2.0
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/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +2 -2
- data/MIT-LICENSE +1 -1
- data/README.md +10 -7
- data/Rakefile +3 -3
- data/app/views/layouts/_footer.slim +7 -3
- data/app/views/layouts/_html_head.slim +16 -4
- data/app/views/root/about.slim +2 -3
- data/config/initializers/concerns.rb +0 -7
- data/lib/stones/engine.rb +2 -0
- data/lib/stones/version.rb +15 -7
- data/lib/stones.rb +2 -0
- data/stones.gemspec +17 -15
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06bca36b491605d0f1517a4945586aa228d9d50d9eab809a4c38b4fc4936c27
|
4
|
+
data.tar.gz: ffd59b0db7b8c95b091e62ad9a9c06e74d63365d72d5c2326283861b9b6d6527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb31fd337f037f4753d91cc27a9065ec5b4fe98aa643f3fcedda73b7b14848574abad7311156ae97647335c1b1377f538e8f28a127310d3f31b5d029f28a332
|
7
|
+
data.tar.gz: dc4c937d3e4f96bebbbf0721851385266adadbef0b1ad3bb2e9e94e07eb72458d6d53c8d868731b15b9d22b79349320d0fdbc768392e96db26722cae9778fec0
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-7.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.1.0
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
Stones
|
2
2
|
======
|
3
|
+
[](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.
|
6
7
|
|
7
8
|
Some files (e.g. reset.css) can be overwritten by a
|
8
|
-
corresponding
|
9
|
-
Some files (e.g. .watchr) may be copied to your project.
|
10
|
-
|
9
|
+
corresponding one from your project.
|
11
10
|
|
12
11
|
Files:
|
13
12
|
|
@@ -24,10 +23,9 @@ Files:
|
|
24
23
|
app/views/layouts/_footer.slim
|
25
24
|
app/views/layouts/_header.slim
|
26
25
|
app/views/layouts/_html_head.slim
|
27
|
-
app/views/
|
26
|
+
app/views/root/about.slim
|
28
27
|
app/views/shared/_error_explanation.html.erb
|
29
28
|
config/initializers/concerns.rb
|
30
|
-
.watchr
|
31
29
|
|
32
30
|
Installation
|
33
31
|
------------
|
@@ -41,11 +39,16 @@ Recommended
|
|
41
39
|
-----------
|
42
40
|
|
43
41
|
- rvm
|
44
|
-
- ruby
|
45
|
-
- rails
|
42
|
+
- ruby 3.1.0
|
43
|
+
- rails 7.0.1
|
46
44
|
|
47
45
|
Dropped/cleaned files (still available in version 0.2.5):
|
48
46
|
|
49
47
|
- Rakefile
|
50
48
|
- .watchr
|
51
49
|
- lib/tasks/backup.rake
|
50
|
+
|
51
|
+
Rails
|
52
|
+
-----
|
53
|
+
|
54
|
+
"stones" takes care of a "<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
|
@@ -15,15 +15,19 @@ ruby:
|
|
15
15
|
info_dev = "#{rails} | #{ruby} | #{STARTED_AT}"
|
16
16
|
end
|
17
17
|
|
18
|
+
# e.g. http://matique.de/de/privacy-policy before v1.1.0
|
19
|
+
# e.g. https://matique.com/home/page?page=gtc
|
20
|
+
base = 'http://matique.com/home/page'
|
21
|
+
|
18
22
|
footer
|
19
23
|
div
|
20
24
|
a href='http://matique.de' © #{year} matique UG
|
21
25
|
= separator
|
22
26
|
= link_to app.html_safe, about_path
|
23
27
|
div
|
24
|
-
= link_to ts(:terms, :button),
|
28
|
+
= link_to ts(:terms, :button), "#{base}?page=gtc"
|
25
29
|
= separator
|
26
|
-
= link_to ts(:privacy, :button),
|
30
|
+
= link_to ts(:privacy, :button), "#{base}?page=privacy_policy"
|
27
31
|
= separator
|
28
|
-
= link_to ts(:impressum, :button),
|
32
|
+
= link_to ts(:impressum, :button), "#{base}?page=about"
|
29
33
|
div = info_dev
|
@@ -1,6 +1,18 @@
|
|
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
|
+
= javascript_importmap_tags
|
data/app/views/root/about.slim
CHANGED
@@ -10,7 +10,6 @@
|
|
10
10
|
/ render 'about', locals: { title: 'An Application' }
|
11
11
|
/ end
|
12
12
|
|
13
|
-
|
14
13
|
ruby:
|
15
14
|
app = "#{APP.capitalize} #{APP_VERSION || VERSION}"
|
16
15
|
if Rails.env.production?
|
@@ -37,8 +36,8 @@ css:
|
|
37
36
|
padding: 5px 8px;
|
38
37
|
}
|
39
38
|
|
40
|
-
|
41
|
-
|
39
|
+
#about
|
40
|
+
#rounded-box
|
42
41
|
- if title
|
43
42
|
h1 = title
|
44
43
|
hr
|
@@ -1,22 +1,15 @@
|
|
1
1
|
class << ActiveRecord::Base
|
2
|
-
|
3
2
|
def concerned_with(*concerns)
|
4
3
|
concerns.each do |concern|
|
5
4
|
require_dependency "#{name.underscore}/#{concern}"
|
6
5
|
end
|
7
6
|
end
|
8
|
-
|
9
7
|
end
|
10
8
|
|
11
|
-
|
12
9
|
class << ActionController::Base
|
13
|
-
|
14
10
|
def concerned_with(*concerns)
|
15
11
|
concerns.each do |concern|
|
16
12
|
require_dependency "#{name.underscore}/#{concern}"
|
17
13
|
end
|
18
14
|
end
|
19
|
-
|
20
15
|
end
|
21
|
-
|
22
|
-
|
data/lib/stones/engine.rb
CHANGED
data/lib/stones/version.rb
CHANGED
@@ -1,9 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# rubocop: disable all
|
3
|
+
|
1
4
|
module Stones
|
2
|
-
VERSION = '1.0
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
5
|
+
VERSION = '1.2.0' # 2022-02-12
|
6
|
+
# VERSION = '1.1.3' # 2021-06-23
|
7
|
+
# VERSION = '1.1.2' # 2020-04-27
|
8
|
+
# VERSION = '1.1.1' # 2020-03-22
|
9
|
+
# VERSION = '1.1.0' # 2020-03-02
|
10
|
+
# VERSION = '1.0.10'# 2019-09-27
|
11
|
+
# VERSION = '1.0.9' # 2018-11-11
|
12
|
+
# VERSION = '1.0.7' # 2018-11-10
|
13
|
+
# VERSION = '1.0.6' # 2018-10-29
|
14
|
+
# VERSION = '1.0.5' # 2018-09-09
|
15
|
+
# VERSION = '1.0.4' # 2018-08-06
|
16
|
+
# VERSION = '1.0.3'
|
9
17
|
end
|
data/lib/stones.rb
CHANGED
data/stones.gemspec
CHANGED
@@ -1,23 +1,25 @@
|
|
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
|
11
|
+
s.authors = ["Dittmar Krall"]
|
12
|
+
s.email = ["dittmar.krall@matique.com"]
|
13
|
+
s.homepage = "http://matique.com"
|
14
|
+
s.license = "MIT"
|
15
15
|
|
16
|
-
s.
|
17
|
-
|
18
|
-
|
16
|
+
s.metadata["source_code_uri"] = "https://github.com/matique/stones"
|
17
|
+
|
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) }
|
19
21
|
s.require_paths = ["lib"]
|
20
22
|
|
21
|
-
s.add_development_dependency
|
22
|
-
s.add_development_dependency
|
23
|
+
s.add_development_dependency "bundler"
|
24
|
+
s.add_development_dependency "rake"
|
23
25
|
end
|
metadata
CHANGED
@@ -1,46 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
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-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: A collection of, hopefully, useful files.
|
42
42
|
email:
|
43
|
-
- dittmar.krall@matique.
|
43
|
+
- dittmar.krall@matique.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
@@ -72,10 +72,11 @@ files:
|
|
72
72
|
- lib/stones/engine.rb
|
73
73
|
- lib/stones/version.rb
|
74
74
|
- stones.gemspec
|
75
|
-
homepage: http://matique.
|
75
|
+
homepage: http://matique.com
|
76
76
|
licenses:
|
77
77
|
- MIT
|
78
|
-
metadata:
|
78
|
+
metadata:
|
79
|
+
source_code_uri: https://github.com/matique/stones
|
79
80
|
post_install_message:
|
80
81
|
rdoc_options: []
|
81
82
|
require_paths:
|
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.3.3
|
95
96
|
signing_key:
|
96
97
|
specification_version: 4
|
97
98
|
summary: Stones contains some basic files.
|