activeforce 3.1.0 → 4.0.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: dc7a5402fedf2239ab8c2ea3681ab20dd9fa4f2ebde12a63b47ba99925a94b29
4
- data.tar.gz: '0382d48b239cb21ef6f683974816054dccc777c5aef6be40f7e02e8aef82e947'
3
+ metadata.gz: 638019df91388b0fa0ea6888da2c2be2a9ec0f28ecc3e2c215fc667b2d3c32e8
4
+ data.tar.gz: 27b89bd87142b6261c75edca39b63e24cc529d808724621a15ed91941d37cdc0
5
5
  SHA512:
6
- metadata.gz: 2363a3005fb924f5785432f1ca6e8634d51fe354e12f99e62cc700237d52ff136297905b5d837788b441237dd2ed40942987a94b5a638de3ab6022d5b1b049cd
7
- data.tar.gz: 1e2f2f9a304dd2b67c79ab9946df6f733a210445dd6d68d0822aae678452bf17ac98763f32d6386543940504fd398429bd63f2eab642bd43fffe17eb514f5cdd
6
+ metadata.gz: 84130cde3f4eb3486d3109cb374f9b7e0df9a0e4972e8488a87ab5dbd2bacfad73d1f2c3986ecac3b4ee3fc90de7a2f170f3c6f6a55827d18e82cc6ca093a821
7
+ data.tar.gz: cbd6b214d2041c33fa7a314a0a1070df1eef66cf296a525ffe9ab981941bbba5889a51afc278458c5837d24fe3844a6572a449587f963a579d9658b015c32c4a
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 = ["tusharranka@gmail.com", "andrew.mutz@appfolio.com"]
12
+ s.email = ["andrew.mutz@appfolio.com"]
13
13
  s.extra_rdoc_files = [
14
14
  "LICENSE.txt",
15
15
  "README.md"
@@ -19,10 +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.0"
22
+ s.required_ruby_version = ">= 2.3"
23
23
  s.summary = "A Simple gem to interact with the Salesforce REST API"
24
24
 
25
- s.add_dependency(%q<rails>, [">= 4.0", "< 6"])
25
+ s.add_dependency(%q<rails>, [">= 4.2", "< 6.1"])
26
26
  s.add_dependency(%q<savon>, ["~> 2.11"])
27
27
  s.add_dependency(%q<blockenspiel>, [">= 0"])
28
28
  s.add_dependency(%q<rest-client>, [">= 0", '< 2.0'])
@@ -4,6 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
6
  gem "mocha", "0.14.0", require: false
7
- gem "rails", "~> 4.0.0"
7
+ gem "rails", "~> 6.0.0.rc1"
8
8
 
9
9
  gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module Activeforce
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
@@ -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
- BigDecimal(value.to_s)
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.new("1.04"))
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.new("1.04"))
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: 3.1.0
4
+ version: 4.0.0
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.0'
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.0'
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
@@ -82,7 +82,6 @@ dependencies:
82
82
  description: " Activeforce provides a simple to use and extend interface to Salesforce
83
83
  using the REST API"
84
84
  email:
85
- - tusharranka@gmail.com
86
85
  - andrew.mutz@appfolio.com
87
86
  executables: []
88
87
  extensions: []
@@ -145,11 +144,10 @@ files:
145
144
  - app/models/salesforce/user.rb
146
145
  - app/models/salesforce/user_role.rb
147
146
  - app/models/salesforce/vote.rb
148
- - gemfiles/4.0.gemfile
149
- - gemfiles/4.1.gemfile
150
147
  - gemfiles/4.2.gemfile
151
148
  - gemfiles/5.0.gemfile
152
149
  - gemfiles/5.2.gemfile
150
+ - gemfiles/6.0.gemfile
153
151
  - lib/activeforce.rb
154
152
  - lib/activeforce/version.rb
155
153
  - lib/ruby_187_range_extension.rb
@@ -197,15 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
195
  requirements:
198
196
  - - ">="
199
197
  - !ruby/object:Gem::Version
200
- version: '2.0'
198
+ version: '2.3'
201
199
  required_rubygems_version: !ruby/object:Gem::Requirement
202
200
  requirements:
203
201
  - - ">="
204
202
  - !ruby/object:Gem::Version
205
203
  version: '0'
206
204
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.7.7
205
+ rubygems_version: 3.0.3
209
206
  signing_key:
210
207
  specification_version: 4
211
208
  summary: A Simple gem to interact with the Salesforce REST API
data/gemfiles/4.1.gemfile DELETED
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "mocha", "0.14.0", require: false
7
- gem "rails", "~> 4.1.0"
8
-
9
- gemspec path: "../"