actionwebservice 1.1.0 → 1.1.1

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/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *1.1.1* (April 6th, 2005)
2
+
3
+ * Do not convert driver options to strings (#4499)
4
+
5
+
1
6
  *1.1.0* (March 27th, 2005)
2
7
 
3
8
  * Make ActiveWebService::Struct type reloadable
data/Rakefile CHANGED
@@ -71,8 +71,8 @@ spec = Gem::Specification.new do |s|
71
71
  s.rubyforge_project = "aws"
72
72
  s.homepage = "http://www.rubyonrails.org"
73
73
 
74
- s.add_dependency('actionpack', '= 1.12.0' + PKG_BUILD)
75
- s.add_dependency('activerecord', '= 1.14.0' + PKG_BUILD)
74
+ s.add_dependency('actionpack', '= 1.12.1' + PKG_BUILD)
75
+ s.add_dependency('activerecord', '= 1.14.1' + PKG_BUILD)
76
76
 
77
77
  s.has_rdoc = true
78
78
  s.requirements << 'none'
@@ -50,7 +50,7 @@ module ActionWebService # :nodoc:
50
50
  @soap_action_base ||= URI.parse(endpoint_uri).path
51
51
  @driver = create_soap_rpc_driver(api, endpoint_uri)
52
52
  @driver_options.each do |name, value|
53
- @driver.options[name.to_s] = value.to_s
53
+ @driver.options[name.to_s] = value
54
54
  end
55
55
  end
56
56
 
@@ -28,32 +28,32 @@
28
28
 
29
29
  #errorExplanation {
30
30
  width: 400px;
31
- border: 2px solid red;
32
- padding: 7px;
33
- padding-bottom: 12px;
34
- margin-bottom: 20px;
35
- background-color: #f0f0f0;
31
+ border: 2px solid red;
32
+ padding: 7px;
33
+ padding-bottom: 12px;
34
+ margin-bottom: 20px;
35
+ background-color: #f0f0f0;
36
36
  }
37
37
 
38
38
  #errorExplanation h2 {
39
- text-align: left;
40
- font-weight: bold;
41
- padding: 5px 5px 5px 15px;
42
- font-size: 12px;
43
- margin: -7px;
44
- background-color: #c00;
45
- color: #fff;
39
+ text-align: left;
40
+ font-weight: bold;
41
+ padding: 5px 5px 5px 15px;
42
+ font-size: 12px;
43
+ margin: -7px;
44
+ background-color: #c00;
45
+ color: #fff;
46
46
  }
47
47
 
48
48
  #errorExplanation p {
49
- color: #333;
50
- margin-bottom: 0;
51
- padding: 5px;
49
+ color: #333;
50
+ margin-bottom: 0;
51
+ padding: 5px;
52
52
  }
53
53
 
54
54
  #errorExplanation ul li {
55
- font-size: 12px;
56
- list-style: square;
55
+ font-size: 12px;
56
+ list-style: square;
57
57
  }
58
58
  </style>
59
59
  </head>
@@ -52,6 +52,7 @@ module Test # :nodoc:
52
52
  end
53
53
  protocol.register_api(api)
54
54
  method = api.api_methods[api_method_name.to_sym]
55
+ raise ArgumentError, "wrong number of arguments for rpc call (#{args.length} for #{method.expects.length})" unless args.length == method.expects.length
55
56
  protocol.encode_request(public_method_name(service_name, api_method_name), args.dup, method.expects)
56
57
  end
57
58
 
@@ -2,7 +2,7 @@ module ActionWebService
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -76,4 +76,25 @@ class TestInvokeTest < Test::Unit::TestCase
76
76
  end
77
77
  end
78
78
  end
79
+
80
+ def test_layered_fail_with_wrong_number_of_arguments
81
+ [:soap, :xmlrpc].each do |protocol|
82
+ @protocol = protocol
83
+ [:one, :two].each do |service|
84
+ @controller = TestInvokeLayeredController.new
85
+ assert_raise(ArgumentError) { invoke_layered service, :add, 1 }
86
+ end
87
+ end
88
+ end
89
+
90
+ def test_delegated_fail_with_wrong_number_of_arguments
91
+ @controller = TestInvokeDelegatedController.new
92
+ assert_raise(ArgumentError) { invoke_delegated :service, :add, 1 }
93
+ end
94
+
95
+ def test_direct_fail_with_wrong_number_of_arguments
96
+ @controller = TestInvokeDirectController.new
97
+ assert_raise(ArgumentError) { invoke :add, 1 }
98
+ end
99
+
79
100
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: actionwebservice
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2006-03-27 00:00:00 -06:00
6
+ version: 1.1.1
7
+ date: 2006-04-06 00:00:00 -05:00
8
8
  summary: Web service support for Action Pack.
9
9
  require_paths:
10
10
  - lib
@@ -139,7 +139,7 @@ dependencies:
139
139
  requirements:
140
140
  - - "="
141
141
  - !ruby/object:Gem::Version
142
- version: 1.12.0
142
+ version: 1.12.1
143
143
  version:
144
144
  - !ruby/object:Gem::Dependency
145
145
  name: activerecord
@@ -148,5 +148,5 @@ dependencies:
148
148
  requirements:
149
149
  - - "="
150
150
  - !ruby/object:Gem::Version
151
- version: 1.14.0
151
+ version: 1.14.1
152
152
  version: