restly 0.0.1.beta.6 → 0.0.1.beta.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ class Restly::Associations::Base
25
25
  end
26
26
 
27
27
  def association_class
28
- [@namespace, options[:class_name]].select(&:present?).join('::').constantize
28
+ @association_class ||= [@namespace, options[:class_name]].select(&:present?).join('::').constantize
29
29
  end
30
30
 
31
31
  private
@@ -34,4 +34,4 @@ class Restly::Associations::Base
34
34
  collection? ? association_class.resource_name.pluralize : association_class.resource_name
35
35
  end
36
36
 
37
- end
37
+ end
@@ -76,7 +76,7 @@ module Restly::Base::Instance
76
76
  elsif path_from_response
77
77
  path_from_response
78
78
  elsif send self.finder
79
- [self.class.path, send self.finder].join('/')
79
+ [self.class.path, send(self.finder)].join('/')
80
80
  else
81
81
  self.class.path
82
82
  end
@@ -101,8 +101,9 @@ module Restly::Base::Instance
101
101
  end
102
102
 
103
103
  def path_from_response
104
- return nil unless response
105
104
  response.response.env[:url].try(:path).try(:gsub, /\.\w+$/,'')
105
+ rescue
106
+ nil
106
107
  end
107
108
 
108
109
  def parsed_response(response=self.response)
@@ -117,4 +118,4 @@ module Restly::Base::Instance
117
118
  end
118
119
  end
119
120
 
120
- end
121
+ end
@@ -1,3 +1,3 @@
1
1
  module Restly
2
- VERSION = "0.0.1.beta.6"
2
+ VERSION = "0.0.1.beta.9"
3
3
  end
@@ -6,8 +6,8 @@ require 'restly/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "restly"
8
8
  gem.version = Restly::VERSION
9
- gem.authors = ["Jason Waldrip"]
10
- gem.email = ["jason@waldrip.net"]
9
+ gem.authors = ["Jason Waldrip", "DeLynn Berry", "Ryan Cross", "Mike Zelem"]
10
+ gem.email = ["jason@waldrip.net", "delynn@gmail.com", "rcross@cylence.com", "mzelem@healthagen.net"]
11
11
  gem.description = %q{ An ODM for a RESTful service }
12
12
  gem.summary = %q{ Restly incorporates a ActiveModel based ODM for your REST based service. Think of Restly as a Re-imagination of Rails' ActiveResource }
13
13
  gem.homepage = "http://github.com/jwaldrip/restly"
metadata CHANGED
@@ -1,15 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta.6
4
+ version: 0.0.1.beta.9
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jason Waldrip
9
+ - DeLynn Berry
10
+ - Ryan Cross
11
+ - Mike Zelem
9
12
  autorequire:
10
13
  bindir: bin
11
14
  cert_chain: []
12
- date: 2012-12-07 00:00:00.000000000 Z
15
+ date: 2012-12-13 00:00:00.000000000 Z
13
16
  dependencies:
14
17
  - !ruby/object:Gem::Dependency
15
18
  name: oauth2
@@ -158,6 +161,9 @@ dependencies:
158
161
  description: ! ' An ODM for a RESTful service '
159
162
  email:
160
163
  - jason@waldrip.net
164
+ - delynn@gmail.com
165
+ - rcross@cylence.com
166
+ - mzelem@healthagen.net
161
167
  executables: []
162
168
  extensions: []
163
169
  extra_rdoc_files: []