diffbot 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/Gemfile.lock +2 -2
- data/diffbot.gemspec +2 -2
- data/lib/diffbot/article.rb +10 -0
- 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: 98ac2615615bcaf621fa30ba5a73766718bff3ae
|
4
|
+
data.tar.gz: a11eb01a8b09fb8cec57bfa2f245df205d230ed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e8214b084e45762e4ff01262da0fee1cc0da7dcbfe75de1c1137f311a1261d5e56da1f1310b4c80a1b696c3dc8a0e31023bb52940fea4330d954d1b56dd420
|
7
|
+
data.tar.gz: fd189211dc41800fc2f8490211acab60ea0055dcb4e1f51dac87bb5a35b1417c18c39cec822e732350a2c81cbf8a0b9ba624d3bdbe91788723ebbdc0da3b7d61
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
diffbot (0.1.
|
4
|
+
diffbot (0.1.10)
|
5
5
|
excon
|
6
6
|
hashie (= 3.3.2)
|
7
7
|
nokogiri (~> 1.6.8)
|
@@ -41,7 +41,7 @@ PLATFORMS
|
|
41
41
|
ruby
|
42
42
|
|
43
43
|
DEPENDENCIES
|
44
|
-
bundler
|
44
|
+
bundler
|
45
45
|
codeclimate-test-reporter
|
46
46
|
diffbot!
|
47
47
|
minitest
|
data/diffbot.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "diffbot"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.10"
|
4
4
|
s.description = "Diffbot provides a concise API for analyzing and extracting semantic information from web pages using Diffbot (http://www.diffbot.com)."
|
5
5
|
s.summary = "Ruby interface to the Diffbot API "
|
6
6
|
s.authors = ["Nicolas Sanguinetti", "Roman Greshny"]
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.add_dependency("nokogiri", "~> 1.6.8")
|
16
16
|
s.add_dependency("hashie", "3.3.2")
|
17
17
|
|
18
|
-
s.add_development_dependency("bundler"
|
18
|
+
s.add_development_dependency("bundler")
|
19
19
|
s.add_development_dependency("minitest")
|
20
20
|
s.add_development_dependency("pry")
|
21
21
|
end
|
data/lib/diffbot/article.rb
CHANGED
@@ -67,6 +67,9 @@ module Diffbot
|
|
67
67
|
|
68
68
|
# Public: Date of the article (as a string).
|
69
69
|
property :date
|
70
|
+
|
71
|
+
# Public: Meta tags of the article
|
72
|
+
property :meta
|
70
73
|
|
71
74
|
# Returns the (spoken/human) language of the submitted URL, using two-letter
|
72
75
|
# ISO 639-1 nomenclature.
|
@@ -223,6 +226,13 @@ module Diffbot
|
|
223
226
|
#
|
224
227
|
# If enabled, it will change the `html` key in the `Diffbot::Article`.
|
225
228
|
property :dontStripAds, from: :dont_strip_ads
|
229
|
+
|
230
|
+
# Public: Set to true to return meta tags.
|
231
|
+
#
|
232
|
+
# Defaults to nil.
|
233
|
+
#
|
234
|
+
# If enabled, sets the `meta` key in the `Diffbot::Article`.
|
235
|
+
property :meta
|
226
236
|
|
227
237
|
# Public: Set to true to generate tags for the extracted story.
|
228
238
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diffbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Sanguinetti
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|
@@ -71,16 +71,16 @@ dependencies:
|
|
71
71
|
name: bundler
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: minitest
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.6.6
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Ruby interface to the Diffbot API
|