wikipedia-client 1.6.1 → 1.6.2

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: 090668f5915b9abd761c0fe9d56c78fbe0256ce2
4
- data.tar.gz: 1dd3784a3b1037bd339276aeaeca838cbc173706
3
+ metadata.gz: 4627596258c90098e74ad178255a16d25d58e2e5
4
+ data.tar.gz: 4fabc78ed70d973802c85ba22e82b527cb962e95
5
5
  SHA512:
6
- metadata.gz: 17c3a86c983353487bd6a6b8b03ef8f77977c8c33b7637da09c277019e13c32132560bb688b46fb64a777b901406ea85b652b34df103665e432fd94afc897898
7
- data.tar.gz: 7b01485a0265a17092e0f4215772206db97b9cb73760d8b040e8be29cde7ed646f3154c57e1cf8bd5d0057e695290768c153797e6c86f58c9b1bfdb1bcde22af
6
+ metadata.gz: 6112ad939242930a1d5f540e6eb69fdd56708c485be301530fb54affc75d31160772d55356b6dfb4fd4b2a03bc9c16a323d96407c5489b8d6e0bbfdbc6230e7d
7
+ data.tar.gz: 0ac56419cbbe45854e05b692b17aad80ea999cc977e33c5a4d8228c6f290742b4a9c6b79a054a879c68cd2de5bc863d4c2c0dc0d2a0eaea23de0318ef6d18efd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikipedia-client (1.6.1)
4
+ wikipedia-client (1.6.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  wikipedia-client!
72
72
 
73
73
  BUNDLED WITH
74
- 1.10.5
74
+ 1.11.2
@@ -45,7 +45,7 @@ module Wikipedia
45
45
  end
46
46
 
47
47
  def summary
48
- s = (page['extract'].split(pattern="=="))[0].strip
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 {|s| "<p>#{s.strip}</p>" }.join("\n")
143
+ s = sections.map {|paragraph| "<p>#{paragraph.strip}</p>" }.join("\n")
144
144
  end
145
145
 
146
146
  s
@@ -1,3 +1,3 @@
1
1
  module Wikipedia
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
@@ -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 = "2016-01-03"
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.1
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-01-03 00:00:00.000000000 Z
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.4.5.1
173
+ rubygems_version: 2.5.1
174
174
  signing_key:
175
175
  specification_version: 3
176
176
  summary: Ruby client for the Wikipedia API