openstax_salesforce 7.4.3 → 7.4.4

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: b6c58987e3047911c932a8b2393947f31955bc141dd52e9e3701159c3cc64715
4
- data.tar.gz: 94720471e872005d8f9b2b818b68f416b6523bac4153664ad784d7d586e35f7d
3
+ metadata.gz: e7a05b6a85387ab615b68f4f8344eb736649c431896de6b25caea544f8e1fa75
4
+ data.tar.gz: b8dfa8ca1c56cac8f4a5ee0d7a5d7454c88bd259568ed49c506e9a0bc34e2f59
5
5
  SHA512:
6
- metadata.gz: d2058e9d0ebabdfeaa9b991b6e29172ae8c5c703d1107d792f55cc474cf0e6b131302297f338f573d9a150e041aa216bc242772c3926c8cab1e12ee70d2d3e25
7
- data.tar.gz: 463222c52dc42c1fe74e9c25eb27c81c9d53d5a93fdd02fb73487d03e341e2df4da66659a95ddf3d10cbc5f688af4bdf821ef647ede005491be45a6174fe2b40
6
+ metadata.gz: c5626b2b66ae5c49715763419431a7cb2fa0d5efff6388e247ff975aa8ab9bdedac0f6d0acfdafeaa613aa8501fb410afd14f3a56d96bd3dd06757b81d8dc4d6
7
+ data.tar.gz: d3fdac8636977594bc89df2301f729fc041175e81f4dade69c6f0e7dd29218524dace2cdc4e7940d051a58854dc0c0d8066e2128114afecfbc874255ae11addd
@@ -5,10 +5,16 @@ module OpenStax
5
5
  module Remote
6
6
  # Book object from Salesforce
7
7
  class Book < ActiveForce::SObject
8
- field :name, from: 'Name'
8
+ field :id, from: 'Id'
9
+ field :name, from: 'Name'
10
+ field :official_name, from: 'Official_Name__c'
9
11
  field :annualization_number, from: 'Annualization_number__c', as: :decimal
10
12
 
11
13
  self.table_name = 'Book__c'
14
+
15
+ def self.query
16
+ super.where('Active__c = True AND Official_Name__c != NULL')
17
+ end
12
18
  end
13
19
  end
14
20
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '7.4.3'
3
+ VERSION = '7.4.4'
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: 7.4.3
4
+ version: 7.4.4
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-22 00:00:00.000000000 Z
13
+ date: 2022-04-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails