bigbluebutton_rails 0.1.0 → 0.1.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/CHANGELOG.rdoc +11 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +46 -32
- data/Rakefile +0 -1
- data/app/controllers/bigbluebutton/rooms_controller.rb +17 -16
- data/app/controllers/bigbluebutton/servers_controller.rb +6 -2
- data/app/models/bigbluebutton_room.rb +35 -1
- data/app/models/bigbluebutton_server.rb +1 -1
- data/app/views/bigbluebutton/rooms/_form.html.erb +7 -3
- data/app/views/bigbluebutton/rooms/_rooms.html.erb +37 -0
- data/app/views/bigbluebutton/rooms/edit.html.erb +2 -2
- data/app/views/bigbluebutton/rooms/external.html.erb +2 -1
- data/app/views/bigbluebutton/rooms/index.html.erb +2 -37
- data/app/views/bigbluebutton/rooms/invite.html.erb +2 -2
- data/app/views/bigbluebutton/rooms/join.html.erb +1 -1
- data/app/views/bigbluebutton/rooms/new.html.erb +1 -1
- data/app/views/bigbluebutton/rooms/show.html.erb +10 -4
- data/app/views/bigbluebutton/servers/_activity_list.html.erb +6 -6
- data/app/views/bigbluebutton/servers/index.html.erb +4 -3
- data/app/views/bigbluebutton/servers/rooms.html.erb +2 -0
- data/app/views/bigbluebutton/servers/show.html.erb +3 -4
- data/config/locales/en.yml +7 -3
- data/lib/bigbluebutton_rails/exceptions.rb +4 -0
- data/lib/bigbluebutton_rails/rails/routes.rb +28 -35
- data/lib/bigbluebutton_rails/version.rb +1 -1
- data/spec/controllers/bigbluebutton/rooms_controller_exception_handling_spec.rb +13 -10
- data/spec/controllers/bigbluebutton/rooms_controller_json_responses_spec.rb +13 -13
- data/spec/controllers/bigbluebutton/rooms_controller_spec.rb +114 -115
- data/spec/controllers/bigbluebutton/servers_controller_json_responses_spec.rb +12 -1
- data/spec/controllers/bigbluebutton/servers_controller_spec.rb +11 -0
- data/spec/generators/install_generator_spec.rb +1 -1
- data/spec/models/bigbluebutton_room_spec.rb +166 -80
- data/spec/models/bigbluebutton_server_spec.rb +4 -4
- data/spec/rails_app/features/activity_monitor_servers.feature +6 -0
- data/spec/rails_app/features/create_rooms.feature +5 -0
- data/spec/rails_app/features/create_servers.feature +7 -2
- data/spec/rails_app/features/edit_rooms.feature +7 -0
- data/spec/rails_app/features/edit_servers.feature +8 -2
- data/spec/rails_app/features/join_rooms.feature +1 -0
- data/spec/rails_app/features/list_and_show_rooms.feature +10 -2
- data/spec/rails_app/features/step_definitions/activity_monitor_servers_step.rb +10 -10
- data/spec/rails_app/features/step_definitions/common_steps.rb +6 -4
- data/spec/rails_app/features/step_definitions/create_rooms_steps.rb +1 -0
- data/spec/rails_app/features/step_definitions/join_mobile_steps.rb +1 -3
- data/spec/rails_app/features/step_definitions/join_rooms_steps.rb +3 -7
- data/spec/rails_app/features/step_definitions/list_and_show_rooms_steps.rb +12 -5
- data/spec/rails_app/features/step_definitions/list_and_show_servers_steps.rb +1 -5
- data/spec/rails_app/features/support/{application_controller.rb → patches/application_controller.rb} +0 -0
- data/spec/rails_app/features/support/patches/bigbluebutton_room.rb +9 -0
- data/spec/rails_app/features/support/paths.rb +12 -10
- data/spec/rails_app/features/support/templates.rb +90 -46
- data/spec/routing/bigbluebutton/custom_controllers_routing_spec.rb +38 -22
- data/spec/routing/bigbluebutton/rooms_routing_spec.rb +142 -58
- data/spec/routing/bigbluebutton/servers_routing_spec.rb +9 -1
- metadata +12 -9
@@ -34,51 +34,67 @@ describe ActionController do
|
|
34
34
|
{:delete => "/custom/servers/1"}.
|
35
35
|
should route_to(:controller => "custom_servers", :action => "destroy", :id => "1")
|
36
36
|
}
|
37
|
+
it {
|
38
|
+
{:get => "/custom/servers/1/activity"}.
|
39
|
+
should route_to(:controller => "custom_servers", :action => "activity", :id => "1")
|
40
|
+
}
|
37
41
|
|
38
42
|
# custom controllers - rooms
|
39
43
|
it {
|
40
|
-
{:get => "/custom/
|
41
|
-
should route_to(:controller => "custom_rooms", :action => "index"
|
44
|
+
{:get => "/custom/rooms"}.
|
45
|
+
should route_to(:controller => "custom_rooms", :action => "index")
|
46
|
+
}
|
47
|
+
it {
|
48
|
+
{:get => "/custom/rooms/new"}.
|
49
|
+
should route_to(:controller => "custom_rooms", :action => "new")
|
50
|
+
}
|
51
|
+
it {
|
52
|
+
{:get => "/custom/rooms/1"}.
|
53
|
+
should route_to(:controller => "custom_rooms", :action => "show", :id => "1")
|
54
|
+
}
|
55
|
+
it {
|
56
|
+
{:get => "/custom/rooms/1/edit"}.
|
57
|
+
should route_to(:controller => "custom_rooms", :action => "edit", :id => "1")
|
42
58
|
}
|
43
59
|
it {
|
44
|
-
{:
|
45
|
-
should route_to(:controller => "custom_rooms", :action => "
|
60
|
+
{:put => "/custom/rooms/1"}.
|
61
|
+
should route_to(:controller => "custom_rooms", :action => "update", :id => "1")
|
46
62
|
}
|
47
63
|
it {
|
48
|
-
{:
|
49
|
-
should route_to(:controller => "custom_rooms", :action => "
|
64
|
+
{:delete => "/custom/rooms/1"}.
|
65
|
+
should route_to(:controller => "custom_rooms", :action => "destroy", :id => "1")
|
50
66
|
}
|
51
67
|
it {
|
52
|
-
{:get => "/custom/
|
53
|
-
should route_to(:controller => "custom_rooms", :action => "
|
68
|
+
{:get => "/custom/rooms/external"}.
|
69
|
+
should route_to(:controller => "custom_rooms", :action => "external")
|
54
70
|
}
|
55
71
|
it {
|
56
|
-
{:
|
57
|
-
should route_to(:controller => "custom_rooms", :action => "
|
72
|
+
{:post => "/custom/rooms/external"}.
|
73
|
+
should route_to(:controller => "custom_rooms", :action => "external_auth")
|
58
74
|
}
|
59
75
|
it {
|
60
|
-
{:
|
61
|
-
should route_to(:controller => "custom_rooms", :action => "
|
76
|
+
{:get => "/custom/rooms/1/join"}.
|
77
|
+
should route_to(:controller => "custom_rooms", :action => "join", :id => "1")
|
62
78
|
}
|
63
79
|
it {
|
64
|
-
{:get => "/custom/
|
65
|
-
should route_to(:controller => "custom_rooms", :action => "
|
80
|
+
{:get => "/custom/rooms/1/join_mobile"}.
|
81
|
+
should route_to(:controller => "custom_rooms", :action => "join_mobile" ,:id => "1")
|
66
82
|
}
|
67
83
|
it {
|
68
|
-
{:get => "/custom/
|
69
|
-
should route_to(:controller => "custom_rooms", :action => "running", :
|
84
|
+
{:get => "/custom/rooms/1/running"}.
|
85
|
+
should route_to(:controller => "custom_rooms", :action => "running", :id => "1")
|
70
86
|
}
|
71
87
|
it {
|
72
|
-
{:get => "/custom/
|
73
|
-
should route_to(:controller => "custom_rooms", :action => "end", :
|
88
|
+
{:get => "/custom/rooms/1/end"}.
|
89
|
+
should route_to(:controller => "custom_rooms", :action => "end", :id => "1")
|
74
90
|
}
|
75
91
|
it {
|
76
|
-
{:get => "/custom/
|
77
|
-
should route_to(:controller => "custom_rooms", :action => "invite", :
|
92
|
+
{:get => "/custom/rooms/1/invite"}.
|
93
|
+
should route_to(:controller => "custom_rooms", :action => "invite", :id => "1")
|
78
94
|
}
|
79
95
|
it {
|
80
|
-
{:post => "/custom/
|
81
|
-
should route_to(:controller => "custom_rooms", :action => "auth", :
|
96
|
+
{:post => "/custom/rooms/1/join"}.
|
97
|
+
should route_to(:controller => "custom_rooms", :action => "auth", :id => "1")
|
82
98
|
}
|
83
99
|
|
84
100
|
end
|
@@ -5,127 +5,211 @@ describe Bigbluebutton::RoomsController do
|
|
5
5
|
|
6
6
|
describe "routing" do
|
7
7
|
|
8
|
-
#
|
8
|
+
# default and scoped routes
|
9
9
|
['bigbluebutton', 'webconference'].each do |prefix|
|
10
10
|
|
11
11
|
it {
|
12
|
-
{:get => "/#{prefix}/
|
13
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "index"
|
12
|
+
{:get => "/#{prefix}/rooms"}.
|
13
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "index")
|
14
14
|
}
|
15
15
|
it {
|
16
|
-
{:get => "/#{prefix}/
|
17
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "new"
|
16
|
+
{:get => "/#{prefix}/rooms/new"}.
|
17
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "new")
|
18
18
|
}
|
19
19
|
it {
|
20
|
-
{:get => "/#{prefix}/
|
21
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
20
|
+
{:get => "/#{prefix}/rooms/room-1"}.
|
21
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "show", :id => "room-1")
|
22
22
|
}
|
23
23
|
it {
|
24
|
-
{:
|
25
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
24
|
+
{:get => "/#{prefix}/rooms/room-1/edit"}.
|
25
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "edit", :id => "room-1")
|
26
26
|
}
|
27
27
|
it {
|
28
|
-
{:
|
29
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
28
|
+
{:put => "/#{prefix}/rooms/room-1"}.
|
29
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "update", :id => "room-1")
|
30
30
|
}
|
31
31
|
it {
|
32
|
-
{:
|
33
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
32
|
+
{:delete => "/#{prefix}/rooms/room-1"}.
|
33
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "destroy", :id => "room-1")
|
34
34
|
}
|
35
35
|
it {
|
36
|
-
{:
|
37
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
36
|
+
{:get => "/#{prefix}/rooms/external"}.
|
37
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external")
|
38
38
|
}
|
39
39
|
it {
|
40
|
-
{:
|
41
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
40
|
+
{:post => "/#{prefix}/rooms/external"}.
|
41
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external_auth")
|
42
42
|
}
|
43
43
|
it {
|
44
|
-
{:get => "/#{prefix}/
|
45
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "join", :
|
44
|
+
{:get => "/#{prefix}/rooms/room-1/join"}.
|
45
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join", :id => "room-1")
|
46
46
|
}
|
47
47
|
it {
|
48
|
-
{:get => "/#{prefix}/
|
49
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "join_mobile"
|
48
|
+
{:get => "/#{prefix}/rooms/room-1/join_mobile"}.
|
49
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join_mobile" ,:id => "room-1")
|
50
50
|
}
|
51
51
|
it {
|
52
|
-
{:get => "/#{prefix}/
|
53
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "running", :
|
52
|
+
{:get => "/#{prefix}/rooms/room-1/running"}.
|
53
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "running", :id => "room-1")
|
54
54
|
}
|
55
55
|
it {
|
56
|
-
{:get => "/#{prefix}/
|
57
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "end", :
|
56
|
+
{:get => "/#{prefix}/rooms/room-1/end"}.
|
57
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "end", :id => "room-1")
|
58
58
|
}
|
59
59
|
it {
|
60
|
-
{:get => "/#{prefix}/
|
61
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "invite", :
|
60
|
+
{:get => "/#{prefix}/rooms/room-1/invite"}.
|
61
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "invite", :id => "room-1")
|
62
62
|
}
|
63
63
|
it {
|
64
|
-
{:post => "/#{prefix}/
|
65
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "auth", :
|
64
|
+
{:post => "/#{prefix}/rooms/room-1/join"}.
|
65
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "auth", :id => "room-1")
|
66
66
|
}
|
67
67
|
|
68
68
|
end
|
69
69
|
|
70
70
|
# room matchers inside users
|
71
71
|
it {
|
72
|
-
|
73
|
-
|
72
|
+
{ :get => "/users/1/rooms" }.
|
73
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "index",
|
74
|
+
:user_id => "1")
|
74
75
|
}
|
75
76
|
it {
|
76
|
-
|
77
|
-
|
77
|
+
{ :get => "/users/1/rooms/new" }.
|
78
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "new",
|
79
|
+
:user_id => "1")
|
78
80
|
}
|
79
81
|
it {
|
80
|
-
|
81
|
-
|
82
|
+
{ :get => "/users/1/rooms/room-1" }.
|
83
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "show",
|
84
|
+
:user_id => "1", :id => "room-1")
|
82
85
|
}
|
83
86
|
it {
|
84
|
-
|
85
|
-
|
87
|
+
{ :get => "/users/1/rooms/room-1/edit" }.
|
88
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "edit",
|
89
|
+
:user_id => "1", :id => "room-1")
|
86
90
|
}
|
87
91
|
it {
|
88
|
-
|
89
|
-
|
92
|
+
{ :put => "/users/1/rooms/room-1" }.
|
93
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "update",
|
94
|
+
:user_id => "1", :id => "room-1")
|
90
95
|
}
|
91
96
|
it {
|
92
|
-
|
93
|
-
|
97
|
+
{ :delete => "/users/1/rooms/room-1" }.
|
98
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "destroy",
|
99
|
+
:user_id => "1", :id => "room-1")
|
94
100
|
}
|
95
101
|
it {
|
96
|
-
|
97
|
-
|
102
|
+
{ :get => "/users/1/rooms/external" }.
|
103
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external",
|
104
|
+
:user_id => "1")
|
98
105
|
}
|
106
|
+
it {
|
107
|
+
{ :post => "/users/1/rooms/external" }.
|
108
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external_auth",
|
109
|
+
:user_id => "1")
|
110
|
+
}
|
111
|
+
it {
|
112
|
+
{ :get => "/users/1/rooms/room-1/join" }.
|
113
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join",
|
114
|
+
:user_id => "1", :id => "room-1")
|
115
|
+
}
|
116
|
+
it {
|
117
|
+
{ :get => "/users/1/rooms/room-1/join_mobile" }.
|
118
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join_mobile",
|
119
|
+
:user_id => "1", :id => "room-1")
|
120
|
+
}
|
121
|
+
it {
|
122
|
+
{ :get => "/users/1/rooms/room-1/running" }.
|
123
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "running",
|
124
|
+
:user_id => "1", :id => "room-1")
|
125
|
+
}
|
126
|
+
it {
|
127
|
+
{ :get => "/users/1/rooms/room-1/end" }.
|
128
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "end",
|
129
|
+
:user_id => "1", :id => "room-1")
|
130
|
+
}
|
131
|
+
it {
|
132
|
+
{ :get => "/users/1/rooms/room-1/invite" }.
|
133
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "invite",
|
134
|
+
:user_id => "1", :id => "room-1")
|
135
|
+
}
|
136
|
+
it {
|
137
|
+
{ :post => "/users/1/rooms/room-1/join" }.
|
138
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "auth",
|
139
|
+
:user_id => "1", :id => "room-1")
|
140
|
+
}
|
141
|
+
|
99
142
|
|
100
143
|
# room matchers inside users/spaces
|
101
|
-
# FIXME shoulda-matcher is not working here, why?
|
102
144
|
it {
|
103
|
-
{ :get => "/users/1/spaces/2/
|
104
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "
|
145
|
+
{ :get => "/users/1/spaces/2/rooms" }.
|
146
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "index",
|
147
|
+
:user_id => "1", :space_id => "2")
|
148
|
+
}
|
149
|
+
it {
|
150
|
+
{ :get => "/users/1/spaces/2/rooms/new" }.
|
151
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "new",
|
152
|
+
:user_id => "1", :space_id => "2")
|
153
|
+
}
|
154
|
+
it {
|
155
|
+
{ :get => "/users/1/spaces/2/rooms/room-1" }.
|
156
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "show",
|
157
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
158
|
+
}
|
159
|
+
it {
|
160
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/edit" }.
|
161
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "edit",
|
162
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
163
|
+
}
|
164
|
+
it {
|
165
|
+
{ :put => "/users/1/spaces/2/rooms/room-1" }.
|
166
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "update",
|
167
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
168
|
+
}
|
169
|
+
it {
|
170
|
+
{ :delete => "/users/1/spaces/2/rooms/room-1" }.
|
171
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "destroy",
|
172
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
173
|
+
}
|
174
|
+
it {
|
175
|
+
{ :get => "/users/1/spaces/2/rooms/external" }.
|
176
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external",
|
177
|
+
:user_id => "1", :space_id => "2")
|
178
|
+
}
|
179
|
+
it {
|
180
|
+
{ :post => "/users/1/spaces/2/rooms/external" }.
|
181
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "external_auth",
|
182
|
+
:user_id => "1", :space_id => "2")
|
105
183
|
}
|
106
184
|
it {
|
107
|
-
{ :get => "/users/1/spaces/2/
|
108
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "join",
|
185
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/join" }.
|
186
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join",
|
187
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
109
188
|
}
|
110
189
|
it {
|
111
|
-
{ :get => "/users/1/spaces/2/
|
112
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "join_mobile",
|
190
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/join_mobile" }.
|
191
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "join_mobile",
|
192
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
113
193
|
}
|
114
194
|
it {
|
115
|
-
{ :get => "/users/1/spaces/2/
|
116
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "running",
|
195
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/running" }.
|
196
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "running",
|
197
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
117
198
|
}
|
118
199
|
it {
|
119
|
-
{ :get => "/users/1/spaces/2/
|
120
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "end",
|
200
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/end" }.
|
201
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "end",
|
202
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
121
203
|
}
|
122
204
|
it {
|
123
|
-
{ :get => "/users/1/spaces/2/
|
124
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "invite",
|
205
|
+
{ :get => "/users/1/spaces/2/rooms/room-1/invite" }.
|
206
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "invite",
|
207
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
125
208
|
}
|
126
209
|
it {
|
127
|
-
{ :post => "/users/1/spaces/2/
|
128
|
-
should route_to(:controller => "bigbluebutton/rooms", :action => "auth",
|
210
|
+
{ :post => "/users/1/spaces/2/rooms/room-1/join" }.
|
211
|
+
should route_to(:controller => "bigbluebutton/rooms", :action => "auth",
|
212
|
+
:user_id => "1", :space_id => "2", :id => "room-1")
|
129
213
|
}
|
130
214
|
end
|
131
215
|
|
@@ -5,7 +5,7 @@ describe Bigbluebutton::ServersController do
|
|
5
5
|
|
6
6
|
describe "routing" do
|
7
7
|
|
8
|
-
#
|
8
|
+
# default and scoped routes
|
9
9
|
['bigbluebutton', 'webconference'].each do |prefix|
|
10
10
|
it {
|
11
11
|
{:get => "/#{prefix}/servers"}.
|
@@ -35,6 +35,14 @@ describe Bigbluebutton::ServersController do
|
|
35
35
|
{:delete => "/#{prefix}/servers/server-1"}.
|
36
36
|
should route_to(:controller => "bigbluebutton/servers", :action => "destroy", :id => "server-1")
|
37
37
|
}
|
38
|
+
it {
|
39
|
+
{:get => "/#{prefix}/servers/server-1/activity"}.
|
40
|
+
should route_to(:controller => "bigbluebutton/servers", :action => "activity", :id => "server-1")
|
41
|
+
}
|
42
|
+
it {
|
43
|
+
{:get => "/#{prefix}/servers/server-1/rooms"}.
|
44
|
+
should route_to(:controller => "bigbluebutton/servers", :action => "rooms", :id => "server-1")
|
45
|
+
}
|
38
46
|
end
|
39
47
|
|
40
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigbluebutton_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-01-12 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &75116260 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *75116260
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bigbluebutton-api-ruby
|
28
|
-
requirement: &
|
28
|
+
requirement: &75115360 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *75115360
|
37
37
|
description: It allows you to interact with BigBlueButton from your Ruby on Rails
|
38
38
|
application
|
39
39
|
email: mconf-dev@googlegroups.com
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- app/models/bigbluebutton_room.rb
|
58
58
|
- app/models/bigbluebutton_server.rb
|
59
59
|
- app/views/bigbluebutton/rooms/_form.html.erb
|
60
|
+
- app/views/bigbluebutton/rooms/_rooms.html.erb
|
60
61
|
- app/views/bigbluebutton/rooms/edit.html.erb
|
61
62
|
- app/views/bigbluebutton/rooms/external.html.erb
|
62
63
|
- app/views/bigbluebutton/rooms/index.html.erb
|
@@ -71,6 +72,7 @@ files:
|
|
71
72
|
- app/views/bigbluebutton/servers/edit.html.erb
|
72
73
|
- app/views/bigbluebutton/servers/index.html.erb
|
73
74
|
- app/views/bigbluebutton/servers/new.html.erb
|
75
|
+
- app/views/bigbluebutton/servers/rooms.html.erb
|
74
76
|
- app/views/bigbluebutton/servers/show.html.erb
|
75
77
|
- bigbluebutton_rails.gemspec
|
76
78
|
- config/locales/en.yml
|
@@ -164,7 +166,6 @@ files:
|
|
164
166
|
- spec/rails_app/features/step_definitions/list_and_show_rooms_steps.rb
|
165
167
|
- spec/rails_app/features/step_definitions/list_and_show_servers_steps.rb
|
166
168
|
- spec/rails_app/features/step_definitions/web_steps.rb
|
167
|
-
- spec/rails_app/features/support/application_controller.rb
|
168
169
|
- spec/rails_app/features/support/configurations.rb
|
169
170
|
- spec/rails_app/features/support/content.rb
|
170
171
|
- spec/rails_app/features/support/env.rb
|
@@ -172,6 +173,8 @@ files:
|
|
172
173
|
- spec/rails_app/features/support/factories/bigbluebutton_server_integration.rb
|
173
174
|
- spec/rails_app/features/support/hooks.rb
|
174
175
|
- spec/rails_app/features/support/locales.rb
|
176
|
+
- spec/rails_app/features/support/patches/application_controller.rb
|
177
|
+
- spec/rails_app/features/support/patches/bigbluebutton_room.rb
|
175
178
|
- spec/rails_app/features/support/paths.rb
|
176
179
|
- spec/rails_app/features/support/selectors.rb
|
177
180
|
- spec/rails_app/features/support/templates.rb
|
@@ -222,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
225
|
version: '0'
|
223
226
|
segments:
|
224
227
|
- 0
|
225
|
-
hash:
|
228
|
+
hash: -99991885
|
226
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
230
|
none: false
|
228
231
|
requirements:
|
@@ -231,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
234
|
version: '0'
|
232
235
|
segments:
|
233
236
|
- 0
|
234
|
-
hash:
|
237
|
+
hash: -99991885
|
235
238
|
requirements: []
|
236
239
|
rubyforge_project:
|
237
240
|
rubygems_version: 1.8.10
|