jekyll-code-example-tag 1.0.0 → 2.0.0
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/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +3 -6
- data/CHANGELOG.md +8 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +63 -66
- data/jekyll-code-example-tag.gemspec +5 -4
- data/spec/code_example_spec.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 7b13f017a8d87b58d301d173180b0f452f493d6d6ad68f54fdb90c1180beeae9
|
|
4
|
+
data.tar.gz: 33aa124a741ae846c6de84ac72c98890a24a62d6e0cb88eb365c0f45ec67ad16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bcc845cacd4d956e588ac3ae782f5962fa7ba4b8a76fd31388d44362134bad7b52adbed67e3aeabaf31101a89dd20aa442f751eff07c50b4d30ccfa0e944bde
|
|
7
|
+
data.tar.gz: bb3e7e483adbe729dd47a8ae8a873a2c56d8ccc7ad9dc26ea4998e93eb86cd87ae3f451aebcef01c64440f4e53f78b8ab89b929b8de058bceb0b83a2b1458398
|
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.bundle
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.7.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
[How to use a CHANGELOG](http://keepachangelog.com/)
|
|
7
7
|
|
|
8
|
+
## 2.0.0 - 2020-08-20
|
|
9
|
+
|
|
10
|
+
## Changed
|
|
11
|
+
|
|
12
|
+
- Various dependency updates to address vulnerabilities
|
|
13
|
+
- Ruby version >= 2.3.0 now required
|
|
14
|
+
|
|
8
15
|
## 1.0.0 - 2017-01-30
|
|
9
16
|
|
|
10
17
|
### Changed
|
|
@@ -13,7 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
13
20
|
|
|
14
21
|
### Added
|
|
15
22
|
|
|
16
|
-
- CSS class applied to
|
|
23
|
+
- CSS class applied to \<li> and \<ul> tags in language menus can be set via the
|
|
17
24
|
`code_example_list_class` in _config.yml.
|
|
18
25
|
|
|
19
26
|
## 0.0.7 - 2015-03-18
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,79 +1,74 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jekyll-code-example-tag (0.0
|
|
4
|
+
jekyll-code-example-tag (2.0.0)
|
|
5
5
|
htmlentities
|
|
6
6
|
jekyll
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
timers (~> 4.0.0)
|
|
14
|
-
classifier-reborn (2.0.3)
|
|
15
|
-
fast-stemmer (~> 1.0)
|
|
11
|
+
addressable (2.7.0)
|
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
16
13
|
coderay (1.1.0)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
execjs
|
|
20
|
-
coffee-script-source (1.9.1)
|
|
21
|
-
colorator (0.1)
|
|
14
|
+
colorator (1.1.0)
|
|
15
|
+
concurrent-ruby (1.1.7)
|
|
22
16
|
diff-lcs (1.2.5)
|
|
23
|
-
|
|
17
|
+
em-websocket (0.5.1)
|
|
18
|
+
eventmachine (>= 0.12.9)
|
|
19
|
+
http_parser.rb (~> 0.6.0)
|
|
20
|
+
eventmachine (1.2.7)
|
|
24
21
|
fakefs (0.6.5)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
jekyll-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
ffi (1.13.1)
|
|
23
|
+
forwardable-extended (2.6.0)
|
|
24
|
+
htmlentities (4.3.4)
|
|
25
|
+
http_parser.rb (0.6.0)
|
|
26
|
+
i18n (1.8.5)
|
|
27
|
+
concurrent-ruby (~> 1.0)
|
|
28
|
+
jekyll (4.1.1)
|
|
29
|
+
addressable (~> 2.4)
|
|
30
|
+
colorator (~> 1.0)
|
|
31
|
+
em-websocket (~> 0.5)
|
|
32
|
+
i18n (~> 1.0)
|
|
33
|
+
jekyll-sass-converter (~> 2.0)
|
|
34
|
+
jekyll-watch (~> 2.0)
|
|
35
|
+
kramdown (~> 2.1)
|
|
36
|
+
kramdown-parser-gfm (~> 1.0)
|
|
37
|
+
liquid (~> 4.0)
|
|
38
|
+
mercenary (~> 0.4.0)
|
|
39
|
+
pathutil (~> 0.9)
|
|
40
|
+
rouge (~> 3.0)
|
|
42
41
|
safe_yaml (~> 1.0)
|
|
43
|
-
|
|
44
|
-
jekyll-
|
|
45
|
-
|
|
46
|
-
jekyll-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
rb-inotify (>= 0.9)
|
|
58
|
-
mercenary (0.3.5)
|
|
42
|
+
terminal-table (~> 1.8)
|
|
43
|
+
jekyll-sass-converter (2.1.0)
|
|
44
|
+
sassc (> 2.0.1, < 3.0)
|
|
45
|
+
jekyll-watch (2.2.1)
|
|
46
|
+
listen (~> 3.0)
|
|
47
|
+
kramdown (2.3.0)
|
|
48
|
+
rexml
|
|
49
|
+
kramdown-parser-gfm (1.1.0)
|
|
50
|
+
kramdown (~> 2.0)
|
|
51
|
+
liquid (4.0.3)
|
|
52
|
+
listen (3.2.1)
|
|
53
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
54
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
55
|
+
mercenary (0.4.0)
|
|
59
56
|
method_source (0.8.2)
|
|
60
|
-
|
|
61
|
-
nokogiri (1.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
posix-spawn (0.3.10)
|
|
57
|
+
mini_portile2 (2.4.0)
|
|
58
|
+
nokogiri (1.10.10)
|
|
59
|
+
mini_portile2 (~> 2.4.0)
|
|
60
|
+
pathutil (0.16.2)
|
|
61
|
+
forwardable-extended (~> 2.6)
|
|
66
62
|
pry (0.10.1)
|
|
67
63
|
coderay (~> 1.1.0)
|
|
68
64
|
method_source (~> 0.8.1)
|
|
69
65
|
slop (~> 3.4)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
redcarpet (3.2.2)
|
|
66
|
+
public_suffix (4.0.5)
|
|
67
|
+
rb-fsevent (0.10.4)
|
|
68
|
+
rb-inotify (0.10.1)
|
|
69
|
+
ffi (~> 1.0)
|
|
70
|
+
rexml (3.2.4)
|
|
71
|
+
rouge (3.22.0)
|
|
77
72
|
rspec (3.2.0)
|
|
78
73
|
rspec-core (~> 3.2.0)
|
|
79
74
|
rspec-expectations (~> 3.2.0)
|
|
@@ -87,14 +82,13 @@ GEM
|
|
|
87
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
83
|
rspec-support (~> 3.2.0)
|
|
89
84
|
rspec-support (3.2.0)
|
|
90
|
-
safe_yaml (1.0.
|
|
91
|
-
|
|
85
|
+
safe_yaml (1.0.5)
|
|
86
|
+
sassc (2.4.0)
|
|
87
|
+
ffi (~> 1.9)
|
|
92
88
|
slop (3.6.0)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
parslet (~> 1.5.0)
|
|
97
|
-
yajl-ruby (1.2.1)
|
|
89
|
+
terminal-table (1.8.0)
|
|
90
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
91
|
+
unicode-display_width (1.7.0)
|
|
98
92
|
|
|
99
93
|
PLATFORMS
|
|
100
94
|
ruby
|
|
@@ -102,6 +96,9 @@ PLATFORMS
|
|
|
102
96
|
DEPENDENCIES
|
|
103
97
|
fakefs
|
|
104
98
|
jekyll-code-example-tag!
|
|
105
|
-
nokogiri
|
|
99
|
+
nokogiri (~> 1.10.8)
|
|
106
100
|
pry
|
|
107
101
|
rspec
|
|
102
|
+
|
|
103
|
+
BUNDLED WITH
|
|
104
|
+
2.1.4
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'jekyll-code-example-tag'
|
|
3
|
-
s.version = '
|
|
3
|
+
s.version = '2.0.0'
|
|
4
4
|
s.date = '2015-02-03'
|
|
5
5
|
s.authors = ['GovDelivery']
|
|
6
6
|
s.email = 'support@govdelivery.com'
|
|
7
|
-
s.homepage = 'https://github.com/
|
|
7
|
+
s.homepage = 'https://github.com/Granicus/jekyll-code-example-tag'
|
|
8
8
|
s.license = 'BSD-3-Clause'
|
|
9
9
|
s.summary = 'Tags for including code examples in posts and pages.'
|
|
10
10
|
s.description = %q{Provides a tag that allows you to include in your posts
|
|
11
|
-
and pages code examples for multiple
|
|
12
|
-
kept in
|
|
11
|
+
and pages code examples for multiple languages that are
|
|
12
|
+
kept in separate files. Another tag allows you to combine
|
|
13
13
|
all code examples that are on a page.}
|
|
14
14
|
|
|
15
15
|
s.add_runtime_dependency 'jekyll'
|
|
@@ -17,4 +17,5 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.files = `git ls-files`.split($\)
|
|
19
19
|
s.require_paths = ['lib']
|
|
20
|
+
s.required_ruby_version = '>= 2.3.0'
|
|
20
21
|
end
|
data/spec/code_example_spec.rb
CHANGED
|
@@ -3,10 +3,10 @@ require_relative './spec_helper.rb'
|
|
|
3
3
|
def check_code_example_conditions(o_obj, buttons_class: 'buttons', button_class: 'button')
|
|
4
4
|
expect(o_obj.xpath('/div[@class="code-examples"]/div[@class="'+buttons_class+' examples"]/ul/li/a[@class="'+button_class+'"][@target="ruby"][.="Ruby"]')).not_to be_empty
|
|
5
5
|
expect(o_obj.xpath('/div[@class="code-examples"]/div[@class="'+buttons_class+' examples"]/ul/li/a[@class="'+button_class+'"][@target="python"][.="Python"]')).not_to be_empty
|
|
6
|
-
ruby_example = o_obj.xpath('/div[@class="code-examples"]/div[@class="highlight example ruby"]/pre/code[@class="
|
|
6
|
+
ruby_example = o_obj.xpath('/div[@class="code-examples"]/div[@class="highlight example ruby"]/pre/code[@class="ruby"][@data-lang="ruby"]')
|
|
7
7
|
expect(ruby_example).not_to be_empty
|
|
8
8
|
expect(ruby_example.first.content).to eq 'puts "Hello World"'
|
|
9
|
-
python_example = o_obj.xpath('/div[@class="code-examples"]/div[@class="highlight example python"]/pre/code[@class="
|
|
9
|
+
python_example = o_obj.xpath('/div[@class="code-examples"]/div[@class="highlight example python"]/pre/code[@class="python"][@data-lang="python"]')
|
|
10
10
|
expect(python_example).not_to be_empty
|
|
11
11
|
expect(python_example.first.content).to eq 'print "Hello World"'
|
|
12
12
|
end
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-code-example-tag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GovDelivery
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2015-02-03 00:00:00.000000000 Z
|
|
@@ -39,14 +39,15 @@ dependencies:
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
description: "Provides a tag that allows you to include in your posts \n and
|
|
42
|
-
pages code examples for multiple
|
|
43
|
-
|
|
42
|
+
pages code examples for multiple languages that are\n kept in
|
|
43
|
+
separate files. Another tag allows you to combine\n all code
|
|
44
44
|
examples that are on a page."
|
|
45
45
|
email: support@govdelivery.com
|
|
46
46
|
executables: []
|
|
47
47
|
extensions: []
|
|
48
48
|
extra_rdoc_files: []
|
|
49
49
|
files:
|
|
50
|
+
- ".gitignore"
|
|
50
51
|
- ".ruby-version"
|
|
51
52
|
- ".travis.yml"
|
|
52
53
|
- CHANGELOG.md
|
|
@@ -60,11 +61,11 @@ files:
|
|
|
60
61
|
- spec/all_page_code_examples_spec.rb
|
|
61
62
|
- spec/code_example_spec.rb
|
|
62
63
|
- spec/spec_helper.rb
|
|
63
|
-
homepage: https://github.com/
|
|
64
|
+
homepage: https://github.com/Granicus/jekyll-code-example-tag
|
|
64
65
|
licenses:
|
|
65
66
|
- BSD-3-Clause
|
|
66
67
|
metadata: {}
|
|
67
|
-
post_install_message:
|
|
68
|
+
post_install_message:
|
|
68
69
|
rdoc_options: []
|
|
69
70
|
require_paths:
|
|
70
71
|
- lib
|
|
@@ -72,16 +73,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
72
73
|
requirements:
|
|
73
74
|
- - ">="
|
|
74
75
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
76
|
+
version: 2.3.0
|
|
76
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
requirements:
|
|
78
79
|
- - ">="
|
|
79
80
|
- !ruby/object:Gem::Version
|
|
80
81
|
version: '0'
|
|
81
82
|
requirements: []
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
signing_key:
|
|
83
|
+
rubygems_version: 3.1.2
|
|
84
|
+
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Tags for including code examples in posts and pages.
|
|
87
87
|
test_files: []
|