rforce 0.10 → 0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.travis.yml +15 -0
- data/{History.txt → CHANGELOG.txt} +35 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.ci +6 -0
- data/{README.txt → README.rdoc} +3 -4
- data/Rakefile +5 -29
- data/examples/oauth_setup.rb +26 -0
- data/examples/oauth_use.rb +25 -0
- data/examples/simple.rb +20 -0
- data/lib/rforce.rb +3 -3
- data/lib/rforce/binding.rb +90 -62
- data/lib/rforce/method_keys.rb +8 -3
- data/lib/rforce/soap_response.rb +0 -4
- data/lib/rforce/version.rb +1 -1
- data/rforce.gemspec +35 -0
- metadata +54 -118
- data/.gemtest +0 -0
- data/Manifest.txt +0 -19
- data/lib/rforce/soap_response_expat.rb +0 -36
- data/lib/rforce/soap_response_hpricot.rb +0 -90
- data/spec/rforce_spec.rb +0 -237
- data/spec/soap-response.xml +0 -5928
- data/spec/spec.opts +0 -1
- data/spec/spec_helper.rb +0 -4
- data/tasks/timing.rake +0 -23
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/spec/spec_helper.rb
DELETED
data/tasks/timing.rake
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'rforce'
|
2
|
-
|
3
|
-
desc 'Perform a crude comparison of the various response parsers'
|
4
|
-
task :timing do
|
5
|
-
fname = File.join(File.dirname(__FILE__), '../spec/soap-response.xml')
|
6
|
-
contents = File.open(fname) {|f| f.read}
|
7
|
-
|
8
|
-
[:SoapResponseRexml,
|
9
|
-
:SoapResponseExpat,
|
10
|
-
:SoapResponseHpricot,
|
11
|
-
:SoapResponseNokogiri].each do |name|
|
12
|
-
begin
|
13
|
-
klass = RForce.const_get name
|
14
|
-
started_at = Time.now
|
15
|
-
klass.new(contents).parse
|
16
|
-
elapsed = Time.now - started_at
|
17
|
-
puts "#{klass}: #{elapsed}"
|
18
|
-
rescue NameError
|
19
|
-
puts $!
|
20
|
-
# no-op
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|