openstax_salesforce 4.1.0 → 4.2.0

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: ef6d6f822b87cbbb085e45f075805a9e523a81d1fca4cfced326a0517aa3ebba
4
- data.tar.gz: 5cd751b8a32190e98e3dca54ed7bf22d7de023a1b78201b12e154523c71e4cd6
3
+ metadata.gz: c3e95723e60a5ef4c192f0fdd72a60adcb297ecd74898b66b9d5da7717ff0da2
4
+ data.tar.gz: ae495414e4c8aeb283987f40d9877d5805274ffad92ca396caffa5fc57ff9ed2
5
5
  SHA512:
6
- metadata.gz: 3f8abee26ae79a8ff3bc154d159b3c210ee57f5e9d71060bcac1ba29560111a272751249383e4c0df67a6b03773f6d3ca022a7af9e373e0012320f3bbfe4b8e1
7
- data.tar.gz: 37b2a27d49806153779d0ed0d1090ac0b41f98f1c0c00e496611c5d9103cc178c6ee905c1bb43919feac4fe03547a2f68d57b7d9f85808d537be7f6b46b49c4f
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::Salesforce
6
- class Engine < ::Rails::Engine
7
- isolate_namespace OpenStax::Salesforce
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, from: 'Name'
4
- field :is_kip, from: 'K_I_P__c', as: :boolean
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
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.1.0'
3
+ VERSION = '4.2.0'
4
4
  end
5
5
  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.1.0
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-04-22 00:00:00.000000000 Z
12
+ date: 2020-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails