dhcp 0.0.1 → 0.0.3
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 +7 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/{README → README.rdoc} +7 -3
- data/Rakefile +17 -7
- data/dhcp.rb.bak +1047 -0
- data/lib/dhcp/client.rb +24 -0
- data/lib/dhcp/dhcp.rb +37 -923
- data/lib/dhcp/options.rb +652 -0
- data/lib/dhcp/packet.rb +353 -0
- data/lib/dhcp/server.rb +141 -0
- data/lib/dhcp/version.rb +3 -2
- data/lib/dhcp.rb +4 -1
- metadata +48 -48
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 974a171b1f2ae83482f680e59dac9fe86dea5aa5
|
4
|
+
data.tar.gz: 9c40210dad0d88e8b5fcfd6b387778d347a2ff62
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2792b2a2355d67f79e6494befabe1237c683555c92e4126f5c47a83b02326676f271f823460ccb319e8fb8ca89542f4894f294d4d290f635f7cd9d5b7652690d
|
7
|
+
data.tar.gz: 1d80d02bcc3c24614083d027415732a02635de52d96ded420e9f3522ea0c506ab372055fa7672e266bf48e4fc1d981d52cdd0fa0fe4bc56b8be97308ded3962c
|
data/{LICENSE → LICENSE.txt}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2010
|
3
|
+
Copyright (c) 2010-2014 InfoWest, Inc. and Aaron D. Gifford
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
data/{README → README.rdoc}
RENAMED
@@ -3,20 +3,24 @@
|
|
3
3
|
|
4
4
|
DHCP is a pure Ruby library for parsing and creating IPv4 DHCP packets,
|
5
5
|
requests or responses. No socket operations are included in the library.
|
6
|
-
Just packet parsing and binary packet
|
6
|
+
Just packet parsing and binary packet creation.
|
7
7
|
|
8
|
-
*WARNING
|
8
|
+
*WARNING:* A working release is not yet available. This is under development!
|
9
9
|
|
10
10
|
=== REQUIREMENTS
|
11
11
|
Using the DHCP library depends on the following other gems:
|
12
12
|
|
13
13
|
* ipaddress gem
|
14
14
|
|
15
|
+
=== TO DO
|
16
|
+
|
17
|
+
Lots and lots to be done, including implementing some useful tests
|
18
|
+
|
15
19
|
=== AUTHORS and CONTRIBUTORS
|
16
20
|
|
17
21
|
* Aaron D. Gifford - http://www.aarongifford.com/
|
18
22
|
|
19
23
|
=== LICENSE
|
20
24
|
|
21
|
-
Released under the MIT license. See the file 'LICENSE' for copyright and license detail.
|
25
|
+
Released under the MIT license. See the file 'LICENSE.txt' for copyright and license detail.
|
22
26
|
|
data/Rakefile
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
|
3
3
|
require 'pathname'
|
4
4
|
require 'rubygems'
|
5
|
-
require '
|
6
|
-
require '
|
5
|
+
require 'rubygems/package_task'
|
6
|
+
require 'rdoc/task'
|
7
|
+
require 'rake/testtask'
|
7
8
|
|
8
9
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
9
10
|
require 'dhcp/version'
|
@@ -12,9 +13,12 @@ gemspec = Gem::Specification.new do |s|
|
|
12
13
|
s.name = 'dhcp'
|
13
14
|
s.version = DHCP::Version::STRING
|
14
15
|
s.authors = [ 'Aaron D. Gifford' ]
|
16
|
+
s.license = 'MIT'
|
15
17
|
s.homepage = 'http://www.aarongifford.com/computers/dhcp/'
|
16
18
|
s.summary = "dhcp-#{DHCP::Version::STRING}"
|
17
19
|
s.description = 'A pure-ruby library for parsing and creating IPv4 DHCP packets (requests or responses)'
|
20
|
+
|
21
|
+
s.add_runtime_dependency 'ipaddress'
|
18
22
|
|
19
23
|
s.rubygems_version = DHCP::Version::STRING
|
20
24
|
s.rubyforge_project = 'dhcp'
|
@@ -29,19 +33,25 @@ gemspec = Gem::Specification.new do |s|
|
|
29
33
|
s.executables = Pathname.glob(['bin/*']).select{|x| File.file?(x)}.map{|x| x.to_s}
|
30
34
|
end
|
31
35
|
|
32
|
-
|
36
|
+
Gem::PackageTask.new(gemspec) do |pkg|
|
33
37
|
pkg.need_zip = true
|
34
38
|
pkg.need_tar = true
|
35
39
|
end
|
36
40
|
|
37
|
-
|
38
|
-
rdoc.main = 'README'
|
41
|
+
RDoc::Task.new do |rdoc|
|
42
|
+
rdoc.main = 'README.rdoc'
|
39
43
|
rdoc.rdoc_dir = 'doc'
|
40
|
-
rdoc.rdoc_files.include('README', 'lib/**/*.rb')
|
44
|
+
rdoc.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
|
45
|
+
end
|
46
|
+
|
47
|
+
Rake::TestTask.new do |t|
|
48
|
+
t.test_files = FileList['test/*_test.rb']
|
49
|
+
t.verbose = true
|
41
50
|
end
|
42
51
|
|
43
52
|
task :default => [
|
44
53
|
'pkg/dhcp-' + DHCP::Version::STRING + '.gem',
|
45
|
-
:rdoc
|
54
|
+
:rdoc,
|
55
|
+
:test
|
46
56
|
]
|
47
57
|
|