salesforcebulk 1.4.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +92 -117
- data/lib/salesforce_bulk.rb +2 -10
- data/lib/salesforce_bulk/batch.rb +1 -1
- data/lib/salesforce_bulk/batch_result.rb +11 -11
- data/lib/salesforce_bulk/client.rb +91 -70
- data/lib/salesforce_bulk/job.rb +8 -8
- data/lib/salesforce_bulk/query_result_collection.rb +11 -11
- data/lib/salesforce_bulk/version.rb +1 -1
- metadata +21 -115
- data/.gitignore +0 -4
- data/.travis.yml +0 -10
- data/Gemfile +0 -3
- data/LICENSE +0 -20
- data/Rakefile +0 -22
- data/lib/salesforce_bulk/core_extensions/string.rb +0 -14
- data/salesforcebulk.gemspec +0 -30
- data/test/fixtures/batch_create_request.csv +0 -3
- data/test/fixtures/batch_create_response.xml +0 -13
- data/test/fixtures/batch_info_list_response.xml +0 -27
- data/test/fixtures/batch_info_response.xml +0 -14
- data/test/fixtures/batch_result_list_response.csv +0 -3
- data/test/fixtures/config.yml +0 -5
- data/test/fixtures/invalid_batch_error.xml +0 -5
- data/test/fixtures/invalid_error.xml +0 -5
- data/test/fixtures/invalid_job_error.xml +0 -5
- data/test/fixtures/invalid_session_error.xml +0 -5
- data/test/fixtures/job_abort_request.xml +0 -1
- data/test/fixtures/job_abort_response.xml +0 -25
- data/test/fixtures/job_close_request.xml +0 -1
- data/test/fixtures/job_close_response.xml +0 -25
- data/test/fixtures/job_create_request.xml +0 -1
- data/test/fixtures/job_create_response.xml +0 -25
- data/test/fixtures/job_info_response.xml +0 -25
- data/test/fixtures/login_error.xml +0 -1
- data/test/fixtures/login_request.xml +0 -1
- data/test/fixtures/login_response.xml +0 -39
- data/test/fixtures/query_result_list_response.xml +0 -1
- data/test/fixtures/query_result_response.csv +0 -5
- data/test/lib/test_batch.rb +0 -252
- data/test/lib/test_batch_result.rb +0 -36
- data/test/lib/test_core_extensions.rb +0 -15
- data/test/lib/test_initialization.rb +0 -80
- data/test/lib/test_job.rb +0 -247
- data/test/lib/test_query_result_collection.rb +0 -86
- data/test/test_helper.rb +0 -32
data/test/test_helper.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'test/unit'
|
3
|
-
require 'shoulda'
|
4
|
-
require 'mocha/setup'
|
5
|
-
require 'webmock/test_unit'
|
6
|
-
require 'salesforce_bulk'
|
7
|
-
|
8
|
-
class Test::Unit::TestCase
|
9
|
-
|
10
|
-
def self.test(name, &block)
|
11
|
-
define_method("test #{name.inspect}", &block)
|
12
|
-
end
|
13
|
-
|
14
|
-
def api_url(client)
|
15
|
-
"https://#{client.login_host}/services/async/#{client.version}/"
|
16
|
-
end
|
17
|
-
|
18
|
-
def bypass_authentication(client)
|
19
|
-
client.instance_variable_set('@session_id', '123456789')
|
20
|
-
client.instance_variable_set('@login_host', 'na9.salesforce.com')
|
21
|
-
client.instance_variable_set('@instance_host', 'na9.salesforce.com')
|
22
|
-
end
|
23
|
-
|
24
|
-
def fixture_path(file)
|
25
|
-
File.expand_path("../fixtures/#{file}", __FILE__)
|
26
|
-
end
|
27
|
-
|
28
|
-
def fixture(file)
|
29
|
-
File.new(fixture_path(file)).read
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|