activeforce 1.10.3 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -3
- data/Appraisals +4 -8
- data/activeforce.gemspec +3 -2
- data/gemfiles/{4.0.gemfile → 6.0.gemfile} +1 -1
- data/lib/activeforce/version.rb +1 -1
- data/lib/salesforce/column.rb +2 -2
- data/test/salesforce/column_test.rb +2 -2
- metadata +8 -11
- data/gemfiles/4.1.gemfile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5145487a6abcb63f2d88c9382ccbeae46241d403d0206f29d35fc71184f6011
|
4
|
+
data.tar.gz: 76a88b88519e6df6681d9d16a12d64fd35d4a222a932897fb6c81ff9c927cc7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad4f99aa77c515ddb3547f86476c9285f0d6d2de89046ad407ff0b754b7d46318d295661612b12a096064263948b1ca7939fbc44ae2a89915d638e26bba2b033
|
7
|
+
data.tar.gz: 21e16d69b35d842a82a9de0eef509050a250c8b639c4ad50926ba4d000f430572066faf69be1f1e235126bda591818bd62b5b48b13c6dcc01524cd1039a720c3
|
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
+
- 2.6.3
|
3
4
|
- 2.3.3
|
4
|
-
- 2.2.3
|
5
5
|
- ruby-head
|
6
6
|
|
7
7
|
sudo: false
|
@@ -9,10 +9,14 @@ sudo: false
|
|
9
9
|
matrix:
|
10
10
|
allow_failures:
|
11
11
|
- rvm: ruby-head
|
12
|
+
exclude:
|
13
|
+
- rvm: 2.3.3
|
14
|
+
gemfile: gemfiles/6.0.gemfile
|
15
|
+
- rvm: ruby-head
|
16
|
+
gemfile: gemfiles/4.2.gemfile
|
12
17
|
|
13
18
|
gemfile:
|
14
|
-
- gemfiles/4.0.gemfile
|
15
|
-
- gemfiles/4.1.gemfile
|
16
19
|
- gemfiles/4.2.gemfile
|
17
20
|
- gemfiles/5.0.gemfile
|
18
21
|
- gemfiles/5.2.gemfile
|
22
|
+
- gemfiles/6.0.gemfile
|
data/Appraisals
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
appraise "4.0" do
|
2
|
-
gem "rails", "~> 4.0.0"
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "4.1" do
|
6
|
-
gem "rails", "~> 4.1.0"
|
7
|
-
end
|
8
|
-
|
9
1
|
appraise "4.2" do
|
10
2
|
gem "rails", "~> 4.2.0"
|
11
3
|
end
|
@@ -17,3 +9,7 @@ end
|
|
17
9
|
appraise "5.2" do
|
18
10
|
gem "rails", "~> 5.2.0"
|
19
11
|
end
|
12
|
+
|
13
|
+
appraise "6.0" do
|
14
|
+
gem "rails", "~> 6.0.0.rc1"
|
15
|
+
end
|
data/activeforce.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Tushar Ranka", "Andrew Mutz"]
|
10
10
|
s.date = "2013-08-27"
|
11
11
|
s.description = " Activeforce provides a simple to use and extend interface to Salesforce using the REST API"
|
12
|
-
s.email = ["
|
12
|
+
s.email = ["andrew.mutz@appfolio.com"]
|
13
13
|
s.extra_rdoc_files = [
|
14
14
|
"LICENSE.txt",
|
15
15
|
"README.md"
|
@@ -19,9 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.licenses = ["MIT"]
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
s.rubygems_version = "2.0.3"
|
22
|
+
s.required_ruby_version = ">= 2.3"
|
22
23
|
s.summary = "A Simple gem to interact with the Salesforce REST API"
|
23
24
|
|
24
|
-
s.add_dependency(%q<rails>, [">= 4.
|
25
|
+
s.add_dependency(%q<rails>, [">= 4.2", "< 6.1"])
|
25
26
|
s.add_dependency(%q<savon>, ["~> 1.0"])
|
26
27
|
s.add_dependency(%q<blockenspiel>, [">= 0"])
|
27
28
|
s.add_dependency(%q<rest-client>, [">= 0", '< 2.0'])
|
data/lib/activeforce/version.rb
CHANGED
data/lib/salesforce/column.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Salesforce
|
2
2
|
class Column
|
3
3
|
attr_accessor :name, :original_name, :createable, :updateable, :type
|
4
|
-
|
4
|
+
|
5
5
|
SUPPORTED_DATE_RANGE = Date.parse("1700-01-01")..Date.parse("4000-12-31")
|
6
6
|
SUPPORTED_TIME_RANGE = Time.parse("1902-01-01 00:00:00 UTC")..Time.parse("2037-12-31 00:00:00 UTC")
|
7
7
|
|
@@ -100,7 +100,7 @@ module Salesforce
|
|
100
100
|
end
|
101
101
|
when :double
|
102
102
|
begin
|
103
|
-
|
103
|
+
value.to_s.to_d
|
104
104
|
rescue
|
105
105
|
value if value.is_a?(Numeric)
|
106
106
|
end
|
@@ -49,7 +49,7 @@ class Salesforce::ColumnTest < ActiveSupport::TestCase
|
|
49
49
|
assert_equal "2012-01-02T18:40:00-08:00", Salesforce::Column.to_soql_value(Time.zone.parse('2012-01-02 06:40PM'))
|
50
50
|
assert_equal "1", Salesforce::Column.to_soql_value(1)
|
51
51
|
assert_equal "1.0", Salesforce::Column.to_soql_value(1.0)
|
52
|
-
assert_equal "1.04", Salesforce::Column.to_soql_value(BigDecimal
|
52
|
+
assert_equal "1.04", Salesforce::Column.to_soql_value(BigDecimal("1.04"))
|
53
53
|
assert_equal "'col'", Salesforce::Column.to_soql_value(:col)
|
54
54
|
assert_equal "('string1','string2','string3')", Salesforce::Column.to_soql_value(['string1','string2','string3'])
|
55
55
|
assert_equal "('string1',1,2012-01-02)", Salesforce::Column.to_soql_value(['string1',1,Date.parse("2012-01-02")])
|
@@ -64,7 +64,7 @@ class Salesforce::ColumnTest < ActiveSupport::TestCase
|
|
64
64
|
assert_equal "2012-01-02T18:40:00-08:00", Salesforce::Column.to_csv_value(Time.zone.parse('2012-01-02 06:40PM'))
|
65
65
|
assert_equal "1", Salesforce::Column.to_csv_value(1)
|
66
66
|
assert_equal "1.0", Salesforce::Column.to_csv_value(1.0)
|
67
|
-
assert_equal "1.04", Salesforce::Column.to_csv_value(BigDecimal
|
67
|
+
assert_equal "1.04", Salesforce::Column.to_csv_value(BigDecimal("1.04"))
|
68
68
|
assert_equal "col", Salesforce::Column.to_csv_value(:col)
|
69
69
|
end
|
70
70
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tushar Ranka
|
@@ -17,20 +17,20 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '4.
|
20
|
+
version: '4.2'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '6'
|
23
|
+
version: '6.1'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '4.
|
30
|
+
version: '4.2'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6'
|
33
|
+
version: '6.1'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: savon
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,6 @@ dependencies:
|
|
96
96
|
description: " Activeforce provides a simple to use and extend interface to Salesforce
|
97
97
|
using the REST API"
|
98
98
|
email:
|
99
|
-
- tusharranka@gmail.com
|
100
99
|
- andrew.mutz@appfolio.com
|
101
100
|
executables: []
|
102
101
|
extensions: []
|
@@ -159,11 +158,10 @@ files:
|
|
159
158
|
- app/models/salesforce/user.rb
|
160
159
|
- app/models/salesforce/user_role.rb
|
161
160
|
- app/models/salesforce/vote.rb
|
162
|
-
- gemfiles/4.0.gemfile
|
163
|
-
- gemfiles/4.1.gemfile
|
164
161
|
- gemfiles/4.2.gemfile
|
165
162
|
- gemfiles/5.0.gemfile
|
166
163
|
- gemfiles/5.2.gemfile
|
164
|
+
- gemfiles/6.0.gemfile
|
167
165
|
- lib/activeforce.rb
|
168
166
|
- lib/activeforce/version.rb
|
169
167
|
- lib/ruby_187_range_extension.rb
|
@@ -211,15 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
209
|
requirements:
|
212
210
|
- - ">="
|
213
211
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
212
|
+
version: '2.3'
|
215
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
214
|
requirements:
|
217
215
|
- - ">="
|
218
216
|
- !ruby/object:Gem::Version
|
219
217
|
version: '0'
|
220
218
|
requirements: []
|
221
|
-
|
222
|
-
rubygems_version: 2.7.7
|
219
|
+
rubygems_version: 3.0.3
|
223
220
|
signing_key:
|
224
221
|
specification_version: 4
|
225
222
|
summary: A Simple gem to interact with the Salesforce REST API
|