hungrytable-pjc 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/.DS_Store ADDED
Binary file
@@ -3,19 +3,20 @@ module Hungrytable
3
3
  extend self
4
4
 
5
5
  def partner_id
6
- ENV['OT_PARTNER_ID'] || config_error('OT_PARTNER_ID')
6
+ ENV['OT_PARTNER_ID'] || TOPTABLE_PARTNER_ID || config_error('OT_PARTNER_ID')
7
7
  end
8
8
 
9
9
  def oauth_key
10
- ENV['OT_OAUTH_KEY'] || config_error('OT_OAUTH_KEY')
10
+ ENV['OT_OAUTH_KEY'] || TOPTABLE_CONSUMER_KEY || config_error('OT_OAUTH_KEY')
11
11
  end
12
12
 
13
13
  def oauth_secret
14
- ENV['OT_OAUTH_SECRET'] || config_error('OT_OAUTH_SECRET')
14
+ ENV['OT_OAUTH_SECRET'] || TOPTABLE_CONSUMER_SECRET || config_error('OT_OAUTH_SECRET')
15
15
  end
16
16
 
17
17
  def base_url
18
- 'https://secure.opentable.com/api/otapi_v2.ashx'
18
+ 'https://toptable.co.uk/api/otapi_v2.ashx'
19
+ #'https://secure.opentable.com/api/otapi_v2.ashx'
19
20
  end
20
21
 
21
22
  private
@@ -1,3 +1,3 @@
1
1
  module Hungrytable
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hungrytable-pjc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-17 00:00:00.000000000 Z
13
+ date: 2012-12-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -189,6 +189,7 @@ files:
189
189
  - RELEASE_NOTES.md
190
190
  - Rakefile
191
191
  - hungrytable.gemspec
192
+ - lib/.DS_Store
192
193
  - lib/hungrytable.rb
193
194
  - lib/hungrytable/config.rb
194
195
  - lib/hungrytable/get_request.rb