Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

documentation and finishing touches for 1.1.0 gem release. removing n…

…on-spec wildcard until i can support OSC1.1 // matching
  • Loading branch information...
commit 975c116e0faff9d6f283f84c4908fae1b0eaa5c6 1 parent 89dea34
colin harris authored
7 History.txt
View
@@ -1,3 +1,6 @@
-=== 1.0.0 / 2012-10-28
+1.1.0 / 2013-05-03
+ * made gem compatible with ruby 2.0
+ * dropped compatibility with 1.8.X ruby
-* Extracted gemspec file from Rakefile so that people can use bundler to build gem from github.
+1.0.0 / 2012-10-28
+ * Extracted gemspec file from Rakefile so that people can use bundler to build gem from github.
1  TODO
View
@@ -1,2 +1 @@
-test support for rubinus and jruby 1.7
2  VERSION
View
@@ -1 +1 @@
-1.0.0
+1.1.0
4 lib/osc-ruby/address_pattern.rb
View
@@ -24,7 +24,9 @@ def generate_regex_from_pattern
@pattern.gsub!(/\?/, '[^/]')
# handles ** - used in creating osc routers
- @pattern.gsub!(/\*\*/, '.*' )
+ # TODO: turns out the OSC 1.1 spec says that we shoudl use "//"
+ # this will be implemented in the next major release of this gem
+ #@pattern.gsub!(/\*\*/, '.*' )
# handles osc * - 0 or more matching
@pattern.gsub!(/\*[^\*]/, '[^/]*')
4 osc-ruby.gemspec
View
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
gem.version = File.read('VERSION')
gem.summary = "a ruby client for the OSC protocol"
- gem.description = "This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 1.9/JRuby compatibility"
+ gem.description = "This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 2.0/1.9/JRuby compatibility"
gem.authors = "Colin Harris"
gem.email = "qzzzq1@gmail.com"
@@ -13,4 +13,6 @@ Gem::Specification.new do |gem|
gem.files = Dir['Rakefile', 'VERSION', 'LICENSE', 'examples/**/*', 'lib/**/*']
gem.test_files = Dir['spec/**/*.rb']
+
+ gem.add_development_dependency "rspec"
end
14 spec/unit/address_pattern_spec.rb
View
@@ -1,16 +1,16 @@
require File.join( File.dirname(__FILE__) , '..', 'spec_helper' )
describe OSC::AddressPattern do
- it "..." do
- ap = OSC::AddressPattern.new("/bob/test/**")
+ # it "..." do
+ # ap = OSC::AddressPattern.new("/bob/test/**")
- ap.match?("/bob/test/monkey").should be_true
- ap.match?("/bob/test/monkey/shine/rainy/day").should be_true
+ # ap.match?("/bob/test/monkey").should be_true
+ # ap.match?("/bob/test/monkey/shine/rainy/day").should be_true
- ap.match?("/bob/test").should be_false
- ap.match?("/bob").should be_false
+ # ap.match?("/bob/test").should be_false
+ # ap.match?("/bob").should be_false
- end
+ # end
it "should match anything if the pattern is nil" do
ap = OSC::AddressPattern.new( nil )
Please sign in to comment.
Something went wrong with that request. Please try again.