osc-ruby 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/VERSION +1 -1
- data/lib/osc-ruby/bundle.rb +9 -9
- metadata +18 -22
- data/lib/osc-ruby/argument_factory.rb +0 -8
- data/spec/unit/parsers/argument_parser_spec.rb +0 -12
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 995c006f465419288008d8e6c710b616104690b7d1db2819707f4c71ed41b8c9
|
4
|
+
data.tar.gz: 116f65c0f43fbe3b05eccb4a4616db179a11834803c2c765dd67619d2b941f70
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f09d7818341adcf40d4dfe4979461593dc1aadc3bbfe02e05a78e94db9ba710f91435cf400add89c49e96f0aa4b9be58df7d3a7579e15455cc8c059d0f1a35f9
|
7
|
+
data.tar.gz: 5afb27ece451be752787fc78d9e50bb8cdaa38e4b1200419c77cfbe409513f101e08581a12b7d57552fe7dcba8bb62b57ffb2c6f4905af68c1444658d448d0b2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/osc-ruby/bundle.rb
CHANGED
@@ -11,8 +11,8 @@ module OSC
|
|
11
11
|
s = OSCString.new('#bundle').encode
|
12
12
|
s << encode_timetag(@timetag)
|
13
13
|
s << @args.collect do |x|
|
14
|
-
|
15
|
-
|
14
|
+
x2 = x.encode; [x2.size].pack('N') + x2
|
15
|
+
end.join
|
16
16
|
end
|
17
17
|
|
18
18
|
def to_a() @args.collect{|x| x.to_a} end
|
@@ -21,15 +21,15 @@ module OSC
|
|
21
21
|
|
22
22
|
def encode_timetag(t)
|
23
23
|
case t
|
24
|
-
when
|
25
|
-
|
26
|
-
|
24
|
+
when nil # immediately
|
25
|
+
t1 = 0
|
26
|
+
t2 = 1
|
27
27
|
when Numeric
|
28
|
-
|
28
|
+
t1, t2 = construct_timetag( t )
|
29
29
|
when Time
|
30
|
-
|
30
|
+
t1, t2 = construct_timetag( t.to_ntp )
|
31
31
|
else
|
32
|
-
|
32
|
+
raise ArgumentError, 'invalid time'
|
33
33
|
end
|
34
34
|
[t1, t2].pack('N2')
|
35
35
|
end
|
@@ -41,4 +41,4 @@ module OSC
|
|
41
41
|
[t1, t2]
|
42
42
|
end
|
43
43
|
end
|
44
|
-
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,30 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osc-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Colin Harris
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: This OSC gem originally created by Tadayoshi Funaba has been updated
|
15
|
-
for ruby 2
|
14
|
+
for ruby 2.*/1.9/JRuby compatibility
|
16
15
|
email: qzzzq1@gmail.com
|
17
16
|
executables: []
|
18
17
|
extensions: []
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
20
|
+
- LICENSE
|
21
21
|
- Rakefile
|
22
22
|
- VERSION
|
23
|
-
- LICENSE
|
24
23
|
- examples/broadcast_client.rb
|
25
24
|
- examples/event_machine_server.rb
|
25
|
+
- lib/osc-ruby.rb
|
26
26
|
- lib/osc-ruby/address_pattern.rb
|
27
|
-
- lib/osc-ruby/argument_factory.rb
|
28
27
|
- lib/osc-ruby/broadcast_client.rb
|
29
28
|
- lib/osc-ruby/bundle.rb
|
30
29
|
- lib/osc-ruby/client.rb
|
@@ -37,7 +36,6 @@ files:
|
|
37
36
|
- lib/osc-ruby/osc_packet.rb
|
38
37
|
- lib/osc-ruby/osc_types.rb
|
39
38
|
- lib/osc-ruby/server.rb
|
40
|
-
- lib/osc-ruby.rb
|
41
39
|
- spec/builders/message_builder.rb
|
42
40
|
- spec/spec_helper.rb
|
43
41
|
- spec/unit/address_pattern_spec.rb
|
@@ -50,42 +48,40 @@ files:
|
|
50
48
|
- spec/unit/osc_packet_unknown_type_spec.rb
|
51
49
|
- spec/unit/osc_simple_packets_spec.rb
|
52
50
|
- spec/unit/osc_types_spec.rb
|
53
|
-
- spec/unit/parsers/argument_parser_spec.rb
|
54
51
|
homepage: http://github.com/aberant/osc-ruby
|
55
|
-
licenses:
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata: {}
|
56
55
|
post_install_message:
|
57
56
|
rdoc_options: []
|
58
57
|
require_paths:
|
59
58
|
- lib
|
60
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
60
|
requirements:
|
63
|
-
- -
|
61
|
+
- - ">="
|
64
62
|
- !ruby/object:Gem::Version
|
65
63
|
version: '0'
|
66
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
65
|
requirements:
|
69
|
-
- -
|
66
|
+
- - ">="
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '0'
|
72
69
|
requirements: []
|
73
70
|
rubyforge_project:
|
74
|
-
rubygems_version:
|
71
|
+
rubygems_version: 2.7.4
|
75
72
|
signing_key:
|
76
|
-
specification_version:
|
73
|
+
specification_version: 4
|
77
74
|
summary: a ruby client for the OSC protocol
|
78
75
|
test_files:
|
79
|
-
- spec/builders/message_builder.rb
|
80
76
|
- spec/spec_helper.rb
|
77
|
+
- spec/unit/osc_complex_packets_spec.rb
|
81
78
|
- spec/unit/address_pattern_spec.rb
|
82
|
-
- spec/unit/message_builder_spec.rb
|
83
|
-
- spec/unit/message_bundle_spec.rb
|
84
|
-
- spec/unit/message_spec.rb
|
85
|
-
- spec/unit/network_packet_spec.rb
|
86
79
|
- spec/unit/osc_argument_spec.rb
|
87
|
-
- spec/unit/osc_complex_packets_spec.rb
|
88
80
|
- spec/unit/osc_packet_unknown_type_spec.rb
|
81
|
+
- spec/unit/network_packet_spec.rb
|
89
82
|
- spec/unit/osc_simple_packets_spec.rb
|
90
83
|
- spec/unit/osc_types_spec.rb
|
91
|
-
- spec/unit/
|
84
|
+
- spec/unit/message_spec.rb
|
85
|
+
- spec/unit/message_bundle_spec.rb
|
86
|
+
- spec/unit/message_builder_spec.rb
|
87
|
+
- spec/builders/message_builder.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# require File.join( File.dirname(__FILE__) , '..', '..', 'spec_helper' )
|
2
|
-
|
3
|
-
# describe OSC::ArgumentParser do
|
4
|
-
# it "can parse streams that contain integer arguments" do
|
5
|
-
# int_value = 1024
|
6
|
-
# int32_stream = OSC::InputStream.new(OSC::Int32.new(int_value).encode)
|
7
|
-
|
8
|
-
# result = OSC::Int32Parser.new(int32_stream).parse
|
9
|
-
|
10
|
-
# result.should == int_value
|
11
|
-
# end
|
12
|
-
# end
|