salesforcebulk 1.4.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +92 -117
  3. data/lib/salesforce_bulk.rb +2 -10
  4. data/lib/salesforce_bulk/batch.rb +1 -1
  5. data/lib/salesforce_bulk/batch_result.rb +11 -11
  6. data/lib/salesforce_bulk/client.rb +91 -70
  7. data/lib/salesforce_bulk/job.rb +8 -8
  8. data/lib/salesforce_bulk/query_result_collection.rb +11 -11
  9. data/lib/salesforce_bulk/version.rb +1 -1
  10. metadata +21 -115
  11. data/.gitignore +0 -4
  12. data/.travis.yml +0 -10
  13. data/Gemfile +0 -3
  14. data/LICENSE +0 -20
  15. data/Rakefile +0 -22
  16. data/lib/salesforce_bulk/core_extensions/string.rb +0 -14
  17. data/salesforcebulk.gemspec +0 -30
  18. data/test/fixtures/batch_create_request.csv +0 -3
  19. data/test/fixtures/batch_create_response.xml +0 -13
  20. data/test/fixtures/batch_info_list_response.xml +0 -27
  21. data/test/fixtures/batch_info_response.xml +0 -14
  22. data/test/fixtures/batch_result_list_response.csv +0 -3
  23. data/test/fixtures/config.yml +0 -5
  24. data/test/fixtures/invalid_batch_error.xml +0 -5
  25. data/test/fixtures/invalid_error.xml +0 -5
  26. data/test/fixtures/invalid_job_error.xml +0 -5
  27. data/test/fixtures/invalid_session_error.xml +0 -5
  28. data/test/fixtures/job_abort_request.xml +0 -1
  29. data/test/fixtures/job_abort_response.xml +0 -25
  30. data/test/fixtures/job_close_request.xml +0 -1
  31. data/test/fixtures/job_close_response.xml +0 -25
  32. data/test/fixtures/job_create_request.xml +0 -1
  33. data/test/fixtures/job_create_response.xml +0 -25
  34. data/test/fixtures/job_info_response.xml +0 -25
  35. data/test/fixtures/login_error.xml +0 -1
  36. data/test/fixtures/login_request.xml +0 -1
  37. data/test/fixtures/login_response.xml +0 -39
  38. data/test/fixtures/query_result_list_response.xml +0 -1
  39. data/test/fixtures/query_result_response.csv +0 -5
  40. data/test/lib/test_batch.rb +0 -252
  41. data/test/lib/test_batch_result.rb +0 -36
  42. data/test/lib/test_core_extensions.rb +0 -15
  43. data/test/lib/test_initialization.rb +0 -80
  44. data/test/lib/test_job.rb +0 -247
  45. data/test/lib/test_query_result_collection.rb +0 -86
  46. 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