unobtainium-nokogiri 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5796d7cfee2228a6a9d81331c5503a4f42909e7d
4
- data.tar.gz: e2f50bec95dffef546ff86c6d58361405406adc0
3
+ metadata.gz: b04c949f244c93002d83d2649eaed6ff6a7125aa
4
+ data.tar.gz: cd32dca65887e20e39f8d1908a500930f436e916
5
5
  SHA512:
6
- metadata.gz: e2e8dcc9c03f91caf20fac37491963b60ace477caece9830c31f28928eaf1eafd077a5855ec71682de7028a36523733044bd956d27445a9a70e75176994c0d37
7
- data.tar.gz: 03554ca70bd4f6369a2772d1ffb0f87fa699d1655aa644e0d1538255a176b1aa98ab73380a13ad221ab6c27c42d1d1f389411742fc5c8e2c14594da84a81a3e4
6
+ metadata.gz: 0a75442ec38b1bac9d553ef842c58ac8225d88030c3ff6a4ff3ca431a00da82ac5ba794a55ec586d94d6004879851520d4ea06522b944f30d16b6b030f18f473
7
+ data.tar.gz: 24f18c08f0ef19c83fbbae77a179bfa5f3b498ea4ad1b5764245239a8df8e4c017ea7fb9f8ebca080f031f0898c260ce20c6409d32b5b2e0f87a2b5afdb4d273
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unobtainium-nokogiri (0.1.0)
4
+ unobtainium-nokogiri (0.1.1)
5
5
  unobtainium (~> 0.3)
6
6
 
7
7
  GEM
data/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
- Copyright (c) Jens Finkhaeuser (http://finkhaeuser.de/) and other unobtainum
2
- contributors. All rights not covered below are reserved.
1
+ Copyright (c) Jens Finkhaeuser (http://finkhaeuser.de/) and other
2
+ unobtainium-nokogiri contributors. All rights not covered below are reserved.
3
3
 
4
4
  The MIT +no-false-attribs License (MITNFA)
5
5
 
data/README.md CHANGED
@@ -18,5 +18,10 @@ include Unobtainium::World
18
18
 
19
19
  drv = driver(:nokogiri)
20
20
 
21
- # do something with the driver
21
+ # goto is provided by this gem, and wraps `open-uri`. Any URI accepted by that
22
+ # will work here.
23
+ drv.goto('http://finkhaeuser.de')
24
+
25
+ # Any other methods are delegated to nokogiri, such as e.g. `#xpath`
26
+ drv.xpath('//some/path')
22
27
  ```
@@ -10,10 +10,12 @@
10
10
  require 'unobtainium'
11
11
 
12
12
  module Unobtainium
13
+ ##
14
+ # Nokogiri namespace
13
15
  module Nokogiri
14
16
 
15
17
  ##
16
- # TODO
18
+ # Driver implementation using nokogiri (and open-uri).
17
19
  class Driver
18
20
  class << self
19
21
  ##
@@ -9,6 +9,6 @@
9
9
  module Unobtainium
10
10
  module Nokogiri
11
11
  # The current release version
12
- VERSION = "0.1.0".freeze
12
+ VERSION = "0.1.1".freeze
13
13
  end # module Nokogiri
14
14
  end # module Unobtainium
@@ -11,7 +11,7 @@ require 'spec_helper'
11
11
  describe 'Unobtainium::Nokogiri::Driver' do
12
12
  it "passes unobtainium's interface checks" do
13
13
  expect do
14
- require_relative '../lib/unobtainium-nokogiri/driver'
14
+ require 'unobtainium-nokogiri'
15
15
  end.to_not raise_error(LoadError)
16
16
  end
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unobtainium-nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Finkhaeuser
@@ -141,8 +141,8 @@ files:
141
141
  - LICENSE
142
142
  - README.md
143
143
  - Rakefile
144
+ - lib/unobtainium-nokogiri.rb
144
145
  - lib/unobtainium-nokogiri/driver.rb
145
- - lib/unobtainium-nokogiri/unobtainium-nokogiri.rb
146
146
  - lib/unobtainium-nokogiri/version.rb
147
147
  - spec/data/foo.html
148
148
  - spec/driver_spec.rb