netsoul 1.1.0 → 1.2.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: fc986dc3e21a355d48e3e08494dc8f8e20f8e10b
4
- data.tar.gz: 11cfd33d73a5aa6ce747a6d6366d527d5dd390cc
3
+ metadata.gz: 6496d73b31b3f059aeabe8bbf5b98ce5f9924a10
4
+ data.tar.gz: 7540b86bda32a45a04bbc8c141d3a0dc3c23d156
5
5
  SHA512:
6
- metadata.gz: 538ccf6b1c16631a498b33c9f9b8b1dc97f16e04808d522a1b9b8872d8bf3dde24648d3bbcd4f23b3c2c76f58762860adc859130f7a99abfaf37d35d622ff956
7
- data.tar.gz: f6f9e1d42043ec7c64215a0827f65e2b5d3ccdc76d97306b50bf1ad4b4f2293527e04d00dbda16c78c539ee01a9f6fce99ff195422f85ecc8f3627a0b087cf89
6
+ metadata.gz: 4c13b35d41d89022f1dc91d2f162adecee6443ebf2076e26f89071f1ba22bc47ce543bd226ab47276a3bebf9ec32bc3fff14ce1cb1d05cec89f1ba4d567d4020
7
+ data.tar.gz: 6585b13351b90d9c0357bf30cc58ed0b5b36c53e805080ff46b3f123eb7c42dcdd61b4bb370981e418447434bb53a91c7f33b2208572c9bda61d24965bf62fbc
data/README.md CHANGED
@@ -19,61 +19,68 @@ You can use it as a Ruby gem in order to implement your own Netsoul client in Ru
19
19
 
20
20
  ### On your desktop
21
21
 
22
- gem install netsoul
22
+ ```ruby
23
+ gem install netsoul
24
+ ```
23
25
 
24
26
  ### In your project
25
27
 
26
28
  #### Gemfile
27
29
 
28
- gem 'netsoul', '~> 0.1'
30
+ ```ruby
31
+ gem 'netsoul', '~> 1.2'
32
+ ```
29
33
 
30
34
  #### project.rb
31
35
 
32
- require 'netsoul'
36
+ ```ruby
37
+ require 'netsoul'
38
+ ```
33
39
 
34
40
  ## Use the client
35
41
 
36
42
  After installing the gem **netsoul**, call the client as described bellow.
37
43
 
38
- ```bash
39
- netsoul-ruby -config netsoul-config.yml
40
- ```
44
+ ```bash
45
+ netsoul-ruby -config netsoul-config.yml
46
+ ```
41
47
 
42
48
  ### Example of _netsoul-config.yml_ file
43
49
 
44
50
  #### Standard (MD5) authentication
45
51
 
46
- ```yaml
47
- ---|
48
- :login: 'kakesa_c'
49
- :socks_password: 'my socks password'
50
- # :unix_password: 'unix password needed for kerberos authentication' # :auth_method must be set to :krb5
51
- # :auth_method: :std # :std, :krb5
52
- # :server_host: 'ns-server.epita.fr'
53
- # :server_port: 4242
54
- # :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
55
- # :location: 'Home'
56
- # :user_group: 'ETNA_2008'
57
- ```
52
+ ```yaml
53
+ ---|
54
+ :login: 'kakesa_c'
55
+ :socks_password: 'my socks password'
56
+ # :unix_password: 'unix password needed for kerberos authentication' # :auth_method must be set to :krb5
57
+ # :auth_method: :std # :std, :krb5
58
+ # :server_host: 'ns-server.epita.fr'
59
+ # :server_port: 4242
60
+ # :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
61
+ # :location: 'Home'
62
+ # :user_group: 'ETNA_2008'
63
+ ```
58
64
 
59
65
  #### Kerberos authentication
60
66
 
61
- ```yaml
62
- ---|
63
- :login: 'kakesa_c'
64
- :unix_password: 'unix password'
65
- :auth_method: :krb5 # :std, :krb5
66
- # :socks_password: 'my socks password'
67
- # :server_host: 'ns-server.epita.fr'
68
- # :server_port: 4242
69
- # :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
70
- # :location: 'Home'
71
- # :user_group: 'ETNA_2008'
72
- ```
67
+ ```yaml
68
+ ---|
69
+ :login: 'kakesa_c'
70
+ :unix_password: 'unix password'
71
+ :auth_method: :krb5 # :std, :krb5
72
+ # :socks_password: 'my socks password'
73
+ # :server_host: 'ns-server.epita.fr'
74
+ # :server_port: 4242
75
+ # :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
76
+ # :location: 'Home'
77
+ # :user_group: 'ETNA_2008'
78
+ ```
73
79
 
74
80
  ## Use the library in custom Netsoul Ruby client
75
81
 
76
- __[TODO]__
82
+ Look at the client implementation in this gem: [https://github.com/fenicks/netsoul-ruby/blob/master/bin/netsoul-ruby]().
83
+ This client is implemented in less than 150 lines of code.
77
84
 
78
85
  ## Contributing
79
86
 
data/bin/netsoul-ruby CHANGED
@@ -114,7 +114,7 @@ end
114
114
 
115
115
  retry_count = 10
116
116
  retry_wait_time = 1.0
117
- RETRY_WAIT_FACTOR = 1.25 # Each time retry is called 'retry_wait_time' is increased with this factor
117
+ RETRY_WAIT_FACTOR = 1.25 # Each time retry is called in Exception, current 'retry_wait_time' is increased with this factor
118
118
  begin
119
119
  c = Netsoul::Client.new options[:user_opts]
120
120
  c.connect
@@ -1,3 +1,3 @@
1
1
  module Netsoul
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsoul
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Kakesa