jeremydurham-serviceproxy 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,17 @@
1
- require 'rubygems'
2
- require 'nokogiri'
3
1
  require 'net/http'
4
2
  require 'net/https'
5
- require 'builder'
6
3
  require 'uri'
7
4
 
5
+ begin
6
+ require 'nokogiri'
7
+ require 'builder'
8
+ rescue LoadError
9
+ puts "Could not load nokogiri or builder. Please make sure they are installed and in your $LOAD_PATH."
10
+ end
11
+
8
12
  module ServiceProxy
9
13
  class Base
10
- VERSION = '0.1.1'
14
+ VERSION = '0.1.4'
11
15
 
12
16
  attr_accessor :endpoint, :service_methods, :soap_actions, :service_uri, :http, :service_http, :uri, :debug, :wsdl, :target_namespace, :service_ports
13
17
 
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'spec'
3
- require File.dirname(__FILE__) + '/../lib/service_proxy/base'
4
- require File.dirname(__FILE__) + '/service_helper'
3
+ require 'service_proxy/base'
4
+ require 'spec/service_helper'
5
5
 
6
6
  describe ServiceProxy do
7
7
  it "should raise on an invalid URI" do
@@ -11,27 +11,7 @@ describe ServiceProxy do
11
11
  it "should raise on invalid WSDL" do
12
12
  lambda { ServiceProxy::Base.new('http://www.yahoo.com') }.should raise_error(RuntimeError)
13
13
  end
14
-
15
- describe "connecting to an Instant Message Service" do
16
- before do
17
- @proxy = InstantMessageService.new('http://www.imcomponents.com/imsoap/?wsdl')
18
- end
19
-
20
- describe "calling GetVersion" do
21
- it "should return the version" do
22
- version = @proxy.GetVersion
23
- version.should == 'v1.0.20080508'
24
- end
25
- end
26
-
27
- describe "calling Login" do
28
- it "should return nil" do
29
- result = @proxy.Login(:userId => 'test', :password => 'test')
30
- result.should == 'Invalid username/password'
31
- end
32
- end
33
- end
34
-
14
+
35
15
  describe "connecting to an ISBN validator" do
36
16
  before do
37
17
  @proxy = ISBNService.new('http://webservices.daehosting.com/services/isbnservice.wso?WSDL')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremydurham-serviceproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Durham
@@ -61,6 +61,7 @@ files:
61
61
  - spec/service_proxy_spec.rb
62
62
  has_rdoc: true
63
63
  homepage: ""
64
+ licenses:
64
65
  post_install_message:
65
66
  rdoc_options: []
66
67
 
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
82
  requirements: []
82
83
 
83
84
  rubyforge_project:
84
- rubygems_version: 1.2.0
85
+ rubygems_version: 1.3.5
85
86
  signing_key:
86
87
  specification_version: 2
87
88
  summary: Lightweight SOAP library for Ruby