fedex-web-services 1.1.44 → 1.1.45
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fedex.rb +1 -1
- data/lib/fedex/tasks/fedex.rake +21 -0
- data/lib/fedex/version.rb +1 -1
- metadata +4 -3
data/lib/fedex.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
namespace :fedex do
|
2
|
+
desc "Generate the ruby definition files from the FedEx wsdl files"
|
3
|
+
task :generate_definitions do
|
4
|
+
wsdl_dir = ENV['WSDL_DIR']
|
5
|
+
if (!Dir.exist?(wsdl_dir || ""))
|
6
|
+
puts "Set the WSDL_DIR environment variable to location of the Fedex wsdl files"
|
7
|
+
else
|
8
|
+
Fedex::WebServices::Definitions.generate_definitions(
|
9
|
+
File.join(Rails.root, 'lib'),
|
10
|
+
*Dir.glob(File.join(ENV['WSDL_DIR'], '*.wsdl'))
|
11
|
+
)
|
12
|
+
|
13
|
+
File.open(File.join(Rails.root, 'config', 'initializers', 'fedex.rb'), "w") do |file|
|
14
|
+
file.puts "Fedex::WebServices::Definitions.load_definitions('lib')"
|
15
|
+
end
|
16
|
+
|
17
|
+
puts "Added lib/fedex/web_services/definitions/"
|
18
|
+
puts "Added config/initializers/fedex.rb"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/fedex/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedex-web-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 73
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 45
|
10
|
+
version: 1.1.45
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian Abreu
|
@@ -43,6 +43,7 @@ extra_rdoc_files: []
|
|
43
43
|
|
44
44
|
files:
|
45
45
|
- lib/fedex/railtie.rb
|
46
|
+
- lib/fedex/tasks/fedex.rake
|
46
47
|
- lib/fedex/version.rb
|
47
48
|
- lib/fedex/web_services/definitions.rb
|
48
49
|
- lib/fedex/web_services/request/base.rb
|