jekyll-joule 0.1.0 → 0.2.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 +4 -4
- data/docs/api/find.md +2 -2
- data/docs/api/find_all.md +1 -1
- data/docs/api/prop.md +1 -1
- data/docs/rendering.md +1 -0
- data/jekyll-joule.gemspec +1 -1
- data/lib/jekyll/extensions/{oga_element.rb → xml_element.rb} +2 -2
- data/lib/jekyll/joule.rb +1 -1
- data/lib/jekyll/joule/site.rb +2 -2
- data/lib/jekyll/joule/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3893ad4eb4efef4ff9bb59f6a2a07803d08bc4af
|
4
|
+
data.tar.gz: c7eb9fc889f5bb5feb90f1a453c1becdce88bff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59f40898daee832428a2c597f255f3356844cf9fac094af4d1c035874d54cc2cf67a7b7e61a31fe00d0bbfd59faed582ae87aceb688fb672bf9eb5ca9dbea069
|
7
|
+
data.tar.gz: 517733f097b6594bca567afb3f78c132b811370bc200c05815c8c5eef1f7650e108409e55ac96ec2f258bf541286911e2b6548ed89a6110a107b84f1195b8c3f
|
data/docs/api/find.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
| Type | Description |
|
13
13
|
| --- | --- |
|
14
|
-
| instance | A [
|
14
|
+
| instance | A [Nokogiri](https://github.com/sparklemotion/nokogiri) element instance. |
|
15
15
|
|
16
16
|
|
17
17
|
## Usage
|
@@ -45,7 +45,7 @@ el["class"] # quote
|
|
45
45
|
|
46
46
|
### Chaining
|
47
47
|
|
48
|
-
Joule has enhanced
|
48
|
+
Joule has enhanced Nokogiri's `XML::Element` class by allowing you to find elements within elements.
|
49
49
|
|
50
50
|
In the example below, we're able to find the inner `.pika` selector within the outer `.pikachu` selector.
|
51
51
|
```rb
|
data/docs/api/find_all.md
CHANGED
data/docs/api/prop.md
CHANGED
data/docs/rendering.md
CHANGED
data/jekyll-joule.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
23
|
spec.add_runtime_dependency "jekyll", ">= 3.1.2"
|
24
|
-
spec.add_runtime_dependency "
|
24
|
+
spec.add_runtime_dependency "nokogiri", "~> 1.8"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.13"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/jekyll/joule.rb
CHANGED
data/lib/jekyll/joule/site.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "jekyll"
|
2
2
|
require "jekyll/joule/page"
|
3
|
-
require "
|
3
|
+
require "nokogiri"
|
4
4
|
|
5
5
|
module Jekyll
|
6
6
|
module Joule
|
@@ -37,7 +37,7 @@ module Jekyll
|
|
37
37
|
page = Jekyll::Joule::Page.new(@site, @site.source, "/", @test_page_name)
|
38
38
|
page.reparse(content)
|
39
39
|
@data = generate(page)
|
40
|
-
@html =
|
40
|
+
@html = Nokogiri::HTML(@data.content)
|
41
41
|
|
42
42
|
return self
|
43
43
|
end
|
data/lib/jekyll/joule/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-joule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ItsJonQ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.8'
|
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: '
|
40
|
+
version: '1.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +206,7 @@ files:
|
|
206
206
|
- examples/test/test_example.rb
|
207
207
|
- jekyll-joule.gemspec
|
208
208
|
- lib/jekyll-joule.rb
|
209
|
-
- lib/jekyll/extensions/
|
209
|
+
- lib/jekyll/extensions/xml_element.rb
|
210
210
|
- lib/jekyll/joule.rb
|
211
211
|
- lib/jekyll/joule/page.rb
|
212
212
|
- lib/jekyll/joule/site.rb
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
233
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.5.
|
234
|
+
rubygems_version: 2.4.5.1
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: A Jekyll library for Unit Testing
|