tracelogger 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Tracelogger
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/tracelogger.rb CHANGED
@@ -1,5 +1,5 @@
1
- require "tracelogger/version"
2
- require "optparse"
1
+ require 'tracelogger/version'
2
+ require 'optparse'
3
3
  require 'log4r'
4
4
  require 'log4r/outputter/syslogoutputter'
5
5
 
@@ -37,13 +37,14 @@ module Tracelogger
37
37
 
38
38
  # Finds the system's traceroute executable.
39
39
  def initialize
40
- @command = `which traceroute`.chomp
40
+ @command = `/usr/bin/env PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin which traceroute`.chomp
41
41
  end
42
42
 
43
43
  # Runs the found traceroute with the specified address and returns the
44
44
  # result.
45
45
  def trace host
46
- `env #{@command} #{host} 2>&1`
46
+ p @command
47
+ `#{@command} #{host} 2>&1`
47
48
  end
48
49
  end
49
50
 
metadata CHANGED
@@ -1,102 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tracelogger
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Pavel Argentov
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-22 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- type: :development
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
31
- prerelease: false
12
+ date: 2011-12-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
32
15
  name: yard
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- type: :development
36
- requirement: &id002 !ruby/object:Gem::Requirement
16
+ requirement: &345511640 !ruby/object:Gem::Requirement
37
17
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- hash: 3
42
- segments:
43
- - 0
44
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
45
23
  prerelease: false
24
+ version_requirements: *345511640
25
+ - !ruby/object:Gem::Dependency
46
26
  name: rdoc
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- type: :development
50
- requirement: &id003 !ruby/object:Gem::Requirement
27
+ requirement: &345511360 !ruby/object:Gem::Requirement
51
28
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
59
34
  prerelease: false
35
+ version_requirements: *345511360
36
+ - !ruby/object:Gem::Dependency
60
37
  name: redcarpet
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- type: :development
64
- requirement: &id004 !ruby/object:Gem::Requirement
38
+ requirement: &345511090 !ruby/object:Gem::Requirement
65
39
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
73
45
  prerelease: false
46
+ version_requirements: *345511090
47
+ - !ruby/object:Gem::Dependency
74
48
  name: rake
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- type: :runtime
78
- requirement: &id005 !ruby/object:Gem::Requirement
49
+ requirement: &345510810 !ruby/object:Gem::Requirement
79
50
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: 3
84
- segments:
85
- - 0
86
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
87
56
  prerelease: false
57
+ version_requirements: *345510810
58
+ - !ruby/object:Gem::Dependency
88
59
  name: log4r
89
- version_requirements: *id005
90
- description: "\"tracelogger host\" sends the results of `traceroute #{host}` to syslog."
91
- email:
60
+ requirement: &345510530 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *345510530
69
+ description: ! '"tracelogger host" sends the results of `traceroute #{host}` to syslog.'
70
+ email:
92
71
  - argentoff@gmail.com
93
- executables:
72
+ executables:
94
73
  - tracelogger
95
74
  extensions: []
96
-
97
- extra_rdoc_files:
75
+ extra_rdoc_files:
98
76
  - README.rdoc
99
- files:
77
+ files:
100
78
  - .gitignore
101
79
  - Gemfile
102
80
  - README.md
@@ -108,37 +86,33 @@ files:
108
86
  - tracelogger.gemspec
109
87
  homepage: https://github.com/argent-smith/tracelogger
110
88
  licenses: []
111
-
112
89
  post_install_message:
113
90
  rdoc_options: []
114
-
115
- require_paths:
91
+ require_paths:
116
92
  - lib
117
- required_ruby_version: !ruby/object:Gem::Requirement
93
+ required_ruby_version: !ruby/object:Gem::Requirement
118
94
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ segments:
124
100
  - 0
125
- version: "0"
126
- required_rubygems_version: !ruby/object:Gem::Requirement
101
+ hash: -384385041
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
103
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
104
+ requirements:
105
+ - - ! '>='
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ segments:
133
109
  - 0
134
- version: "0"
110
+ hash: -384385041
135
111
  requirements: []
136
-
137
112
  rubyforge_project:
138
- rubygems_version: 1.8.12
113
+ rubygems_version: 1.8.11
139
114
  signing_key:
140
115
  specification_version: 3
141
116
  summary: Simple traceroute logger
142
117
  test_files: []
143
-
144
118
  has_rdoc: