roda-tags 0.1.1 → 0.1.2
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 +5 -5
- data/Rakefile +9 -2
- data/lib/roda/plugins/tags.rb +1 -1
- data/lib/roda/tags/version.rb +1 -1
- data/roda-tags.gemspec +13 -11
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bbb664e3631e6d39aa3212dfbd9eb961b37119be6aff06e9a3f8961c2016f439
|
4
|
+
data.tar.gz: 4390edc0fbfb6345a010b3a708610c9ee7503e7a7c3f9cde4eb948dbd9a3ee07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2bb71d4b8aa4118d8c704b757cb6da809887367dffb5325a374ba877a67e4007db8347cc331ffc533a80db30769243b265c2dd83b59c532e51d185f1806520c
|
7
|
+
data.tar.gz: 14b7b2856e657ddd81c999397bf06a980a2a4d937c8c48c3be2bdd69a9285e426a879d105a298c63a44197f73294d5913f7888681ee4e91415019ac0311e31df
|
data/Rakefile
CHANGED
@@ -13,9 +13,16 @@ desc "Run specs with coverage"
|
|
13
13
|
task :coverage do
|
14
14
|
ENV['COVERAGE'] = '1'
|
15
15
|
Rake::Task['spec'].invoke
|
16
|
+
# `open coverage/index.html` # if OSX
|
16
17
|
end
|
17
18
|
|
18
|
-
desc
|
19
|
+
desc 'Run Rubocop report'
|
19
20
|
task :rubocop do
|
20
|
-
|
21
|
+
res = `which rubocop`
|
22
|
+
if res != ""
|
23
|
+
`rubocop -f html -o ./rubocop/report.html lib/`
|
24
|
+
# `open rubocop/report.html` # if OSX
|
25
|
+
else
|
26
|
+
puts "\nERROR: 'rubocop' gem is not installed or available. Please install with 'gem install rubocop'."
|
27
|
+
end
|
21
28
|
end
|
data/lib/roda/plugins/tags.rb
CHANGED
@@ -272,7 +272,7 @@ class Roda
|
|
272
272
|
def concat_content(text = '')
|
273
273
|
if self.respond_to?(:is_haml?) && is_haml?
|
274
274
|
haml_concat(text)
|
275
|
-
elsif
|
275
|
+
elsif erb_buffer?
|
276
276
|
buffer_concat(text)
|
277
277
|
else # theres no template to concat, return the text directly
|
278
278
|
text
|
data/lib/roda/tags/version.rb
CHANGED
data/roda-tags.gemspec
CHANGED
@@ -4,15 +4,15 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'roda/tags/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'roda-tags'
|
8
8
|
spec.version = Roda::Tags::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Kematzy']
|
10
|
+
spec.email = ['kematzy@gmail.com']
|
11
11
|
|
12
12
|
spec.summary = %q{A Roda Plugin providing easy creation of flexible HTML tags.}
|
13
13
|
spec.description = %q{HTML tags functionality for Roda.}
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
14
|
+
spec.homepage = 'https://github.com/kematzy/roda-tags/'
|
15
|
+
spec.license = 'MIT'
|
16
16
|
|
17
17
|
# # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
18
|
# # delete this section to allow pushing this gem to any host.
|
@@ -23,27 +23,29 @@ Gem::Specification.new do |spec|
|
|
23
23
|
# end
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|features)/}) }
|
26
|
-
spec.bindir =
|
26
|
+
spec.bindir = 'exe'
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = [
|
28
|
+
spec.require_paths = ['lib']
|
29
29
|
|
30
30
|
spec.platform = Gem::Platform::RUBY
|
31
31
|
spec.has_rdoc = true
|
32
|
-
spec.extra_rdoc_files = [
|
33
|
-
spec.rdoc_options += [
|
32
|
+
spec.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
33
|
+
spec.rdoc_options += ['--quiet', '--line-numbers', '--inline-source', '--title', 'Roda-Tags: HTML tag plugin', '--main', 'README.md']
|
34
34
|
|
35
35
|
spec.add_runtime_dependency 'roda'
|
36
36
|
spec.add_runtime_dependency 'tilt'
|
37
37
|
spec.add_runtime_dependency 'erubis'
|
38
38
|
|
39
|
-
spec.add_development_dependency 'bundler',
|
40
|
-
spec.add_development_dependency 'rake',
|
39
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
40
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
41
41
|
spec.add_development_dependency 'minitest'
|
42
42
|
spec.add_development_dependency 'minitest-hooks'
|
43
43
|
spec.add_development_dependency 'minitest-have_tag'
|
44
44
|
spec.add_development_dependency 'minitest-rg'
|
45
45
|
spec.add_development_dependency 'rack-test'
|
46
46
|
spec.add_development_dependency 'nokogiri'
|
47
|
+
|
47
48
|
spec.add_development_dependency 'simplecov'
|
49
|
+
spec.add_development_dependency 'rubocop'
|
48
50
|
|
49
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kematzy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rubocop
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
181
195
|
description: HTML tags functionality for Roda.
|
182
196
|
email:
|
183
197
|
- kematzy@gmail.com
|
@@ -229,8 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
243
|
- !ruby/object:Gem::Version
|
230
244
|
version: '0'
|
231
245
|
requirements: []
|
232
|
-
|
233
|
-
rubygems_version: 2.4.5
|
246
|
+
rubygems_version: 3.0.3
|
234
247
|
signing_key:
|
235
248
|
specification_version: 4
|
236
249
|
summary: A Roda Plugin providing easy creation of flexible HTML tags.
|