rtp 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,11 +1,18 @@
1
- === 0.1.0 / 2012-11-14
1
+ === 0.1.1 / 2012-11-20
2
+
3
+ ==== Bug Fixes:
4
+
5
+ * RTP::Receiver#init_socket now uses #recv instead of #recvmsg for JRuby compat.
6
+
7
+ === 0.1.0 / 2012-11-20
2
8
 
3
9
  Lots of big changes this release! Only a minor bump though, since I'm assuming
4
10
  that I'm about the only one using this at this point and I'm not going to mess
5
11
  anyone else up by making these changes. This is how the initial release should
6
12
  have been.
7
13
 
8
- New features:
14
+ ==== New features:
15
+
9
16
  * RTP::Receiver#start (used to be #run--see below) now takes an optional block
10
17
  that will yield a parsed RTP::Packet. This allows for inspecting packets
11
18
  as they come in. If a block is given, no data will be written to the capture
@@ -18,7 +25,8 @@ New features:
18
25
  functionality behind the #rtcp_port yet; just a numerical placeholder, really.
19
26
  * Use Kernel#at_exit to make sure capture files get closed and deleted.
20
27
 
21
- Refactorings:
28
+ ==== Refactorings:
29
+
22
30
  * RTP::Receiver.new now takes an options Hash instead of a bunch of params.
23
31
  * Merged RTP::Receiver#run and RTP::Receiver#start_listener into
24
32
  RTP::Receiver#start. There wasn't any benefit of having them separate.
data/README.rdoc CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  http://github.com/turboladen/rtp
4
4
 
5
+ {<img src="https://secure.travis-ci.org/turboladen/rtp.png?branch=master" alt="Build Status" />}[https://travis-ci.org/turboladen/rtp]
6
+
5
7
  == DESCRIPTION
6
8
 
7
9
  This is a RTP library that provides the most basic features of the Real-Time
data/lib/rtp/receiver.rb CHANGED
@@ -230,7 +230,7 @@ module RTP
230
230
 
231
231
  Thread.start(socket) do
232
232
  loop do
233
- msg = socket.recvmsg(MAX_BYTES_TO_RECEIVE)
233
+ msg = socket.recv(MAX_BYTES_TO_RECEIVE)
234
234
  data = msg.first
235
235
  log "Received data at size: #{data.size}"
236
236
 
data/lib/rtp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RTP
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/rtp.gemspec CHANGED
@@ -18,13 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.test_files = Dir.glob("spec/**/*")
19
19
  s.require_paths = %w(lib)
20
20
 
21
- s.add_dependency("bindata", "~> 1.4")
22
- s.add_dependency("log_switch", ">=0.4.0")
21
+ s.add_dependency "bindata", "~> 1.4"
22
+ s.add_dependency "log_switch", ">=0.4.0"
23
23
 
24
- s.add_development_dependency("bundler", ">= 0")
25
- s.add_development_dependency("rake", ">= 0")
26
- s.add_development_dependency("rspec", "~> 2.7")
27
- s.add_development_dependency("simplecov", ">= 0")
28
- s.add_development_dependency("tailor", ">= 1.1.2")
29
- s.add_development_dependency("yard", ">= 0.7.2")
24
+ s.add_development_dependency "bundler"
25
+ s.add_development_dependency "rake"
26
+ s.add_development_dependency "rspec", "~> 2"
27
+ s.add_development_dependency "simplecov"
28
+ s.add_development_dependency "tailor", ">= 1.1.2"
29
+ s.add_development_dependency "yard", ">= 0.7.2"
30
30
  end
@@ -293,7 +293,7 @@ describe RTP::Receiver do
293
293
  end
294
294
 
295
295
  let(:socket) do
296
- double "Socket", recvmsg: message
296
+ double "Socket", recv: message
297
297
  end
298
298
 
299
299
  it "starts a new Thread and returns that" do
@@ -305,7 +305,7 @@ describe RTP::Receiver do
305
305
  Thread.stub(:start).and_yield
306
306
  subject.stub(:loop).and_yield
307
307
 
308
- socket.should_receive(:recvmsg).with(1500).and_return message
308
+ socket.should_receive(:recv).with(1500).and_return message
309
309
 
310
310
  subject.send(:start_listener, socket)
311
311
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-20 00:00:00.000000000 Z
13
+ date: 2012-11-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bindata
@@ -83,7 +83,7 @@ dependencies:
83
83
  requirements:
84
84
  - - ~>
85
85
  - !ruby/object:Gem::Version
86
- version: '2.7'
86
+ version: '2'
87
87
  type: :development
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,7 +91,7 @@ dependencies:
91
91
  requirements:
92
92
  - - ~>
93
93
  - !ruby/object:Gem::Version
94
- version: '2.7'
94
+ version: '2'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: simplecov
97
97
  requirement: !ruby/object:Gem::Requirement