ywen-actionwebservice 2.3.4 → 2.3.4.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/lib/action_web_service.rb
CHANGED
@@ -34,6 +34,7 @@ end
|
|
34
34
|
|
35
35
|
$:.unshift(File.dirname(__FILE__) + "/action_web_service/vendor/")
|
36
36
|
|
37
|
+
require 'action_web_service/string_to_datetime_for_soap'
|
37
38
|
require 'action_web_service/support/class_inheritable_options'
|
38
39
|
require 'action_web_service/support/signature_types'
|
39
40
|
require 'action_web_service/base'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module StringToDatetimeForSoap
|
2
|
+
def to_datetime
|
3
|
+
if /^([+\-]?\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d(?:\.(\d*))?)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ self.strip
|
4
|
+
return Time.xmlschema(self).localtime
|
5
|
+
end
|
6
|
+
super
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
String.send :include, StringToDatetimeForSoap
|
@@ -24,8 +24,7 @@ module ActionWebService
|
|
24
24
|
def initialize(values={})
|
25
25
|
if values.is_a?(Hash)
|
26
26
|
values.map do |k,v|
|
27
|
-
|
28
|
-
__send__('%s=' % k.to_s, val)
|
27
|
+
__send__('%s=' % k.to_s, v)
|
29
28
|
end
|
30
29
|
end
|
31
30
|
end
|
@@ -51,7 +50,9 @@ module ActionWebService
|
|
51
50
|
write_inheritable_hash("struct_members", name => type)
|
52
51
|
class_eval <<-END
|
53
52
|
def #{name}; @#{name}; end
|
54
|
-
def #{name}=(value)
|
53
|
+
def #{name}=(value)
|
54
|
+
@#{name} = value;
|
55
|
+
end
|
55
56
|
END
|
56
57
|
end
|
57
58
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ywen-actionwebservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.4
|
4
|
+
version: 2.3.4.1
|
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-11-
|
12
|
+
date: 2009-11-28 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- examples/metaWeblog/apis/meta_weblog_service.rb
|
61
61
|
- examples/metaWeblog/controllers/xmlrpc_controller.rb
|
62
62
|
- examples/metaWeblog/README
|
63
|
+
- lib/action_web_service/string_to_datetime_for_soap.rb
|
63
64
|
- lib/action_web_service/api.rb
|
64
65
|
- lib/action_web_service/base.rb
|
65
66
|
- lib/action_web_service/casting.rb
|