rets 0.3.0.rc.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rets/client.rb CHANGED
@@ -339,6 +339,8 @@ EOF
339
339
  def handle_response(response)
340
340
  if Net::HTTPSuccess === response
341
341
  ErrorChecker.check(response)
342
+ elsif Net::HTTPUnauthorized === response
343
+ raise AuthorizationFailure, "Authorization failed, check credentials?"
342
344
  else
343
345
  raise UnknownResponse, "Unable to handle response #{response.class}"
344
346
  end
@@ -46,8 +46,10 @@ module Rets
46
46
  attr_accessor :name
47
47
  attr_accessor :interpretation
48
48
  attr_accessor :long_name
49
+ attr_accessor :table_fragment
49
50
 
50
51
  def initialize(table_fragment, resource)
52
+ self.table_fragment = table_fragment
51
53
  self.resource = resource
52
54
  self.name = table_fragment["SystemName"]
53
55
  self.interpretation = table_fragment["Interpretation"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.rc.3
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-01 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-http-persistent