stones 1.2.3 → 1.3.0

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: c390f8e48a85981a5466aa8c2caa33bb741117d4fc8eaea7d29621a8df53af80
4
- data.tar.gz: 38c87015433ad1c4cdaeedea6c08f429db4b20df5db6308e5eaa916d31050de8
3
+ metadata.gz: 1dbcef569e33c5fe01085f0a4ae54b6fea11608e1f2080c1f1446b296f0b1b45
4
+ data.tar.gz: a3a6d9d7b7d0543597145c607862545dfe9fdac8e10180f701fec3bc0428a681
5
5
  SHA512:
6
- metadata.gz: cc25403fef011d84294947194132a71a3edd0f4d5b10877d00c1fd9c092e9fc7639da8f93c81fffc826244e3ddcc2d3cdd2085e18423ce2c65d9fac85bbba702
7
- data.tar.gz: 7ac254931e8872060826781c972a33feb04868d8fb3853bdaa28f2863c8ad8fc8b99d493a9157aaa1a32efd399f564b59d69e85a8699b7b11ea7c1de7adcfafc
6
+ metadata.gz: 17d4769db0be53c7b1252d6cace5ff47a9d7e0d05b093568112120e922ee6f375358630591b7a4df402dea143af54dfc59bb8b6d0cf6955aacadfcc96d323938
7
+ data.tar.gz: 3f9bc095946d13030a8bf7e2d7b8b97112e9dd66b9d7dc1925aa1172b48ffac106aee3ab79ec7efbc899ab614875e5b672701f1fa517424f3bd62557e9152f24
data/MIT-LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com)
3
+ Copyright (c) 2012-2024 Dittmar Krall (www.matiq.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Stones
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/stones.png)](http://badge.fury.io/rb/stones)
4
+ [![GEM Downloads](https://img.shields.io/gem/dt/stones?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/stones)
4
5
 
5
6
  Each time I created a new Rails project these files are required.
6
7
  I got tired of it and collected them in a gem.
@@ -13,10 +14,11 @@ Files:
13
14
  app/assets/images/facebook_32.png
14
15
  app/assets/images/github_32.png
15
16
  app/assets/images/google_32.png
16
- app/assets/images/matique.ico
17
+ app/assets/images/matiq.ico
17
18
  app/assets/images/twitter_32.png
18
19
  app/assets/stylesheets/print.css
19
20
  app/assets/stylesheets/reset.css
21
+ app/components/about_component.rb
20
22
  app/views/layouts/application.html.erb
21
23
  app/views/layouts/_body.slim
22
24
  app/views/layouts/_flash.slim
@@ -54,7 +56,5 @@ Dropped/cleaned files (still available in version 0.2.5):
54
56
 
55
57
  ## Miscellaneous
56
58
 
57
- Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com),
58
- released under the MIT license:
59
-
60
- * https://opensource.org/licenses/MIT
59
+ Copyright (c) 2012-2024 Dittmar Krall (www.matiq.com),
60
+ released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AboutComponent < ViewComponent::Base
4
+ def initialize(text: "", title: nil, system_text: nil)
5
+ @title = title
6
+ arr = text.split("\n")
7
+
8
+ arr += system_text ? system_text.split("\n") : system_default
9
+ arr << "Time #{Time.now.localtime}"
10
+ @lines = arr.flatten
11
+ end
12
+
13
+ slim_template <<~HEREDOC
14
+ css:
15
+ div.about {
16
+ height: 70%;
17
+ margin: 1em 0;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ font-size: 1.2em;
22
+ font-weight: bold;
23
+ }
24
+ div.about div.rounded-box {
25
+ border: 1px solid grey;
26
+ border-radius: 0.3em;
27
+ padding: 5px 8px;
28
+ }
29
+
30
+ .about
31
+ .rounded-box
32
+ - if @title
33
+ h1 = @title
34
+ hr
35
+ - @lines.each do |line|
36
+ p = line
37
+ HEREDOC
38
+
39
+ private
40
+
41
+ def system_default
42
+ arr = []
43
+ str = "Ruby #{RUBY_VERSION}"
44
+ str += "-p#{RUBY_PATCHLEVEL}" unless Rails.env.production?
45
+ arr << str
46
+ str = "Rails #{Rails.version}"
47
+ str += " (#{Rails.env})" unless Rails.env.production?
48
+ arr << str
49
+ end
50
+ end
@@ -1,6 +1,6 @@
1
1
  ruby:
2
2
  version = Rails.version.to_f
3
- title = (APP || 'app').capitalize
3
+ # title = (APP || 'app').capitalize
4
4
 
5
5
  - if version < 7.0
6
6
  = favicon_link_tag
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
- # rubocop: disable all
3
2
 
4
3
  module Stones
5
- VERSION = '1.2.3' # 2023-07-19
4
+ VERSION = '1.3.0' # 2024-04-20
5
+ # VERSION = '1.2.4' # 2023-12-13
6
+ # VERSION = '1.2.3' # 2023-07-19
6
7
  # VERSION = '1.2.2' # 2023-04-15
7
8
  # VERSION = '1.2.1' # 2022-09-29
8
9
  # VERSION = '1.2.0' # 2022-02-12
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stones
4
+ VERSION = '1.2.4' # 2023-12-13
5
+ # VERSION = '1.2.3' # 2023-07-19
6
+ # VERSION = '1.2.2' # 2023-04-15
7
+ # VERSION = '1.2.1' # 2022-09-29
8
+ # VERSION = '1.2.0' # 2022-02-12
9
+ # VERSION = '1.1.3' # 2021-06-23
10
+ # VERSION = '1.1.2' # 2020-04-27
11
+ # VERSION = '1.1.1' # 2020-03-22
12
+ # VERSION = '1.1.0' # 2020-03-02
13
+ # VERSION = '1.0.10'# 2019-09-27
14
+ # VERSION = '1.0.9' # 2018-11-11
15
+ # VERSION = '1.0.7' # 2018-11-10
16
+ # VERSION = '1.0.6' # 2018-10-29
17
+ # VERSION = '1.0.5' # 2018-09-09
18
+ # VERSION = '1.0.4' # 2018-08-06
19
+ # VERSION = '1.0.3'
20
+ end
metadata CHANGED
@@ -1,36 +1,76 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stones
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.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: 2023-07-19 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: combustion
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: minitest
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'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-spec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
13
55
  description: A collection of, hopefully, useful files.
14
56
  email:
15
57
  - dittmar.krall@matiq.com
16
58
  executables: []
17
59
  extensions: []
18
- extra_rdoc_files: []
60
+ extra_rdoc_files:
61
+ - README.md
62
+ - MIT-LICENSE
19
63
  files:
20
- - ".gitignore"
21
- - ".ruby-gemset"
22
- - ".ruby-version"
23
- - Gemfile
24
64
  - MIT-LICENSE
25
65
  - README.md
26
- - Rakefile
27
66
  - app/assets/images/facebook_32.png
28
67
  - app/assets/images/github_32.png
29
68
  - app/assets/images/google_32.png
30
- - app/assets/images/matique.ico
69
+ - app/assets/images/matiq.ico
31
70
  - app/assets/images/twitter_32.png
32
71
  - app/assets/stylesheets/print.css
33
72
  - app/assets/stylesheets/reset.css
73
+ - app/components/about_component.rb
34
74
  - app/views/layouts/_body.slim
35
75
  - app/views/layouts/_flash.slim
36
76
  - app/views/layouts/_footer.slim
@@ -43,12 +83,11 @@ files:
43
83
  - lib/stones.rb
44
84
  - lib/stones/engine.rb
45
85
  - lib/stones/version.rb
46
- - stones.gemspec
47
- homepage: http://matiq.com
86
+ - lib/stones/version.rb.bak
87
+ homepage: https://github.com/matique/stones
48
88
  licenses:
49
89
  - MIT
50
- metadata:
51
- source_code_uri: https://github.com/matique/stones
90
+ metadata: {}
52
91
  post_install_message:
53
92
  rdoc_options: []
54
93
  require_paths:
@@ -64,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
103
  - !ruby/object:Gem::Version
65
104
  version: '0'
66
105
  requirements: []
67
- rubygems_version: 3.4.17
106
+ rubygems_version: 3.5.9
68
107
  signing_key:
69
108
  specification_version: 4
70
109
  summary: Stones contains some basic files.
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- .bundle/
2
- coverage/
3
- .watchr
4
-
5
- *.gem
6
- *.log
7
- *.lock
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- rails-7.0
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-3.2.2
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
- gemspec
3
-
4
- gem "rails"
data/Rakefile DELETED
@@ -1,13 +0,0 @@
1
- begin
2
- require "bundler"
3
- require "bundler/setup"
4
- rescue LoadError
5
- puts "You must `gem install bundler` and `bundle install` to run rake tasks"
6
- end
7
-
8
- Bundler::GemHelper.install_tasks
9
-
10
- desc "Clean automatically generated files"
11
- task :clean do
12
- FileUtils.rm_rf "pkg"
13
- end
data/stones.gemspec DELETED
@@ -1,20 +0,0 @@
1
- lib = File.expand_path("../lib", __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "stones/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "stones"
7
- s.version = Stones::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.summary = "Stones contains some basic files."
10
- s.description = "A collection of, hopefully, useful files."
11
- s.authors = ["Dittmar Krall"]
12
- s.email = ["dittmar.krall@matiq.com"]
13
- s.homepage = "http://matiq.com"
14
- s.license = "MIT"
15
-
16
- s.metadata["source_code_uri"] = "https://github.com/matique/stones"
17
-
18
- s.files = `git ls-files`.split("\n")
19
- s.require_paths = ["lib"]
20
- end
File without changes