g5_foundation_client 0.0.11 → 0.0.12

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: 8aee7ab51c48a451cbd70077ccb71498c7cc5a58
4
- data.tar.gz: 93d62006584c1182df61bf629b1917306380770e
3
+ metadata.gz: 2c378d986a14681eda34c3c3b37b95e0122f67c3
4
+ data.tar.gz: ed962e0c317bccff5bb00500b4329cefe0af2efa
5
5
  SHA512:
6
- metadata.gz: a18a6405d54f52cbca6a0440166c3b702e54f548508f4c06bbd0be54ba0e4238f6c43b06d6b13766fc604ca8078b96fcb836584e1f1f21105a03dd78dca698d8
7
- data.tar.gz: 52670bc61ce13789bbbff117cf20782389aac1faf80d87675766e15b2503ab2a7615eb5e73487e13b1b8d91b1b8ce52328af899e16db9d394362eb8f19beb114
6
+ metadata.gz: 0d868f7739a7b473260b4e532ebb0790d2c6bb9b6c9ec0cf0142628b9c78bf0086f85e068901a3be3e518cd3302cc1dfb5c1c6d06b451a86bb80e289b3dd14fb
7
+ data.tar.gz: 585136c329f697c946aa9430ece2a4d0b73a306d132cafb398a7fa6122c7d19f327c4d90076ef61ca9bc06d4ed41292f445ddae341cc15a98eae9e9d2b9968cb
@@ -19,7 +19,7 @@ class G5FoundationClient::IntegrationSetting
19
19
  'inventory' == self.vendor_action
20
20
  end
21
21
 
22
- [:vendor_action, :strategy_name, :vendor_endpoint, :vendor_user_name, :vendor_password].each do |field|
22
+ [:job_frequency_in_minutes, :vendor_action, :strategy_name, :vendor_endpoint, :vendor_user_name, :vendor_password].each do |field|
23
23
  define_method(field) { self.integration_setting_hash[field] }
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module G5FoundationClient
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
@@ -4,6 +4,7 @@ describe G5FoundationClient::IntegrationSetting do
4
4
  before { G5FoundationClient.access_token = 'token' }
5
5
 
6
6
  describe 'instantiating with a hash' do
7
+ let(:job_frequency_in_minutes) { 60 }
7
8
  let(:service_url) { 'http://inventory.service.example.com' }
8
9
  let(:location) { 'location' }
9
10
  let(:strategy_name) { 'Centershift' }
@@ -12,17 +13,19 @@ describe G5FoundationClient::IntegrationSetting do
12
13
  let(:vendor_password) { 'pw' }
13
14
  let(:vendor_action) { 'inventory' }
14
15
  let(:custom_integration_settings) { {foo: 'bar'} }
15
- let(:init_hash) { {service_url: service_url,
16
- location: location,
17
- strategy_name: strategy_name,
18
- vendor_endpoint: vendor_endpoint,
19
- vendor_user_name: vendor_user_name,
20
- vendor_password: vendor_password,
21
- vendor_action: 'inventory'
16
+ let(:init_hash) { {service_url: service_url,
17
+ location: location,
18
+ job_frequency_in_minutes: job_frequency_in_minutes,
19
+ strategy_name: strategy_name,
20
+ vendor_endpoint: vendor_endpoint,
21
+ vendor_user_name: vendor_user_name,
22
+ vendor_password: vendor_password,
23
+ vendor_action: 'inventory'
22
24
  } }
23
25
 
24
26
  subject { G5FoundationClient::IntegrationSetting.new(init_hash) }
25
27
 
28
+ its(:job_frequency_in_minutes) { should eql(job_frequency_in_minutes) }
26
29
  its(:location) { should eql(location) }
27
30
  its(:vendor_action) { should eql(vendor_action) }
28
31
  its(:vendor_endpoint) { should eql(vendor_endpoint) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_foundation_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Petersen