g5_integrations_updatable 0.0.5 → 0.0.6
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: fa48244c5fb2bd90213fe2861a0a8971615314ee
|
4
|
+
data.tar.gz: 99f93cbc28ec4956a580fbe1a6e4bc25649c0bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb17c176b09a92fde98ec90adce12fa0c7c9064e4768b0252714e22f3c69799c94b3f279d0687d536348641a954eed3289ebbc205e6e120ad02ccdb87b4c98b
|
7
|
+
data.tar.gz: 00d418fc9cf7eb22f3550c7161d7c9217b9d4ad811823a86a206789a02589aec1d3f9c4b51912bd07e410e060f87955a11529bf7fadf68b886347e95e48792b7
|
@@ -7,13 +7,13 @@ module G5IntegrationsUpdatable
|
|
7
7
|
validates :urn, :urn, presence: true
|
8
8
|
|
9
9
|
INVENTORY = 'inventory'
|
10
|
-
|
11
|
-
|
10
|
+
LEAD_RESERVATION = 'lead_reservation'
|
11
|
+
LEAD_INQUIRY = 'lead_inquiry'
|
12
12
|
|
13
13
|
scope :by_strategy_type, -> (vendor_strategy) { where(strategy_type: vendor_strategy) }
|
14
14
|
scope :by_inventory, -> { by_strategy_type(INVENTORY) }
|
15
|
-
scope :
|
16
|
-
scope :
|
15
|
+
scope :by_lead_reservation, -> { by_strategy_type(LEAD_RESERVATION) }
|
16
|
+
scope :by_lead_inquiry, -> { by_strategy_type(LEAD_INQUIRY) }
|
17
17
|
|
18
18
|
def to_param
|
19
19
|
urn
|
@@ -5,7 +5,7 @@ class AddVendorStrategyToLocationSettings < ActiveRecord::Migration
|
|
5
5
|
|
6
6
|
G5IntegrationsUpdatable::LocationSetting.reset_column_information
|
7
7
|
G5IntegrationsUpdatable::LocationSetting.all.each do |location_setting|
|
8
|
-
location_setting.update_attributes(strategy_type: location_setting.vendor_action == 'inventory' ? 'inventory' : '
|
8
|
+
location_setting.update_attributes(strategy_type: location_setting.vendor_action == 'inventory' ? 'inventory' : 'lead_reservation')
|
9
9
|
end
|
10
10
|
|
11
11
|
remove_column :g5_integrations_updatable_location_settings, :vendor_action
|
@@ -13,11 +13,11 @@ FactoryGirl.define do
|
|
13
13
|
job_frequency_in_minutes 5
|
14
14
|
end
|
15
15
|
|
16
|
-
factory :
|
17
|
-
strategy_type { G5IntegrationsUpdatable::LocationSetting::
|
16
|
+
factory :lead_reservation_location_setting, parent: :location_setting do
|
17
|
+
strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_RESERVATION }
|
18
18
|
end
|
19
19
|
|
20
|
-
factory :
|
21
|
-
strategy_type { G5IntegrationsUpdatable::LocationSetting::
|
20
|
+
factory :lead_inquiry_location_setting, parent: :location_setting do
|
21
|
+
strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_INQUIRY }
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_integrations_updatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perry Hertler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|