gwt_rpc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gwt_rpc.gemspec +3 -3
- data/lib/gwt_rpc/client.rb +12 -3
- data/lib/gwt_rpc/request.rb +2 -2
- metadata +86 -37
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/gwt_rpc.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gwt_rpc}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Carpenter"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-11-18}
|
13
13
|
s.description = %q{Spider Google Web Toolkit sites using ruby}
|
14
14
|
s.email = %q{andrew.main@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -65,7 +65,7 @@ Gem::Specification.new do |s|
|
|
65
65
|
s.homepage = %q{http://github.com/andrewcarpenter/gwt_rpc}
|
66
66
|
s.licenses = ["MIT"]
|
67
67
|
s.require_paths = ["lib"]
|
68
|
-
s.rubygems_version = %q{1.
|
68
|
+
s.rubygems_version = %q{1.5.2}
|
69
69
|
s.summary = %q{Ruby Google Web Toolkit client}
|
70
70
|
s.test_files = [
|
71
71
|
"spec/gwt_rpc/base_extensions/array_spec.rb",
|
data/lib/gwt_rpc/client.rb
CHANGED
@@ -13,6 +13,14 @@ class GwtRpc::Client
|
|
13
13
|
@js_url
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.timeout(timeout = nil)
|
17
|
+
if timeout
|
18
|
+
@timeout = timeout
|
19
|
+
end
|
20
|
+
@timeout ||= 10
|
21
|
+
@timeout
|
22
|
+
end
|
23
|
+
|
16
24
|
def self.gwt_permutation(permutation = nil)
|
17
25
|
if permutation
|
18
26
|
@gwt_permutation = permutation
|
@@ -20,7 +28,7 @@ class GwtRpc::Client
|
|
20
28
|
@gwt_permutation
|
21
29
|
end
|
22
30
|
|
23
|
-
delegate :domain, :js_url, :gwt_permutation, :to => "self.class"
|
31
|
+
delegate :domain, :js_url, :gwt_permutation, :timeout, :to => "self.class"
|
24
32
|
|
25
33
|
def self.map_classes(mapping)
|
26
34
|
@class_map ||= {}
|
@@ -56,7 +64,8 @@ class GwtRpc::Client
|
|
56
64
|
def self.inherited(subclass)
|
57
65
|
subclass.domain self.domain
|
58
66
|
subclass.js_url self.js_url
|
59
|
-
|
67
|
+
subclass.timeout self.timeout
|
68
|
+
|
60
69
|
subclass.map_classes @class_map
|
61
70
|
end
|
62
71
|
|
@@ -72,4 +81,4 @@ class GwtRpc::Client
|
|
72
81
|
"com.extjs.gxt.ui.client.Style$SortDir" => "GwtRpc::Gxt::SortDir",
|
73
82
|
"com.extjs.gxt.ui.client.data.SortInfo" => "GwtRpc::Gxt::SortInfo",
|
74
83
|
"com.extjs.gxt.ui.client.data.BasePagingLoadResult" => "GwtRpc::Gxt::PaginatedResultset"
|
75
|
-
end
|
84
|
+
end
|
data/lib/gwt_rpc/request.rb
CHANGED
@@ -16,7 +16,7 @@ class GwtRpc::Request
|
|
16
16
|
'X-GWT-Module-Base' => @client.js_url,
|
17
17
|
'X-GWT-Permutation' => @client.gwt_permutation,
|
18
18
|
},
|
19
|
-
:timeout =>
|
19
|
+
:timeout => @client.timeout,
|
20
20
|
:cache_timeout => 60)
|
21
21
|
return GwtRpc::Response.new(@client, response).content
|
22
22
|
rescue GwtRpc::Error::NoResponse
|
@@ -73,4 +73,4 @@ class GwtRpc::Request
|
|
73
73
|
end
|
74
74
|
return string_table, vals
|
75
75
|
end
|
76
|
-
end
|
76
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gwt_rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Andrew Carpenter
|
@@ -10,130 +15,171 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-
|
18
|
+
date: 2011-11-18 00:00:00 -08:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
|
-
|
22
|
+
type: :runtime
|
18
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
24
|
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
23
31
|
version: "0"
|
24
|
-
|
25
|
-
prerelease: false
|
32
|
+
name: typhoeus
|
26
33
|
version_requirements: *id001
|
34
|
+
prerelease: false
|
27
35
|
- !ruby/object:Gem::Dependency
|
28
|
-
|
36
|
+
type: :runtime
|
29
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
none: false
|
31
39
|
requirements:
|
32
40
|
- - ">="
|
33
41
|
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
34
45
|
version: "0"
|
35
|
-
|
36
|
-
prerelease: false
|
46
|
+
name: activesupport
|
37
47
|
version_requirements: *id002
|
48
|
+
prerelease: false
|
38
49
|
- !ruby/object:Gem::Dependency
|
39
|
-
|
50
|
+
type: :runtime
|
40
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
52
|
none: false
|
42
53
|
requirements:
|
43
54
|
- - ">="
|
44
55
|
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
45
59
|
version: "0"
|
46
|
-
|
47
|
-
prerelease: false
|
60
|
+
name: json
|
48
61
|
version_requirements: *id003
|
62
|
+
prerelease: false
|
49
63
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
64
|
+
type: :development
|
51
65
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
66
|
none: false
|
53
67
|
requirements:
|
54
68
|
- - ">"
|
55
69
|
- !ruby/object:Gem::Version
|
70
|
+
hash: 15
|
71
|
+
segments:
|
72
|
+
- 2
|
73
|
+
- 0
|
74
|
+
- 0
|
56
75
|
version: 2.0.0
|
57
|
-
|
58
|
-
prerelease: false
|
76
|
+
name: rspec
|
59
77
|
version_requirements: *id004
|
78
|
+
prerelease: false
|
60
79
|
- !ruby/object:Gem::Dependency
|
61
|
-
|
80
|
+
type: :development
|
62
81
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
82
|
none: false
|
64
83
|
requirements:
|
65
84
|
- - ~>
|
66
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 23
|
87
|
+
segments:
|
88
|
+
- 1
|
89
|
+
- 0
|
90
|
+
- 0
|
67
91
|
version: 1.0.0
|
68
|
-
|
69
|
-
prerelease: false
|
92
|
+
name: bundler
|
70
93
|
version_requirements: *id005
|
94
|
+
prerelease: false
|
71
95
|
- !ruby/object:Gem::Dependency
|
72
|
-
|
96
|
+
type: :development
|
73
97
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
98
|
none: false
|
75
99
|
requirements:
|
76
100
|
- - ~>
|
77
101
|
- !ruby/object:Gem::Version
|
102
|
+
hash: 1
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 5
|
106
|
+
- 1
|
78
107
|
version: 1.5.1
|
79
|
-
|
80
|
-
prerelease: false
|
108
|
+
name: jeweler
|
81
109
|
version_requirements: *id006
|
110
|
+
prerelease: false
|
82
111
|
- !ruby/object:Gem::Dependency
|
83
|
-
|
112
|
+
type: :development
|
84
113
|
requirement: &id007 !ruby/object:Gem::Requirement
|
85
114
|
none: false
|
86
115
|
requirements:
|
87
116
|
- - ">="
|
88
117
|
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
89
121
|
version: "0"
|
90
|
-
|
91
|
-
prerelease: false
|
122
|
+
name: rcov
|
92
123
|
version_requirements: *id007
|
124
|
+
prerelease: false
|
93
125
|
- !ruby/object:Gem::Dependency
|
94
|
-
|
126
|
+
type: :runtime
|
95
127
|
requirement: &id008 !ruby/object:Gem::Requirement
|
96
128
|
none: false
|
97
129
|
requirements:
|
98
130
|
- - ">="
|
99
131
|
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
100
135
|
version: "0"
|
101
|
-
|
102
|
-
prerelease: false
|
136
|
+
name: typhoeus
|
103
137
|
version_requirements: *id008
|
138
|
+
prerelease: false
|
104
139
|
- !ruby/object:Gem::Dependency
|
105
|
-
|
140
|
+
type: :runtime
|
106
141
|
requirement: &id009 !ruby/object:Gem::Requirement
|
107
142
|
none: false
|
108
143
|
requirements:
|
109
144
|
- - ">="
|
110
145
|
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
111
149
|
version: "0"
|
112
|
-
|
113
|
-
prerelease: false
|
150
|
+
name: activesupport
|
114
151
|
version_requirements: *id009
|
152
|
+
prerelease: false
|
115
153
|
- !ruby/object:Gem::Dependency
|
116
|
-
|
154
|
+
type: :runtime
|
117
155
|
requirement: &id010 !ruby/object:Gem::Requirement
|
118
156
|
none: false
|
119
157
|
requirements:
|
120
158
|
- - ">="
|
121
159
|
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
161
|
+
segments:
|
162
|
+
- 0
|
122
163
|
version: "0"
|
123
|
-
|
124
|
-
prerelease: false
|
164
|
+
name: json
|
125
165
|
version_requirements: *id010
|
166
|
+
prerelease: false
|
126
167
|
- !ruby/object:Gem::Dependency
|
127
|
-
|
168
|
+
type: :development
|
128
169
|
requirement: &id011 !ruby/object:Gem::Requirement
|
129
170
|
none: false
|
130
171
|
requirements:
|
131
172
|
- - ">"
|
132
173
|
- !ruby/object:Gem::Version
|
174
|
+
hash: 25
|
175
|
+
segments:
|
176
|
+
- 1
|
177
|
+
- 2
|
178
|
+
- 3
|
133
179
|
version: 1.2.3
|
134
|
-
|
135
|
-
prerelease: false
|
180
|
+
name: rspec
|
136
181
|
version_requirements: *id011
|
182
|
+
prerelease: false
|
137
183
|
description: Spider Google Web Toolkit sites using ruby
|
138
184
|
email: andrew.main@gmail.com
|
139
185
|
executables: []
|
@@ -202,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
248
|
requirements:
|
203
249
|
- - ">="
|
204
250
|
- !ruby/object:Gem::Version
|
205
|
-
hash:
|
251
|
+
hash: 3
|
206
252
|
segments:
|
207
253
|
- 0
|
208
254
|
version: "0"
|
@@ -211,11 +257,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
257
|
requirements:
|
212
258
|
- - ">="
|
213
259
|
- !ruby/object:Gem::Version
|
260
|
+
hash: 3
|
261
|
+
segments:
|
262
|
+
- 0
|
214
263
|
version: "0"
|
215
264
|
requirements: []
|
216
265
|
|
217
266
|
rubyforge_project:
|
218
|
-
rubygems_version: 1.
|
267
|
+
rubygems_version: 1.5.2
|
219
268
|
signing_key:
|
220
269
|
specification_version: 3
|
221
270
|
summary: Ruby Google Web Toolkit client
|