salesforce_bulk_api 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 97cff39898ba0d105b249e1e1ba27fdf05e9a518
4
+ data.tar.gz: b4765152d9a544e7b80401148ff35ed789da0345
5
+ SHA512:
6
+ metadata.gz: 13bf15920245ba4187fb5550249884d04537427c3c849194daf3b867cc1c39f9f3a7f3b7a3ee959b4ff0ba31368a9fa5e0ca75314b126c8097d598aa1cb9e9f6
7
+ data.tar.gz: 3396900591b0ccf7a1d2759ee9a52168063bda97716741f993b5cc7979f182c046cad34bff9d38e193f538e5201a4592b6121d0aba0b1bf89a6b4eef4ebc5c6b
@@ -49,14 +49,15 @@ module SalesforceBulkApi
49
49
 
50
50
  while true
51
51
  state = job.check_batch_status()
52
- if state != "Queued" && state != "InProgress"
52
+ if state['state'][0] != "Queued" && state['state'][0] != "InProgress"
53
53
  break
54
54
  end
55
55
  sleep(2) # wait x seconds and check again
56
56
  end
57
57
 
58
- if state == 'Completed'
58
+ if state['state'][0] == 'Completed'
59
59
  job.get_batch_result()
60
+ return state
60
61
  else
61
62
  return "error"
62
63
  end
@@ -95,10 +95,10 @@ module SalesforceBulkApi
95
95
  response = @@connection.get_request(nil, path, headers)
96
96
  response_parsed = XmlSimple.xml_in(response)
97
97
 
98
- puts response_parsed
98
+ # puts response_parsed
99
99
  begin
100
100
  #puts "check: #{response_parsed.inspect}\n"
101
- response_parsed['state'][0]
101
+ response_parsed
102
102
  rescue Exception => e
103
103
  #puts "check: #{response_parsed.inspect}\n"
104
104
  nil
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulkApi
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_bulk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yatish Mehta
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
11
+ date: 2013-03-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: oauth2
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.9.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: databasedotcom
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: xml-simple
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Salesforce Bulk API with governor limits taken care of
@@ -93,26 +84,25 @@ files:
93
84
  - salesforce_bulk_api.gemspec
94
85
  homepage: https://github.com/yatishmehta27/salesforce_bulk_api
95
86
  licenses: []
87
+ metadata: {}
96
88
  post_install_message:
97
89
  rdoc_options: []
98
90
  require_paths:
99
91
  - lib
100
92
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
93
  requirements:
103
- - - ! '>='
94
+ - - '>='
104
95
  - !ruby/object:Gem::Version
105
96
  version: '0'
106
97
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
98
  requirements:
109
- - - ! '>='
99
+ - - '>='
110
100
  - !ruby/object:Gem::Version
111
101
  version: '0'
112
102
  requirements: []
113
103
  rubyforge_project: salesforce_bulk_api
114
- rubygems_version: 1.8.24
104
+ rubygems_version: 2.0.0
115
105
  signing_key:
116
- specification_version: 3
106
+ specification_version: 4
117
107
  summary: It uses the bulk api of salesforce to communicate with teh salesforce CRM
118
108
  test_files: []