facebook_places 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed44bcbdf9157082b9014862aca284c3d0506754
4
- data.tar.gz: 691b6fd44f7f4899f59c39edd47bb56d1e19da6a
3
+ metadata.gz: b9c821724902f19b480e4d41f55680e364b4e135
4
+ data.tar.gz: 4d1966a08ed0ac3aaaa3bcb01a3e3e73f600be2e
5
5
  SHA512:
6
- metadata.gz: 27faac1be0f55207240343436ceba0b9c511daf231112e1c3a7fc3e2b30b3c5babbd4fb728c7facc096a82aa76a7b4e46be0bc58daceae5d2c1596f087e1c6f1
7
- data.tar.gz: 7efc223f95cf5022c2ac088a9a2efdb1e515d383b7dc971e29fc094b189dbd5cbfde6bd967e937cba76118f2bb4390b67e196de6684f17c65b9af2a041c8325f
6
+ metadata.gz: a158db5bd859f5bfe390de6c55a2285ad2485f7503e8d9063e5f18a33a34f77a45a0cd6864551b8ca03f4bd3660638f849ec59d11bb9a0bd559708cb1b680e17
7
+ data.tar.gz: 55df2f165b8fc5571b06222b36df61380971b2ff757ecd93c74ef991c2336c49107753cfc8f82bd3666ae62f418431bb54d232b7cb1c18611b4d9de1d373526e
data/README.md CHANGED
@@ -40,6 +40,7 @@ results = client.search(options)
40
40
 
41
41
  | option | Description |
42
42
  |------------|-------------|
43
+ | q | The name of the place to search for.|
43
44
  | center | The coordinates for the center of the search, in the format: [latitude],[longitude]; e.g., "140.7307,-73.9918".|
44
45
  | fields | An array of [Place fields](https://developers.facebook.com/docs/places/fields) |
45
46
  | distance | The maximum distance from the center, in meters. This parameter can only be used in conjunction with center. |
@@ -7,8 +7,8 @@ require 'facebook_places/version'
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'facebook_places'
9
9
  spec.version = FacebookPlaces::VERSION
10
- spec.authors = ['Mohamed Diaa', 'Abanoub Aziz']
11
- spec.email = ['mohamed.diaa27@gmail.com', 'abanoub.aziz92@gmail.com']
10
+ spec.authors = ['Mohamed Diaa', 'Abanoub Aziz', 'Ramy Aboul Naga']
11
+ spec.email = ['mohamed.diaa27@gmail.com', 'abanoub.aziz92@gmail.com', 'ramy.naga@gmail.com']
12
12
 
13
13
  spec.summary = 'A simple wrapper for Facebook Places APIs'
14
14
  spec.homepage = 'https://github.com/mohameddiaa27/facebook_places'
@@ -17,13 +17,14 @@ module FacebookPlaces
17
17
  Place.find(place_id, options: options)
18
18
  end
19
19
 
20
- def search(center: '', q: '', distance: '', categories: [], fields: [])
20
+ def search(center: '', q: '', distance: '', categories: [], fields: [], limit: 25)
21
21
  options = {
22
22
  q: q,
23
23
  fields: fields.join(','),
24
24
  center: center,
25
25
  distance: distance,
26
26
  'categories[]' => categories,
27
+ limit: limit,
27
28
  access_token: access_token
28
29
  }
29
30
  Place.search(options)
@@ -1,3 +1,3 @@
1
1
  module FacebookPlaces
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook_places
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed Diaa
8
8
  - Abanoub Aziz
9
+ - Ramy Aboul Naga
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2017-04-25 00:00:00.000000000 Z
13
+ date: 2017-06-12 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: recursive-open-struct
@@ -141,6 +142,7 @@ description:
141
142
  email:
142
143
  - mohamed.diaa27@gmail.com
143
144
  - abanoub.aziz92@gmail.com
145
+ - ramy.naga@gmail.com
144
146
  executables: []
145
147
  extensions: []
146
148
  extra_rdoc_files: []