openstax_salesforce 4.5.1 → 4.6.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e49f7433c245b127cb15200aca14c23965bf14ed29ffb65bf49a9dc9798b68
|
4
|
+
data.tar.gz: cf50dba41cc23fc8d4e256e1c9d405cc3e12f5a01886dbe52f2f980ae0b9936d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2258918e5239be539b299cc9f1ba9f413fa37c67387f0977ac8b585bdaf0018d9fe7facd6b7d8988dbf1999d1f9cfd2c1604c47f1dac23bc48d253c14c75563c
|
7
|
+
data.tar.gz: ef1e671742ea1edb2d7c87ac83e9ab511b2d3d085c5ccb83b48d8d3af393f53e92a7e8af9d8a329035d346ca8154dd7cc733217cf3c016f49caf6a449efc87d2
|
@@ -8,18 +8,6 @@ module OpenStax::Salesforce::Remote
|
|
8
8
|
no_faculty_info
|
9
9
|
].freeze
|
10
10
|
|
11
|
-
VALID_ROLES = %w[
|
12
|
-
student
|
13
|
-
instructor
|
14
|
-
faculty
|
15
|
-
other
|
16
|
-
administrator
|
17
|
-
librarian
|
18
|
-
adjunct\ faculty
|
19
|
-
instructional\ designer
|
20
|
-
home\ school\ teacher
|
21
|
-
].freeze
|
22
|
-
|
23
11
|
VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
|
24
12
|
|
25
13
|
field :name, from: "Name"
|
@@ -45,15 +33,6 @@ module OpenStax::Salesforce::Remote
|
|
45
33
|
field :verification_status, from: "FV_Status__c"
|
46
34
|
field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
|
47
35
|
|
48
|
-
validates(
|
49
|
-
:role,
|
50
|
-
allow_blank: true,
|
51
|
-
inclusion: {
|
52
|
-
in: VALID_ROLES,
|
53
|
-
message: "must be either #{VALID_ROLES.join(' or ')}"
|
54
|
-
}
|
55
|
-
)
|
56
|
-
|
57
36
|
validates(:last_name, presence: true)
|
58
37
|
validates(:school, presence: true)
|
59
38
|
validates(
|
@@ -4,6 +4,18 @@ module OpenStax::Salesforce::Remote
|
|
4
4
|
field :book_name, from: "Book_Text__c"
|
5
5
|
field :contact_id, from: "Contact__c"
|
6
6
|
field :new, from: "New__c", as: :boolean
|
7
|
+
field :close_date, from: "CloseDate", as: :datetime
|
8
|
+
field :stage_name, from: "StageName"
|
9
|
+
field :type, from: "Type"
|
10
|
+
field :number_of_students, from: "Students__c"
|
11
|
+
field :student_number_status, from: "Student_No_Status__c"
|
12
|
+
field :time_period, from: "Time_Period__c"
|
13
|
+
field :class_start_date, from: "Class_Start_Date__c", as: :datetime
|
14
|
+
field :school_id, from: "AccountId"
|
15
|
+
field :book_id, from: "Book__c"
|
16
|
+
field :contact_id, from: "Contact__c"
|
17
|
+
field :lead_source, from: "LeadSource"
|
18
|
+
|
7
19
|
|
8
20
|
self.table_name = 'Opportunity'
|
9
21
|
|
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: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|