riddl 0.99.246 → 0.99.248

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/examples/declaration-server-distributed/properties.xml +1 -0
  3. data/examples/declaration-server-distributed/xsls/test/properties.xsl +1 -0
  4. data/examples/declaration-server-hybrid/properties.xml +1 -0
  5. data/examples/declaration-server-local/properties.xml +1 -0
  6. data/examples/downloadify/downloadify.xml +1 -0
  7. data/examples/flickr/Exif/riddl.jpg +1 -0
  8. data/examples/flickr/Flickr/riddl.png +1 -0
  9. data/examples/flickr/riddl.jpg +1 -0
  10. data/examples/helloworld/declaration-definition_goal.xml +0 -4
  11. data/examples/notifications/producer.main.xml +1 -0
  12. data/examples/properties/properties.xml +1 -0
  13. data/examples/twitter/client.rb +7 -7
  14. data/examples/xmpp/properties.xml +1 -0
  15. data/lib/ruby/riddl/client.rb +10 -8
  16. data/lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb +2 -2
  17. data/lib/ruby/riddl/server.rb +2 -1
  18. data/lib/ruby/riddl/wrapper.rb +18 -18
  19. data/lib/ruby/riddl/wrapper/declaration.rb +10 -10
  20. data/lib/ruby/riddl/wrapper/declaration/facade.rb +1 -2
  21. data/lib/ruby/riddl/wrapper/declaration/tile.rb +4 -4
  22. data/lib/ruby/riddl/wrapper/description.rb +6 -6
  23. data/lib/ruby/riddl/wrapper/description/access.rb +7 -6
  24. data/lib/ruby/riddl/wrapper/layerchecker.rb +2 -2
  25. data/lib/ruby/riddl/wrapper/resourcechecker.rb +6 -6
  26. data/riddl.gemspec +3 -3
  27. data/tools/riddlcheck +1 -0
  28. data/tools/riddlprocess +1 -0
  29. metadata +6 -7
  30. data/examples/declaration-server-distributed/properties.xml +0 -150
  31. data/examples/declaration-server-distributed/xsls/test/properties.xsl +0 -185
  32. data/examples/declaration-server-hybrid/properties.xml +0 -150
  33. data/examples/declaration-server-local/properties.xml +0 -150
  34. data/examples/downloadify/downloadify.xml +0 -18
  35. data/examples/flickr/Exif/riddl.jpg +0 -0
  36. data/examples/flickr/Flickr/riddl.png +0 -0
  37. data/examples/flickr/riddl.jpg +0 -0
  38. data/examples/library/server-9292.pid +0 -1
  39. data/examples/notifications/producer.main.xml +0 -206
  40. data/examples/properties/properties.xml +0 -150
  41. data/examples/xmpp/properties.xml +0 -150
  42. data/tools/riddlcheck +0 -36
  43. data/tools/riddlprocess +0 -51
@@ -1,150 +0,0 @@
1
- <description datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://riddl.org/ns/description/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
2
-
3
- <message name="value">
4
- <choice>
5
- <parameter name="value" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
6
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/properties/1.0">
7
- <start>
8
- <choice>
9
- <element name="value">
10
- <ref name="value"/>
11
- </element>
12
- <element name="not-existing">
13
- <empty/>
14
- </element>
15
- </choice>
16
- </start>
17
-
18
- <define name="value">
19
- <zeroOrMore>
20
- <choice>
21
- <text/>
22
- <ref name="any"/>
23
- </choice>
24
- </zeroOrMore>
25
- </define>
26
-
27
- <define name="any">
28
- <element>
29
- <anyName/>
30
- <zeroOrMore>
31
- <attribute>
32
- <anyName/>
33
- </attribute>
34
- </zeroOrMore>
35
- <ref name="value"/>
36
- </element>
37
- </define>
38
-
39
- </grammar>
40
- </parameter>
41
- <parameter name="value" type="string"/>
42
-
43
- <parameter name="content" mimetype="text/xml"/>
44
- <parameter name="content" mimetype="text/plain"/>
45
- </choice>
46
- </message>
47
-
48
- <message name="resource-document">
49
- <parameter name="document" mimetype="text/xml"/>
50
- </message>
51
- <message name="resource-document-schema">
52
- <parameter name="document-schema" mimetype="text/xml"/>
53
- </message>
54
-
55
- <message name="properties">
56
- <oneOrMore>
57
- <parameter name="name" type="string"/>
58
- <choice>
59
- <parameter name="value" type="string"/>
60
- <parameter name="value" mimetype="text/plain"/>
61
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
62
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
63
- </choice>
64
- </oneOrMore>
65
- </message>
66
-
67
- <message name="propertylist">
68
- <parameter name="properties" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
69
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/properties/1.0">
70
- <start>
71
- <element name="properties">
72
- <zeroOrMore>
73
- <ref name="property"/>
74
- </zeroOrMore>
75
- </element>
76
- </start>
77
-
78
- <define name="property">
79
- <element>
80
- <anyName/>
81
- <data type="string"/>
82
- </element>
83
- </define>
84
-
85
- </grammar>
86
- </parameter>
87
- </message>
88
- <message name="addcontent">
89
- <choice>
90
- <parameter name="value" type="string"/>
91
- <parameter name="value" mimetype="text/xml"/>
92
- </choice>
93
- </message>
94
- <message name="updcontent">
95
- <choice>
96
- <parameter name="value" type="string"/>
97
- <parameter name="value" mimetype="text/plain"/>
98
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
99
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
100
- </choice>
101
- </message>
102
- <message name="property">
103
- <parameter name="name" type="string">
104
- <param name="pattern">[a-zA-Z_][a-zA-Z0-9_]*</param>
105
- </parameter>
106
- <choice>
107
- <parameter name="value" type="string"/>
108
- <parameter name="value" mimetype="text/plain"/>
109
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
110
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
111
- </choice>
112
- </message>
113
- <message name="query">
114
- <parameter name="query" type="string"/>
115
- </message>
116
-
117
- <resource pattern="http://riddl.org/ns/common-patterns/properties/1.0">
118
- <get in="*" out="resource-document"/>
119
- <get in="query" out="value"/>
120
- <resource relative="schema">
121
- <get in="*" out="resource-document-schema"/>
122
- <resource relative="rng">
123
- <get in="*" out="resource-document-schema"/>
124
- </resource>
125
- <resource relative="xsd">
126
- <get in="*" out="resource-document-schema"/>
127
- </resource>
128
- </resource>
129
- <resource relative="values">
130
- <get in="*" out="propertylist"/>
131
- <post in="property"/>
132
- <put in="properties"/>
133
- <resource>
134
- <get in="*" out="value"/>
135
- <delete in="*"/>
136
- <post in="addcontent"/>
137
- <put in="updcontent"/>
138
- <resource>
139
- <get in="*" out="value"/>
140
- <put in="updcontent"/>
141
- <delete in="*"/>
142
- <resource recursive='true'>
143
- <get in="*" out="value"/>
144
- </resource>
145
- </resource>
146
- </resource>
147
- </resource>
148
- </resource>
149
-
150
- </description>
@@ -1,150 +0,0 @@
1
- <description datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://riddl.org/ns/description/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
2
-
3
- <message name="value">
4
- <choice>
5
- <parameter name="value" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
6
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/properties/1.0">
7
- <start>
8
- <choice>
9
- <element name="value">
10
- <ref name="value"/>
11
- </element>
12
- <element name="not-existing">
13
- <empty/>
14
- </element>
15
- </choice>
16
- </start>
17
-
18
- <define name="value">
19
- <zeroOrMore>
20
- <choice>
21
- <text/>
22
- <ref name="any"/>
23
- </choice>
24
- </zeroOrMore>
25
- </define>
26
-
27
- <define name="any">
28
- <element>
29
- <anyName/>
30
- <zeroOrMore>
31
- <attribute>
32
- <anyName/>
33
- </attribute>
34
- </zeroOrMore>
35
- <ref name="value"/>
36
- </element>
37
- </define>
38
-
39
- </grammar>
40
- </parameter>
41
- <parameter name="value" type="string"/>
42
-
43
- <parameter name="content" mimetype="text/xml"/>
44
- <parameter name="content" mimetype="text/plain"/>
45
- </choice>
46
- </message>
47
-
48
- <message name="resource-document">
49
- <parameter name="document" mimetype="text/xml"/>
50
- </message>
51
- <message name="resource-document-schema">
52
- <parameter name="document-schema" mimetype="text/xml"/>
53
- </message>
54
-
55
- <message name="properties">
56
- <oneOrMore>
57
- <parameter name="name" type="string"/>
58
- <choice>
59
- <parameter name="value" type="string"/>
60
- <parameter name="value" mimetype="text/plain"/>
61
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
62
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
63
- </choice>
64
- </oneOrMore>
65
- </message>
66
-
67
- <message name="propertylist">
68
- <parameter name="properties" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
69
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/properties/1.0">
70
- <start>
71
- <element name="properties">
72
- <zeroOrMore>
73
- <ref name="property"/>
74
- </zeroOrMore>
75
- </element>
76
- </start>
77
-
78
- <define name="property">
79
- <element>
80
- <anyName/>
81
- <data type="string"/>
82
- </element>
83
- </define>
84
-
85
- </grammar>
86
- </parameter>
87
- </message>
88
- <message name="addcontent">
89
- <choice>
90
- <parameter name="value" type="string"/>
91
- <parameter name="value" mimetype="text/xml"/>
92
- </choice>
93
- </message>
94
- <message name="updcontent">
95
- <choice>
96
- <parameter name="value" type="string"/>
97
- <parameter name="value" mimetype="text/plain"/>
98
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
99
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
100
- </choice>
101
- </message>
102
- <message name="property">
103
- <parameter name="name" type="string">
104
- <param name="pattern">[a-zA-Z_][a-zA-Z0-9_]*</param>
105
- </parameter>
106
- <choice>
107
- <parameter name="value" type="string"/>
108
- <parameter name="value" mimetype="text/plain"/>
109
- <parameter name="content" mimetype="text/xml"/> <!-- add everything inside the root tag -->
110
- <parameter name="content" type="string"/> <!-- add everything inside the root tag -->
111
- </choice>
112
- </message>
113
- <message name="query">
114
- <parameter name="query" type="string"/>
115
- </message>
116
-
117
- <resource pattern="http://riddl.org/ns/common-patterns/properties/1.0">
118
- <get in="*" out="resource-document"/>
119
- <get in="query" out="value"/>
120
- <resource relative="schema">
121
- <get in="*" out="resource-document-schema"/>
122
- <resource relative="rng">
123
- <get in="*" out="resource-document-schema"/>
124
- </resource>
125
- <resource relative="xsd">
126
- <get in="*" out="resource-document-schema"/>
127
- </resource>
128
- </resource>
129
- <resource relative="values">
130
- <get in="*" out="propertylist"/>
131
- <post in="property"/>
132
- <put in="properties"/>
133
- <resource>
134
- <get in="*" out="value"/>
135
- <delete in="*"/>
136
- <post in="addcontent"/>
137
- <put in="updcontent"/>
138
- <resource>
139
- <get in="*" out="value"/>
140
- <put in="updcontent"/>
141
- <delete in="*"/>
142
- <resource recursive='true'>
143
- <get in="*" out="value"/>
144
- </resource>
145
- </resource>
146
- </resource>
147
- </resource>
148
- </resource>
149
-
150
- </description>
@@ -1,18 +0,0 @@
1
- <description datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://riddl.org/ns/description/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
2
-
3
- <message name="dfout">
4
- <parameter name="content" mimetype="*"/>
5
- </message>
6
- <message name="dfin">
7
- <parameter name="mimetype" type="string"/>
8
- <parameter name="content" type="string"/>
9
- </message>
10
-
11
- <resource pattern="http://riddl.org/ns/common-patterns/downloadify/1.0">
12
- <resource>
13
- <get in="dfin" out="dfout"/>
14
- <post in="dfin" out="dfout"/>
15
- </resource>
16
- </resource>
17
-
18
- </description>
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- 24293
@@ -1,206 +0,0 @@
1
- <description datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://riddl.org/ns/description/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
2
-
3
- <message name="topics">
4
- <parameter name="topics" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
5
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
6
- <start>
7
- <element name="topics">
8
- <zeroOrMore>
9
- <ref name="topic"/>
10
- </zeroOrMore>
11
- </element>
12
- </start>
13
-
14
- <define name="topic">
15
- <element name="topic">
16
- <attribute name="id">
17
- <data type="string"/>
18
- </attribute>
19
- <zeroOrMore>
20
- <element>
21
- <choice>
22
- <name>event</name>
23
- <name>vote</name>
24
- </choice>
25
- <data type="string">
26
- <param name="pattern">[\w-_]+</param>
27
- </data>
28
- </element>
29
- </zeroOrMore>
30
- </element>
31
- </define>
32
-
33
- </grammar>
34
- </parameter>
35
- </message>
36
-
37
- <message name="subscriptions">
38
- <parameter name="subscriptions" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
39
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
40
- <start>
41
- <element name="subscriptions">
42
- <attribute name="details">
43
- <choice>
44
- <value>debug</value>
45
- <value>production</value>
46
- </choice>
47
- </attribute>
48
- <zeroOrMore>
49
- <ref name="subscription"/>
50
- </zeroOrMore>
51
- </element>
52
- </start>
53
-
54
- <define name="subscription">
55
- <element name="subscription">
56
- <attribute name="id">
57
- <data type="string"/>
58
- </attribute>
59
- <optional>
60
- <attribute name="url">
61
- <data type="string"/>
62
- </attribute>
63
- </optional>
64
- </element>
65
- </define>
66
-
67
- </grammar>
68
- </parameter>
69
- </message>
70
-
71
- <message name="subscription">
72
- <parameter name="subscription" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
73
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
74
- <start>
75
- <element name="subscription">
76
- <optional>
77
- <attribute name="url">
78
- <data type="string"/>
79
- </attribute>
80
- </optional>
81
- <oneOrMore>
82
- <element name="topic">
83
- <attribute name="id">
84
- <data type="string"/>
85
- </attribute>
86
- <oneOrMore>
87
- <element>
88
- <choice>
89
- <name>event</name>
90
- <name>vote</name>
91
- </choice>
92
- <data type="string">
93
- <param name="pattern">[\w_]+</param>
94
- </data>
95
- </element>
96
- </oneOrMore>
97
- </element>
98
- </oneOrMore>
99
- </element>
100
- </start>
101
- </grammar>
102
- </parameter>
103
- <optional>
104
- <parameter name="message-uid" type="string"/>
105
- <parameter name="fingerprint-with-producer-secret" type="string"/>
106
- </optional>
107
- </message>
108
-
109
- <message name="delete">
110
- <optional>
111
- <parameter name="message-uid" type="string"/>
112
- <parameter name="fingerprint-with-producer-secret" type="string"/>
113
- </optional>
114
- </message>
115
- <message name="request">
116
- <optional>
117
- <parameter name="message-uid" type="string"/>
118
- <parameter name="fingerprint-with-producer-secret" type="string"/>
119
- </optional>
120
- </message>
121
-
122
- <message name="subscribe">
123
- <optional>
124
- <parameter name="url" type="string"/>
125
- <optional>
126
- <parameter name="onbehalf" type="string"/>
127
- </optional>
128
- </optional>
129
- <oneOrMore>
130
- <parameter name="topic" type="string"/>
131
- <choice>
132
- <parameter name="votes" type="string">
133
- <param name="pattern">([\w-_]+,)*([\w-_]+)</param>
134
- </parameter>
135
- <parameter name="events" type="string">
136
- <param name="pattern">([\w-_]+,)*([\w-_]+)</param>
137
- </parameter>
138
- </choice>
139
- </oneOrMore>
140
- </message>
141
- <message name="acknowledgment">
142
- <parameter name="key" type="string"/>
143
- <parameter name="producer-secret" type="string"/>
144
- <parameter name="consumer-secret" type="string"/>
145
- </message>
146
-
147
- <message name="details">
148
- <optional>
149
- <parameter name="url" type="string"/>
150
- </optional>
151
- <oneOrMore>
152
- <parameter name="topic" type="string"/>
153
- <choice>
154
- <parameter name="votes" type="string">
155
- <param name="pattern">([\w-_]+,)*([\w-_]+)</param>
156
- </parameter>
157
- <parameter name="events" type="string">
158
- <param name="pattern">([\w-_]+,)*([\w-_]+)</param>
159
- </parameter>
160
- </choice>
161
- </oneOrMore>
162
- <optional>
163
- <parameter name="message-uid" type="string"/>
164
- <parameter name="fingerprint-with-producer-secret" type="string"/>
165
- </optional>
166
- </message>
167
-
168
- <message name="overview">
169
- <parameter name="overview" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
170
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
171
- <start>
172
- <element name="overview">
173
- <element name="topics">
174
- <empty/>
175
- </element>
176
- <element name="subscriptions">
177
- <empty/>
178
- </element>
179
- </element>
180
- </start>
181
- </grammar>
182
- </parameter>
183
- </message>
184
-
185
- <resource pattern="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
186
- <resource relative="notifications">
187
- <get in="*" out="overview"/>
188
- <resource relative="topics">
189
- <get in="*" out="topics"/>
190
- </resource>
191
- <resource relative="subscriptions">
192
- <get in="*" out="subscriptions"/>
193
- <post in="subscribe" out="acknowledgment"/>
194
- <resource>
195
- <get in="request" out="subscription"/>
196
- <put in="details"/>
197
- <delete in="delete"/>
198
- <resource relative="ws">
199
- <websocket/>
200
- </resource>
201
- </resource>
202
- </resource>
203
- </resource>
204
- </resource>
205
-
206
- </description>