jekyll_from_to_until 1.0.0 → 1.0.1
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/.rubocop.yml +0 -18
- data/CHANGELOG.md +3 -0
- data/README.md +55 -10
- data/Rakefile +1 -1
- data/jekyll_from_to_until.gemspec +30 -32
- data/lib/jekyll_from_to_until/version.rb +2 -2
- data/lib/jekyll_from_to_until.rb +21 -14
- data/spec/from_to_until_spec.rb +87 -0
- data/spec/spec_helper.rb +16 -0
- metadata +21 -118
- data/.rspec +0 -2
- data/.ruby-version +0 -1
- data/.vscode/launch.json +0 -35
- data/.vscode/settings.json +0 -4
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -134
- data/sig/jekyll_from_to_until.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40367980839f79b78e22874ba3a0987a3c7411aa424f062f560cd97c70abaeec
|
4
|
+
data.tar.gz: 2a9893e23007d9945dd1f2494399b3379102d95cd69db2c1942caf9863dcdbb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dffeaed4162224160e6bbc499cb409c5123a0c9b75692617a343fb538d0eff3df54ce82ef0822f8190d1896bb5cd2ba565f548ece16e2883c733ac78ece4532f
|
7
|
+
data.tar.gz: 91ce5fdae2e170e07e6867a4f53c7d4289d2d0548b02a0af3e95e8a4da4f936cd2ca9418457c4db0b2e16099e5889f4b4a50dbb5566135dddaddd746f6f0fd3b
|
data/.rubocop.yml
CHANGED
@@ -12,23 +12,5 @@ AllCops:
|
|
12
12
|
Layout/LineLength:
|
13
13
|
Max: 150
|
14
14
|
|
15
|
-
Layout/MultilineMethodCallIndentation:
|
16
|
-
Enabled: false
|
17
|
-
|
18
15
|
Layout/MultilineOperationIndentation:
|
19
16
|
Enabled: false
|
20
|
-
|
21
|
-
Metrics/BlockLength:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Style/PercentLiteralDelimiters:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
Style/RegexpLiteral:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
Style/StringLiterals:
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
Style/StringLiteralsInInterpolation:
|
34
|
-
Enabled: false
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,6 +10,11 @@ Regular expression is used to specify matches; the simplest regular expression i
|
|
10
10
|
|
11
11
|
[Rubular](https://rubular.com/) is a handy online tool to try out regular expressions.
|
12
12
|
|
13
|
+
|
14
|
+
### Additional Information
|
15
|
+
More information is available on my web site about [my Jekyll plugins](https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html).
|
16
|
+
|
17
|
+
|
13
18
|
## Installation
|
14
19
|
|
15
20
|
Add this line to your application's Gemfile:
|
@@ -56,7 +61,7 @@ All of these examples perform identically.
|
|
56
61
|
:warning: Important: the name of the filter must be followed by a colon (:). If you fail to do that an error will be generated and the Jekyll site building process will halt. The error message looks something like this: `Liquid Warning: Liquid syntax error (line 285): Expected end_of_string but found string in "{{ lines | from '2' | until: '4' | xml_escape }}" in /some_directory/some_files.html Liquid Exception: Liquid error (line 285): wrong number of arguments (given 1, expected 2) in /some_directory/some_file.html Error: Liquid error (line 285): wrong number of arguments (given 1, expected 2)`
|
57
62
|
## Usage
|
58
63
|
|
59
|
-
Some of the following examples use a multiline string
|
64
|
+
Some of the following examples use a multiline string called `lines` that contains 5 lines, which was created this way:
|
60
65
|
|
61
66
|
```
|
62
67
|
{% capture lines %}line 1
|
@@ -67,7 +72,7 @@ line 5
|
|
67
72
|
{% endcapture %}
|
68
73
|
```
|
69
74
|
|
70
|
-
Other examples use a multiline string
|
75
|
+
Other examples use a multiline string called `gitignore` that contains the contents of a mythical `.gitignore` file, which looks like this:
|
71
76
|
```
|
72
77
|
.bsp/
|
73
78
|
project/
|
@@ -143,7 +148,7 @@ mslinn_aws.tar
|
|
143
148
|
```
|
144
149
|
|
145
150
|
### To the third line of string
|
146
|
-
These examples return the lines of the file from the first line until a line with the string "3" is found, including the matched line. The only difference between the examples is the delimiter around the regular expression.
|
151
|
+
These examples return the lines of the file from the first line until a line with the string `"3"` is found, including the matched line. The only difference between the examples is the delimiter around the regular expression.
|
147
152
|
```
|
148
153
|
{{ lines | to: '3' }}
|
149
154
|
{{ lines | to: "3" }}
|
@@ -175,7 +180,7 @@ target/
|
|
175
180
|
```
|
176
181
|
|
177
182
|
### Until the third line of string
|
178
|
-
These examples return the lines of the file until a line with the string "3" is found, excluding the matched line. The only difference between the examples is the delimiter around the regular expression.
|
183
|
+
These examples return the lines of the file until a line with the string `"3"` is found, excluding the matched line. The only difference between the examples is the delimiter around the regular expression.
|
179
184
|
```
|
180
185
|
{{ lines | until: '3' }}
|
181
186
|
{{ lines | until: "3" }}
|
@@ -205,7 +210,7 @@ target/
|
|
205
210
|
```
|
206
211
|
|
207
212
|
### From the string "2" until the string "4"
|
208
|
-
These examples return the lines of the file until a line with the string "3" is found, excluding the matched line. The only difference between the examples is the delimiter around the regular expression.
|
213
|
+
These examples return the lines of the file until a line with the string `"3"` is found, excluding the matched line. The only difference between the examples is the delimiter around the regular expression.
|
209
214
|
```
|
210
215
|
{{ lines | from: '2' | until: '4' }}
|
211
216
|
{{ lines | from: "2" | until: "4" }}
|
@@ -246,18 +251,58 @@ mslinn_aws.tar
|
|
246
251
|
|
247
252
|
## Development
|
248
253
|
|
249
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
254
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
255
|
+
|
256
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
257
|
+
|
258
|
+
|
259
|
+
### Build and Install Locally
|
260
|
+
To build and install this gem onto your local machine, run:
|
261
|
+
```shell
|
262
|
+
$ rake install:local
|
263
|
+
```
|
250
264
|
|
251
|
-
|
265
|
+
The following also does the same thing:
|
266
|
+
```shell
|
267
|
+
$ bundle exec rake install
|
252
268
|
```
|
253
|
-
|
269
|
+
|
270
|
+
Examine the newly built gem:
|
271
|
+
```shell
|
272
|
+
$ gem info jekyll_from_to_until
|
273
|
+
|
274
|
+
*** LOCAL GEMS ***
|
275
|
+
|
276
|
+
jekyll_from_to_until (1.0.0)
|
277
|
+
Author: Mike Slinn
|
278
|
+
Homepage:
|
279
|
+
https://github.com/mslinn/jekyll_from_to_until
|
280
|
+
License: MIT
|
281
|
+
Installed at: /home/mslinn/.gems
|
282
|
+
|
283
|
+
Generates Jekyll logger with colored output.
|
254
284
|
```
|
255
285
|
|
256
|
-
|
286
|
+
|
287
|
+
### Build and Push to RubyGems
|
288
|
+
To release a new version,
|
289
|
+
1. Update the version number in `version.rb`.
|
290
|
+
2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
|
291
|
+
3. Run the following:
|
292
|
+
```shell
|
293
|
+
$ bundle exec rake release
|
294
|
+
```
|
295
|
+
The above creates a git tag for the version, commits the created tag,
|
296
|
+
and pushes the new `.gem` file to [RubyGems.org](https://rubygems.org).
|
297
|
+
|
257
298
|
|
258
299
|
## Contributing
|
259
300
|
|
260
|
-
|
301
|
+
1. Fork the project
|
302
|
+
2. Create a descriptively named feature branch
|
303
|
+
3. Add your feature
|
304
|
+
4. Submit a pull request
|
305
|
+
|
261
306
|
|
262
307
|
## License
|
263
308
|
|
data/Rakefile
CHANGED
@@ -2,48 +2,46 @@
|
|
2
2
|
|
3
3
|
require_relative "lib/jekyll_from_to_until/version"
|
4
4
|
|
5
|
+
# rubocop:disable Metrics/BlockLength
|
5
6
|
Gem::Specification.new do |spec|
|
6
|
-
|
7
|
-
spec.version = JekyllFromToUntil::VERSION
|
8
|
-
spec.authors = ["Mike Slinn"]
|
9
|
-
spec.email = ["mslinn@mslinn.com"]
|
7
|
+
github = "https://github.com/mslinn/jekyll_from_to_until"
|
10
8
|
|
11
|
-
spec.
|
9
|
+
spec.authors = ["Mike Slinn"]
|
10
|
+
spec.bindir = "exe"
|
12
11
|
spec.description = <<~END_DESC
|
13
12
|
This Jekyll plugin provides 3 filters that return portions of a multiline string: from, to and until.
|
14
13
|
Regular expression is used to specify matches; the simplest regular expression is a string.
|
15
14
|
END_DESC
|
16
|
-
spec.
|
15
|
+
spec.email = ["mslinn@mslinn.com"]
|
16
|
+
spec.files = Dir[".rubocop.yml", "LICENSE.*", "Rakefile", "{lib,spec}/**/*", "*.gemspec", "*.md"]
|
17
|
+
spec.homepage = "https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#from_to_until"
|
17
18
|
spec.license = "MIT"
|
18
|
-
spec.
|
19
|
-
|
20
|
-
|
19
|
+
spec.metadata = {
|
20
|
+
"allowed_push_host" => "https://rubygems.org",
|
21
|
+
"bug_tracker_uri" => "#{github}/issues",
|
22
|
+
"changelog_uri" => "#{github}/CHANGELOG.md",
|
23
|
+
"homepage_uri" => spec.homepage,
|
24
|
+
"source_code_uri" => github,
|
25
|
+
}
|
26
|
+
spec.name = "jekyll_from_to_until"
|
27
|
+
spec.post_install_message = <<~END_MESSAGE
|
21
28
|
|
22
|
-
|
23
|
-
spec.metadata["source_code_uri"] = 'https://github.com/mslinn/jekyll_from_to_until'
|
24
|
-
spec.metadata["changelog_uri"] = 'https://github.com/mslinn/jekyll_from_to_until/CHANGELOG.md'
|
29
|
+
Thanks for installing #{spec.name}!
|
25
30
|
|
26
|
-
|
27
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
28
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
29
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
30
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
31
|
-
end
|
32
|
-
end
|
33
|
-
spec.bindir = "exe"
|
34
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
END_MESSAGE
|
35
32
|
spec.require_paths = ["lib"]
|
33
|
+
spec.required_ruby_version = ">= 2.6.0"
|
34
|
+
spec.summary = "This Jekyll plugin provides 3 filters that return portions of a multiline string: from, to and until."
|
35
|
+
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
|
36
|
+
spec.version = JekyllFromToUntilVersion::VERSION
|
36
37
|
|
37
|
-
spec.add_dependency
|
38
|
+
spec.add_dependency "jekyll", ">= 3.5.0"
|
39
|
+
spec.add_dependency "jekyll_plugin_logger"
|
38
40
|
|
39
|
-
spec.add_development_dependency
|
40
|
-
spec.add_development_dependency
|
41
|
-
spec.add_development_dependency
|
42
|
-
spec.add_development_dependency
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency 'rspec'
|
45
|
-
spec.add_development_dependency 'rubocop'
|
46
|
-
spec.add_development_dependency 'rubocop-jekyll'
|
47
|
-
spec.add_development_dependency 'rubocop-rake'
|
48
|
-
spec.add_development_dependency 'ruby-debug-ide'
|
41
|
+
spec.add_development_dependency "debase"
|
42
|
+
# spec.add_development_dependency "rubocop-jekyll"
|
43
|
+
# spec.add_development_dependency "rubocop-rake"
|
44
|
+
# spec.add_development_dependency "rubocop-rspec"
|
45
|
+
spec.add_development_dependency "ruby-debug-ide"
|
49
46
|
end
|
47
|
+
# rubocop:enable Metrics/BlockLength
|
data/lib/jekyll_from_to_until.rb
CHANGED
@@ -3,10 +3,16 @@
|
|
3
3
|
# @author Copyright 2020 Michael Slinn
|
4
4
|
# Jekyll filters for working with multiline strings.
|
5
5
|
|
6
|
+
require "jekyll_plugin_logger"
|
7
|
+
require "liquid"
|
6
8
|
require_relative "jekyll_from_to_until/version"
|
7
9
|
|
8
|
-
module
|
9
|
-
|
10
|
+
module JekyllPluginFromToUntilName
|
11
|
+
PLUGIN_NAME = "jekyll_from_to_until"
|
12
|
+
end
|
13
|
+
|
14
|
+
module FromToUntil
|
15
|
+
@logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
|
10
16
|
|
11
17
|
# Filters a multiline string, returning the portion beginning with the line that satisfies a regex.
|
12
18
|
# The regex could be enclosed in single quotes, double quotes, or nothing.
|
@@ -16,13 +22,13 @@ module JekyllFromToUntil
|
|
16
22
|
# @example Returns remaining lines starting with the line containing the word `module`.
|
17
23
|
# {{ flexible_include '/blog/2020/10/03/jekyll-plugins.html' | from 'module' }}
|
18
24
|
def from(input_strings, regex)
|
19
|
-
return
|
25
|
+
return "" unless check_parameters(input_strings, regex)
|
20
26
|
|
21
27
|
regex = remove_quotations(regex.to_s.strip)
|
22
28
|
matched = false
|
23
|
-
result =
|
29
|
+
result = ""
|
24
30
|
input_strings.each_line do |line|
|
25
|
-
matched = true if !matched && line =~
|
31
|
+
matched = true if !matched && line =~ %r!#{regex}!
|
26
32
|
result += line if matched
|
27
33
|
end
|
28
34
|
result
|
@@ -33,13 +39,13 @@ module JekyllFromToUntil
|
|
33
39
|
# @example Returns lines up to and including the line containing the word `module`.
|
34
40
|
# {{ flexible_include '/blog/2020/10/03/jekyll-plugins.html' | to 'module' }}
|
35
41
|
def to(input_strings, regex)
|
36
|
-
return
|
42
|
+
return "" unless check_parameters(input_strings, regex)
|
37
43
|
|
38
44
|
regex = remove_quotations(regex.to_s.strip)
|
39
|
-
result =
|
45
|
+
result = ""
|
40
46
|
input_strings.each_line do |line|
|
41
47
|
result += line
|
42
|
-
return result if line.match?(
|
48
|
+
return result if line.match?(%r!#{regex}!)
|
43
49
|
end
|
44
50
|
result
|
45
51
|
end
|
@@ -49,12 +55,12 @@ module JekyllFromToUntil
|
|
49
55
|
# @example Returns lines up to but not including the line containing the word `module`.
|
50
56
|
# {{ flexible_include '/blog/2020/10/03/jekyll-plugins.html' | until 'module' }}
|
51
57
|
def until(input_strings, regex)
|
52
|
-
return
|
58
|
+
return "" unless check_parameters(input_strings, regex)
|
53
59
|
|
54
60
|
regex = remove_quotations(regex.to_s.strip)
|
55
|
-
result =
|
61
|
+
result = ""
|
56
62
|
input_strings.each_line do |line|
|
57
|
-
return result if line.match?(
|
63
|
+
return result if line.match?(%r!#{regex}!)
|
58
64
|
|
59
65
|
result += line
|
60
66
|
end
|
@@ -65,13 +71,13 @@ module JekyllFromToUntil
|
|
65
71
|
|
66
72
|
def check_parameters(input_strings, regex)
|
67
73
|
if input_strings.nil? || input_strings.empty?
|
68
|
-
|
74
|
+
@logger.warn { "Warning: Plugin 'from' received no input for regex #{regex}." }
|
69
75
|
return false
|
70
76
|
end
|
71
77
|
|
72
78
|
regex = regex.to_s
|
73
79
|
if regex.nil? || regex.empty?
|
74
|
-
|
80
|
+
@logger.warn { "Warning: Plugin 'from' received no regex for input #{input_strings}." }
|
75
81
|
return false
|
76
82
|
end
|
77
83
|
true
|
@@ -84,4 +90,5 @@ module JekyllFromToUntil
|
|
84
90
|
end
|
85
91
|
end
|
86
92
|
|
87
|
-
|
93
|
+
PluginMetaLogger.instance.info { "Loaded #{JekyllPluginFromToUntilName::PLUGIN_NAME} v#{JekyllFromToUntilVersion::VERSION} plugin." }
|
94
|
+
Liquid::Template.register_filter(FromToUntil)
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'jekyll'
|
4
|
+
require 'fileutils'
|
5
|
+
require_relative '../lib/jekyll_from_to_until'
|
6
|
+
|
7
|
+
RSpec.describe(JekyllFromToUntil) do
|
8
|
+
include JekyllFromToUntil
|
9
|
+
|
10
|
+
let(:lines) do
|
11
|
+
<<~END_OF_LINES
|
12
|
+
line 1
|
13
|
+
line 2
|
14
|
+
line 3
|
15
|
+
line 4
|
16
|
+
line 5
|
17
|
+
END_OF_LINES
|
18
|
+
end
|
19
|
+
|
20
|
+
let(:gitignore) do
|
21
|
+
<<~END_OF_LINES
|
22
|
+
.bsp/
|
23
|
+
project/
|
24
|
+
target/
|
25
|
+
*.gz
|
26
|
+
*.sublime*
|
27
|
+
*.swp
|
28
|
+
*.out
|
29
|
+
*.Identifier
|
30
|
+
*.log
|
31
|
+
.idea*
|
32
|
+
*.iml
|
33
|
+
*.tmp
|
34
|
+
*~
|
35
|
+
~*
|
36
|
+
.DS_Store
|
37
|
+
.idea
|
38
|
+
.jekyll-cache/
|
39
|
+
.jekyll-metadata
|
40
|
+
.makeAwsBucketAndDistribution.log
|
41
|
+
.sass-cache/
|
42
|
+
.yardoc/
|
43
|
+
__pycache__/
|
44
|
+
__MACOSX
|
45
|
+
_build/
|
46
|
+
_package/
|
47
|
+
_site/
|
48
|
+
bin/*.class
|
49
|
+
doc/
|
50
|
+
jekyll/doc/
|
51
|
+
node_modules/
|
52
|
+
Notepad++/
|
53
|
+
out/
|
54
|
+
package/
|
55
|
+
instances.json
|
56
|
+
rescue_ubuntu2010
|
57
|
+
rescue_ubuntu2010.b64
|
58
|
+
landingPageShortName.md
|
59
|
+
test.html
|
60
|
+
RUNNING_PID
|
61
|
+
mslinn_jekyll_plugins.zip
|
62
|
+
cloud9.tar
|
63
|
+
cloud9.zip
|
64
|
+
mslinn_aws.tar
|
65
|
+
END_OF_LINES
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'verifies from' do
|
69
|
+
expect(from(lines, '3')).to eq("line 3\nline 4\nline 5\n")
|
70
|
+
expect(from(gitignore, 'PID')).to eq("RUNNING_PID\nmslinn_jekyll_plugins.zip\ncloud9.tar\ncloud9.zip\nmslinn_aws.tar\n")
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'verifies to' do
|
74
|
+
expect(to(lines, '3')).to eq("line 1\nline 2\nline 3\n")
|
75
|
+
expect(to(gitignore, 'idea')).to eq(".bsp/\nproject/\ntarget/\n*.gz\n*.sublime*\n*.swp\n*.out\n*.Identifier\n*.log\n.idea*\n")
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'verifies until' do
|
79
|
+
# until is a Ruby keyword
|
80
|
+
expect(method(:until).call(lines, '3')).to eq("line 1\nline 2\n")
|
81
|
+
expect(method(:until).call(gitignore, 'idea')).to eq(".bsp/\nproject/\ntarget/\n*.gz\n*.sublime*\n*.swp\n*.out\n*.Identifier\n*.log\n")
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'verifies from regex' do
|
85
|
+
expect(from(gitignore, '^(cloud|sun)')).to eq("cloud9.tar\ncloud9.zip\nmslinn_aws.tar\n")
|
86
|
+
end
|
87
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'jekyll'
|
4
|
+
require 'fileutils'
|
5
|
+
require_relative '../lib/jekyll_from_to_until'
|
6
|
+
|
7
|
+
Jekyll.logger.log_level = :info
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.filter_run :focus
|
11
|
+
config.order = 'random'
|
12
|
+
config.run_all_when_everything_filtered = true
|
13
|
+
|
14
|
+
# See https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
|
15
|
+
config.example_status_persistence_file_path = "spec/status_persistence.txt"
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_from_to_until
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,22 +16,22 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: jekyll_plugin_logger
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -52,104 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: jekyll
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
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
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-jekyll
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rubocop-rake
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
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
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
55
|
- !ruby/object:Gem::Dependency
|
154
56
|
name: ruby-debug-ide
|
155
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,30 +75,29 @@ executables: []
|
|
173
75
|
extensions: []
|
174
76
|
extra_rdoc_files: []
|
175
77
|
files:
|
176
|
-
- ".rspec"
|
177
78
|
- ".rubocop.yml"
|
178
|
-
- ".ruby-version"
|
179
|
-
- ".vscode/launch.json"
|
180
|
-
- ".vscode/settings.json"
|
181
79
|
- CHANGELOG.md
|
182
|
-
- Gemfile
|
183
|
-
- Gemfile.lock
|
184
80
|
- LICENSE.txt
|
185
81
|
- README.md
|
186
82
|
- Rakefile
|
187
83
|
- jekyll_from_to_until.gemspec
|
188
84
|
- lib/jekyll_from_to_until.rb
|
189
85
|
- lib/jekyll_from_to_until/version.rb
|
190
|
-
-
|
191
|
-
|
86
|
+
- spec/from_to_until_spec.rb
|
87
|
+
- spec/spec_helper.rb
|
88
|
+
homepage: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#from_to_until
|
192
89
|
licenses:
|
193
90
|
- MIT
|
194
91
|
metadata:
|
195
|
-
allowed_push_host: https://rubygems.org
|
196
|
-
|
197
|
-
source_code_uri: https://github.com/mslinn/jekyll_from_to_until
|
92
|
+
allowed_push_host: https://rubygems.org
|
93
|
+
bug_tracker_uri: https://github.com/mslinn/jekyll_from_to_until/issues
|
198
94
|
changelog_uri: https://github.com/mslinn/jekyll_from_to_until/CHANGELOG.md
|
199
|
-
|
95
|
+
homepage_uri: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#from_to_until
|
96
|
+
source_code_uri: https://github.com/mslinn/jekyll_from_to_until
|
97
|
+
post_install_message: |2+
|
98
|
+
|
99
|
+
Thanks for installing jekyll_from_to_until!
|
100
|
+
|
200
101
|
rdoc_options: []
|
201
102
|
require_paths:
|
202
103
|
- lib
|
@@ -211,9 +112,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
112
|
- !ruby/object:Gem::Version
|
212
113
|
version: '0'
|
213
114
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.1.4
|
215
116
|
signing_key:
|
216
117
|
specification_version: 4
|
217
118
|
summary: 'This Jekyll plugin provides 3 filters that return portions of a multiline
|
218
119
|
string: from, to and until.'
|
219
|
-
test_files:
|
120
|
+
test_files:
|
121
|
+
- spec/from_to_until_spec.rb
|
122
|
+
- spec/spec_helper.rb
|
data/.rspec
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.0.0
|
data/.vscode/launch.json
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
{
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
3
|
-
// Hover to view descriptions of existing attributes.
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
-
"version": "0.2.0",
|
6
|
-
"configurations": [
|
7
|
-
{
|
8
|
-
"args": [
|
9
|
-
"-I",
|
10
|
-
"${workspaceRoot}"
|
11
|
-
],
|
12
|
-
"cwd": "${workspaceRoot}",
|
13
|
-
"name": "RSpec - all",
|
14
|
-
"program": "${env:HOME}/.gems/bin/rspec",
|
15
|
-
"request": "launch",
|
16
|
-
"showDebuggerOutput": false,
|
17
|
-
"type": "Ruby",
|
18
|
-
"useBundler": true,
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"args": [
|
22
|
-
"-I",
|
23
|
-
"${workspaceRoot}",
|
24
|
-
"${file}"
|
25
|
-
],
|
26
|
-
"cwd": "${workspaceRoot}",
|
27
|
-
"name": "RSpec - active spec file only",
|
28
|
-
"program": "${env:HOME}/.gems/bin/rspec",
|
29
|
-
"showDebuggerOutput": false,
|
30
|
-
"request": "launch",
|
31
|
-
"type": "Ruby",
|
32
|
-
"useBundler": true,
|
33
|
-
},
|
34
|
-
]
|
35
|
-
}
|
data/.vscode/settings.json
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
jekyll_from_to_until (1.0.0)
|
5
|
-
jekyll
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
addressable (2.8.0)
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
ast (2.4.2)
|
13
|
-
coderay (1.1.3)
|
14
|
-
colorator (1.1.0)
|
15
|
-
concurrent-ruby (1.1.9)
|
16
|
-
debase (0.2.4.1)
|
17
|
-
debase-ruby_core_source (>= 0.10.2)
|
18
|
-
debase-ruby_core_source (0.10.14)
|
19
|
-
diff-lcs (1.5.0)
|
20
|
-
em-websocket (0.5.3)
|
21
|
-
eventmachine (>= 0.12.9)
|
22
|
-
http_parser.rb (~> 0)
|
23
|
-
eventmachine (1.2.7)
|
24
|
-
ffi (1.15.5)
|
25
|
-
forwardable-extended (2.6.0)
|
26
|
-
http_parser.rb (0.8.0)
|
27
|
-
i18n (1.10.0)
|
28
|
-
concurrent-ruby (~> 1.0)
|
29
|
-
jekyll (4.2.2)
|
30
|
-
addressable (~> 2.4)
|
31
|
-
colorator (~> 1.0)
|
32
|
-
em-websocket (~> 0.5)
|
33
|
-
i18n (~> 1.0)
|
34
|
-
jekyll-sass-converter (~> 2.0)
|
35
|
-
jekyll-watch (~> 2.0)
|
36
|
-
kramdown (~> 2.3)
|
37
|
-
kramdown-parser-gfm (~> 1.0)
|
38
|
-
liquid (~> 4.0)
|
39
|
-
mercenary (~> 0.4.0)
|
40
|
-
pathutil (~> 0.9)
|
41
|
-
rouge (~> 3.0)
|
42
|
-
safe_yaml (~> 1.0)
|
43
|
-
terminal-table (~> 2.0)
|
44
|
-
jekyll-sass-converter (2.2.0)
|
45
|
-
sassc (> 2.0.1, < 3.0)
|
46
|
-
jekyll-watch (2.2.1)
|
47
|
-
listen (~> 3.0)
|
48
|
-
kramdown (2.3.1)
|
49
|
-
rexml
|
50
|
-
kramdown-parser-gfm (1.1.0)
|
51
|
-
kramdown (~> 2.0)
|
52
|
-
liquid (4.0.3)
|
53
|
-
listen (3.7.1)
|
54
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
55
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
56
|
-
mercenary (0.4.0)
|
57
|
-
method_source (1.0.0)
|
58
|
-
parallel (1.21.0)
|
59
|
-
parser (3.1.1.0)
|
60
|
-
ast (~> 2.4.1)
|
61
|
-
pathutil (0.16.2)
|
62
|
-
forwardable-extended (~> 2.6)
|
63
|
-
pry (0.14.1)
|
64
|
-
coderay (~> 1.1)
|
65
|
-
method_source (~> 1.0)
|
66
|
-
public_suffix (4.0.6)
|
67
|
-
rainbow (3.1.1)
|
68
|
-
rake (13.0.6)
|
69
|
-
rb-fsevent (0.11.1)
|
70
|
-
rb-inotify (0.10.1)
|
71
|
-
ffi (~> 1.0)
|
72
|
-
regexp_parser (2.2.1)
|
73
|
-
rexml (3.2.5)
|
74
|
-
rouge (3.28.0)
|
75
|
-
rspec (3.11.0)
|
76
|
-
rspec-core (~> 3.11.0)
|
77
|
-
rspec-expectations (~> 3.11.0)
|
78
|
-
rspec-mocks (~> 3.11.0)
|
79
|
-
rspec-core (3.11.0)
|
80
|
-
rspec-support (~> 3.11.0)
|
81
|
-
rspec-expectations (3.11.0)
|
82
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
-
rspec-support (~> 3.11.0)
|
84
|
-
rspec-mocks (3.11.0)
|
85
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.11.0)
|
87
|
-
rspec-support (3.11.0)
|
88
|
-
rubocop (1.18.4)
|
89
|
-
parallel (~> 1.10)
|
90
|
-
parser (>= 3.0.0.0)
|
91
|
-
rainbow (>= 2.2.2, < 4.0)
|
92
|
-
regexp_parser (>= 1.8, < 3.0)
|
93
|
-
rexml
|
94
|
-
rubocop-ast (>= 1.8.0, < 2.0)
|
95
|
-
ruby-progressbar (~> 1.7)
|
96
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
97
|
-
rubocop-ast (1.16.0)
|
98
|
-
parser (>= 3.1.1.0)
|
99
|
-
rubocop-jekyll (0.12.0)
|
100
|
-
rubocop (~> 1.18.0)
|
101
|
-
rubocop-performance (~> 1.2)
|
102
|
-
rubocop-performance (1.13.3)
|
103
|
-
rubocop (>= 1.7.0, < 2.0)
|
104
|
-
rubocop-ast (>= 0.4.0)
|
105
|
-
rubocop-rake (0.6.0)
|
106
|
-
rubocop (~> 1.0)
|
107
|
-
ruby-debug-ide (0.7.3)
|
108
|
-
rake (>= 0.8.1)
|
109
|
-
ruby-progressbar (1.11.0)
|
110
|
-
safe_yaml (1.0.5)
|
111
|
-
sassc (2.4.0)
|
112
|
-
ffi (~> 1.9)
|
113
|
-
terminal-table (2.0.0)
|
114
|
-
unicode-display_width (~> 1.1, >= 1.1.1)
|
115
|
-
unicode-display_width (1.8.0)
|
116
|
-
|
117
|
-
PLATFORMS
|
118
|
-
x86_64-linux
|
119
|
-
|
120
|
-
DEPENDENCIES
|
121
|
-
bundler
|
122
|
-
debase
|
123
|
-
jekyll
|
124
|
-
jekyll_from_to_until!
|
125
|
-
pry
|
126
|
-
rake (~> 13.0)
|
127
|
-
rspec
|
128
|
-
rubocop
|
129
|
-
rubocop-jekyll
|
130
|
-
rubocop-rake
|
131
|
-
ruby-debug-ide
|
132
|
-
|
133
|
-
BUNDLED WITH
|
134
|
-
2.3.7
|