openstax_salesforce 4.1.0 → 4.2.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: c3e95723e60a5ef4c192f0fdd72a60adcb297ecd74898b66b9d5da7717ff0da2
|
4
|
+
data.tar.gz: ae495414e4c8aeb283987f40d9877d5805274ffad92ca396caffa5fc57ff9ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d25955fc494e054d17b94738f5a495f9681082a496577d90171d205583f58c8353526ca7dfdf63d9b31b0d5772ba48eb511effdd22343f05afa9ec4e4a25984e
|
7
|
+
data.tar.gz: 38fe1cfa437ee9de0f7ebd148b5d5e9fb8b94543f2a2b5900283fe81c28cfd93bda313ccee8cdc536c5d2363efb3022e9dfdf2f632abbc1e00f35e37dbbe3f8c
|
@@ -5,6 +5,10 @@
|
|
5
5
|
OpenStax::Salesforce.configure do |config|
|
6
6
|
salesforce_secrets = Rails.application.secrets.salesforce
|
7
7
|
|
8
|
+
if salesforce_secrets.nil?
|
9
|
+
raise "Add a `salesforce` section to your Rails secrets!"
|
10
|
+
end
|
11
|
+
|
8
12
|
# Username, client id, instance url and private key for connecting to the Salesforce app
|
9
13
|
config.username = salesforce_secrets[:username]
|
10
14
|
config.password = salesforce_secrets[:password]
|
@@ -2,8 +2,10 @@ ActiveSupport::Inflector.inflections do |inflect|
|
|
2
2
|
inflect.acronym 'OpenStax'
|
3
3
|
end
|
4
4
|
|
5
|
-
module OpenStax
|
6
|
-
|
7
|
-
|
5
|
+
module OpenStax
|
6
|
+
module Salesforce
|
7
|
+
class Engine < ::Rails::Engine
|
8
|
+
isolate_namespace OpenStax::Salesforce
|
9
|
+
end
|
8
10
|
end
|
9
11
|
end
|
@@ -1,7 +1,10 @@
|
|
1
1
|
module OpenStax::Salesforce::Remote
|
2
2
|
class School < ActiveForce::SObject
|
3
|
-
field :name,
|
4
|
-
field :
|
3
|
+
field :name, from: 'Name'
|
4
|
+
field :type, from: 'Type'
|
5
|
+
field :school_location, from: 'School_Location__c'
|
6
|
+
field :is_kip, from: 'K_I_P__c', as: :boolean
|
7
|
+
field :is_child_of_kip, from: 'child_of_kip__c', as: :boolean
|
5
8
|
|
6
9
|
self.table_name = 'Account'
|
7
10
|
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: 4.
|
4
|
+
version: 4.2.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-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|