bigbluebutton_rails 0.0.4 → 0.0.5
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/.gitignore +2 -1
- data/CHANGELOG.rdoc +12 -0
- data/Gemfile.lock +53 -14
- data/README.rdoc +31 -29
- data/Rakefile +63 -11
- data/app/controllers/bigbluebutton/rooms_controller.rb +89 -26
- data/app/controllers/bigbluebutton/servers_controller.rb +38 -5
- data/app/helpers/bigbluebutton_rails_helper.rb +12 -0
- data/app/models/bigbluebutton_room.rb +44 -1
- data/app/models/bigbluebutton_server.rb +48 -12
- data/app/views/bigbluebutton/rooms/_form.html.erb +8 -0
- data/app/views/bigbluebutton/rooms/index.html.erb +34 -43
- data/app/views/bigbluebutton/rooms/join_mobile.html.erb +9 -0
- data/app/views/bigbluebutton/rooms/show.html.erb +8 -0
- data/app/views/bigbluebutton/servers/_activity_list.html.erb +48 -0
- data/app/views/bigbluebutton/servers/_form.html.erb +4 -0
- data/app/views/bigbluebutton/servers/activity.html.erb +51 -0
- data/app/views/bigbluebutton/servers/index.html.erb +21 -25
- data/app/views/bigbluebutton/servers/show.html.erb +5 -0
- data/bigbluebutton_rails.gemspec +9 -6
- data/config/locales/en.yml +11 -2
- data/lib/bigbluebutton_rails/controller_methods.rb +47 -14
- data/lib/bigbluebutton_rails/exceptions.rb +6 -0
- data/lib/bigbluebutton_rails/rails/routes.rb +17 -12
- data/lib/bigbluebutton_rails/rails.rb +4 -0
- data/lib/bigbluebutton_rails/version.rb +1 -1
- data/lib/bigbluebutton_rails.rb +1 -0
- data/lib/generators/bigbluebutton_rails/install_generator.rb +28 -5
- data/lib/generators/bigbluebutton_rails/templates/migration.rb +3 -0
- data/lib/generators/bigbluebutton_rails/templates/migration_0_0_4.rb +38 -0
- data/lib/generators/bigbluebutton_rails/templates/migration_0_0_5.rb +23 -0
- data/{lib/generators/bigbluebutton_rails/templates/public → public}/images/loading.gif +0 -0
- data/{lib/generators/bigbluebutton_rails/templates/public → public}/javascripts/jquery.min.js +0 -0
- data/public/stylesheets/bigbluebutton_rails.css +138 -0
- data/spec/controllers/bigbluebutton/rooms_controller_spec.rb +284 -25
- data/spec/controllers/bigbluebutton/servers_controller_spec.rb +93 -1
- data/spec/factories/bigbluebutton_room.rb +1 -0
- data/spec/factories/bigbluebutton_server.rb +1 -0
- data/spec/factories/integration/bigbluebutton_server_integration.rb +8 -0
- data/spec/generators/install_generator_spec.rb +53 -10
- data/spec/generators/views_generator_spec.rb +6 -2
- data/spec/helpers/bigbluebutton_rails_helper_spec.rb +19 -0
- data/spec/integration_conf.yml.example +5 -0
- data/spec/models/bigbluebutton_room_spec.rb +99 -72
- data/spec/models/bigbluebutton_server_spec.rb +81 -20
- data/spec/rails_app/.gitignore +2 -1
- data/spec/rails_app/app/views/layouts/application.html.erb +1 -1
- data/spec/rails_app/config/cucumber.yml +8 -0
- data/spec/rails_app/config/database.yml +4 -1
- data/spec/rails_app/db/seeds.rb +6 -5
- data/spec/rails_app/features/manage_bigbluebutton_rooms.feature +9 -0
- data/spec/rails_app/features/manage_bigbluebutton_servers.feature +9 -0
- data/spec/rails_app/features/step_definitions/bigbluebutton_room_steps.rb +38 -0
- data/spec/rails_app/features/step_definitions/bigbluebutton_server_steps.rb +23 -0
- data/spec/rails_app/features/step_definitions/common_steps.rb +3 -0
- data/spec/rails_app/features/step_definitions/web_steps.rb +211 -0
- data/spec/rails_app/features/support/content.rb +11 -0
- data/spec/rails_app/features/support/env.rb +50 -0
- data/spec/rails_app/features/support/env_gem.rb +9 -0
- data/spec/rails_app/features/support/paths.rb +38 -0
- data/spec/rails_app/features/support/selectors.rb +39 -0
- data/spec/rails_app/lib/tasks/cucumber.rake +65 -0
- data/spec/rails_app/public/images/loading.gif +0 -0
- data/spec/rails_app/public/javascripts/jquery.min.js +16 -0
- data/spec/rails_app/public/stylesheets/bigbluebutton_rails.css +138 -0
- data/spec/rails_app/script/cucumber +10 -0
- data/spec/routing/bigbluebutton/rooms_routing_spec.rb +12 -0
- data/spec/spec_helper.rb +0 -1
- data/spec/support/integration/integration_conf.rb +16 -0
- data/spec/support/matchers/shoulda/respond_with_json_matcher.rb +67 -0
- data/spec/support/mocked_server.rb +1 -0
- metadata +91 -29
- data/lib/generators/bigbluebutton_rails/public_generator.rb +0 -16
- data/spec/generators/public_generator_spec.rb +0 -31
metadata
CHANGED
@@ -1,30 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigbluebutton_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
+
- Mconf
|
8
9
|
- Leonardo Crauss Daronco
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
+
date: 2011-06-21 00:00:00.000000000Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rails
|
16
|
-
requirement: &
|
17
|
+
requirement: &79457900 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
|
-
- -
|
20
|
+
- - ! '>='
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: 3.0.3
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *79457900
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: bigbluebutton-api-ruby
|
27
|
-
requirement: &
|
28
|
+
requirement: &79457540 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
@@ -32,21 +33,21 @@ dependencies:
|
|
32
33
|
version: 0.0.10
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
+
version_requirements: *79457540
|
36
37
|
- !ruby/object:Gem::Dependency
|
37
38
|
name: rspec-rails
|
38
|
-
requirement: &
|
39
|
+
requirement: &79457180 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ~>
|
42
43
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.
|
44
|
+
version: 2.6.0
|
44
45
|
type: :development
|
45
46
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
+
version_requirements: *79457180
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: factory_girl
|
49
|
-
requirement: &
|
50
|
+
requirement: &79456830 !ruby/object:Gem::Requirement
|
50
51
|
none: false
|
51
52
|
requirements:
|
52
53
|
- - ~>
|
@@ -54,10 +55,10 @@ dependencies:
|
|
54
55
|
version: 1.3.2
|
55
56
|
type: :development
|
56
57
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
+
version_requirements: *79456830
|
58
59
|
- !ruby/object:Gem::Dependency
|
59
60
|
name: sqlite3-ruby
|
60
|
-
requirement: &
|
61
|
+
requirement: &79456480 !ruby/object:Gem::Requirement
|
61
62
|
none: false
|
62
63
|
requirements:
|
63
64
|
- - ~>
|
@@ -65,10 +66,10 @@ dependencies:
|
|
65
66
|
version: 1.3.3
|
66
67
|
type: :development
|
67
68
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
+
version_requirements: *79456480
|
69
70
|
- !ruby/object:Gem::Dependency
|
70
71
|
name: generator_spec
|
71
|
-
requirement: &
|
72
|
+
requirement: &79456100 !ruby/object:Gem::Requirement
|
72
73
|
none: false
|
73
74
|
requirements:
|
74
75
|
- - ~>
|
@@ -76,10 +77,10 @@ dependencies:
|
|
76
77
|
version: 0.8.2
|
77
78
|
type: :development
|
78
79
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
+
version_requirements: *79456100
|
80
81
|
- !ruby/object:Gem::Dependency
|
81
82
|
name: shoulda-matchers
|
82
|
-
requirement: &
|
83
|
+
requirement: &79455780 !ruby/object:Gem::Requirement
|
83
84
|
none: false
|
84
85
|
requirements:
|
85
86
|
- - ~>
|
@@ -87,10 +88,10 @@ dependencies:
|
|
87
88
|
version: 1.0.0.beta
|
88
89
|
type: :development
|
89
90
|
prerelease: false
|
90
|
-
version_requirements: *
|
91
|
+
version_requirements: *79455780
|
91
92
|
- !ruby/object:Gem::Dependency
|
92
93
|
name: forgery
|
93
|
-
requirement: &
|
94
|
+
requirement: &79455480 !ruby/object:Gem::Requirement
|
94
95
|
none: false
|
95
96
|
requirements:
|
96
97
|
- - ~>
|
@@ -98,10 +99,43 @@ dependencies:
|
|
98
99
|
version: 0.3.7
|
99
100
|
type: :development
|
100
101
|
prerelease: false
|
101
|
-
version_requirements: *
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
version_requirements: *79455480
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: cucumber-rails
|
105
|
+
requirement: &79455100 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.5.2
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *79455100
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: database_cleaner
|
116
|
+
requirement: &79454810 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ~>
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 0.6.7
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *79454810
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rdoc
|
127
|
+
requirement: &79454540 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 3.6.0
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *79454540
|
136
|
+
description: It allows you to interact with BigBlueButton from your Ruby on Rails
|
137
|
+
application
|
138
|
+
email: mconf-dev@googlegroups.com
|
105
139
|
executables: []
|
106
140
|
extensions: []
|
107
141
|
extra_rdoc_files: []
|
@@ -115,6 +149,7 @@ files:
|
|
115
149
|
- Rakefile
|
116
150
|
- app/controllers/bigbluebutton/rooms_controller.rb
|
117
151
|
- app/controllers/bigbluebutton/servers_controller.rb
|
152
|
+
- app/helpers/bigbluebutton_rails_helper.rb
|
118
153
|
- app/models/bigbluebutton_room.rb
|
119
154
|
- app/models/bigbluebutton_server.rb
|
120
155
|
- app/views/bigbluebutton/rooms/_form.html.erb
|
@@ -122,9 +157,12 @@ files:
|
|
122
157
|
- app/views/bigbluebutton/rooms/index.html.erb
|
123
158
|
- app/views/bigbluebutton/rooms/invite.html.erb
|
124
159
|
- app/views/bigbluebutton/rooms/join.html.erb
|
160
|
+
- app/views/bigbluebutton/rooms/join_mobile.html.erb
|
125
161
|
- app/views/bigbluebutton/rooms/new.html.erb
|
126
162
|
- app/views/bigbluebutton/rooms/show.html.erb
|
163
|
+
- app/views/bigbluebutton/servers/_activity_list.html.erb
|
127
164
|
- app/views/bigbluebutton/servers/_form.html.erb
|
165
|
+
- app/views/bigbluebutton/servers/activity.html.erb
|
128
166
|
- app/views/bigbluebutton/servers/edit.html.erb
|
129
167
|
- app/views/bigbluebutton/servers/index.html.erb
|
130
168
|
- app/views/bigbluebutton/servers/new.html.erb
|
@@ -133,26 +171,31 @@ files:
|
|
133
171
|
- config/locales/en.yml
|
134
172
|
- lib/bigbluebutton_rails.rb
|
135
173
|
- lib/bigbluebutton_rails/controller_methods.rb
|
174
|
+
- lib/bigbluebutton_rails/exceptions.rb
|
136
175
|
- lib/bigbluebutton_rails/rails.rb
|
137
176
|
- lib/bigbluebutton_rails/rails/routes.rb
|
138
177
|
- lib/bigbluebutton_rails/version.rb
|
139
178
|
- lib/classes/bigbluebutton_attendee.rb
|
140
179
|
- lib/generators/bigbluebutton_rails/install_generator.rb
|
141
|
-
- lib/generators/bigbluebutton_rails/public_generator.rb
|
142
180
|
- lib/generators/bigbluebutton_rails/templates/migration.rb
|
143
|
-
- lib/generators/bigbluebutton_rails/templates/
|
144
|
-
- lib/generators/bigbluebutton_rails/templates/
|
181
|
+
- lib/generators/bigbluebutton_rails/templates/migration_0_0_4.rb
|
182
|
+
- lib/generators/bigbluebutton_rails/templates/migration_0_0_5.rb
|
145
183
|
- lib/generators/bigbluebutton_rails/views_generator.rb
|
184
|
+
- public/images/loading.gif
|
185
|
+
- public/javascripts/jquery.min.js
|
186
|
+
- public/stylesheets/bigbluebutton_rails.css
|
146
187
|
- spec/bigbluebutton_rails_spec.rb
|
147
188
|
- spec/classes/bigbluebutton_attendee_spec.rb
|
148
189
|
- spec/controllers/bigbluebutton/rooms_controller_spec.rb
|
149
190
|
- spec/controllers/bigbluebutton/servers_controller_spec.rb
|
150
191
|
- spec/factories/bigbluebutton_room.rb
|
151
192
|
- spec/factories/bigbluebutton_server.rb
|
193
|
+
- spec/factories/integration/bigbluebutton_server_integration.rb
|
152
194
|
- spec/factories/user.rb
|
153
195
|
- spec/generators/install_generator_spec.rb
|
154
|
-
- spec/generators/public_generator_spec.rb
|
155
196
|
- spec/generators/views_generator_spec.rb
|
197
|
+
- spec/helpers/bigbluebutton_rails_helper_spec.rb
|
198
|
+
- spec/integration_conf.yml.example
|
156
199
|
- spec/models/bigbluebutton_room_spec.rb
|
157
200
|
- spec/models/bigbluebutton_server_spec.rb
|
158
201
|
- spec/rails_app/.gitignore
|
@@ -171,6 +214,7 @@ files:
|
|
171
214
|
- spec/rails_app/config.ru
|
172
215
|
- spec/rails_app/config/application.rb
|
173
216
|
- spec/rails_app/config/boot.rb
|
217
|
+
- spec/rails_app/config/cucumber.yml
|
174
218
|
- spec/rails_app/config/database.yml
|
175
219
|
- spec/rails_app/config/environment.rb
|
176
220
|
- spec/rails_app/config/environments/development.rb
|
@@ -185,29 +229,47 @@ files:
|
|
185
229
|
- spec/rails_app/config/routes.rb
|
186
230
|
- spec/rails_app/db/seeds.rb
|
187
231
|
- spec/rails_app/doc/README_FOR_APP
|
232
|
+
- spec/rails_app/features/manage_bigbluebutton_rooms.feature
|
233
|
+
- spec/rails_app/features/manage_bigbluebutton_servers.feature
|
234
|
+
- spec/rails_app/features/step_definitions/bigbluebutton_room_steps.rb
|
235
|
+
- spec/rails_app/features/step_definitions/bigbluebutton_server_steps.rb
|
236
|
+
- spec/rails_app/features/step_definitions/common_steps.rb
|
237
|
+
- spec/rails_app/features/step_definitions/web_steps.rb
|
238
|
+
- spec/rails_app/features/support/content.rb
|
239
|
+
- spec/rails_app/features/support/env.rb
|
240
|
+
- spec/rails_app/features/support/env_gem.rb
|
241
|
+
- spec/rails_app/features/support/paths.rb
|
242
|
+
- spec/rails_app/features/support/selectors.rb
|
243
|
+
- spec/rails_app/lib/tasks/cucumber.rake
|
188
244
|
- spec/rails_app/public/404.html
|
189
245
|
- spec/rails_app/public/422.html
|
190
246
|
- spec/rails_app/public/500.html
|
191
247
|
- spec/rails_app/public/favicon.ico
|
248
|
+
- spec/rails_app/public/images/loading.gif
|
192
249
|
- spec/rails_app/public/images/rails.png
|
193
250
|
- spec/rails_app/public/index.html
|
194
251
|
- spec/rails_app/public/javascripts/application.js
|
195
252
|
- spec/rails_app/public/javascripts/controls.js
|
196
253
|
- spec/rails_app/public/javascripts/dragdrop.js
|
197
254
|
- spec/rails_app/public/javascripts/effects.js
|
255
|
+
- spec/rails_app/public/javascripts/jquery.min.js
|
198
256
|
- spec/rails_app/public/javascripts/prototype.js
|
199
257
|
- spec/rails_app/public/javascripts/rails.js
|
200
258
|
- spec/rails_app/public/robots.txt
|
201
259
|
- spec/rails_app/public/stylesheets/.gitkeep
|
260
|
+
- spec/rails_app/public/stylesheets/bigbluebutton_rails.css
|
202
261
|
- spec/rails_app/public/stylesheets/scaffold.css
|
262
|
+
- spec/rails_app/script/cucumber
|
203
263
|
- spec/rails_app/script/rails
|
204
264
|
- spec/rails_app/vendor/plugins/.gitkeep
|
205
265
|
- spec/routing/bigbluebutton/custom_controllers_routing_spec.rb
|
206
266
|
- spec/routing/bigbluebutton/rooms_routing_spec.rb
|
207
267
|
- spec/routing/bigbluebutton/servers_routing_spec.rb
|
208
268
|
- spec/spec_helper.rb
|
269
|
+
- spec/support/integration/integration_conf.rb
|
209
270
|
- spec/support/matchers/have_same_attributes_as.rb
|
210
271
|
- spec/support/matchers/shoulda/be_boolean.rb
|
272
|
+
- spec/support/matchers/shoulda/respond_with_json_matcher.rb
|
211
273
|
- spec/support/mocked_server.rb
|
212
274
|
homepage: http://github.com/mconf/bigbluebutton_rails
|
213
275
|
licenses: []
|
@@ -223,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
285
|
version: '0'
|
224
286
|
segments:
|
225
287
|
- 0
|
226
|
-
hash:
|
288
|
+
hash: 464713137
|
227
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
290
|
none: false
|
229
291
|
requirements:
|
@@ -232,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
294
|
version: '0'
|
233
295
|
segments:
|
234
296
|
- 0
|
235
|
-
hash:
|
297
|
+
hash: 464713137
|
236
298
|
requirements: []
|
237
299
|
rubyforge_project:
|
238
300
|
rubygems_version: 1.7.2
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'rails/generators/active_record'
|
2
|
-
|
3
|
-
module BigbluebuttonRails
|
4
|
-
module Generators
|
5
|
-
class PublicGenerator < Rails::Generators::Base
|
6
|
-
source_root File.expand_path("../templates/public", __FILE__)
|
7
|
-
desc "Copies all bigbluebutton_rails public files (javascripts and images) to your application."
|
8
|
-
|
9
|
-
def copy_files
|
10
|
-
copy_file "javascripts/jquery.min.js", "public/javascripts/jquery.min.js"
|
11
|
-
copy_file "images/loading.gif", "public/images/loading.gif"
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe BigbluebuttonRails::Generators::PublicGenerator do
|
4
|
-
include GeneratorSpec::TestCase
|
5
|
-
destination File.expand_path("../../../tmp", __FILE__)
|
6
|
-
tests BigbluebuttonRails::Generators::PublicGenerator
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
prepare_destination
|
10
|
-
end
|
11
|
-
|
12
|
-
it "creates and revokes all files properly" do
|
13
|
-
run_generator
|
14
|
-
assert_files
|
15
|
-
run_generator %w(), :behavior => :revoke
|
16
|
-
assert_files(false)
|
17
|
-
end
|
18
|
-
|
19
|
-
def assert_files(assert_exists=true)
|
20
|
-
files = [
|
21
|
-
"public/images/loading.gif",
|
22
|
-
"public/javascripts/jquery.min.js"
|
23
|
-
]
|
24
|
-
if assert_exists
|
25
|
-
files.each { |f| assert_file f }
|
26
|
-
else
|
27
|
-
files.each { |f| assert_no_file f }
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|