unobtainium-nokogiri 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -1
- data/.rspec +2 -0
- data/.travis.yml +5 -3
- data/Gemfile +0 -2
- data/Gemfile.lock +43 -51
- data/README.md +0 -2
- data/Rakefile +0 -5
- data/lib/unobtainium-nokogiri/driver.rb +2 -1
- data/lib/unobtainium-nokogiri/version.rb +2 -2
- data/unobtainium-nokogiri.gemspec +7 -8
- metadata +22 -32
- data/.codeclimate.yml +0 -28
- data/.rubocop.yml +0 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b63c520c27d4c6768d75eddbef5905db1d8ad4e370a434837d1f663f1c447ddd
|
4
|
+
data.tar.gz: f5209b4211b984eded0e94db1b8992c5c4012efbf6d17ed44d268ec5065981da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa2d7674302b3ced6cd56ce4f739be05ce578511604c4be25808eab587f724335b7308358edead01d2e9ecbb55b01636707e17f82cc90e17270e1ea7e830894
|
7
|
+
data.tar.gz: 3e4fc300d5ab24595289a980880e407bfa55c6b0e3d71de3ef5f9dd41584e4ce5c112cddf7d2882674c0e3258dadb3351c3a9dc171d3ac93f89b85828b98f7f7
|
data/.gitignore
CHANGED
@@ -29,7 +29,7 @@ build/
|
|
29
29
|
# for a library or gem, you might want to ignore these files since the code is
|
30
30
|
# intended to run in multiple environments; otherwise, check them in:
|
31
31
|
# Gemfile.lock
|
32
|
-
|
32
|
+
.ruby-version
|
33
33
|
# .ruby-gemset
|
34
34
|
|
35
35
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
data/.rspec
ADDED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,70 +1,62 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unobtainium-nokogiri (0.
|
5
|
-
unobtainium (~> 0.
|
4
|
+
unobtainium-nokogiri (0.2.0)
|
5
|
+
unobtainium (~> 0.13)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
diff-lcs (1.
|
14
|
-
docile (1.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
rspec-
|
26
|
-
|
27
|
-
rspec-
|
28
|
-
rspec-
|
29
|
-
rspec-support (~> 3.4.0)
|
30
|
-
rspec-expectations (3.4.0)
|
10
|
+
collapsium (0.10.0)
|
11
|
+
collapsium-config (0.7.0)
|
12
|
+
collapsium (~> 0.10)
|
13
|
+
diff-lcs (1.3)
|
14
|
+
docile (1.3.0)
|
15
|
+
ffi (1.9.23)
|
16
|
+
json (2.1.0)
|
17
|
+
mini_portile2 (2.3.0)
|
18
|
+
nokogiri (1.8.2)
|
19
|
+
mini_portile2 (~> 2.3.0)
|
20
|
+
ptools (1.3.5)
|
21
|
+
rake (11.3.0)
|
22
|
+
rspec (3.7.0)
|
23
|
+
rspec-core (~> 3.7.0)
|
24
|
+
rspec-expectations (~> 3.7.0)
|
25
|
+
rspec-mocks (~> 3.7.0)
|
26
|
+
rspec-core (3.7.1)
|
27
|
+
rspec-support (~> 3.7.0)
|
28
|
+
rspec-expectations (3.7.0)
|
31
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.
|
33
|
-
rspec-mocks (3.
|
30
|
+
rspec-support (~> 3.7.0)
|
31
|
+
rspec-mocks (3.7.0)
|
34
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.
|
36
|
-
rspec-support (3.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
rainbow (>= 1.99.1, < 3.0)
|
41
|
-
ruby-progressbar (~> 1.7)
|
42
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
43
|
-
ruby-progressbar (1.8.0)
|
44
|
-
simplecov (0.11.2)
|
45
|
-
docile (~> 1.1.0)
|
46
|
-
json (~> 1.8)
|
33
|
+
rspec-support (~> 3.7.0)
|
34
|
+
rspec-support (3.7.1)
|
35
|
+
simplecov (0.16.1)
|
36
|
+
docile (~> 1.1)
|
37
|
+
json (>= 1.8, < 3)
|
47
38
|
simplecov-html (~> 0.10.0)
|
48
|
-
simplecov-html (0.10.
|
49
|
-
sys-proctable (1.
|
50
|
-
|
51
|
-
unobtainium (0.
|
52
|
-
|
53
|
-
|
39
|
+
simplecov-html (0.10.2)
|
40
|
+
sys-proctable (1.2.0)
|
41
|
+
ffi
|
42
|
+
unobtainium (0.13.0)
|
43
|
+
collapsium (~> 0.10)
|
44
|
+
collapsium-config (~> 0.7)
|
45
|
+
ptools (~> 1.3)
|
46
|
+
sys-proctable (~> 1.2)
|
47
|
+
yard (0.9.12)
|
54
48
|
|
55
49
|
PLATFORMS
|
56
50
|
ruby
|
57
51
|
|
58
52
|
DEPENDENCIES
|
59
|
-
bundler (~> 1.
|
60
|
-
codeclimate-test-reporter
|
53
|
+
bundler (~> 1.16)
|
61
54
|
nokogiri
|
62
|
-
rake (~> 11.
|
63
|
-
rspec (~> 3.
|
64
|
-
|
65
|
-
simplecov (~> 0.11)
|
55
|
+
rake (~> 11.3)
|
56
|
+
rspec (~> 3.7)
|
57
|
+
simplecov (~> 0.16)
|
66
58
|
unobtainium-nokogiri!
|
67
|
-
yard (~> 0.
|
59
|
+
yard (~> 0.9, >= 0.9.12)
|
68
60
|
|
69
61
|
BUNDLED WITH
|
70
|
-
1.
|
62
|
+
1.16.1
|
data/README.md
CHANGED
@@ -5,8 +5,6 @@ based on [nokogiri](http://www.nokogiri.org/).
|
|
5
5
|
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/unobtainium-nokogiri.svg)](https://badge.fury.io/rb/unobtainium-nokogiri)
|
7
7
|
[![Build status](https://travis-ci.org/jfinkhaeuser/unobtainium-nokogiri.svg?branch=master)](https://travis-ci.org/jfinkhaeuser/unobtainium-nokogiri)
|
8
|
-
[![Code Climate](https://codeclimate.com/github/jfinkhaeuser/unobtainium-nokogiri/badges/gpa.svg)](https://codeclimate.com/github/jfinkhaeuser/unobtainium-nokogiri)
|
9
|
-
[![Test Coverage](https://codeclimate.com/github/jfinkhaeuser/unobtainium-nokogiri/badges/coverage.svg)](https://codeclimate.com/github/jfinkhaeuser/unobtainium-nokogiri/coverage)
|
10
8
|
|
11
9
|
To use it, require it after requiring unobtainium, then create the appropriate driver:
|
12
10
|
|
data/Rakefile
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
# Rubocop
|
2
|
-
require 'rubocop/rake_task'
|
3
|
-
RuboCop::RakeTask.new(:rubocop)
|
4
|
-
|
5
1
|
# Rspec
|
6
2
|
require 'rspec/core/rake_task'
|
7
3
|
RSpec::Core::RakeTask.new(:rspec)
|
@@ -17,7 +13,6 @@ end
|
|
17
13
|
# Combined test task
|
18
14
|
desc "Test all the things!"
|
19
15
|
task :test do
|
20
|
-
Rake::Task[:rubocop].invoke
|
21
16
|
Rake::Task[:rspec].invoke
|
22
17
|
end
|
23
18
|
|
@@ -3,12 +3,12 @@
|
|
3
3
|
# unobtainium-nokogiri
|
4
4
|
# https://github.com/jfinkhaeuser/unobtainium-nokogiri
|
5
5
|
#
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other unobtainium-nokogiri contributors.
|
6
|
+
# Copyright (c) 2016-2018 Jens Finkhaeuser and other unobtainium-nokogiri contributors.
|
7
7
|
# All rights reserved.
|
8
8
|
#
|
9
9
|
module Unobtainium
|
10
10
|
module Nokogiri
|
11
11
|
# The current release version
|
12
|
-
VERSION = "0.
|
12
|
+
VERSION = "0.2.0".freeze
|
13
13
|
end # module Nokogiri
|
14
14
|
end # module Unobtainium
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# unobtainium-nokogiri
|
4
4
|
# https://github.com/jfinkhaeuser/unobtainium-nokogiri
|
5
5
|
#
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other unobtainium-nokogiri contributors.
|
6
|
+
# Copyright (c) 2016-2018 Jens Finkhaeuser and other unobtainium-nokogiri contributors.
|
7
7
|
# All rights reserved.
|
8
8
|
#
|
9
9
|
|
@@ -39,15 +39,14 @@ Gem::Specification.new do |spec|
|
|
39
39
|
|
40
40
|
spec.required_ruby_version = '>= 2.0'
|
41
41
|
|
42
|
-
spec.add_development_dependency "bundler", "~> 1.
|
43
|
-
spec.add_development_dependency "
|
44
|
-
spec.add_development_dependency "
|
45
|
-
spec.add_development_dependency "
|
46
|
-
spec.add_development_dependency "
|
47
|
-
spec.add_development_dependency "yard", "~> 0.8"
|
42
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
43
|
+
spec.add_development_dependency "rake", "~> 11.3"
|
44
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
45
|
+
spec.add_development_dependency "simplecov", "~> 0.16"
|
46
|
+
spec.add_development_dependency "yard", "~> 0.9", ">= 0.9.12"
|
48
47
|
spec.add_development_dependency "nokogiri"
|
49
48
|
|
50
|
-
spec.add_dependency "unobtainium", "~> 0.
|
49
|
+
spec.add_dependency "unobtainium", "~> 0.13"
|
51
50
|
end
|
52
51
|
# rubocop:enable Style/SpaceAroundOperators
|
53
52
|
# rubocop:enable Style/UnneededPercentQ, Style/ExtraSpacing
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unobtainium-nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Finkhaeuser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,84 +16,76 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.16'
|
20
20
|
type: :development
|
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: '1.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubocop
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.39'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.39'
|
26
|
+
version: '1.16'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '11.
|
33
|
+
version: '11.3'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '11.
|
40
|
+
version: '11.3'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
47
|
+
version: '3.7'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
54
|
+
version: '3.7'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
61
|
+
version: '0.16'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
68
|
+
version: '0.16'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: yard
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
75
|
+
version: '0.9'
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.9.12
|
90
79
|
type: :development
|
91
80
|
prerelease: false
|
92
81
|
version_requirements: !ruby/object:Gem::Requirement
|
93
82
|
requirements:
|
94
83
|
- - "~>"
|
95
84
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
85
|
+
version: '0.9'
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.9.12
|
97
89
|
- !ruby/object:Gem::Dependency
|
98
90
|
name: nokogiri
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +106,14 @@ dependencies:
|
|
114
106
|
requirements:
|
115
107
|
- - "~>"
|
116
108
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
109
|
+
version: '0.13'
|
118
110
|
type: :runtime
|
119
111
|
prerelease: false
|
120
112
|
version_requirements: !ruby/object:Gem::Requirement
|
121
113
|
requirements:
|
122
114
|
- - "~>"
|
123
115
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
116
|
+
version: '0.13'
|
125
117
|
description: "\n The unobtainium-nokogiri gem is a nokogiri-based driver implementation
|
126
118
|
for\n unobtainium.\n\n Unlike built-in driver implementations, it does not
|
127
119
|
provide a Selenium-like\n API, but rather one mostly identical to plain nokogiri.\n
|
@@ -132,9 +124,8 @@ executables: []
|
|
132
124
|
extensions: []
|
133
125
|
extra_rdoc_files: []
|
134
126
|
files:
|
135
|
-
- ".codeclimate.yml"
|
136
127
|
- ".gitignore"
|
137
|
-
- ".
|
128
|
+
- ".rspec"
|
138
129
|
- ".travis.yml"
|
139
130
|
- Gemfile
|
140
131
|
- Gemfile.lock
|
@@ -168,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
159
|
version: '0'
|
169
160
|
requirements: []
|
170
161
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.7.6
|
172
163
|
signing_key:
|
173
164
|
specification_version: 4
|
174
165
|
summary: The unobtainium-nokogiri gem is a nokogiri-based driver implementation for
|
@@ -177,4 +168,3 @@ test_files:
|
|
177
168
|
- spec/data/foo.html
|
178
169
|
- spec/driver_spec.rb
|
179
170
|
- spec/spec_helper.rb
|
180
|
-
has_rdoc:
|
data/.codeclimate.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
---
|
2
|
-
engines:
|
3
|
-
bundler-audit:
|
4
|
-
enabled: true
|
5
|
-
duplication:
|
6
|
-
enabled: true
|
7
|
-
config:
|
8
|
-
languages:
|
9
|
-
- ruby
|
10
|
-
- javascript
|
11
|
-
- python
|
12
|
-
- php
|
13
|
-
fixme:
|
14
|
-
enabled: true
|
15
|
-
rubocop:
|
16
|
-
enabled: true
|
17
|
-
ratings:
|
18
|
-
paths:
|
19
|
-
- Gemfile.lock
|
20
|
-
- "**.inc"
|
21
|
-
- "**.js"
|
22
|
-
- "**.jsx"
|
23
|
-
- "**.module"
|
24
|
-
- "**.php"
|
25
|
-
- "**.py"
|
26
|
-
- "**.rb"
|
27
|
-
exclude_paths:
|
28
|
-
- spec/
|
data/.rubocop.yml
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.2
|
3
|
-
|
4
|
-
# Metrics
|
5
|
-
|
6
|
-
Metrics/LineLength:
|
7
|
-
Max: 83
|
8
|
-
Details: >-
|
9
|
-
Line length of 80 is ideal for readability and compatibility; we'll accept
|
10
|
-
an extra 3 for minor edge cases.
|
11
|
-
|
12
|
-
Metrics/MethodLength:
|
13
|
-
Max: 35
|
14
|
-
|
15
|
-
Metrics/BlockNesting:
|
16
|
-
Max: 5
|
17
|
-
|
18
|
-
Metrics/AbcSize:
|
19
|
-
Max: 50
|
20
|
-
|
21
|
-
Metrics/PerceivedComplexity:
|
22
|
-
Max: 15
|
23
|
-
|
24
|
-
Metrics/CyclomaticComplexity:
|
25
|
-
Max: 15
|
26
|
-
|
27
|
-
Metrics/ClassLength:
|
28
|
-
Max: 300
|
29
|
-
|
30
|
-
# Style
|
31
|
-
|
32
|
-
Style/StringLiterals:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
Style/ConditionalAssignment:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
Style/EmptyLinesAroundModuleBody:
|
39
|
-
Enabled: false
|
40
|
-
|
41
|
-
Style/AndOr:
|
42
|
-
Enabled: false
|
43
|
-
|
44
|
-
Style/Not:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Style/NegatedIf:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
Style/RedundantReturn:
|
51
|
-
Enabled: false
|
52
|
-
|
53
|
-
Style/IfUnlessModifier:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/TrailingCommaInLiteral:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Style/FirstParameterIndentation:
|
60
|
-
Enabled: false
|
61
|
-
|
62
|
-
Style/TrailingUnderscoreVariable:
|
63
|
-
Enabled: false
|
64
|
-
|
65
|
-
Style/NumericLiterals:
|
66
|
-
Enabled: false
|
67
|
-
|
68
|
-
Style/FileName:
|
69
|
-
Enabled: false
|