0.0
No release in over a year
Manipulate event evostream and send actions to evostream server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.17
~> 13.0.3
~> 6.0.4
~> 3.10
~> 1.13.0
~> 3.12.2
~> 0.9.26
~> 1.11, >= 1.11.1
~> 0.21.2

Runtime

~> 0.8.1
~> 6.1.3.1
 Project Readme

Evostream::Event

RSpec Linter Gem Version Docs Maintainability Test Coverage Known Vulnerabilities

Evostream Event listen event to Evostream and execute task.

Menu

  • How to use
    • Installation
    • Usage
  • Development
  • Contributing

How to use

Installation

Add this line to your application's Gemfile:

gem 'evostream-event'

And then execute :

bundle

Or install it yourself as :

gem install evostream-event

Environment

This gem use a configuration file for configure access to EvoStream server.

See initializer file.

# URL to EvoStream for share video to final user
config.uri_in       = 'http://server_stream.local:80'

# URL to EvoStream for sending request to this API
config.uri_out      = 'http://server_stream.local:7777'

# Prefix to folder created for each video mangaed by EvoStream
config.name         = 'srteamming_'

# Folder for file created by EvoStream
config.web_root     = '/var/www/html'

# Name to model manipulate
config.model        = ModelUsedInDatabase

# Choose id to document manipulate in Database
config.model_id     = :identifier_used_in_model

# Use environment for this gem. Choose between :
# - development   : Write in log and Send request to EvoStream
# - test          : Write in Log
# - production    : Send request to EvoStream
config.environement = :test

Usage

Create initializer :

rails generator evostream:initializer

Treatment evostream request :

event = Evostream::Event.new(params[:type], params[:payload].to_unsafe_h)
event.execute_action

Usage in cli

Use this gem in CLI. For more explain use helper :

evostream -h

Example for delete a configuration :

evostream removeConfig 'id: 565'

Example for list configuration :

# All configuration
evostream listConfig

# Just configuration number 42
evostream -s 'configId: 42' listConfig

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dazzl-tv/evostream-event. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.