romato 0.1.1 → 0.1.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: 03cc218a341d1d90270d5e3a2d2c5f76505f1558
4
- data.tar.gz: d2f0e95174be7292cffe8ea7ef8fd18d9e3c25ef
3
+ metadata.gz: ab1d7bb30b7d963c81d587348ed0d733efa8401f
4
+ data.tar.gz: d612c4ac8e66874c547d0a814e80abc28ff63581
5
5
  SHA512:
6
- metadata.gz: 08f1bffe7fd97e0b046e6fb729869fe424665cb9ac2fb04477d45087b2ab6d30f1cfda4e185d1b2f131852ae9e1775a8d51d22e5242d22fe73bda6a1a875c906
7
- data.tar.gz: 192e7227f2180481e02a7de9f103f67b871a5a37243b94a4c80016bce3d5f53faa45612720b96ff4d03fee521b6eab686f0fb8d6fc0b130d3aef6ab8226cf900
6
+ metadata.gz: 7e27c632b4932fa2d993c7d1aa87511aa66b7a782df2ba68ff24cff030fda281acc928a261f12bf1f3eecc016b4fb571ac023388c7990360049e7a7a937ad861
7
+ data.tar.gz: 04bbc31a545464129c124f942946201d0fd0b09ea18c28b61f0e992b0d3ba120ce9dfb6b2a31f8bb53b24e1b8344173e21c8a42b30c482c767b043cf3332ffa4
data/README.md CHANGED
@@ -1,28 +1,39 @@
1
+ ![alt tag](http://kyle-annen.github.io/rubylogosmall.png)
2
+
3
+ # Romato - Zomato API Wrapper for Ruby
4
+
5
+ A simple api wrapper for Zomato API, all methods coorelate to the API definitions in the Zomato API documentation: https://developers.zomato.com/documentation.
6
+
1
7
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
2
8
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
9
  **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4
10
 
5
- - [Romato - Zomato API Wrapper for Ruby](#romato---zomato-api-wrapper-for-ruby)
6
- - [Installation](#installation)
7
- - [Usage](#usage)
8
- - [Initialization](#initialization)
9
- - [Romato::Zomato.new()](#romatozomatonew)
10
- - [Methods](#methods)
11
- - [Common Methods (as defined by Zomato API)](#common-methods-as-defined-by-zomato-api)
12
- - [Romato::Zomato.get_categories()](#romatozomatoget_categories)
13
- - [Romato::Zomato.get_cities(options)](#romatozomatoget_citiesoptions)
14
- - [Romato::Zomato.get_collections(options)](#romatozomatoget_collectionsoptions)
15
- - [Romato::Zomato.get_cuisines()](#romatozomatoget_cuisines)
16
- - [Development](#development)
17
- - [Contributing](#contributing)
18
- - [License](#license)
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Initialization](#initialization)
14
+ - [Romato::Zomato.new()](#romatozomatonew)
15
+ - [Methods](#methods)
16
+ - [Common Methods (as defined by Zomato API)](#common-methods-as-defined-by-zomato-api)
17
+ - [Romato::Zomato.get_categories()](#romatozomatoget_categories)
18
+ - [Romato::Zomato.get_cities()](#romatozomatoget_cities)
19
+ - [Romato::Zomato.get_collections()](#romatozomatoget_collections)
20
+ - [Romato::Zomato.get_cuisines()](#romatozomatoget_cuisines)
21
+ - [Romato::Zomato.get_establishments()](#romatozomatoget_establishments)
22
+ - [Romato::Zomato.get_geocode()](#romatozomatoget_geocode)
23
+ - [Location Methods (as defined by Zomato API)](#location-methods-as-defined-by-zomato-api)
24
+ - [Romato::Zomato.get_location_details()](#romatozomatoget_location_details)
25
+ - [Romato::Zomato.get_locations()](#romatozomatoget_locations)
26
+ - [Restaurant Methods (as defined by Zomato API)](#restaurant-methods-as-defined-by-zomato-api)
27
+ - [Romato::Zomato.get_daily_menu()](#romatozomatoget_daily_menu)
28
+ - [Romato::Zomato.get_restaurant()](#romatozomatoget_restaurant)
29
+ - [Romato::Zomato.get_reviews()](#romatozomatoget_reviews)
30
+ - [Romato::Zomato.search()](#romatozomatosearch)
31
+ - [Development](#development)
32
+ - [Contributing](#contributing)
33
+ - [License](#license)
19
34
 
20
35
  <!-- END doctoc generated TOC please keep comment here to allow auto update -->
21
36
 
22
- # Romato - Zomato API Wrapper for Ruby
23
-
24
- A simple api wrapper for Zomato API, all methods coorelate to the API definitions in the Zomato API documentation: https://developers.zomato.com/documentation.
25
-
26
37
  ## Installation
27
38
 
28
39
  Add this line to your application's Gemfile:
@@ -90,7 +101,7 @@ Categories will be accessible through the class variable `categories`
90
101
 
91
102
  `zomato_instance.categories`
92
103
 
93
- #### Romato::Zomato.get_cities(options)
104
+ #### Romato::Zomato.get_cities()
94
105
 
95
106
  View API documentation here: https://developers.zomato.com/documentation#!/common/cities
96
107
 
@@ -139,7 +150,7 @@ Access through class variable `cities`
139
150
  }
140
151
  ```
141
152
 
142
- #### Romato::Zomato.get_collections(options)
153
+ #### Romato::Zomato.get_collections()
143
154
 
144
155
  View API documentation here: https://developers.zomato.com/documentation#!/common/collections
145
156
 
@@ -451,7 +462,7 @@ Access through class variable `daily_menu`
451
462
  "R" => {
452
463
  "res_id" => 16717368
453
464
  },
454
- "apikey" => "f47a72ab00afe64aab78b9919ee3d427",
465
+ "apikey" => "APIKEY",
455
466
  "id" => "16717368",
456
467
  "name" => "Canlis",
457
468
  "url" => "https://www.zomato.com/seattle/canlis-westlake?utm_source=api_basic_user&utm_medium=api&utm_campaign=v2.1",
@@ -507,7 +518,7 @@ Access through class variable `restaurant`
507
518
  "R" => {
508
519
  "res_id" => 16717368
509
520
  },
510
- "apikey" => "f47a72ab00afe64aab78b9919ee3d427",
521
+ "apikey" => "APIKEY",
511
522
  "id" => "16717368",
512
523
  "name" => "Canlis",
513
524
  "url" => "https://www.zomato.com/seattle/canlis-westlake?utm_source=api_basic_user&utm_medium=api&utm_campaign=v2.1",
@@ -620,6 +631,8 @@ Usage `zomato_instance.get_search( { entity_id: "279", cuisines: "997" } )`
620
631
  Access through class variable `search`
621
632
 
622
633
  `zomato_instance.search`
634
+
635
+ ```ruby
623
636
  {
624
637
  "results_found": 1232547,
625
638
  "results_start": 0,
@@ -630,7 +643,7 @@ Access through class variable `search`
630
643
  "R": {
631
644
  "res_id": 50474
632
645
  },
633
- "apikey": "f47a72ab00afe64aab78b9919ee3d427",
646
+ "apikey": "APIKEY",
634
647
  "id": "50474",
635
648
  "name": "Empire Restaurant",
636
649
  "url": "https://www.zomato.com/bangalore/empire-restaurant-koramangala-5th-block?utm_source=api_basic_user&utm_medium=api&utm_campaign=v2.1",
@@ -642,7 +655,7 @@ Access through class variable `search`
642
655
  "latitude": "12.9348880271",
643
656
  "longitude": "77.6160025969",
644
657
  ...
645
- ```ruby
658
+ ```
646
659
 
647
660
  ## Development
648
661
 
@@ -241,7 +241,7 @@ module Romato
241
241
  l = options.key?(:category) ? "&category=#{options[:category]}" : ""
242
242
  m = options.key?(:sort) ? "&sort=#{options[:sort]}" : ""
243
243
  n = options.key?(:order) ? "&order=#{options[:order]}" : ""
244
- zomato_search_url = a + b + c + d + e + f + g + h + i + j + k + l + m + n
244
+ zomato_search_url = url_base + a + b + c + d + e + f + g + h + i + j + k + l + m + n
245
245
 
246
246
  response = HTTParty.get(zomato_search_url, headers: @headers)
247
247
 
@@ -252,4 +252,4 @@ module Romato
252
252
  end
253
253
  end
254
254
  end
255
- end
255
+ end
@@ -1,3 +1,3 @@
1
1
  module Romato
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Annen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.5.1
169
+ rubygems_version: 2.6.8
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Romato is an API wrapper for Zomato API v2.1.