marley 0.8.0 → 0.8.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/marley/joints/forum.rb +3 -2
- data/lib/marley/reggae.rb +1 -1
- data/reggae.ebnf +4 -2
- metadata +1 -1
data/lib/marley/joints/forum.rb
CHANGED
|
@@ -25,8 +25,9 @@ module Marley
|
|
|
25
25
|
else
|
|
26
26
|
Marley::ReggaeInstanceList.new(
|
|
27
27
|
:name => resource_name,
|
|
28
|
-
:schema => t[0].reggae_schema(true)
|
|
29
|
-
:items => t.map{|t| t.thread_vals}
|
|
28
|
+
:schema => t[0].reggae_schema(true),
|
|
29
|
+
:items => t.map{|t| t.thread_vals},
|
|
30
|
+
:recursive => true
|
|
30
31
|
)
|
|
31
32
|
end
|
|
32
33
|
end
|
data/lib/marley/reggae.rb
CHANGED
|
@@ -107,7 +107,7 @@ module Marley
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
class ReggaeInstanceList < ReggaeResource
|
|
110
|
-
properties :name,:description,:actions,:group_actions,:items
|
|
110
|
+
properties :name,:description,:actions,:group_actions,:items,:recursive
|
|
111
111
|
end
|
|
112
112
|
class ReggaeMsg < ReggaeResource
|
|
113
113
|
properties :title,:description
|
data/reggae.ebnf
CHANGED
|
@@ -17,7 +17,7 @@ link_property ::= 'title' | 'description' | 'url'
|
|
|
17
17
|
|
|
18
18
|
instance_property ::= 'name' | 'url' | 'new_rec' | 'search' | 'schema' | 'actions'
|
|
19
19
|
|
|
20
|
-
instance_list_property ::='title' | 'description' | 'schema' | 'actions' | 'group_actions' | 'items'
|
|
20
|
+
instance_list_property ::='title' | 'description' | 'schema' | 'actions' | 'group_actions' | 'items' | 'recursive'
|
|
21
21
|
|
|
22
22
|
msg_property ::= 'title' | 'description'
|
|
23
23
|
|
|
@@ -35,10 +35,12 @@ new_rec_value ::= boolean_value
|
|
|
35
35
|
|
|
36
36
|
search_value ::= boolean_value
|
|
37
37
|
|
|
38
|
-
schema_value ::= '[' col_spec (',' colspec)? ']'
|
|
38
|
+
schema_value ::= '[' col_spec | schema_value (',' colspec | schema_value)? ']'
|
|
39
39
|
|
|
40
40
|
items_value ::= '[' '[' col_value (',' col_value)* ']' (',' '[' col_value (',' col_value)* ']')* ']'
|
|
41
41
|
|
|
42
|
+
recursive_value ::= boolean_value
|
|
43
|
+
|
|
42
44
|
actions_value ::= '{' '"' ('get' | 'post' | 'put' | 'delete') '"' ':' methods (',' '"' ('get' | 'post' | 'put' | 'delete') '"' ':' methods )* '}'
|
|
43
45
|
|
|
44
46
|
group_actions_value ::= actions_value
|