ruby-scaleengine 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/README.md +33 -0
- data/lib/scaleengine/configuration.rb +1 -1
- data/lib/scaleengine/version.rb +4 -0
- data/ruby-scaleengine.gemspec +25 -0
- data/tests/test.rb +8 -5
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47602b4a5216a13194e3249799478d270e42e008
|
4
|
+
data.tar.gz: e3ef57f550d0a5fa7517d403273db205a003631c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3f53d7d0bdd6e48bcb5a26b93f9241624d1a81cef8c0cad688ca0fa65515c8358016011981189fcef7d9a110f376938df7392aea2c87eb237ef242d07c11645
|
7
|
+
data.tar.gz: fbf331ce7a2667c291bdbc0dbc8fbf2ef0a6ff32e20967cdb533c05c795db3406c86712b20b607fd5bb74ce70bf70bb5461ae09f2e8ada9c647769adf90c3a61
|
data/.gitignore
ADDED
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# ruby-scaleengine
|
2
|
+
A ruby client for the ScaleEngine Livestream Network API. [www.scaleengine.com](http://www.scaleengine.com)
|
3
|
+
|
4
|
+
## Example
|
5
|
+
```
|
6
|
+
se = ScaleEngine.new
|
7
|
+
req = se.files.getstorage
|
8
|
+
resp = req.send
|
9
|
+
```
|
10
|
+
|
11
|
+
## Install (Coming soon)
|
12
|
+
```
|
13
|
+
gem install ruby-scaleengine
|
14
|
+
```
|
15
|
+
|
16
|
+
Rails (Gemfile)
|
17
|
+
```
|
18
|
+
gem 'ruby-scaleengine'
|
19
|
+
```
|
20
|
+
|
21
|
+
## API Controls
|
22
|
+
The ScaleEngine API is organized such that all requests go to a single endpoint, and the type of request (ie sevu.addstreamuser) is a request parameter.
|
23
|
+
So this client library is designed around the request command.
|
24
|
+
|
25
|
+
All request types are found in the official documentation [Docs](https://cp.scaleengine.net/docs/api/)
|
26
|
+
|
27
|
+
### Sevu
|
28
|
+
##### Add Stream User
|
29
|
+
Command: `sevu.addstreamuser`
|
30
|
+
|
31
|
+
##### Attemps
|
32
|
+
Command: `sevu.errorlog`
|
33
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "scaleengine/version"
|
4
|
+
#require File.expand_path('../lib/slideshare/version', __FILE__)
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "ruby-scaleengine"
|
8
|
+
s.version = ScaleEngineAPI::VERSION
|
9
|
+
s.licenses = ['MIT']
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["John-Alan Simmons"]
|
12
|
+
s.email = ["johnalan@conferencecloud.co"]
|
13
|
+
s.homepage = "https://github.com/ConferenceCloud/ruby-scaleengine"
|
14
|
+
s.summary = %q{Wrapper for the ScaleEngine API}
|
15
|
+
s.description = %q{Wrapper for the ScaleEngine API}
|
16
|
+
|
17
|
+
s.rubyforge_project = s.name
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {tests,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
|
24
|
+
s.add_runtime_dependency('rest-client', '~> 1.7')
|
25
|
+
end
|
data/tests/test.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
## No Unit/Functional tests present
|
3
3
|
## THIS FILE IS JUST A TEMPORARY TEST SCRIPT
|
4
4
|
require "logger"
|
5
|
-
|
5
|
+
require "scaleengine"
|
6
6
|
|
7
7
|
logger = Logger.new(STDOUT)
|
8
8
|
logger.level = Logger::DEBUG
|
@@ -13,12 +13,15 @@ ScaleEngineAPI::Configuration.username = ENV["SCALEENGINE_USERNAME"]
|
|
13
13
|
ScaleEngineAPI::Configuration.cdn = ENV["SCALEENGINE_CDN"]
|
14
14
|
|
15
15
|
se = ScaleEngineAPI.new
|
16
|
-
logger.debug se.sevu
|
17
16
|
req = se.sevu.addstreamuser({
|
18
17
|
app: 'conferencecloud-origin',
|
19
|
-
stream: "conferencecloud-
|
18
|
+
stream: "conferencecloud-tester",
|
20
19
|
user: "conferencecloud",
|
21
|
-
pass:
|
20
|
+
pass: (0...16).map { (65 + rand(26)).chr }.join # Random 16 character string
|
22
21
|
})
|
23
|
-
|
22
|
+
# req = se.sevu.removestreamuser({
|
23
|
+
# app: 'conferencecloud-origin',
|
24
|
+
# stream: "conferencecloud-test",
|
25
|
+
# user: "conferencecloud"
|
26
|
+
# })
|
24
27
|
logger.debug req.send
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-scaleengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John-Alan Simmons
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -31,14 +31,19 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".gitignore"
|
34
35
|
- LICENSE
|
36
|
+
- README.md
|
35
37
|
- lib/scaleengine.rb
|
36
38
|
- lib/scaleengine/configuration.rb
|
37
39
|
- lib/scaleengine/request.rb
|
38
40
|
- lib/scaleengine/response.rb
|
41
|
+
- lib/scaleengine/version.rb
|
42
|
+
- ruby-scaleengine.gemspec
|
39
43
|
- tests/test.rb
|
40
44
|
homepage: https://github.com/ConferenceCloud/ruby-scaleengine
|
41
|
-
licenses:
|
45
|
+
licenses:
|
46
|
+
- MIT
|
42
47
|
metadata: {}
|
43
48
|
post_install_message:
|
44
49
|
rdoc_options: []
|