jesnault-bgp4r 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +7 -20
  2. data/bgp4r.gemspec +115 -0
  3. data/bgp4r.rb +26 -0
  4. metadata +4 -2
data/README.rdoc CHANGED
@@ -127,7 +127,7 @@ while a Path_attribute object or Nlri object is added to an Update object.
127
127
 
128
128
  === Produces:
129
129
 
130
- Jean-Michel-Esnaults-MacBook-Pro-17:bgp4r jme$ ruby bin/bgp
130
+ Jean-Michel-Esnaults-MacBook-Pro-17:bgp4r jme$ ruby bgp
131
131
  I, [56:08#28463] INFO -- : Open Socket old state Idle new state Active
132
132
  I, [56:08#28463] INFO -- : SendOpen
133
133
  D, [56:08#28463] DEBUG -- : Send Open Message (1), length: 61
@@ -227,30 +227,17 @@ Source code is hosted on github.
227
227
 
228
228
  == Installation
229
229
 
230
- === Build and install a bgp4r gem using Rakefile.
230
+ ==== Run the following if you haven't already:
231
231
 
232
- $ rake -T
233
- (in /Users/jme/bgp4r)
234
- rake check_syntax # Check syntax of all Ruby files.
235
- rake clean # Remove any temporary products.
236
- rake clobber # Remove any generated file.
237
- rake clobber_package # Remove package products
238
- rake clobber_rdoc # Remove rdoc products
239
- rake gem # Build the gem file bgp4r-0.0.1.gem
240
- rake gem:install # Run :package and install the .gem locally
241
- rake gem:install_fast # Like gem:install but without ri or rdocs
242
- rake gem:uninstall # Run :clean and uninstall the .gem
243
- rake package # Build all the packages
244
- rake rdoc # Build the rdoc HTML Files
245
- rake repackage # Force a rebuild of the package files
246
- rake rerdoc # Force a rebuild of the RDOC files
247
- rake test # Run tests
232
+ gem sources -a http://gems.github.com
248
233
 
234
+ ==== Install the gem
249
235
 
250
- === Or set RUBYLIB env variable:
236
+ sudo gem install jesnault-bgp4r
251
237
 
252
- (assuming you have cloned copy of bgp4r at /home/user/bgp4r)
238
+ === Or clone bgp4r tree and set RUBYLIB env variable accordingly:
253
239
 
240
+ git clone git://github.com/jesnault/bgp4r.git
254
241
  export RUBYLIB=/home/user/bgp4r
255
242
 
256
243
  == Requirements
data/bgp4r.gemspec ADDED
@@ -0,0 +1,115 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{bgp4r}
5
+ s.version = "0.0.4"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Jean-Michel Esnault"]
9
+ s.date = %q{2009-06-30}
10
+ s.description = %q{BGP4R is a BGP-4 ruby library to create, send, and receive BGP messages in an object oriented manner}
11
+ s.email = %q{jesnault@gmail.com}
12
+ s.extra_rdoc_files = [
13
+ "LICENSE.txt",
14
+ "README.rdoc"
15
+ ]
16
+ s.files = [
17
+ "COPYING",
18
+ "LICENSE.txt",
19
+ "README.rdoc",
20
+ "bgp/aggregator.rb",
21
+ "bgp/as_path.rb",
22
+ "bgp/atomic_aggregate.rb",
23
+ "bgp/attribute.rb",
24
+ "bgp/attributes.rb",
25
+ "bgp/cluster_list.rb",
26
+ "bgp/common.rb",
27
+ "bgp/communities.rb",
28
+ "bgp/extended_communities.rb",
29
+ "bgp/extended_community.rb",
30
+ "bgp/iana.rb",
31
+ "bgp/io.rb",
32
+ "bgp/label.rb",
33
+ "bgp/local_pref.rb",
34
+ "bgp/message.rb",
35
+ "bgp/mp_reach.rb",
36
+ "bgp/multi_exit_disc.rb",
37
+ "bgp/neighbor.rb",
38
+ "bgp/next_hop.rb",
39
+ "bgp/nlri.rb",
40
+ "bgp/orf.rb",
41
+ "bgp/origin.rb",
42
+ "bgp/originator_id.rb",
43
+ "bgp/path_attribute.rb",
44
+ "bgp/prefix_orf.rb",
45
+ "bgp/rd.rb",
46
+ "bgp4r.gemspec",
47
+ "bgp4r.rb",
48
+ "examples/bgp",
49
+ "examples/routegen",
50
+ "examples/routegen.yml",
51
+ "test/aggregator_test.rb",
52
+ "test/as_path_test.rb",
53
+ "test/atomic_aggregate_test.rb",
54
+ "test/attribute_test.rb",
55
+ "test/cluster_list_test.rb",
56
+ "test/common_test.rb",
57
+ "test/communities_test.rb",
58
+ "test/extended_communities_test.rb",
59
+ "test/extended_community_test.rb",
60
+ "test/label_test.rb",
61
+ "test/local_pref_test.rb",
62
+ "test/message_test.rb",
63
+ "test/mp_reach_test.rb",
64
+ "test/multi_exit_disc_test.rb",
65
+ "test/neighbor_test.rb",
66
+ "test/next_hop_test.rb",
67
+ "test/nlri_test.rb",
68
+ "test/origin_test.rb",
69
+ "test/originator_id_test.rb",
70
+ "test/path_attribute_test.rb",
71
+ "test/prefix_orf_test.rb",
72
+ "test/rd_test.rb"
73
+ ]
74
+ s.homepage = %q{http://github.com/jesnault/bgp4r/tree/master}
75
+ s.rdoc_options = ["--quiet", "--title", "A BGP-4 Ruby Library", "--line-numbers"]
76
+ s.require_paths = ["."]
77
+ s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
78
+ s.rubyforge_project = %q{bgp4r}
79
+ s.rubygems_version = %q{1.3.4}
80
+ s.summary = %q{A BGP-4 Ruby Library}
81
+ s.test_files = [
82
+ "test/aggregator_test.rb",
83
+ "test/as_path_test.rb",
84
+ "test/atomic_aggregate_test.rb",
85
+ "test/attribute_test.rb",
86
+ "test/cluster_list_test.rb",
87
+ "test/common_test.rb",
88
+ "test/communities_test.rb",
89
+ "test/extended_communities_test.rb",
90
+ "test/extended_community_test.rb",
91
+ "test/label_test.rb",
92
+ "test/local_pref_test.rb",
93
+ "test/message_test.rb",
94
+ "test/mp_reach_test.rb",
95
+ "test/multi_exit_disc_test.rb",
96
+ "test/neighbor_test.rb",
97
+ "test/next_hop_test.rb",
98
+ "test/nlri_test.rb",
99
+ "test/origin_test.rb",
100
+ "test/originator_id_test.rb",
101
+ "test/path_attribute_test.rb",
102
+ "test/prefix_orf_test.rb",
103
+ "test/rd_test.rb"
104
+ ]
105
+
106
+ if s.respond_to? :specification_version then
107
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
108
+ s.specification_version = 3
109
+
110
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
111
+ else
112
+ end
113
+ else
114
+ end
115
+ end
data/bgp4r.rb ADDED
@@ -0,0 +1,26 @@
1
+ #--
2
+ # Copyright 2008, 2009 Jean-Michel Esnault.
3
+ # All rights reserved.
4
+ # See LICENSE.txt for permissions.
5
+ #
6
+ #
7
+ # This file is part of BGP4R.
8
+ #
9
+ # BGP4R is free software: you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation, either version 3 of the License, or
12
+ # (at your option) any later version.
13
+ #
14
+ # BGP4R is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+ #
19
+ # You should have received a copy of the GNU General Public License
20
+ # along with BGP4R. If not, see <http://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+ require 'bgp/common'
24
+ require 'bgp/io'
25
+ require 'bgp/neighbor'
26
+ require 'bgp/message'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jesnault-bgp4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Michel Esnault
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-29 00:00:00 -07:00
12
+ date: 2009-06-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -52,6 +52,8 @@ files:
52
52
  - bgp/path_attribute.rb
53
53
  - bgp/prefix_orf.rb
54
54
  - bgp/rd.rb
55
+ - bgp4r.gemspec
56
+ - bgp4r.rb
55
57
  - examples/bgp
56
58
  - examples/routegen
57
59
  - examples/routegen.yml