piliv2 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9e094ae0ac8e0f7b19e56c5a7f38651c656d264
4
- data.tar.gz: c41becb124bb0214cbcfb5d02f464b4066f00df0
3
+ metadata.gz: 2643209525e556871da60fe435a569d00c23f03b
4
+ data.tar.gz: fb958350192aa3591012600b169dc293e0dcca7a
5
5
  SHA512:
6
- metadata.gz: 1ed4a2d0ece73e1257c14df7fd37108988868524dd3d5ddb70bb6c75a2c107b7ad3b500f566a695fd46aa74ceef0434efeda7fadee3bdd290b25cc4983732fe9
7
- data.tar.gz: f4164d9a5135883b07dc9591e451a74e5b873437ecef0d07ff12f8e428454e20bebe864f1ae580e4c6beb87f8a3d3094ce2a4154a136502d53e5adb8e15f72e5
6
+ metadata.gz: dfe92138ee5ca7725c62ed93b322010bf01c5c96c3a17295e19d24fc529a14b77748bf0b4fc022b973631075e33fe6e4932ecacc0f69adc9c7c328d7630dea83
7
+ data.tar.gz: cbf120c03cc122ae563d24b4dc878639745450d5a4ed5f502163d91627cf864fddb37342ba639bebd5fb57c038ef322f8f56f9b7cb0479335d836ae32a923a7d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGE LOG
2
2
 
3
+ ### v2.0.3
4
+
5
+ - 修复 README 错误和修改 `RPCError` 继承自 `RuntimeError`。[#33](https://github.com/pili-engineering/pili-sdk-ruby/pull/33)
6
+
3
7
  ### v2.0.2
4
8
 
5
9
  - 更改包名为 `piliv2`。[#32](https://github.com/pili-engineering/pili-sdk-ruby/pull/32)
data/README.md CHANGED
@@ -82,7 +82,7 @@ hub = client.hub(hub_name)
82
82
  #### Generate RTMP publish URL
83
83
 
84
84
  ```ruby
85
- url = Pili.rtmp_publish_url("publish-rtmp.test.com", "PiliSDKTest", "streamkey", 60)
85
+ url = Pili.rtmp_publish_url("publish-rtmp.test.com", "PiliSDKTest", "streamkey", mac, 60)
86
86
  puts(url)
87
87
  # rtmp://publish-rtmp.test.com/PiliSDKTest/streamkey?e=1463023142&token=7O7hf7Ld1RrC_fpZdFvU8aCgOPuhw2K4eapYOdII:-5IVlpFNNGJHwv-2qKwVIakC0ME=
88
88
  ```
data/example/example.rb CHANGED
@@ -86,7 +86,7 @@ puts "保存直播数据."
86
86
  begin
87
87
  fname = stream_a.save()
88
88
  puts fname
89
- rescue Exception => e
89
+ rescue => e
90
90
  puts e
91
91
  end
92
92
 
@@ -4,7 +4,7 @@ require "json"
4
4
 
5
5
  module Pili
6
6
 
7
- class RPCError < Exception
7
+ class RPCError < RuntimeError
8
8
 
9
9
  attr_reader :resp
10
10
 
data/lib/pili/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pili
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piliv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pili Engineer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler