cfoundry 0.3.5 → 0.3.6

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.
@@ -195,7 +195,10 @@ module CFoundry::V2
195
195
  end
196
196
 
197
197
  define_method(:"make_#{singular}") do |json|
198
- CFoundry::V2.const_get(klass).new(json[:metadata][:guid], self, json)
198
+ CFoundry::V2.const_get(klass).new(
199
+ json[:metadata][:guid],
200
+ self,
201
+ json)
199
202
  end
200
203
  end
201
204
 
@@ -51,7 +51,7 @@ module CFoundry::V2
51
51
  singular = plural.to_s.sub(/s$/, "").to_sym
52
52
 
53
53
  object = opts[:as] || singular
54
- plural_object = object.to_s.sub(/s$/, "").to_sym
54
+ plural_object = :"#{object}s"
55
55
 
56
56
  define_method(plural) {
57
57
  if manifest[:entity].key? plural
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-16 00:00:00 Z
18
+ date: 2012-07-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client