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 CHANGED
@@ -2,5 +2,5 @@ require "fedex/version"
2
2
  require "fedex/web_services"
3
3
 
4
4
  module Fedex
5
- require 'fedex/railtie'
5
+ require 'fedex/railtie' if defined?(Rails)
6
6
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Fedex
2
- VERSION = "1.1.44"
2
+ VERSION = "1.1.45"
3
3
  end
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: 75
4
+ hash: 73
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 44
10
- version: 1.1.44
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