hungrytable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,10 @@ module Hungrytable
13
13
  details["ns:ErrorID"] == "0"
14
14
  end
15
15
 
16
+ def errors
17
+ details["ns:ErrorMessage"]
18
+ end
19
+
16
20
  def slotlock_id
17
21
  return nil unless successful?
18
22
  details["ns:SlotLockID"]
@@ -1,3 +1,3 @@
1
1
  module Hungrytable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -13,9 +13,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
13
  # Set up minitest
14
14
  MiniTest::Unit.runner = MiniTest::SuiteRunner.new
15
15
  MiniTest::Unit.runner.reporters << MiniTest::Reporters::SpecReporter.new
16
- if ENV['JENKINS']
17
- MiniTest::Unit.runner.reporters << MiniTest::Reporters::JUnitReporter.new
18
- end
19
16
 
20
17
  require 'mocha'
21
18
  require File.expand_path("../../lib/hungrytable.rb", __FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hungrytable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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-07-04 00:00:00.000000000 Z
13
+ date: 2012-07-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  segments:
233
233
  - 0
234
- hash: 392950278143292410
234
+ hash: 2067063869812515903
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  none: false
237
237
  requirements:
@@ -240,11 +240,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  segments:
242
242
  - 0
243
- hash: 392950278143292410
243
+ hash: 2067063869812515903
244
244
  requirements: []
245
245
  rubyforge_project: hungrytable
246
246
  rubygems_version: 1.8.24
247
247
  signing_key:
248
248
  specification_version: 3
249
249
  summary: Gem to interact with OpenTable's REST API
250
- test_files: []
250
+ test_files:
251
+ - test/restaurant_get_details_result.json
252
+ - test/restaurant_search_result.json
253
+ - test/test_helper.rb
254
+ - test/unit/config_test.rb
255
+ - test/unit/get_request_test.rb
256
+ - test/unit/hungrytable/user_test.rb
257
+ - test/unit/post_request_test.rb
258
+ - test/unit/request_test.rb
259
+ - test/unit/reservation_cancel_test.rb
260
+ - test/unit/reservation_make_test.rb
261
+ - test/unit/restaurant_search_test.rb
262
+ - test/unit/restaurant_slotlock_test.rb
263
+ - test/unit/restaurant_test.rb
264
+ - test/user_login_result.json