dhcp 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010,2011 InfoWest, Inc. and Aaron D. Gifford
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
@@ -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 creating.
6
+ Just packet parsing and binary packet creation.
7
7
 
8
- *WARNING* A working release is not yet available. This is under development!
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 'rake/gempackagetask'
6
- require 'rake/rdoctask'
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
- Rake::GemPackageTask.new(gemspec) do |pkg|
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
- Rake::RDocTask.new do |rdoc|
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