epom_rails 1.4.0 → 1.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7fed64beb3974d97bc8ab98cccb05c1d50ce919
|
4
|
+
data.tar.gz: aeaa6ed7165e69eeb4c4b60035603764567c7b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fa20b7799a07321cbb41eea58d3e4ca2a2230627653e9525b65e5f604d79f1990551af4250a0a8304c97ed01c361051d4da9f54fe9c6d964bb853ad752e2cd3
|
7
|
+
data.tar.gz: 82d1e6fa85c13c1f67739f0d97c1c24568114569d19fb274d7da3e0f2b03a774b8f9acae95c53e5428a6f758c3bcb46ac3f643120429bbc582911cc63b7ec893
|
@@ -11,11 +11,13 @@ class ActiveRecord::Base
|
|
11
11
|
def self.define_key_method
|
12
12
|
self.class_eval do
|
13
13
|
def epom_key
|
14
|
-
unless
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
unless EpomRails.config.offline
|
15
|
+
unless @epom_key
|
16
|
+
response = Epom::Placement.get_placement_summary({placementIds: self.epom_id})
|
17
|
+
@epom_key = response[0]['key']
|
18
|
+
end
|
19
|
+
@epom_key
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
data/lib/epom_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epom_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|