dm-salesforce 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dm-salesforce/soap_wrapper.rb +11 -3
- data/lib/dm-salesforce/version.rb +1 -1
- metadata +2 -2
@@ -32,17 +32,24 @@ module DataMapperSalesforce
|
|
32
32
|
ARGV.replace %W(--wsdl #{wsdl_path} --module_path #{module_name} --classdef #{module_name} --type client)
|
33
33
|
load wsdl2ruby
|
34
34
|
ARGV.replace old_args
|
35
|
-
|
35
|
+
(Dir["*.rb"] - files).each do |filename|
|
36
|
+
FileUtils.rm(filename)
|
37
|
+
end
|
36
38
|
end
|
37
39
|
end
|
38
40
|
|
39
41
|
$:.push wsdl_api_dir
|
40
42
|
require "#{module_name}Driver"
|
43
|
+
$:.delete wsdl_api_dir
|
44
|
+
end
|
45
|
+
|
46
|
+
def files
|
47
|
+
["#{module_name}.rb", "#{module_name}MappingRegistry.rb", "#{module_name}Driver.rb"]
|
41
48
|
end
|
42
49
|
|
43
50
|
def files_exist?
|
44
|
-
|
45
|
-
File.exist?("#{wsdl_api_dir}/#{
|
51
|
+
files.all? do |name|
|
52
|
+
File.exist?("#{wsdl_api_dir}/#{name}")
|
46
53
|
end
|
47
54
|
end
|
48
55
|
|
@@ -51,3 +58,4 @@ module DataMapperSalesforce
|
|
51
58
|
end
|
52
59
|
end
|
53
60
|
end
|
61
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-salesforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-08-
|
13
|
+
date: 2009-08-11 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|