Skip to content

Commit

Permalink
Update for renamed syslog_proto gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Mar 28, 2011
1 parent ef7f829 commit fee2a5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ source :rubygems

gemspec

gem 'syslog_proto', :path => '../syslog_proto'
4 changes: 2 additions & 2 deletions lib/remote_syslog_logger/udp_sender.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'socket'
require 'syslog_proto'
require 'syslog_protocol'

module RemoteSyslogLogger
class UdpSender
Expand All @@ -8,7 +8,7 @@ def initialize(remote_hostname, remote_port, options = {})
@remote_port = remote_port

@socket = UDPSocket.new
@packet = SyslogProto::Packet.new
@packet = SyslogProtocol::Packet.new

local_hostname = options[:local_hostname] || (Socket.gethostname rescue `hostname`.chomp)
local_hostname = 'localhost' if local_hostname.nil? || local_hostname.empty?
Expand Down
4 changes: 2 additions & 2 deletions remote_syslog_logger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ Gem::Specification.new do |s|
## Specify any RDoc options here. You'll want to add your README and
## LICENSE files to the extra_rdoc_files list.
s.rdoc_options = ["--charset=UTF-8"]
s.extra_rdoc_files = %w[README LICENSE]
s.extra_rdoc_files = %w[README.md LICENSE]

## List your runtime dependencies here. Runtime dependencies are those
## that are needed for an end user to actually USE your code.
s.add_dependency('syslog_proto')
s.add_dependency('syslog_protocol')

## List your development dependencies here. Development dependencies are
## those that are only needed during development
Expand Down

0 comments on commit fee2a5f

Please sign in to comment.