fast_osc 1.2.1 → 1.2.2

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
  SHA256:
3
- metadata.gz: c658317a6dd74c2b68ce1a912fb17632968e141f374628835a00d3298c5c46d7
4
- data.tar.gz: 0b2e60c0dfba87d47ae9219738f3a4a4186cfe724f39f24e279181dcb0694ef9
3
+ metadata.gz: '058e670a165a383eb2fa97a304595a862b995913c6965082e59ae7721515b8e4'
4
+ data.tar.gz: b1da0433c8a72e9bf13a8eca102610ed8e6807434a6083c73714939ebe6f07df
5
5
  SHA512:
6
- metadata.gz: 61080f61049ba5ffe74a1158cdf75770a8e384ee5191fd9dc0660e29704189064281bb6ae8f39d15010f1e6f8c75003dc7ade123b8f6e1caf44867ea9d0b1db1
7
- data.tar.gz: 24c59816f1be45d3334c425222099e14de4b69a458ff12fe3d615e312f085d1b3a969ee84c1a195f6b52f724b19b22740036868963f0c9909490e0278ade7894
6
+ metadata.gz: 8be6f1c8f4ce0339cf62f5c534e01cbb7d71fb65419eb3b01744a06896759bfacb57527ff4211fa7b25e6378630a7780274f30f51e26f4fc44d2c9749a2561ef
7
+ data.tar.gz: 86d2410fd46eff3416c4d38d83cca121777347d7937f294dbb8185bc95cf852650683ee4fb5fac49910f5e44d631dcae8eee1f64fc168ec736cef32e13632a52
data/README.md CHANGED
@@ -108,13 +108,24 @@ Benchmarks are now part of this repo - run `WITH_BENCHMARKS=1 rake test` to see
108
108
  - [ ] Work out cross compilation story for easier packaging
109
109
  - [x] Implement multi message/nested bundles
110
110
  - [ ] More documentation
111
- - [x] Travis
111
+ - [x] Travis, Appveyor
112
112
 
113
113
  ## Development notes
114
114
 
115
+ This project uses Bundler v2 - get this with
116
+
117
+ gem install bundler
118
+
119
+ On linux, the only deps are `apt-get install build-essentials ruby-devel`. On OS X you may need XCode build tooling or similar.
120
+
115
121
  bundle install
116
122
  rake compile
117
123
 
124
+ On Windows, using RubyInstaller and setup the MSYS2 toolchain. You then need to include devkit in the compile step like so:
125
+
126
+ bundle install
127
+ bundle exec rake compile -rdevkit
128
+
118
129
  ### Running the test suite
119
130
 
120
131
  ```
data/appveyor.yml ADDED
@@ -0,0 +1,31 @@
1
+ # appveyor.yml
2
+ environment:
3
+ MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
4
+ matrix:
5
+ - generator: "Visual Studio 16 2019"
6
+
7
+ image: Visual Studio 2019
8
+
9
+ install:
10
+ - set PATH=c:\Ruby26-x64\bin;C:\Program Files (x86)\WiX Toolset v3.11\bin;%PATH%
11
+ - set WITH_BENCHMARKS=1
12
+ - bundle install
13
+
14
+ build: off
15
+
16
+ before_test:
17
+ - ruby -v
18
+ - gem -v
19
+ - bundle -v
20
+
21
+ platform:
22
+ - x64
23
+
24
+ matrix:
25
+ fast_finish: true
26
+
27
+ test_script:
28
+ - bundle exec rake compile -rdevkit && bundle exec rake test
29
+ # also test pure ruby fallback code
30
+ - set FAST_OSC_USE_FALLBACK=true
31
+ - bundle exec rake test
@@ -48,7 +48,7 @@ module SonicPi
48
48
  end
49
49
 
50
50
  def encode_single_message(address, args=[])
51
- args_encoded, tags = "", ","
51
+ args_encoded, tags = String.new(""), String.new(",")
52
52
 
53
53
  # inlining this method was not faster surprisingly
54
54
  address = get_from_or_add_to_string_cache(address)
@@ -109,7 +109,7 @@ module SonicPi
109
109
 
110
110
  tags_encoded = get_from_or_add_to_string_cache(tags)
111
111
  # Address here needs to be a new string, not sure why
112
- "#{address}#{tags_encoded}#{args_encoded}".force_encoding("ASCII-8BIT")
112
+ String.new("#{address}#{tags_encoded}#{args_encoded}").force_encoding("ASCII-8BIT")
113
113
  end
114
114
 
115
115
  def encode_single_bundle(ts, address, args=[])
@@ -1,3 +1,3 @@
1
1
  module FastOsc
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_osc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-16 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,7 @@ files:
108
108
  - LICENSE.txt
109
109
  - README.md
110
110
  - Rakefile
111
+ - appveyor.yml
111
112
  - docs/what-about-truffle-ruby.md
112
113
  - ext/fast_osc/extconf.rb
113
114
  - ext/fast_osc/fast_osc_wrapper.c
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  - !ruby/object:Gem::Version
142
143
  version: '0'
143
144
  requirements: []
144
- rubygems_version: 3.0.3
145
+ rubygems_version: 3.1.2
145
146
  signing_key:
146
147
  specification_version: 4
147
148
  summary: Serialize and deserialize Open Sound Control messages