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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a32289a7e4ee078d0d991abb3e8b978bf707a67
4
- data.tar.gz: 68dc467458618151394ed2a6d7338698bf94b35a
3
+ metadata.gz: 47602b4a5216a13194e3249799478d270e42e008
4
+ data.tar.gz: e3ef57f550d0a5fa7517d403273db205a003631c
5
5
  SHA512:
6
- metadata.gz: 688aae77a3e4cc492e2118e9210469dfaed9bfedbe14e5850315d8643baadfd1e146b72feee3600a7a5de0c70720d8973e20dac737e7ed2e8230128bc79559e3
7
- data.tar.gz: ef5a3670231f4cb3c28e537ceae0b6d15af26547244f516633ea0964bceecbf5dc4e8b0ed111738f8403588bda0cd186a887bc7d53d1ade51bf48d545b89bafe
6
+ metadata.gz: d3f53d7d0bdd6e48bcb5a26b93f9241624d1a81cef8c0cad688ca0fa65515c8358016011981189fcef7d9a110f376938df7392aea2c87eb237ef242d07c11645
7
+ data.tar.gz: fbf331ce7a2667c291bdbc0dbc8fbf2ef0a6ff32e20967cdb533c05c795db3406c86712b20b607fd5bb74ce70bf70bb5461ae09f2e8ada9c647769adf90c3a61
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
@@ -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
+
@@ -11,7 +11,7 @@ class ScaleEngineAPI
11
11
  end
12
12
 
13
13
  def record_control_end_point
14
- "http://#{:username}-rec.vorigin.scaleengine.net:8086/serecordcontrols"
14
+ "http://#{self.username}-rec.vorigin.scaleengine.net:8086/serecordcontrols"
15
15
  end
16
16
  end
17
17
  end
@@ -0,0 +1,4 @@
1
+ class ScaleEngineAPI
2
+ # The version of the gem
3
+ VERSION = '0.1.5'
4
+ end
@@ -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
@@ -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
- require_relative "../lib/scaleengine"
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-test",
18
+ stream: "conferencecloud-tester",
20
19
  user: "conferencecloud",
21
- pass: "unique_random_string_per_request"
20
+ pass: (0...16).map { (65 + rand(26)).chr }.join # Random 16 character string
22
21
  })
23
- logger.debug req
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.0
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-01-28 00:00:00.000000000 Z
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: []