pelle-actionwebservice 2.3.3 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -62,7 +62,7 @@ Rake::RDocTask.new { |rdoc|
62
62
  # Create compressed packages
63
63
  spec = Gem::Specification.new do |s|
64
64
  s.platform = Gem::Platform::RUBY
65
- s.name = PKG_NAME
65
+ s.name = "pelle-#{PKG_NAME}"
66
66
  s.summary = "Web service support for Action Pack."
67
67
  s.description = %q{Adds WSDL/SOAP and XML-RPC web service support to Action Pack}
68
68
  s.version = PKG_VERSION
@@ -46,6 +46,7 @@ require 'action_web_service/container'
46
46
  require 'action_web_service/protocol'
47
47
  require 'action_web_service/dispatcher'
48
48
  require 'action_web_service/scaffolding'
49
+ require 'action_web_service/acts_as_web_service'
49
50
 
50
51
  ActionWebService::Base.class_eval do
51
52
  include ActionWebService::Container::Direct
@@ -53,14 +54,5 @@ ActionWebService::Base.class_eval do
53
54
  end
54
55
 
55
56
  ActionController::Base.class_eval do
56
- include ActionWebService::Protocol::Discovery
57
- include ActionWebService::Protocol::Soap
58
- include ActionWebService::Protocol::XmlRpc
59
- include ActionWebService::Container::Direct
60
- include ActionWebService::Container::Delegated
61
- include ActionWebService::Container::ActionController
62
- include ActionWebService::Invocation
63
- include ActionWebService::Dispatcher
64
- include ActionWebService::Dispatcher::ActionController
65
- include ActionWebService::Scaffolding
57
+ include ActionWebService::ActsAsWebService
66
58
  end
@@ -0,0 +1,24 @@
1
+ module ActionWebService
2
+ module ActsAsWebService
3
+
4
+ def self.included(base) # :nodoc:
5
+ base.extend ClassMethods
6
+ end
7
+
8
+ module ClassMethods
9
+ # Add this to your controller to include all ActionWebservice
10
+ def acts_as_web_service
11
+ include ActionWebService::Protocol::Discovery
12
+ include ActionWebService::Protocol::Soap
13
+ include ActionWebService::Protocol::XmlRpc
14
+ include ActionWebService::Container::Direct
15
+ include ActionWebService::Container::Delegated
16
+ include ActionWebService::Container::ActionController
17
+ include ActionWebService::Invocation
18
+ include ActionWebService::Dispatcher
19
+ include ActionWebService::Dispatcher::ActionController
20
+ include ActionWebService::Scaffolding
21
+ end
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pelle-actionwebservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Breedt, Kent Sibilev
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-16 00:00:00 -07:00
12
+ date: 2009-12-01 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.2
23
+ version: 2.3.5
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.2
33
+ version: 2.3.5
34
34
  version:
35
35
  description: Adds WSDL/SOAP and XML-RPC web service support to Action Pack
36
36
  email: bitserf@gmail.com, ksibilev@yahoo.com
@@ -47,60 +47,44 @@ files:
47
47
  - TODO
48
48
  - CHANGELOG
49
49
  - MIT-LICENSE
50
- - examples/googlesearch
51
- - examples/googlesearch/autoloading
52
50
  - examples/googlesearch/autoloading/google_search_api.rb
53
51
  - examples/googlesearch/autoloading/google_search_controller.rb
54
- - examples/googlesearch/delegated
55
52
  - examples/googlesearch/delegated/google_search_service.rb
56
53
  - examples/googlesearch/delegated/search_controller.rb
57
- - examples/googlesearch/direct
58
54
  - examples/googlesearch/direct/google_search_api.rb
59
55
  - examples/googlesearch/direct/search_controller.rb
60
56
  - examples/googlesearch/README
61
- - examples/metaWeblog
62
- - examples/metaWeblog/apis
63
57
  - examples/metaWeblog/apis/blogger_api.rb
64
58
  - examples/metaWeblog/apis/blogger_service.rb
65
59
  - examples/metaWeblog/apis/meta_weblog_api.rb
66
60
  - examples/metaWeblog/apis/meta_weblog_service.rb
67
- - examples/metaWeblog/controllers
68
61
  - examples/metaWeblog/controllers/xmlrpc_controller.rb
69
62
  - examples/metaWeblog/README
70
- - lib/action_web_service
71
63
  - lib/action_web_service/api.rb
72
64
  - lib/action_web_service/base.rb
73
65
  - lib/action_web_service/casting.rb
74
- - lib/action_web_service/client
75
66
  - lib/action_web_service/client/base.rb
76
67
  - lib/action_web_service/client/soap_client.rb
77
68
  - lib/action_web_service/client/xmlrpc_client.rb
78
69
  - lib/action_web_service/client.rb
79
- - lib/action_web_service/container
80
70
  - lib/action_web_service/container/action_controller_container.rb
81
71
  - lib/action_web_service/container/delegated_container.rb
82
72
  - lib/action_web_service/container/direct_container.rb
83
73
  - lib/action_web_service/container.rb
84
- - lib/action_web_service/dispatcher
85
74
  - lib/action_web_service/dispatcher/abstract.rb
86
75
  - lib/action_web_service/dispatcher/action_controller_dispatcher.rb
87
76
  - lib/action_web_service/dispatcher.rb
88
77
  - lib/action_web_service/invocation.rb
89
- - lib/action_web_service/protocol
90
78
  - lib/action_web_service/protocol/abstract.rb
91
79
  - lib/action_web_service/protocol/discovery.rb
92
- - lib/action_web_service/protocol/soap_protocol
93
80
  - lib/action_web_service/protocol/soap_protocol/marshaler.rb
94
81
  - lib/action_web_service/protocol/soap_protocol.rb
95
82
  - lib/action_web_service/protocol/xmlrpc_protocol.rb
96
83
  - lib/action_web_service/protocol.rb
97
84
  - lib/action_web_service/scaffolding.rb
98
85
  - lib/action_web_service/struct.rb
99
- - lib/action_web_service/support
100
86
  - lib/action_web_service/support/class_inheritable_options.rb
101
87
  - lib/action_web_service/support/signature_types.rb
102
- - lib/action_web_service/templates
103
- - lib/action_web_service/templates/scaffolds
104
88
  - lib/action_web_service/templates/scaffolds/layout.html.erb
105
89
  - lib/action_web_service/templates/scaffolds/methods.html.erb
106
90
  - lib/action_web_service/templates/scaffolds/parameters.html.erb
@@ -109,11 +93,11 @@ files:
109
93
  - lib/action_web_service/version.rb
110
94
  - lib/action_web_service.rb
111
95
  - lib/actionwebservice.rb
96
+ - lib/action_web_service/acts_as_web_service.rb
112
97
  - test/abstract_client.rb
113
98
  - test/abstract_dispatcher.rb
114
99
  - test/abstract_unit.rb
115
100
  - test/api_test.rb
116
- - test/apis
117
101
  - test/apis/auto_load_api.rb
118
102
  - test/apis/broken_auto_load_api.rb
119
103
  - test/base_test.rb
@@ -123,8 +107,6 @@ files:
123
107
  - test/container_test.rb
124
108
  - test/dispatcher_action_controller_soap_test.rb
125
109
  - test/dispatcher_action_controller_xmlrpc_test.rb
126
- - test/fixtures
127
- - test/fixtures/db_definitions
128
110
  - test/fixtures/db_definitions/mysql.sql
129
111
  - test/fixtures/users.yml
130
112
  - test/gencov
@@ -133,8 +115,6 @@ files:
133
115
  - test/scaffolded_controller_test.rb
134
116
  - test/struct_test.rb
135
117
  - test/test_invoke_test.rb
136
- - generators/web_service
137
- - generators/web_service/templates
138
118
  - generators/web_service/templates/api_definition.rb
139
119
  - generators/web_service/templates/controller.rb
140
120
  - generators/web_service/templates/functional_test.rb
@@ -142,7 +122,8 @@ files:
142
122
  - generators/web_service/web_service_generator.rb
143
123
  has_rdoc: true
144
124
  homepage: http://www.rubyonrails.org
145
- licenses:
125
+ licenses: []
126
+
146
127
  post_install_message:
147
128
  rdoc_options: []
148
129
 
@@ -165,7 +146,7 @@ requirements:
165
146
  rubyforge_project: aws
166
147
  rubygems_version: 1.3.5
167
148
  signing_key:
168
- specification_version: 2
149
+ specification_version: 3
169
150
  summary: Web service support for Action Pack.
170
151
  test_files: []
171
152