Skip to content

Commit

Permalink
fixes leftover Cjdns -> CJDNS
Browse files Browse the repository at this point in the history
  • Loading branch information
kris kechagia committed May 6, 2012
1 parent 22fa1dc commit 93d80ce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cjdns::Lib
# CJDNS Library

ruby library to connect to the [cjdns](https://github.com/cjdelisle/cjdns)-admin interface.
used by [cjdns-tool](https://github.com/kechagia/cjdns-tool)
Expand Down
2 changes: 1 addition & 1 deletion cjdns-lib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "cjdns-lib"
gem.require_paths = ["lib"]
gem.version = Cjdns::Lib::VERSION
gem.version = CJDNS::Lib::VERSION

gem.rubyforge_project = "cjdns-lib"

Expand Down
2 changes: 1 addition & 1 deletion lib/cjdns-lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
require 'cjdns-lib/hypedns'
require 'cjdns-lib/version'

module Cjdns
module CJDNS
end
3 changes: 1 addition & 2 deletions lib/cjdns-lib/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Host
attr_reader :ip, :cjdns

# @param [String] ip
# @param [Cjdns::Interface] cjdns
# @param [CJDNS::Interface] cjdns
# @param [Hash] options options for CJDNS::Interface
def initialize(ip, cjdns = nil, options = {})
@ip = ip
Expand Down Expand Up @@ -72,7 +72,6 @@ def ping_http(timeout = 5)
# @param [Int] timeout
# @return [Hash] { 'time' => [Int] response_time }
# @return [Boolean] false if host is not replying
### TODO
def ping_cjdns(timeout = 1)
time = @cjdns.ping_node(@ip, timeout * 1000)
return false unless time
Expand Down
2 changes: 1 addition & 1 deletion lib/cjdns-lib/route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module CJDNS
class Route
attr_reader :path, :ip, :link, :quality, :routing_table

# @param [Cjdns::RoutingTable] routing_table
# @param [CJDNS::RoutingTable] routing_table
# @param [String] ip
# @param [String] path
# @param [String] link
Expand Down
2 changes: 1 addition & 1 deletion lib/cjdns-lib/routing_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RoutingTable

attr_reader :routes, :hosts

# @param [Cjdns::Interface] cjdns
# @param [CJDNS::Interface] cjdns
# @param [Hash] options options for CJDNS::Interface
def initialize(cjdns = nil, options = {})
# connect to cjdns socket, unless given
Expand Down
2 changes: 1 addition & 1 deletion lib/cjdns-lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Cjdns
module CJDNS
class Lib
VERSION = "0.2.1"
end
Expand Down

0 comments on commit 93d80ce

Please sign in to comment.