netsoul 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/bin/netsoul-ruby +5 -4
- data/lib/netsoul/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f857449f985c2924ad7bb26bb409c67329a43152
|
|
4
|
+
data.tar.gz: 9a8132b1b705e94446b6062fc05fe6956f0d50e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ceed71337cf19f7b3f0847119ef5f0a651daabb008b9739b672032a5a565244636daf8d2cd6156427091267af779fb00cd0c83f6023fce52d09ffe74931ad42f
|
|
7
|
+
data.tar.gz: 33b9615cb152a0bbdda693b6940a620491452adc85ab6ec40c5bbc17625ad06a5b2901738fbc9e1b5f4ea97ae1f801369bb1216497793470f7d1d2f618b292f8
|
data/README.md
CHANGED
|
@@ -28,7 +28,7 @@ gem install netsoul
|
|
|
28
28
|
#### Gemfile
|
|
29
29
|
|
|
30
30
|
```ruby
|
|
31
|
-
gem 'netsoul', '~> 1.
|
|
31
|
+
gem 'netsoul', '~> 1.9.1'
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
#### project.rb
|
|
@@ -50,7 +50,6 @@ netsoul-ruby -config netsoul-config.yml
|
|
|
50
50
|
#### Standard (MD5) authentication
|
|
51
51
|
|
|
52
52
|
```yaml
|
|
53
|
-
---|
|
|
54
53
|
:login: 'kakesa_c'
|
|
55
54
|
:socks_password: 'my socks password'
|
|
56
55
|
# :unix_password: 'unix password needed for kerberos authentication' # :auth_method must be set to :krb5
|
|
@@ -65,7 +64,6 @@ netsoul-ruby -config netsoul-config.yml
|
|
|
65
64
|
#### Kerberos authentication
|
|
66
65
|
|
|
67
66
|
```yaml
|
|
68
|
-
---|
|
|
69
67
|
:login: 'kakesa_c'
|
|
70
68
|
:unix_password: 'unix password'
|
|
71
69
|
:auth_method: :krb5 # :std, :krb5
|
data/bin/netsoul-ruby
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
lib = File.expand_path('../../lib', __FILE__)
|
|
4
4
|
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
|
6
|
-
require 'English'
|
|
7
6
|
require 'netsoul/config'
|
|
8
7
|
require 'netsoul/errors'
|
|
9
8
|
require 'netsoul/logging'
|
|
@@ -93,6 +92,9 @@ $stderr.sync = true
|
|
|
93
92
|
require 'optparse'
|
|
94
93
|
require 'yaml'
|
|
95
94
|
|
|
95
|
+
process_name_string = "#{__FILE__} #{ARGV.join(' ')}".freeze
|
|
96
|
+
Process.respond_to?(:setproctitle) ? Process.setproctitle(process_name_string) : $PROGRAM_NAME = process_name_string
|
|
97
|
+
|
|
96
98
|
options = {}
|
|
97
99
|
OptionParser.new do |opts|
|
|
98
100
|
opts.banner = 'Usage: netsoul-ruby [options]'.freeze
|
|
@@ -105,14 +107,13 @@ OptionParser.new do |opts|
|
|
|
105
107
|
|
|
106
108
|
opts.on('-h', '--help', 'Display this screen') do
|
|
107
109
|
puts opts
|
|
108
|
-
exit
|
|
110
|
+
exit 42
|
|
109
111
|
end
|
|
110
112
|
end.parse!
|
|
111
|
-
|
|
112
113
|
if options.empty? || options[:user_opts].size == 0
|
|
113
114
|
unless ENV.to_a.count { |k, _v| %w(NETSOUL_LOGIN NETSOUL_SOCKS_PASSWORD NETSOUL_LOGIN NETSOUL_UNIX_PASSWORD NETSOUL_AUTH_METHOD).include?(k) } >= 2
|
|
114
115
|
puts '[ERROR] You have to specify a configuration file or environment variables'
|
|
115
|
-
exit
|
|
116
|
+
exit 42
|
|
116
117
|
end
|
|
117
118
|
end
|
|
118
119
|
|
data/lib/netsoul/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: netsoul
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Kakesa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|