Skip to content

Commit

Permalink
Merge branch 'release/1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Feb 7, 2014
2 parents cc6c6db + 7b29bd7 commit c24f519
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
- rbx-19mode
- 2.1.0
- jruby-19mode
- rbx-2.1.1
- ruby-head
matrix:
allow_failures:
- rvm: rbx-2.1.1
- rvm: ruby-head
notifications:
irc: "irc.freenode.org#adhearsion"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# develop

# 1.1.1
* CS: Remove explicit dependency on json, since we only support Ruby > 1.9 and JSON support is bundled.

# 1.1.0
* Feature: Allow specifying an event mask (other than 'ALL') when connecting
* CS: Minor performance improvements from removing repeated regex compilation
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ stream = RubyFS::Stream.new '127.0.0.1', 8021, 'ClueCon', lambda { |e| p e }

stream.run

stream.api 'originate sofia/mydomain.com/ext@yourvsp.com 1000' do |response|
puts "Originate response was #{response.inspect}"
end
response = stream.api 'originate sofia/mydomain.com/ext@yourvsp.com 1000'
puts "Originate response was #{response.inspect}"
```

## Links
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_fs.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

%w{
logger
celluloid/io
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_fs/command_reply.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'ruby_fs/response'

module RubyFS
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_fs/event.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'ruby_fs/response'

module RubyFS
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_fs/lexer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

module RubyFS
class Lexer
ContentLengthPattern = /Content-length:\s*(\d+)/i
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_fs/response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

module RubyFS
class Response
attr_reader :headers, :content
Expand Down
4 changes: 3 additions & 1 deletion lib/ruby_fs/stream.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'json'

require 'ruby_fs/lexer'
Expand Down Expand Up @@ -39,7 +41,7 @@ def run
loop { receive_data @socket.readpartial(4096) }
rescue EOFError, IOError, Errno::ECONNREFUSED => e
logger.info "Client socket closed due to (#{e.class}) #{e.message}!"
terminate
async.terminate
end

#
Expand Down
4 changes: 3 additions & 1 deletion lib/ruby_fs/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

module RubyFS
VERSION = "1.1.0"
VERSION = "1.1.1"
end
1 change: 0 additions & 1 deletion ruby_fs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_runtime_dependency %q<celluloid-io>, ["~> 0.13"]
s.add_runtime_dependency %q<json>

s.add_development_dependency %q<bundler>, ["~> 1.0"]
s.add_development_dependency %q<rspec>, ["~> 2.5"]
Expand Down
2 changes: 2 additions & 0 deletions spec/ruby_fs/command_reply_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'

module RubyFS
Expand Down
2 changes: 2 additions & 0 deletions spec/ruby_fs/event_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'

module RubyFS
Expand Down
2 changes: 2 additions & 0 deletions spec/ruby_fs/response_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'

module RubyFS
Expand Down
2 changes: 2 additions & 0 deletions spec/ruby_fs/stream_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'
require 'timeout'

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'ruby_fs'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
Expand Down
2 changes: 2 additions & 0 deletions spec/support/mock_server.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

MockServer = Class.new

class ServerMock
Expand Down

0 comments on commit c24f519

Please sign in to comment.