stones 1.0.7 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd5792c7ce35fae6508b5943f08cb061caaf8456fc9d80a694618d00aa595be3
4
- data.tar.gz: 8feba67b7a2a1c9c5b4ed97c5e7c1a8e50544095e5be5a10d1945d88a6b81dc6
3
+ metadata.gz: 61c6847a8f4b75864fd0d6639d5c6b8c72b13864593dfceb08d5e6586c54cd30
4
+ data.tar.gz: 36767c3730cdd926f3dab475f9ff37c6b0624de9ca66dc42b92050bb6ad01bb0
5
5
  SHA512:
6
- metadata.gz: c80b3293b3cfdd0142acf4ddacec520be31bd99638bd27592ac983fcfa32ab5975e92cc53c4a73b0af7487b3d25455b2cb0559587709bd85fac4254efbc0ec04
7
- data.tar.gz: dea2050aa786d36d505373d1ab03e5529aa6f47d71960ab2029cd93b78051674f5610f10921be14f843a29b124416ff9e0b6151cc4b19831fa3c35c5807bab26
6
+ metadata.gz: 60834f372484caaadd0878a3f80dc73604a541e058553f2b955a2ef3878450a8d682135e1cb224543f36b53b4076647c13b033dd3d5b82fd756f78d208dac05f
7
+ data.tar.gz: 3b199479d153809903908bf227bce55db77a39189ee49b197a03277fdef9bffdc501767eba71ded614fede6515dbab5ecbf382ad7e8257bcd1973eaf20539b5b
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ .bundle/
2
+ coverage/
3
+
4
+ *.gem
5
+ *.log
6
+ *.lock
data/.rubocop.yml ADDED
@@ -0,0 +1,9 @@
1
+ inherit_from:
2
+ - ~/configs/.rubocop.yml
3
+
4
+ AllCops:
5
+ NewCops: enable
6
+ Include:
7
+ - 'lib/**/*.rb'
8
+ Exclude:
9
+ - 'test/**/*'
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-5.2
1
+ rails-6.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.5.1
1
+ ruby-2.7.2
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
+ gemspec
2
3
 
3
- ruby '2.5.1'
4
4
  gem 'rails'
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2012-2018 Dittmar Krall - http://matique.de
1
+ Copyright (c) 2012-2021 Dittmar Krall - www.matique.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -5,9 +5,7 @@ Each time I created a new Rails project these files are required.
5
5
  I got tired of it and collected them in a gem.
6
6
 
7
7
  Some files (e.g. reset.css) can be overwritten by a
8
- corresponding ones from your project.
9
- Some files (e.g. .watchr) may be copied to your project.
10
-
8
+ corresponding one from your project.
11
9
 
12
10
  Files:
13
11
 
@@ -24,10 +22,9 @@ Files:
24
22
  app/views/layouts/_footer.slim
25
23
  app/views/layouts/_header.slim
26
24
  app/views/layouts/_html_head.slim
27
- app/views/layouts/_nav.slim
25
+ app/views/root/about.slim
28
26
  app/views/shared/_error_explanation.html.erb
29
27
  config/initializers/concerns.rb
30
- .watchr
31
28
 
32
29
  Installation
33
30
  ------------
@@ -41,8 +38,8 @@ Recommended
41
38
  -----------
42
39
 
43
40
  - rvm
44
- - ruby 2.5.1
45
- - rails 5.2
41
+ - ruby 2.7.2
42
+ - rails 6.1
46
43
 
47
44
  Dropped/cleaned files (still available in version 0.2.5):
48
45
 
@@ -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), 'http://matique.de/de/gtc'
28
+ = link_to ts(:terms, :button), "#{base}?page=gtc"
25
29
  = separator
26
- = link_to ts(:privacy, :button), 'http://matique.de/de/privacy-policy'
30
+ = link_to ts(:privacy, :button), "#{base}?page=privacy_policy"
27
31
  = separator
28
- = link_to ts(:impressum, :button), 'http://matique.de/de/about'
32
+ = link_to ts(:impressum, :button), "#{base}?page=about"
29
33
  div = info_dev
@@ -1,6 +1,6 @@
1
1
  title = (APP || 'app').capitalize
2
2
  = favicon_link_tag
3
3
  = stylesheet_link_tag @stylesheet || 'application', media: 'all'
4
- = stylesheet_link_tag 'print', media: 'print'
4
+ = stylesheet_link_tag 'print', media: 'print'
5
5
  = javascript_include_tag 'application'
6
6
  = csrf_meta_tags
@@ -0,0 +1,48 @@
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
+ ruby:
14
+ app = "#{APP.capitalize} #{APP_VERSION || VERSION}"
15
+ if Rails.env.production?
16
+ ruby = "Ruby #{RUBY_VERSION}"
17
+ rails = "Rails #{Rails.version}"
18
+ else
19
+ ruby = "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
20
+ rails = "Rails #{Rails.version} (#{Rails.env})"
21
+ end
22
+
23
+ css:
24
+ div#about {
25
+ height: 70%;
26
+ margin: 1em 0;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
30
+ font-size: 1.5em;
31
+ font-weight: bold;
32
+ }
33
+ div#about div#rounded-box {
34
+ border: 1px solid grey;
35
+ border-radius: 0.3em;
36
+ padding: 5px 8px;
37
+ }
38
+
39
+ #about
40
+ #rounded-box
41
+ - if title
42
+ h1 = title
43
+ hr
44
+ div #{app}
45
+ div #{rails}
46
+ div #{ruby}
47
+ div Started at #{STARTED_AT}
48
+ div Time #{Time.now.strftime(DATE_TIME_FORMAT)}
@@ -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.rb CHANGED
@@ -1 +1,3 @@
1
+ # rubocop: disable all
2
+
1
3
  require 'stones/engine.rb'
data/lib/stones/engine.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # rubocop: disable all
2
+
1
3
  module Stones
2
4
  class Engine < Rails::Engine
3
5
  end
@@ -1,7 +1,16 @@
1
+ # frozen_string_literal: true
2
+ # rubocop: disable all
3
+
1
4
  module Stones
2
- VERSION = '1.0.7' # 2018-11-10
3
- # VERSION = '1.0.6' # 2018-10-29
4
- # VERSION = '1.0.5' # 2018-09-09
5
- # VERSION = '1.0.4' # 2018-08-06
6
- # VERSION = '1.0.3'
5
+ VERSION = '1.1.3' # 2021-06-23
6
+ # VERSION = '1.1.2' # 2020-04-27
7
+ # VERSION = '1.1.1' # 2020-03-22
8
+ # VERSION = '1.1.0' # 2020-03-02
9
+ # VERSION = '1.0.10' # 2019-09-27
10
+ # VERSION = '1.0.9' # 2018-11-11
11
+ # VERSION = '1.0.7' # 2018-11-10
12
+ # VERSION = '1.0.6' # 2018-10-29
13
+ # VERSION = '1.0.5' # 2018-09-09
14
+ # VERSION = '1.0.4' # 2018-08-06
15
+ # VERSION = '1.0.3'
7
16
  end
data/stones.gemspec CHANGED
@@ -12,12 +12,15 @@ Gem::Specification.new do |s|
12
12
  s.email = ['dittmar.krall@matique.de']
13
13
  s.homepage = 'http://matique.de'
14
14
  s.license = 'MIT'
15
+ s.platform = Gem::Platform::RUBY
16
+
17
+ s.metadata['source_code_uri'] = 'https://github.com/matique/stones'
15
18
 
16
19
  s.files = `git ls-files`.split("\n")
17
20
  # s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
21
  # s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
22
  s.require_paths = ["lib"]
20
23
 
21
- s.add_development_dependency 'bundler', '~> 0'
22
- s.add_development_dependency 'rake', '~> 0'
24
+ s.add_development_dependency 'bundler'
25
+ s.add_development_dependency 'rake'
23
26
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stones
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.3
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-10 00:00:00.000000000 Z
11
+ date: 2021-06-23 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.
@@ -45,10 +45,11 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".gitignore"
49
+ - ".rubocop.yml"
48
50
  - ".ruby-gemset"
49
51
  - ".ruby-version"
50
52
  - Gemfile
51
- - Gemfile.lock
52
53
  - MIT-LICENSE
53
54
  - README.md
54
55
  - Rakefile
@@ -65,6 +66,7 @@ files:
65
66
  - app/views/layouts/_header.slim
66
67
  - app/views/layouts/_html_head.slim
67
68
  - app/views/layouts/application.html.erb
69
+ - app/views/root/about.slim
68
70
  - app/views/shared/_error_explanation.html.erb
69
71
  - config/initializers/concerns.rb
70
72
  - lib/stones.rb
@@ -74,7 +76,8 @@ files:
74
76
  homepage: http://matique.de
75
77
  licenses:
76
78
  - MIT
77
- metadata: {}
79
+ metadata:
80
+ source_code_uri: https://github.com/matique/stones
78
81
  post_install_message:
79
82
  rdoc_options: []
80
83
  require_paths:
@@ -90,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
93
  - !ruby/object:Gem::Version
91
94
  version: '0'
92
95
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.7.6
96
+ rubygems_version: 3.2.6
95
97
  signing_key:
96
98
  specification_version: 4
97
99
  summary: Stones contains some basic files.
data/Gemfile.lock DELETED
@@ -1,122 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- actioncable (5.2.0)
5
- actionpack (= 5.2.0)
6
- nio4r (~> 2.0)
7
- websocket-driver (>= 0.6.1)
8
- actionmailer (5.2.0)
9
- actionpack (= 5.2.0)
10
- actionview (= 5.2.0)
11
- activejob (= 5.2.0)
12
- mail (~> 2.5, >= 2.5.4)
13
- rails-dom-testing (~> 2.0)
14
- actionpack (5.2.0)
15
- actionview (= 5.2.0)
16
- activesupport (= 5.2.0)
17
- rack (~> 2.0)
18
- rack-test (>= 0.6.3)
19
- rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
- actionview (5.2.0)
22
- activesupport (= 5.2.0)
23
- builder (~> 3.1)
24
- erubi (~> 1.4)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
27
- activejob (5.2.0)
28
- activesupport (= 5.2.0)
29
- globalid (>= 0.3.6)
30
- activemodel (5.2.0)
31
- activesupport (= 5.2.0)
32
- activerecord (5.2.0)
33
- activemodel (= 5.2.0)
34
- activesupport (= 5.2.0)
35
- arel (>= 9.0)
36
- activestorage (5.2.0)
37
- actionpack (= 5.2.0)
38
- activerecord (= 5.2.0)
39
- marcel (~> 0.3.1)
40
- activesupport (5.2.0)
41
- concurrent-ruby (~> 1.0, >= 1.0.2)
42
- i18n (>= 0.7, < 2)
43
- minitest (~> 5.1)
44
- tzinfo (~> 1.1)
45
- arel (9.0.0)
46
- builder (3.2.3)
47
- concurrent-ruby (1.0.5)
48
- crass (1.0.4)
49
- erubi (1.7.1)
50
- globalid (0.4.1)
51
- activesupport (>= 4.2.0)
52
- i18n (1.0.1)
53
- concurrent-ruby (~> 1.0)
54
- loofah (2.2.2)
55
- crass (~> 1.0.2)
56
- nokogiri (>= 1.5.9)
57
- mail (2.7.0)
58
- mini_mime (>= 0.1.1)
59
- marcel (0.3.2)
60
- mimemagic (~> 0.3.2)
61
- method_source (0.9.0)
62
- mimemagic (0.3.2)
63
- mini_mime (1.0.0)
64
- mini_portile2 (2.3.0)
65
- minitest (5.11.3)
66
- nio4r (2.3.1)
67
- nokogiri (1.8.4)
68
- mini_portile2 (~> 2.3.0)
69
- rack (2.0.5)
70
- rack-test (1.1.0)
71
- rack (>= 1.0, < 3)
72
- rails (5.2.0)
73
- actioncable (= 5.2.0)
74
- actionmailer (= 5.2.0)
75
- actionpack (= 5.2.0)
76
- actionview (= 5.2.0)
77
- activejob (= 5.2.0)
78
- activemodel (= 5.2.0)
79
- activerecord (= 5.2.0)
80
- activestorage (= 5.2.0)
81
- activesupport (= 5.2.0)
82
- bundler (>= 1.3.0)
83
- railties (= 5.2.0)
84
- sprockets-rails (>= 2.0.0)
85
- rails-dom-testing (2.0.3)
86
- activesupport (>= 4.2.0)
87
- nokogiri (>= 1.6)
88
- rails-html-sanitizer (1.0.4)
89
- loofah (~> 2.2, >= 2.2.2)
90
- railties (5.2.0)
91
- actionpack (= 5.2.0)
92
- activesupport (= 5.2.0)
93
- method_source
94
- rake (>= 0.8.7)
95
- thor (>= 0.18.1, < 2.0)
96
- rake (12.3.1)
97
- sprockets (3.7.2)
98
- concurrent-ruby (~> 1.0)
99
- rack (> 1, < 3)
100
- sprockets-rails (3.2.1)
101
- actionpack (>= 4.0)
102
- activesupport (>= 4.0)
103
- sprockets (>= 3.0.0)
104
- thor (0.20.0)
105
- thread_safe (0.3.6)
106
- tzinfo (1.2.5)
107
- thread_safe (~> 0.1)
108
- websocket-driver (0.7.0)
109
- websocket-extensions (>= 0.1.0)
110
- websocket-extensions (0.1.3)
111
-
112
- PLATFORMS
113
- ruby
114
-
115
- DEPENDENCIES
116
- rails
117
-
118
- RUBY VERSION
119
- ruby 2.5.1p57
120
-
121
- BUNDLED WITH
122
- 1.16.1