aptible-rails 0.6.3 → 0.6.4

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: 75a09566abb865be5c98c5b54c13f1cda1c4948f
4
- data.tar.gz: 7342ba173262ef6c3b547cf0c8aebb84741b07a7
3
+ metadata.gz: 3d75095a31c6bc5ace1897afa019c96c617d394f
4
+ data.tar.gz: 588c7936341c72c31dee4a4df35a8a6679e7136c
5
5
  SHA512:
6
- metadata.gz: 17b2dd768848963ce7e9bc43396a6b1f52abd8e7f3d8c57355b8e08d0d9fb991ffb9694630b1e0ec08d182e63c0c7afc207a642b639fcef5bd5a304219ab48d4
7
- data.tar.gz: a8ffbdbc87a1f2dff869b04c447c884f67c48015677158918dba21f2ffc568092f44712039c8be4ca1329bef04d4485e1bf81fb95f299c8aa5bae83db06abf2d
6
+ metadata.gz: 654d3a530c43fc80a67ea614e0e6e68696df445af0f08d2b7949aa53e255ffe09d8a2f8bb096df7f1ac27ce56073a841bf6192dcc13c6f738afef6dcacec33e7
7
+ data.tar.gz: ebf45438e77378d1056bb54eeacf813a42dacfc388eb7e84fd53a41b6820e5d9d5e6831a9f004f9a0f244ae4bf63570f9ca8fef3a540471abaa50925167922fb
@@ -14,4 +14,21 @@ class AccountDecorator < ApplicationDecorator
14
14
  cached_permissions.map(&:scope).include? scope
15
15
  end
16
16
  # rubocop:enable PredicateName
17
+
18
+ def syslog_drain_host
19
+ drain = syslog_drain
20
+ drain.drain_host if drain
21
+ end
22
+
23
+ def syslog_drain_port
24
+ drain = syslog_drain
25
+ drain.drain_port if drain
26
+ end
27
+
28
+ def syslog_drain
29
+ drains = (object.log_drains || []).select do |d|
30
+ d.drain_type == 'syslog_tls_tcp'
31
+ end
32
+ drains.first unless drains.empty?
33
+ end
17
34
  end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Rails
3
- VERSION = '0.6.3'
3
+ VERSION = '0.6.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-26 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.2.2
222
+ rubygems_version: 2.0.14
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Rails helpers for Aptible service applications