cfoundry 0.3.40 → 0.3.41

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.
@@ -44,6 +44,12 @@ module CFoundry::V2
44
44
  end
45
45
  end
46
46
 
47
+ def crashes
48
+ @client.base.crashes(@guid).collect do |m|
49
+ Instance.new(self, m[:instance], @client, m)
50
+ end
51
+ end
52
+
47
53
  def stats
48
54
  stats = {}
49
55
 
@@ -270,7 +276,9 @@ module CFoundry::V2
270
276
  alias_method :status, :state
271
277
 
272
278
  def since
273
- Time.at(@manifest[:since])
279
+ if since = @manifest[:since]
280
+ Time.at(@manifest[:since])
281
+ end
274
282
  end
275
283
 
276
284
  def debugger
@@ -104,6 +104,10 @@ module CFoundry::V2
104
104
  get("v2", "apps", guid, "instances", nil => :json)
105
105
  end
106
106
 
107
+ def crashes(guid)
108
+ get("v2", "apps", guid, "crashes", nil => :json)
109
+ end
110
+
107
111
  def stats(guid)
108
112
  get("v2", "apps", guid, "stats", nil => :json)
109
113
  end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.40"
3
+ VERSION = "0.3.41"
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: 67
4
+ hash: 65
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 40
10
- version: 0.3.40
9
+ - 41
10
+ version: 0.3.41
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-10-05 00:00:00 Z
18
+ date: 2012-10-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client