roda-tags 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +24 -0
- data/.github/workflows/ruby.yml +45 -0
- data/.gitignore +1 -1
- data/.rubocop.yml +33 -0
- data/.rubocop_todo.yml +7 -0
- data/CODE_OF_CONDUCT.md +22 -16
- data/Gemfile +86 -0
- data/Guardfile +25 -0
- data/README.md +234 -236
- data/Rakefile +14 -11
- data/lib/core_ext/blank.rb +37 -36
- data/lib/core_ext/hash.rb +39 -16
- data/lib/core_ext/object.rb +2 -2
- data/lib/core_ext/string.rb +290 -116
- data/lib/roda/plugins/tag_helpers.rb +795 -575
- data/lib/roda/plugins/tags.rb +532 -276
- data/lib/roda/tags/version.rb +2 -3
- data/lib/roda/tags.rb +2 -0
- data/roda-tags.gemspec +30 -32
- metadata +44 -128
- data/.travis.yml +0 -4
data/lib/roda/tags/version.rb
CHANGED
data/lib/roda/tags.rb
CHANGED
data/roda-tags.gemspec
CHANGED
@@ -1,21 +1,25 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
|
3
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
|
4
7
|
require 'roda/tags/version'
|
5
8
|
|
6
9
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
10
|
+
spec.name = 'roda-tags'
|
8
11
|
spec.version = Roda::Tags::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
12
|
+
spec.authors = ['Kematzy']
|
13
|
+
spec.email = ['kematzy@gmail.com']
|
11
14
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
15
|
+
spec.summary = 'A Roda Plugin providing easy creation of flexible HTML tags.'
|
16
|
+
spec.description = 'HTML tags functionality for Roda.'
|
17
|
+
spec.homepage = 'https://github.com/kematzy/roda-tags/'
|
18
|
+
spec.license = 'MIT'
|
19
|
+
spec.required_ruby_version = '>= 3.0.0'
|
16
20
|
|
17
|
-
#
|
18
|
-
#
|
21
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
22
|
+
# delete this section to allow pushing this gem to any host.
|
19
23
|
# if spec.respond_to?(:metadata)
|
20
24
|
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
25
|
# else
|
@@ -23,27 +27,21 @@ Gem::Specification.new do |spec|
|
|
23
27
|
# end
|
24
28
|
|
25
29
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|features)/}) }
|
26
|
-
spec.bindir =
|
30
|
+
spec.bindir = 'exe'
|
27
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = [
|
29
|
-
|
32
|
+
spec.require_paths = ['lib']
|
33
|
+
|
30
34
|
spec.platform = Gem::Platform::RUBY
|
31
|
-
spec.
|
32
|
-
spec.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
spec.
|
38
|
-
|
39
|
-
spec.
|
40
|
-
spec.
|
41
|
-
|
42
|
-
spec.
|
43
|
-
spec.add_development_dependency 'minitest-have_tag'
|
44
|
-
spec.add_development_dependency 'minitest-rg'
|
45
|
-
spec.add_development_dependency 'rack-test'
|
46
|
-
spec.add_development_dependency 'nokogiri'
|
47
|
-
spec.add_development_dependency 'simplecov'
|
48
|
-
|
35
|
+
spec.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
36
|
+
spec.rdoc_options += [
|
37
|
+
'--quiet', '--line-numbers', '--inline-source', '--title',
|
38
|
+
'Roda-Tags: HTML tag plugin', '--main', 'README.md'
|
39
|
+
]
|
40
|
+
|
41
|
+
spec.add_dependency('erubi', '~> 1.13.0', '>= 1.13.0')
|
42
|
+
spec.add_dependency('haml', '~> 6.3.0', '>= 6.3.0')
|
43
|
+
spec.add_dependency('roda', '~> 3.85.0', '>= 3.85.0')
|
44
|
+
spec.add_dependency('tilt', '~> 2.4.0', '>= 2.4.0')
|
45
|
+
|
46
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
49
47
|
end
|
metadata
CHANGED
@@ -1,183 +1,95 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kematzy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: erubi
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
17
|
+
- - "~>"
|
25
18
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: tilt
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
19
|
+
version: 1.13.0
|
31
20
|
- - ">="
|
32
21
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
22
|
+
version: 1.13.0
|
34
23
|
type: :runtime
|
35
24
|
prerelease: false
|
36
25
|
version_requirements: !ruby/object:Gem::Requirement
|
37
26
|
requirements:
|
38
|
-
- - "
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: erubis
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
27
|
+
- - "~>"
|
46
28
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
29
|
+
version: 1.13.0
|
52
30
|
- - ">="
|
53
31
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
32
|
+
version: 1.13.0
|
55
33
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
34
|
+
name: haml
|
57
35
|
requirement: !ruby/object:Gem::Requirement
|
58
36
|
requirements:
|
59
37
|
- - "~>"
|
60
38
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.10'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
39
|
+
version: 6.3.0
|
40
|
+
- - ">="
|
74
41
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :
|
42
|
+
version: 6.3.0
|
43
|
+
type: :runtime
|
77
44
|
prerelease: false
|
78
45
|
version_requirements: !ruby/object:Gem::Requirement
|
79
46
|
requirements:
|
80
47
|
- - "~>"
|
81
48
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: minitest
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
49
|
+
version: 6.3.0
|
87
50
|
- - ">="
|
88
51
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
52
|
+
version: 6.3.0
|
97
53
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
54
|
+
name: roda
|
99
55
|
requirement: !ruby/object:Gem::Requirement
|
100
56
|
requirements:
|
101
|
-
- - "
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
57
|
+
- - "~>"
|
109
58
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: minitest-have_tag
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
59
|
+
version: 3.85.0
|
115
60
|
- - ">="
|
116
61
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
118
|
-
type: :
|
62
|
+
version: 3.85.0
|
63
|
+
type: :runtime
|
119
64
|
prerelease: false
|
120
65
|
version_requirements: !ruby/object:Gem::Requirement
|
121
66
|
requirements:
|
122
|
-
- - "
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: minitest-rg
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
67
|
+
- - "~>"
|
130
68
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
69
|
+
version: 3.85.0
|
136
70
|
- - ">="
|
137
71
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
72
|
+
version: 3.85.0
|
139
73
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
74
|
+
name: tilt
|
141
75
|
requirement: !ruby/object:Gem::Requirement
|
142
76
|
requirements:
|
143
|
-
- - "
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
77
|
+
- - "~>"
|
151
78
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: nokogiri
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
79
|
+
version: 2.4.0
|
157
80
|
- - ">="
|
158
81
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
160
|
-
type: :
|
82
|
+
version: 2.4.0
|
83
|
+
type: :runtime
|
161
84
|
prerelease: false
|
162
85
|
version_requirements: !ruby/object:Gem::Requirement
|
163
86
|
requirements:
|
164
|
-
- - "
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: simplecov
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
87
|
+
- - "~>"
|
172
88
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
89
|
+
version: 2.4.0
|
178
90
|
- - ">="
|
179
91
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
92
|
+
version: 2.4.0
|
181
93
|
description: HTML tags functionality for Roda.
|
182
94
|
email:
|
183
95
|
- kematzy@gmail.com
|
@@ -187,10 +99,14 @@ extra_rdoc_files:
|
|
187
99
|
- README.md
|
188
100
|
- LICENSE.txt
|
189
101
|
files:
|
102
|
+
- ".github/dependabot.yml"
|
103
|
+
- ".github/workflows/ruby.yml"
|
190
104
|
- ".gitignore"
|
191
|
-
- ".
|
105
|
+
- ".rubocop.yml"
|
106
|
+
- ".rubocop_todo.yml"
|
192
107
|
- CODE_OF_CONDUCT.md
|
193
108
|
- Gemfile
|
109
|
+
- Guardfile
|
194
110
|
- LICENSE.txt
|
195
111
|
- README.md
|
196
112
|
- Rakefile
|
@@ -206,8 +122,9 @@ files:
|
|
206
122
|
homepage: https://github.com/kematzy/roda-tags/
|
207
123
|
licenses:
|
208
124
|
- MIT
|
209
|
-
metadata:
|
210
|
-
|
125
|
+
metadata:
|
126
|
+
rubygems_mfa_required: 'true'
|
127
|
+
post_install_message:
|
211
128
|
rdoc_options:
|
212
129
|
- "--quiet"
|
213
130
|
- "--line-numbers"
|
@@ -222,16 +139,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
139
|
requirements:
|
223
140
|
- - ">="
|
224
141
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
142
|
+
version: 3.0.0
|
226
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
144
|
requirements:
|
228
145
|
- - ">="
|
229
146
|
- !ruby/object:Gem::Version
|
230
147
|
version: '0'
|
231
148
|
requirements: []
|
232
|
-
|
233
|
-
|
234
|
-
signing_key:
|
149
|
+
rubygems_version: 3.5.23
|
150
|
+
signing_key:
|
235
151
|
specification_version: 4
|
236
152
|
summary: A Roda Plugin providing easy creation of flexible HTML tags.
|
237
153
|
test_files: []
|
data/.travis.yml
DELETED