jekyll_eval_filter 0.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be8155d7e7318ab2b296502685ffe77ee49324e2c3c496eeef0d281b9a85ed9c
4
- data.tar.gz: d0e60177381189d15979296ac1e3790009a83afc77dad12da0657ad65045914e
3
+ metadata.gz: c02113e6e6c0a6639e76eaa0be0a706200ac605fcb88edc603cedd1bd34fca28
4
+ data.tar.gz: c25b948155b10ac804034f338e3e8488f92950f53ca55514cc607efc614b2218
5
5
  SHA512:
6
- metadata.gz: 38fc2366d7130c3cab747b3eb5a1ee762162bdd0868cbd1148a8584659e9e1a118fbb10b8670b1bbae37ca960492d59679a8f99bc70d020ad86c83e36a964321
7
- data.tar.gz: bd657a032d11e7ab6cd35e549164413603465e84abbad002a96b1a6037f9483cac583500cde85da6f6c90f5c81f33c10fb0bcff62ad0d40bfb4d5317a626d0ef
6
+ metadata.gz: ec95e9e3f9c7813b2a81553c9f5222581540db106be4b4292327dc13c93fa2d051d3e8dede9cbe4659d32b629338f5f7b2b834b8403d2fb99b0afdfce12c1643
7
+ data.tar.gz: 3fb202f63124f85d41cf2d9b8d74e8fe7b58d20e47d3b8fe3b26c7463ccd2b5b948b9cfbb70e6e165477f5c8523ef3a50bbf52fb85d1d11f437f2800d1bf91bc
data/.rubocop.yml CHANGED
@@ -12,7 +12,6 @@ AllCops:
12
12
  - vendor/**/*
13
13
  - Gemfile*
14
14
  NewCops: enable
15
- TargetRubyVersion: 3.1.3
16
15
 
17
16
  Gemspec/DeprecatedAttributeAssignment:
18
17
  Enabled: false
@@ -20,6 +19,9 @@ Gemspec/DeprecatedAttributeAssignment:
20
19
  Gemspec/RequireMFA:
21
20
  Enabled: false
22
21
 
22
+ Gemspec/RequiredRubyVersion:
23
+ Enabled: false
24
+
23
25
  Layout/HashAlignment:
24
26
  EnforcedColonStyle: table
25
27
  EnforcedHashRocketStyle: table
data/CHANGELOG.md CHANGED
@@ -1,2 +1,16 @@
1
+ # Change Log
2
+
3
+
4
+ ## 0.1.2
5
+
6
+ * Mitigates vulnerability GHSA-xc9x-jj77-9p9j Moderate severity
7
+
8
+
9
+ ## 0.1.1
10
+
11
+ * Removed spurious dependency.
12
+
13
+
1
14
  ## 0.1.0
2
- * Initial release.
15
+
16
+ * Initial release.
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
- `jekyll_eval_filter`
2
- [![Gem Version](https://badge.fury.io/rb/jekyll_eval_filter.svg)](https://badge.fury.io/rb/jekyll_eval_filter)
3
- ===========
1
+ # `jekyll_eval_filter` [![Gem Version](https://badge.fury.io/rb/jekyll_eval_filter.svg)](https://badge.fury.io/rb/jekyll_eval_filter)
4
2
 
5
3
  `jekyll_eval_filter` evaluates given Ruby expression passed to it and returns the response.
6
4
 
7
5
 
8
6
  ## CAUTION
7
+
9
8
  This filter can evaluation *any Ruby expression*.
10
9
  No limitations are imposed.
11
10
 
@@ -16,13 +15,14 @@ With great power comes great responsibility.
16
15
 
17
16
  ## Usage
18
17
 
19
- ```
20
- {{ '1+2' | eval }} # returns 3
18
+ ```html
19
+ {{ '1+2' | evaluate }} # returns 3
21
20
 
22
- {{ 'sudo rm -rf /' | eval }} # potentially destroys your system
21
+ {{ 'sudo rm -rf /' | evaluate }} # potentially destroys your system
23
22
  # On a clear disk you can seek forever
24
23
  ```
25
24
 
25
+
26
26
  ## Installation
27
27
 
28
28
  Add this line to your application's Gemfile:
@@ -32,12 +32,14 @@ gem 'jekyll_eval_filter'
32
32
  ```
33
33
 
34
34
  And then execute:
35
+
35
36
  ```bash
36
37
  $ bundle
37
38
  ```
38
39
 
39
40
 
40
41
  ## Additional Information
42
+
41
43
  More information is available on
42
44
  [Mike Slinn’s website](https://www.mslinn.com/jekyll/10400-jekyll-plugin-template-collection.html).
43
45
 
@@ -50,6 +52,7 @@ You can also run `bin/console` for an interactive prompt that will allow you to
50
52
 
51
53
 
52
54
  ### Build and Install Locally
55
+
53
56
  To build and install this gem onto your local machine, run:
54
57
 
55
58
  ```shell
@@ -59,7 +62,8 @@ jekyll_eval_filter (1.0.0) installed.
59
62
  ```
60
63
 
61
64
  Examine the newly built gem:
62
- ```
65
+
66
+ ```shell
63
67
  $ gem info jekyll_eval_filter
64
68
 
65
69
  *** LOCAL GEMS ***
@@ -76,13 +80,17 @@ jekyll_eval_filter (1.0.0)
76
80
 
77
81
 
78
82
  ### Build and Push to RubyGems
83
+
79
84
  To release a new version,
85
+
80
86
  1. Update the version number in `version.rb`.
81
87
  2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
82
88
  3. Run the following:
89
+
83
90
  ```shell
84
91
  $ bundle exec rake release
85
92
  ```
93
+
86
94
  The above creates a git tag for the version, commits the created tag,
87
95
  and pushes the new `.gem` file to [RubyGems.org](https://rubygems.org).
88
96
 
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.summary = 'Evaluates input. Caution! Input can be any Ruby expression.'
30
30
  spec.version = JekyllEvalFilter::VERSION
31
31
 
32
- spec.add_dependency 'geminabox', '>= 2.2.1'
33
32
  spec.add_dependency 'jekyll', '>= 3.5.0'
34
33
  spec.add_dependency 'jekyll_plugin_support', '>= 0.7.0'
34
+ spec.add_dependency 'nokogiri', '>= 1.16.2'
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllEvalFilter
2
- VERSION = '0.1.0'.freeze unless defined? VERSION
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -5,6 +5,6 @@ require 'jekyll_plugin_support'
5
5
  require_relative 'jekyll_eval_filter/version'
6
6
 
7
7
  # Require all Ruby files in 'lib/', except this file
8
- Dir[File.join(__dir__, '*.rb')].each do |file|
8
+ Dir[File.join(__dir__, '*.rb')].sort.each do |file|
9
9
  require file unless file.end_with?('/jekyll_eval_filter.rb')
10
10
  end
@@ -1,13 +1,13 @@
1
1
  require_relative '../lib/jekyll_eval_filter'
2
2
 
3
- RSpec.describe JekyllEvalFilter::JekyllEvalFilter do
3
+ RSpec.describe JekyllEvalFilter do
4
4
  let(:logger) do
5
5
  PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
6
6
  end
7
7
 
8
8
  let(:parse_context) { TestParseContext.new }
9
9
 
10
- it 'has a test' do
11
- expect(true).to be_true
10
+ it 'has a test', skip: 'not implemented' do
11
+ expect(true).to be_truthy
12
12
  end
13
13
  end
data/spec/spec_helper.rb CHANGED
@@ -1,19 +1,15 @@
1
1
  require 'jekyll'
2
2
  require 'jekyll_plugin_logger'
3
- require 'liquid'
4
3
  require 'fileutils'
5
4
  require 'yaml'
6
- require_relative '../lib/<%= @gem_name %>'
5
+ require_relative '../lib/jekyll_eval_filter'
7
6
 
8
7
  RSpec.configure do |config|
9
- config.filter_run :focus
10
8
  # config.order = 'random'
11
- config.run_all_when_everything_filtered = true
9
+ config.filter_run_when_matching focus: true
12
10
 
13
11
  # See https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
14
12
  config.example_status_persistence_file_path = '../spec/status_persistence.txt'
15
-
16
- config.filter_run_when_matching focus: true
17
13
  end
18
14
 
19
15
  Registers = Struct.new(:page, :site)
@@ -30,7 +26,7 @@ class SiteMock
30
26
  attr_reader :config
31
27
 
32
28
  def initialize
33
- @config = YAML.safe_load(File.read('../demo/_config.yml'))
29
+ @config = YAML.safe_load_file('../demo/_config.yml')
34
30
  @config['env'] = { 'JEKYLL_ENV' => 'development' }
35
31
  end
36
32
 
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_eval_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-03 00:00:00.000000000 Z
11
+ date: 2024-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: geminabox
14
+ name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.1
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: 2.2.1
26
+ version: 3.5.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: jekyll
28
+ name: jekyll_plugin_support
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.5.0
33
+ version: 0.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.5.0
40
+ version: 0.7.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: jekyll_plugin_support
42
+ name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.0
47
+ version: 1.16.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.0
54
+ version: 1.16.2
55
55
  description: 'Evaluates input. Caution! Input can be any Ruby expression.
56
56
 
57
57
  '
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.3.3
101
+ rubygems_version: 3.4.22
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Evaluates input. Caution! Input can be any Ruby expression.