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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd6268f1e9100f1f43e57fef4313bda039358a52
4
- data.tar.gz: 6c99760891af69e4ca0c0d7f3446b9127b56d78a
3
+ metadata.gz: 3893ad4eb4efef4ff9bb59f6a2a07803d08bc4af
4
+ data.tar.gz: c7eb9fc889f5bb5feb90f1a453c1becdce88bff9
5
5
  SHA512:
6
- metadata.gz: 6f525679b0c6d7f15f9476db689b5973295b7a12e573616fb80961b48850fa4320a3336be7e98a7dfc52e9163865c82de935d1625b87cda5dab445835cf033ca
7
- data.tar.gz: 54297a5bf7af98384195ef62447e3fa805c368b98ae3f96d49585cd6d8ccf533dd8910c51507a0070875ce39bad92616c46d9c00f4e349193a28005edf3a74b0
6
+ metadata.gz: 59f40898daee832428a2c597f255f3356844cf9fac094af4d1c035874d54cc2cf67a7b7e61a31fe00d0bbfd59faed582ae87aceb688fb672bf9eb5ca9dbea069
7
+ data.tar.gz: 517733f097b6594bca567afb3f78c132b811370bc200c05815c8c5eef1f7650e108409e55ac96ec2f258bf541286911e2b6548ed89a6110a107b84f1195b8c3f
@@ -11,7 +11,7 @@
11
11
 
12
12
  | Type | Description |
13
13
  | --- | --- |
14
- | instance | A [Oga](https://github.com/YorickPeterse/oga) element instance. |
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 Oga's `XML::Element` class by allowing you to find elements within elements.
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
@@ -11,7 +11,7 @@
11
11
 
12
12
  | Type | Description |
13
13
  | --- | --- |
14
- | array | An array of [Oga](https://github.com/YorickPeterse/oga) element instances. |
14
+ | array | An array of [Nokogiri](https://github.com/sparklemotion/nokogiri) element instances. |
15
15
 
16
16
 
17
17
  ## Usage
@@ -8,7 +8,7 @@
8
8
 
9
9
  #### Aliases
10
10
 
11
- **[.get()](http://code.yorickpeterse.com/oga/latest/Oga/XML/Element.html#get-instance_method)**
11
+ **[.attr()](http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Attr)**
12
12
 
13
13
 
14
14
  #### Returns
@@ -13,6 +13,7 @@ Joule comes with a handful of methods to help you render and find HTML selectors
13
13
  * [.render()](./api/render.md)
14
14
  * [.find()](./api/find.md)
15
15
  * [.find_all()](./api/find_all.md)
16
+ * [.prop()](./api/prop.md)
16
17
 
17
18
 
18
19
 
@@ -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 "oga", "~> 2.10"
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"
@@ -1,4 +1,4 @@
1
- module Oga
1
+ module Nokogiri
2
2
  module XML
3
3
  class Element
4
4
  def find_all *args
@@ -10,7 +10,7 @@ module Oga
10
10
  end
11
11
 
12
12
  def prop *args
13
- self.get *args
13
+ self.attr *args
14
14
  end
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  require "jekyll/joule/version"
2
2
  require "jekyll/joule/site"
3
- require "jekyll/extensions/oga_element"
3
+ require "jekyll/extensions/xml_element"
@@ -1,6 +1,6 @@
1
1
  require "jekyll"
2
2
  require "jekyll/joule/page"
3
- require "oga"
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 = Oga.parse_html(@data.content)
40
+ @html = Nokogiri::HTML(@data.content)
41
41
 
42
42
  return self
43
43
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Joule
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
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.1.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-06-05 00:00:00.000000000 Z
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: oga
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.10'
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: '2.10'
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/oga_element.rb
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.2
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