netcrawl 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6a8e0c60df06b4eec884010c69077cb5775ed43
4
- data.tar.gz: 53265b92fdc1da3686d6704bbe84d923a05d4c8f
3
+ metadata.gz: f00cb29300c7f530c23e7c55a7f4b65ec7c25348
4
+ data.tar.gz: 16c2d19f2b2ab740979a068ec7d332fed3eb1ba7
5
5
  SHA512:
6
- metadata.gz: a13e21c0d7bdedb59cda2abc048f6a18cecc7a48379777b8673a737c02d0027b62871de47a30e1945885ec1a9c31e95e83d77c7dadb7ab0386d82c36ece2a6f9
7
- data.tar.gz: 03452ab944b7c48519d8bc3485035c2aca3476759b1d25f6a9f43e9a1d8183b7a6356d532a1229fc38c20762898027cd40386c9c41deff870edee67eeaaa0e25
6
+ metadata.gz: f5f731fe02c3fd8c4d13773f5fd2ef462b640585f24c4bf742379077af0bedca4787fb85e45a3f41e87185d08ecd570000552b009aba07ceb95345fb998d3465
7
+ data.tar.gz: 36a06148777d3f3f0e739b00740bdd5c3b8841da7ccdef6609a16faddad225c09c849ee0d6f393cda5fce62abc18adb9337ded8065e92fb377dae61297d94877
@@ -43,7 +43,7 @@ class NetCrawl
43
43
  if @mib[OID[:lldpRemPortIdSubtype], peer_id].value.to_i == PortSubType[:mac_address]
44
44
  peer.dst = peer.dst.each_char.map{|e|"%02x" % e.ord}.join.scan(/..../).join('.')
45
45
  end
46
- peer.src = @mib[OID[:lldpLocPortId], peer_id[1]].value
46
+ peer.src = @mib[OID[:lldpLocPortId], peer_id[1]].value rescue nil
47
47
  peers << peer
48
48
  end
49
49
  peers
@@ -1,6 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'netcrawl'
3
- s.version = '0.0.8'
3
+ s.version = '0.1.0'
4
+ s.licenses = %w( Apache-2.0 )
4
5
  s.platform = Gem::Platform::RUBY
5
6
  s.authors = [ 'Saku Ytti' ]
6
7
  s.email = %w( saku@ytti.fi )
@@ -12,7 +13,7 @@ Gem::Specification.new do |s|
12
13
  s.executables = %w( netcrawl )
13
14
  s.require_path = 'lib'
14
15
 
15
- s.add_dependency 'snmp'
16
- s.add_dependency 'slop'
17
- s.add_dependency 'asetus'
16
+ s.add_runtime_dependency 'snmp', '~> 1.2'
17
+ s.add_runtime_dependency 'slop', '~> 3.5'
18
+ s.add_runtime_dependency 'asetus', '~> 0.2'
18
19
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netcrawl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: snmp
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: slop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '3.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '3.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: asetus
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '0.2'
55
55
  description: given snmp community and one node crawls through the network to produce
56
56
  list/dot file
57
57
  email:
@@ -61,7 +61,7 @@ executables:
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - Gemfile
66
66
  - README.md
67
67
  - Rakefile
@@ -81,7 +81,8 @@ files:
81
81
  - lib/netcrawl/snmp.rb
82
82
  - netcrawl.gemspec
83
83
  homepage: http://github.com/ytti/netcrawl
84
- licenses: []
84
+ licenses:
85
+ - Apache-2.0
85
86
  metadata: {}
86
87
  post_install_message:
87
88
  rdoc_options: []
@@ -89,17 +90,17 @@ require_paths:
89
90
  - lib
90
91
  required_ruby_version: !ruby/object:Gem::Requirement
91
92
  requirements:
92
- - - '>='
93
+ - - ">="
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements:
97
- - - '>='
98
+ - - ">="
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project: netcrawl
102
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.2.2
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: lldp/cdp crawler