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: 1176226737a2c0a538e6c503dd32d8c4da191722
4
- data.tar.gz: eb74ec108b48fe2ebe87101f8b0d9118921166e5
3
+ metadata.gz: fa48244c5fb2bd90213fe2861a0a8971615314ee
4
+ data.tar.gz: 99f93cbc28ec4956a580fbe1a6e4bc25649c0bd4
5
5
  SHA512:
6
- metadata.gz: debd751c530d4a020069194c347dc1b51f434fd54f04bdea2cfa53794a3ecf21101fe925661f48c7db26ce069d728db4b0fd1ca720bcf81bef030622cfe8f1a2
7
- data.tar.gz: 3103c29c3507af84fdfa488e345b291939dfcdeb484996d1b917795e56a04526f643eb85079b24bb3df3abf6133f8d40179373a128aac3ef17f2d4425a5f140f
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
- LEAD_RESERVE = 'lead_reserve'
11
- LEAD_QUOTE = 'lead_quote'
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 :by_lead_reserve, -> { by_strategy_type(LEAD_RESERVE) }
16
- scope :by_lead_quote, -> { by_strategy_type(LEAD_QUOTE) }
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' : 'lead_reserve')
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 :lead_reserve_location_setting, parent: :location_setting do
17
- strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_RESERVE }
16
+ factory :lead_reservation_location_setting, parent: :location_setting do
17
+ strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_RESERVATION }
18
18
  end
19
19
 
20
- factory :lead_quote_location_setting, parent: :location_setting do
21
- strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_QUOTE }
20
+ factory :lead_inquiry_location_setting, parent: :location_setting do
21
+ strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_INQUIRY }
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module G5IntegrationsUpdatable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  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.5
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-01 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: rails