openstax_salesforce 5.1.0 → 5.1.1

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: 995f37791f1efb96bc50c65bb95cea66b50c26b1a7c3e7bfebca9bf5c7ede312
4
- data.tar.gz: 8b1afff7fea4c2beac0dd986366503b1d6a6bf875237b0d3b58d0d7ed720786f
3
+ metadata.gz: 4fa5259dcbd67d285b33e9f270aff5c5fc63f98a8d6fa99ef251f54d71a84ec3
4
+ data.tar.gz: ceddb01bbdc5af5323c799ae0b76eb15acbc8de35fc67234e2aba748e1da6f8a
5
5
  SHA512:
6
- metadata.gz: e13360b956cb72d60d36351a81698533181f3d668b08872e90961a107dcf29ae53540a358e14e2d29e53da7521bb965ebc8be730590761395032433f1adafd84
7
- data.tar.gz: 76eab68949e462cd6950a0960f69f45eb124bc1caa8b2c9d95a7d3ab8cfe110971073fe2cfbcaceddbe7a85a145e02c141fdfebadf79fc24fd01cfed9ea2518b
6
+ metadata.gz: 8e179a076aabaaa19a26b1fc27a1cf5aa9954a860d52acb73bb18c7d1a5edace56f7bffb1a2f6740fdd944af373340f8e090f4e240cc96b100fe8338cdcebc02
7
+ data.tar.gz: d587fbcb0c95efebf55c4878a5ff0faecbbb402b06dbf87b1a38d885c01bf2d4f340bd28717447001f388d801fe5bb0a421328b2ee2bb4414902d9c97848ab33
@@ -1,6 +1,7 @@
1
1
  module OpenStax::Salesforce::Remote
2
2
  class Book < ActiveForce::SObject
3
- field :name, from: "Name"
3
+ field :name, from: "Name"
4
+ field :annualization_number, from: "Annualization_number__c", as: :decimal
4
5
 
5
6
  self.table_name = 'Book__c'
6
7
  end
@@ -44,5 +44,6 @@ module OpenStax::Salesforce::Remote
44
44
  STATUS_APPROVED = "Approved"
45
45
  STATUS_ARCHIVED = "ArchivedPeriod"
46
46
  STATUS_DROPPED = "Dropped"
47
+ STATUS_PREVIEW = "Preview"
47
48
  end
48
49
  end
@@ -134,7 +134,9 @@ module OpenStax::Salesforce::SpecHelpers
134
134
  @books = OpenStax::Salesforce::Remote::Book.where(name: book_names).to_a
135
135
 
136
136
  (book_names - books.map(&:name)).each do |book_name|
137
- OpenStax::Salesforce::Remote::Book.new(name: book_name).save!
137
+ OpenStax::Salesforce::Remote::Book.new(
138
+ name: book_name, annualization_number: [ 1.4, 1.6 ].sample
139
+ ).save!
138
140
  end
139
141
  end
140
142
 
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '5.1.0'
3
+ VERSION = '5.1.1'
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: 5.1.0
4
+ version: 5.1.1
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: 2021-03-16 00:00:00.000000000 Z
12
+ date: 2021-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails