openstax_salesforce 7.4.0 → 7.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6c58987e3047911c932a8b2393947f31955bc141dd52e9e3701159c3cc64715
|
|
4
|
+
data.tar.gz: 94720471e872005d8f9b2b818b68f416b6523bac4153664ad784d7d586e35f7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2058e9d0ebabdfeaa9b991b6e29172ae8c5c703d1107d792f55cc474cf0e6b131302297f338f573d9a150e041aa216bc242772c3926c8cab1e12ee70d2d3e25
|
|
7
|
+
data.tar.gz: 463222c52dc42c1fe74e9c25eb27c81c9d53d5a93fdd02fb73487d03e341e2df4da66659a95ddf3d10cbc5f688af4bdf821ef647ede005491be45a6174fe2b40
|
|
@@ -8,9 +8,6 @@ module OpenStax
|
|
|
8
8
|
belongs_to :contact, foreign_key: :salesforce_contact_id, model: OpenStax::Salesforce::Remote::Contact
|
|
9
9
|
belongs_to :lead, foreign_key: :salesforce_lead_id, model: OpenStax::Salesforce::Remote::Lead
|
|
10
10
|
|
|
11
|
-
VALID_ROLE_NAME = %w[Unknown Instructor Student].freeze
|
|
12
|
-
VALID_ENV_NAME = %w[production staging qa dev local].freeze
|
|
13
|
-
|
|
14
11
|
field :id, from: 'Id'
|
|
15
12
|
field :account_id, from: 'Account_ID__c'
|
|
16
13
|
field :account_uuid, from: 'Account_UUID__c'
|
|
@@ -20,24 +17,6 @@ module OpenStax
|
|
|
20
17
|
field :signup_date, from: 'Signup_Date__c', as: :datetime
|
|
21
18
|
field :account_environment, from: 'Environment__c'
|
|
22
19
|
|
|
23
|
-
validates(
|
|
24
|
-
:account_role,
|
|
25
|
-
allow_blank: false,
|
|
26
|
-
inclusion: {
|
|
27
|
-
in: VALID_ROLE_NAME,
|
|
28
|
-
message: "must be either #{VALID_ROLE_NAME.join(' or ')}"
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
validates(
|
|
33
|
-
:account_environment,
|
|
34
|
-
allow_blank: false,
|
|
35
|
-
inclusion: {
|
|
36
|
-
in: VALID_ENV_NAME,
|
|
37
|
-
message: "must be either #{VALID_ENV_NAME.join(' or ')}"
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
|
|
41
20
|
self.table_name = 'OpenStax_Account__c'
|
|
42
21
|
end
|
|
43
22
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstax_salesforce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.4.
|
|
4
|
+
version: 7.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JP Slavinsky
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2022-03-
|
|
13
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|