escobar 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f3dfeb14f7fa6047a24e3370400d543c001a13f
4
- data.tar.gz: a3d0b58deb63550a59246488c858819b789bdc3c
3
+ metadata.gz: 6690baeea4ab9da1066839dccd231f41e5e0895c
4
+ data.tar.gz: e2663c8b3739197c48cd3999d4a8ed1d2543fdaf
5
5
  SHA512:
6
- metadata.gz: 63dd447a41143f2c6a45e5f99bc7ed557d89f1ef46cb080de9c02f44ea8b300d3f45b683e077ef7cf6e7ffc452fc395f53c56fd68d2d5d01dfa9bf6473b3bc6e
7
- data.tar.gz: 296aae0ef9b76318ee19edb88e97d4bf242d14c1885a56e26f6b3dd84aa038aed6ffb96551e0aa81f6d004d8ad8b726fad5b294d6d6121789576dcae933b02d6
6
+ metadata.gz: d98221a958cae10d5108155bd0c777517470272c43c0cee2a8c493886eac7340ee7d2607df2cb7390f4cf8751ed94cfb1897cbd45369754d0d066a14ce219354
7
+ data.tar.gz: 71552446ff413724bb9a759a80d5a6f4e93cc176922a44e7d130f6d3e16de8216f4acc5596243f77d31dfce8aa7f9d69a38e4dea0b3c1917065b71fdfda47692
@@ -17,6 +17,12 @@ module Escobar
17
17
  @info ||= client.heroku.get("/apps/#{app_id}/dynos")
18
18
  end
19
19
 
20
+ def running?(release_id)
21
+ info.all? do |dyno|
22
+ dyno["release"]["id"] == release_id && dyno["state"] == "up"
23
+ end
24
+ end
25
+
20
26
  def newer_than?(epoch)
21
27
  info.all? do |dyno|
22
28
  epoch < Time.parse(dyno["created_at"]).utc
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.3.10".freeze
2
+ VERSION = "0.3.11".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday