kurento_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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2297760202b825050f276abc24b8fff554f9f75
4
- data.tar.gz: 80c42b33a9d2301f1677eef881013bdd593ee861
3
+ metadata.gz: 7d2c9c2ffbc597fc4b958f598fa45fbbd6c1c505
4
+ data.tar.gz: c6c8b20dfbbb6499d3e44f7311e399d1bd1a96e3
5
5
  SHA512:
6
- metadata.gz: 6a594dd7d3805dfdaa7ad0b4007c9c4eec12078cc356f94de07e91ddfaef5e9355228d38697c36e328c2608cf35646cbf797d6c88f50aa7ea5f1eadc2a8af718
7
- data.tar.gz: b159f874f98671b5690187624359842f6b31f201d26b39c47f70345bcaceeab775961007fda4e525e682470f60d5c4b0c41f28bb72d6249e8666d6568f4d0e65
6
+ metadata.gz: 40ab39f7b43ce9bb068fbdfc3e1c693cb25d52b9e34bfaf6cf7b00997bb77d25616689bfeb8192a72c11bc14ff2278e46af05b6d40eacece51c4d8e04ec5aa58
7
+ data.tar.gz: cfff4a8bae652abb72f76fc8ff810919466477d8037ba63aea8fdcf28027f47b86c147a66ca31296ab47319f605d1d6d2fa5f50d4ffcf626362b32c25981c14e
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # KurentoRails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kurento_rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ KurentoRails is a gem designed to make integrating kurento media server and rails applications easier. We provide a javascript library to provide easy access to kurento's video streaming functionality.
6
4
 
7
5
  ## Installation
8
6
 
@@ -20,20 +18,36 @@ Or install it yourself as:
20
18
 
21
19
  $ gem install kurento_rails
22
20
 
21
+
22
+ For reasons that I'm not entirely sure about and don't have time to investigate just yet, the gem isn't correctly bundling websocket-rails in as well on some systems. If your app won't launch after you complete the steps listed below in usage, try fixing it by just adding websocket-rails to your gemfile as well, then re-running bundle.
23
+
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
26
+ After installation, run the following command
26
27
 
27
- ## Development
28
+ ```ruby
29
+ rails g kurento_rails:install
30
+ ```
28
31
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+ This will copy a number of files into your project. These are:
33
+ - config/events.rb: This file is responsible for routing websockets events to the correct controller and action
34
+ - app/controllers/kurento_controller.rb: This controller is used for serving html pages that interact with kurento. It should at least be a step in the right direction for you.
35
+ - app/controllers/kurento_websockets_controller.rb: This controller is responsible for most of the internal streaming logic. The javascript client library interacts heavily with this controller
36
+ - app/assets/javascripts/kurento-rails-js: This is the javascript client library. kurento-rails.js is the main code for the library. The other libraries included here are dependencies and should also be included.
37
+ - db/migrations/{timestamp}-create_video_streams.rb: This is the active record migration for the video stream model.
38
+ - app/models/kurento_rails_video_stream.rb: This is the video stream model
39
+ - app/views/kurento: This folder contains the views associated with the kurento controller. I assume that you're using slim, because slim is fantastic, but if you're not, you can just edit the extensions on these.
30
40
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+ finally, you'll need to migrate the database
42
+ ```ruby
43
+ rake db:migrate
44
+ ```
32
45
 
33
- ## Contributing
46
+ After this, the installation process should be complete.
34
47
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/andrewls/kurento-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
48
+ ## Contributing
36
49
 
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/andrewls/kurento-rails.
37
51
 
38
52
  ## License
39
53
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.10"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "minitest"
27
- spec.add_dependency 'jquery-rails' # the code depends on jquery
28
- spec.add_dependency 'coffee-script' # and it's written in coffeescript
29
- spec.add_dependency 'websocket-rails' # and it relies on websockets to do basically anything
27
+ spec.add_runtime_dependency 'jquery-rails' # the code depends on jquery
28
+ spec.add_runtime_dependency 'coffee-script' # and it's written in coffeescript
29
+ spec.add_runtime_dependency 'websocket-rails' # and it relies on websockets to do basically anything
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module KurentoRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kurento_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stephenson