Skip to content
Browse files

Convert to rubygem

  • Loading branch information...
1 parent f7c4999 commit 0061061266850ebf21b1fc4e96fee16a48abdd1d @romanbsd romanbsd committed
View
1 .gitignore
@@ -2,3 +2,4 @@
pcap.bundle
mkmf.log
Makefile
+pkg/*
View
17 Rakefile
@@ -0,0 +1,17 @@
+begin
+ require 'rubygems'
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "pcap"
+ gemspec.summary = "Interface to LBL Packet Capture library (libpcap)"
+ gemspec.email = "fukusima@goto.info.waseda.ac.jp"
+ gemspec.homepage = "http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html"
+ gemspec.description = "Ruby interface to LBL Packet Capture library. This library also includes classes to access packet header fields."
+ gemspec.authors = ["Masaki Fukushima", "Andrew Hobson"]
+ gemspec.extensions = ["ext/extconf.rb"]
+ gemspec.files = FileList["[A-Z]*", "{doc,doc-ja,ext,lib,examples}/**/*"]
+ gemspec.test_files = []
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
View
1 VERSION
@@ -0,0 +1 @@
+0.7.0
View
3 examples/httpdump.rb
@@ -1,4 +1,5 @@
-#!/usr/local/bin/ruby
+#!/usr/bin/env ruby
+require 'rubygems'
require 'pcaplet'
httpdump = Pcaplet.new('-s 1500')
View
3 examples/tcpdump.rb
@@ -1,4 +1,5 @@
-#!/usr/local/bin/ruby
+#!/usr/bin/env ruby
+require 'rubygems'
require 'pcaplet'
include Pcap
View
3 examples/test.rb
@@ -1,4 +1,5 @@
-#!/usr/local/bin/ruby
+#!/usr/bin/env ruby
+require 'rubygems'
require 'pcap'
dev = Pcap.lookupdev
View
0 Pcap.c → ext/Pcap.c
File renamed without changes.
View
0 extconf.rb → ext/extconf.rb
File renamed without changes.
View
0 icmp_packet.c → ext/icmp_packet.c
File renamed without changes.
View
0 ip_packet.c → ext/ip_packet.c
File renamed without changes.
View
0 packet.c → ext/packet.c
File renamed without changes.
View
0 ruby_pcap.h → ext/ruby_pcap.h
File renamed without changes.
View
0 tcp_packet.c → ext/tcp_packet.c
File renamed without changes.
View
0 udp_packet.c → ext/udp_packet.c
File renamed without changes.
View
84 pcap.gemspec
@@ -0,0 +1,84 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{pcap}
+ s.version = "0.7.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Masaki Fukushima", "Andrew Hobson"]
+ s.date = %q{2009-06-06}
+ s.description = %q{Ruby interface to LBL Packet Capture library. This library also includes classes to access packet header fields.}
+ s.email = %q{fukusima@goto.info.waseda.ac.jp}
+ s.extensions = ["ext/extconf.rb"]
+ s.extra_rdoc_files = [
+ "ChangeLog",
+ "README",
+ "README.ja"
+ ]
+ s.files = [
+ "COPYING",
+ "ChangeLog",
+ "MANIFEST",
+ "README",
+ "README.ja",
+ "Rakefile",
+ "VERSION",
+ "doc-ja/Capture.html",
+ "doc-ja/Dumper.html",
+ "doc-ja/Filter.html",
+ "doc-ja/ICMPPacket.html",
+ "doc-ja/IPAddress.html",
+ "doc-ja/IPPacket.html",
+ "doc-ja/Packet.html",
+ "doc-ja/Pcap.html",
+ "doc-ja/PcapError.html",
+ "doc-ja/Pcaplet.html",
+ "doc-ja/TCPPacket.html",
+ "doc-ja/TruncatedPacket.html",
+ "doc-ja/UDPPacket.html",
+ "doc-ja/index.html",
+ "doc/Capture.html",
+ "doc/Dumper.html",
+ "doc/Filter.html",
+ "doc/ICMPPacket.html",
+ "doc/IPAddress.html",
+ "doc/IPPacket.html",
+ "doc/Packet.html",
+ "doc/Pcap.html",
+ "doc/PcapError.html",
+ "doc/Pcaplet.html",
+ "doc/TCPPacket.html",
+ "doc/TruncatedPacket.html",
+ "doc/UDPPacket.html",
+ "doc/index.html",
+ "examples/httpdump.rb",
+ "examples/tcpdump.rb",
+ "examples/test.rb",
+ "ext/Pcap.c",
+ "ext/extconf.rb",
+ "ext/icmp_packet.c",
+ "ext/ip_packet.c",
+ "ext/packet.c",
+ "ext/ruby_pcap.h",
+ "ext/tcp_packet.c",
+ "ext/udp_packet.c",
+ "lib/pcap_misc.rb",
+ "lib/pcaplet.rb"
+ ]
+ s.has_rdoc = true
+ s.homepage = %q{http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{Interface to LBL Packet Capture library (libpcap)}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end

0 comments on commit 0061061

Please sign in to comment.
Something went wrong with that request. Please try again.