salesforcebulk 1.2.0 → 1.3.0

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: 068978c964a5939788a560b11f5d9e1cbddbee46
4
+ data.tar.gz: 5dc3e83dad93a4f155174277bfe267ce860ea32c
5
+ SHA512:
6
+ metadata.gz: 784d8d30a9572dc5cd89df6d15a6ea9edc21b501b0392351cbd3cad7b9df8fb123338494a8636d3be7a80f29905293a649735e193d070119c5f2e66b4c56bc7e
7
+ data.tar.gz: 80b34920216f0f3c20a502d9b0044dfa22d55d67fcf3ae65340d649d4178e6d3924878a21b9b21aaabdb9ecf81b87c4869097bf839c4608f9a7f5423946e6228
data/README.md CHANGED
@@ -153,9 +153,14 @@ Note: By reviewing the API docs and response format my understanding was that th
153
153
 
154
154
  ## Version History
155
155
 
156
+ **1.3.0** (April 28, 2014)
157
+
158
+ * Added support for multiple subdomains (#10 - thanks [@lucianapazos](https://github.com/lucianapazos))
159
+ * Added dependency version requirements to gemspec
160
+
156
161
  **1.2.0** (October 10, 2012)
157
162
 
158
- * Added Ruby 1.8.7 support (thanks to @dlee)
163
+ * Added Ruby 1.8.7 support (thanks [@dlee](https://github.com/dlee))
159
164
 
160
165
  **1.1.0** (August 20, 2012)
161
166
 
@@ -245,7 +245,7 @@ module SalesforceBulk
245
245
  end
246
246
 
247
247
  def instance_id(url)
248
- url.match(/:\/\/([a-zA-Z0-9-]{2,}).salesforce/)[1]
248
+ url.match(/:\/\/([a-zA-Z0-9\-\.]{2,}).salesforce/)[1]
249
249
  end
250
250
  end
251
251
  end
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -18,12 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency "activesupport"
21
+ s.add_dependency "activesupport", '~> 3.2.0'
22
22
  s.add_dependency "xml-simple"
23
23
 
24
24
  s.add_development_dependency "rake"
25
25
  s.add_development_dependency "rdoc"
26
- s.add_development_dependency "mocha"
27
- s.add_development_dependency "shoulda"
28
- s.add_development_dependency "webmock"
26
+ s.add_development_dependency "mocha", '~> 0.13.0'
27
+ s.add_development_dependency "shoulda", '~> 3.3.0'
28
+ s.add_development_dependency "webmock", '~> 1.8.11'
29
+ s.add_development_dependency 'minitest', '~> 4.3'
29
30
  end
@@ -65,7 +65,9 @@ class TestInitialization < Test::Unit::TestCase
65
65
  assert_equal @client.instance_id('https://na1-api.salesforce.com'), 'na1-api'
66
66
  assert_equal @client.instance_id('https://na23-api.salesforce.com'), 'na23-api'
67
67
  assert_equal @client.instance_id('https://na345-api.salesforce.com'), 'na345-api'
68
-
68
+ assert_equal @client.instance_id('https://NA345-API.salesforce.com'), 'NA345-API'
69
+ assert_equal @client.instance_id('https://test.api.na345-api.salesforce.com'), 'test.api.na345-api'
70
+
69
71
  # protocol shouldn't matter, its just part of the host name we are after
70
72
  assert_equal @client.instance_id('://na1-api.salesforce.com'), 'na1-api'
71
73
  assert_equal @client.instance_id('://na23-api.salesforce.com'), 'na23-api'
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'shoulda'
4
- require 'mocha'
4
+ require 'mocha/setup'
5
5
  require 'webmock/test_unit'
6
6
  require 'salesforce_bulk'
7
7
 
metadata CHANGED
@@ -1,128 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforcebulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Javier Julio
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 3.2.0
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
- version: '0'
26
+ version: 3.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: xml-simple
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: rake
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: :development
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: rdoc
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: :development
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
  - !ruby/object:Gem::Dependency
79
70
  name: mocha
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: '0'
75
+ version: 0.13.0
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: '0'
82
+ version: 0.13.0
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: shoulda
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: '0'
89
+ version: 3.3.0
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: '0'
96
+ version: 3.3.0
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: webmock
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: 1.8.11
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
- version: '0'
110
+ version: 1.8.11
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.3'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.3'
126
125
  description: This gem is a simple interface to the Salesforce Bulk API providing full
127
126
  support for insert, update, upsert, delete, and query actions while allowing you
128
127
  to specify multiple batches per job to process data fast. Gem includes unit tests.
@@ -131,9 +130,8 @@ executables: []
131
130
  extensions: []
132
131
  extra_rdoc_files: []
133
132
  files:
134
- - .gitignore
135
- - .rbenv-version
136
- - .travis.yml
133
+ - ".gitignore"
134
+ - ".travis.yml"
137
135
  - Gemfile
138
136
  - LICENSE
139
137
  - README.md
@@ -180,33 +178,26 @@ files:
180
178
  - test/test_helper.rb
181
179
  homepage: https://github.com/javierjulio/salesforce_bulk
182
180
  licenses: []
181
+ metadata: {}
183
182
  post_install_message:
184
183
  rdoc_options: []
185
184
  require_paths:
186
185
  - lib
187
186
  required_ruby_version: !ruby/object:Gem::Requirement
188
- none: false
189
187
  requirements:
190
- - - ! '>='
188
+ - - ">="
191
189
  - !ruby/object:Gem::Version
192
190
  version: '0'
193
- segments:
194
- - 0
195
- hash: 801816041369968588
196
191
  required_rubygems_version: !ruby/object:Gem::Requirement
197
- none: false
198
192
  requirements:
199
- - - ! '>='
193
+ - - ">="
200
194
  - !ruby/object:Gem::Version
201
195
  version: '0'
202
- segments:
203
- - 0
204
- hash: 801816041369968588
205
196
  requirements: []
206
197
  rubyforge_project:
207
- rubygems_version: 1.8.24
198
+ rubygems_version: 2.2.2
208
199
  signing_key:
209
- specification_version: 3
200
+ specification_version: 4
210
201
  summary: Full capability support for the Salesforce Bulk API.
211
202
  test_files:
212
203
  - test/fixtures/batch_create_request.csv
data/.rbenv-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p194