wikipedia-client 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/wikipedia/page.rb +2 -2
- data/lib/wikipedia/version.rb +1 -1
- data/wikipedia-client.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4627596258c90098e74ad178255a16d25d58e2e5
|
4
|
+
data.tar.gz: 4fabc78ed70d973802c85ba22e82b527cb962e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6112ad939242930a1d5f540e6eb69fdd56708c485be301530fb54affc75d31160772d55356b6dfb4fd4b2a03bc9c16a323d96407c5489b8d6e0bbfdbc6230e7d
|
7
|
+
data.tar.gz: 0ac56419cbbe45854e05b692b17aad80ea999cc977e33c5a4d8228c6f290742b4a9c6b79a054a879c68cd2de5bc863d4c2c0dc0d2a0eaea23de0318ef6d18efd
|
data/Gemfile.lock
CHANGED
data/lib/wikipedia/page.rb
CHANGED
@@ -45,7 +45,7 @@ module Wikipedia
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def summary
|
48
|
-
|
48
|
+
(page['extract'].split("=="))[0].strip
|
49
49
|
end
|
50
50
|
|
51
51
|
def categories
|
@@ -140,7 +140,7 @@ module Wikipedia
|
|
140
140
|
# create paragraphs
|
141
141
|
sections = s.split("\n\n")
|
142
142
|
if sections.size > 1
|
143
|
-
s = sections.map {|
|
143
|
+
s = sections.map {|paragraph| "<p>#{paragraph.strip}</p>" }.join("\n")
|
144
144
|
end
|
145
145
|
|
146
146
|
s
|
data/lib/wikipedia/version.rb
CHANGED
data/wikipedia-client.gemspec
CHANGED
@@ -10,7 +10,7 @@ spec = Gem::Specification.new do |s|
|
|
10
10
|
|
11
11
|
s.license = 'MIT'
|
12
12
|
s.authors = ["Cyril David", "Ken Pratt", "Mike Haugland", "Aishwarya Subramanian", "Pietro Menna", "Sophie Rapoport"]
|
13
|
-
s.date =
|
13
|
+
s.date = Date.today.to_s
|
14
14
|
s.description = "Ruby client for the Wikipedia API"
|
15
15
|
s.email = "ken@kenpratt.net"
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikipedia-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril David
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-
|
16
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rake
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.5.1
|
174
174
|
signing_key:
|
175
175
|
specification_version: 3
|
176
176
|
summary: Ruby client for the Wikipedia API
|