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: 6b4ff1124edad29a8192cdb4ccefc7c2dc042cbe
4
- data.tar.gz: 63096cb4574c15f7e2d41f520897e1efb8673905
3
+ metadata.gz: b7fed64beb3974d97bc8ab98cccb05c1d50ce919
4
+ data.tar.gz: aeaa6ed7165e69eeb4c4b60035603764567c7b4d
5
5
  SHA512:
6
- metadata.gz: b8090c1ef2adea4906553b5752f04acb51c43ff8b212248b9ea20e358d10cb42567e0f4913abd2052dabcf5f3874f72657a81a6e6580b6f3762c824edbf27b02
7
- data.tar.gz: 5a6f5c878eebaaf95c1197afd114631910883ec7b095b22697c0cadf4e0d3890f335c2754a7fc6e7dd8c35a5191d71d0b8b207ee3f7209ae451bb4860bfe6f1b
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 @epom_key
15
- response = Epom::Placement.get_placement_summary({placementIds: self.epom_id})
16
- @epom_key = response[0]['key']
17
- end
18
- @epom_key
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
@@ -1,3 +1,3 @@
1
1
  module EpomRails
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -65,6 +65,7 @@ class ActsAsPlacementTest < ActiveSupport::TestCase
65
65
 
66
66
  assert placement.save
67
67
  epom_key = placement.epom_key
68
+ epom_key = placement.epom_key
68
69
  assert_equal epom_key, placement.instance_variable_get('@epom_key')
69
70
  end
70
71
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails