wikipedia-client 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -27,7 +27,7 @@ module Wikipedia
27
27
  def request_page( title, options = {} )
28
28
  request( {
29
29
  :action => "query",
30
- :prop => %w{ revisions links images categories },
30
+ :prop => %w{ revisions links images categories coordinates },
31
31
  :rvprop => "content",
32
32
  :titles => title
33
33
  }.merge( options ) )
@@ -59,7 +59,11 @@ module Wikipedia
59
59
 
60
60
  def image_descriptionurl
61
61
  page['imageinfo'].first['descriptionurl'] if page['imageinfo']
62
- end
62
+ end
63
+
64
+ def coordinates
65
+ page['coordinates'].first.values if page['coordinates']
66
+ end
63
67
 
64
68
  def raw_data
65
69
  @data
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wikipedia-client"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril David", "Ken Pratt", "Mike Haugland"]
12
- s.date = "2013-06-22"
12
+ s.date = "2013-06-26"
13
13
  s.description = "Ruby client for the Wikipedia API"
14
14
  s.email = "mike.haugland@gmail.com"
15
15
  s.extra_rdoc_files = [
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.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-22 00:00:00.000000000 Z
14
+ date: 2013-06-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thoughtbot-shoulda