synaccess_connect 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmIyY2NiZjNjYjU0OGJkN2ZiYzQwOTMzODQwNWFjODczN2I4Zjc0Yw==
5
- data.tar.gz: !binary |-
6
- ODYwYzRjM2E2ODdhNjRlOWM2OGU4MWE1MTFkYjBhMmYwMWVhMDVkMQ==
2
+ SHA256:
3
+ metadata.gz: e4779f6b7b87b0c20288fbaa75bda4bc07cfd3edbb4f68436d87e1ef5c0e0b54
4
+ data.tar.gz: ac028ce5b91b579e250f0349943258e12fdd93e290c078544124b918ffbae8bd
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NTlmZWJhOWM3ZDJmMmY0NDRiZjM3YTgwNWQ4NmZmMmZjYTlkNzcwODM0NjY4
10
- OWM0MDY2ZjIxNjM0MzYyZGQ1MDExNGVhZjNmMDk5MGJhNzZlNDEwNDZlMGQz
11
- MWE3YTI3YmY2Y2Q1MTRlMzU4OTA5YzczMzNhYjMzNDhlOWQ1MGU=
12
- data.tar.gz: !binary |-
13
- YTBjZjdiODU0NDU0MWY1OGEwYzUyYmY3M2JlYWZhNTQ4N2M2YmRkMzc5ZTZk
14
- ZDJiNTM4YWI4NjIyMTliNDMwN2Q2NGE1NTE3ZGJmMjA1MTcyNTMzMmEwZTcw
15
- NGFjYzRmMzllOTg3NzY3NDQyYTMzN2FjMDQ4YjMxY2ZjN2Q4MGE=
6
+ metadata.gz: 281ebf8f51321ed23b13f27ccd1d0e4107d39acfbdb42c90f1f5a4fa5d39455ef8a401e2652f4b7c2828e02918e81c41686cbd0d1450c0efd12ec26ec305a387
7
+ data.tar.gz: 38771d2b2c24fb633f015520b1576f1e179155a3161f52b994b70654a9170516037e3f80b53a2ce0e8c228d053b77eaccf993f2b09eb3be2de62b8ef0c455b60
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## 0.3.1 - 2020-01-07
4
+
5
+ ### Added
6
+
7
+ * Allow `port` to be configured as part of the connection options
8
+
9
+ ## 0.3.0 - 2017-07-14
10
+
11
+ ### Removed
12
+
13
+ * Remove telnet implementation because it is unreliable
data/README.md CHANGED
@@ -19,7 +19,7 @@ should switch to using the Http interface.
19
19
 
20
20
  ## Usage
21
21
 
22
- * Add `gem "synaccess_connect", "~> 0.3.0" to your Gemfile.
22
+ * Add `gem "synaccess_connect", "~> 0.3.1"` to your Gemfile.
23
23
 
24
24
  ## Example
25
25
 
@@ -32,6 +32,10 @@ connection.status(1)
32
32
  => false
33
33
  ```
34
34
 
35
+ Other options
36
+
37
+ * `port` - Defaults to `80`
38
+
35
39
  ## Interface
36
40
 
37
41
  All classes should implement the following methods:
@@ -113,7 +113,7 @@ module NetBooter
113
113
 
114
114
  def do_http_request(path)
115
115
  resp = nil
116
- Net::HTTP.start(@host) do |http|
116
+ Net::HTTP.start(@host, @options[:port]) do |http|
117
117
  req = Net::HTTP::Get.new(path)
118
118
 
119
119
  req.basic_auth @options[:username], @options[:password] if @options[:username] && @options[:password]
@@ -1,3 +1,3 @@
1
1
  module SynaccessConnect
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synaccess_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Table XI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-22 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
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
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: vcr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: webmock
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - <
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.16'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - <
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.16'
68
+ version: '0'
69
69
  description: Ruby interface to connecting to Synaccess netBooter power relays
70
70
  email:
71
71
  - devs@tablexi.com
@@ -73,6 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - CHANGELOG.md
76
77
  - README.md
77
78
  - lib/synaccess_connect.rb
78
79
  - lib/synaccess_connect/net_booter/error.rb
@@ -90,17 +91,17 @@ require_paths:
90
91
  - lib
91
92
  required_ruby_version: !ruby/object:Gem::Requirement
92
93
  requirements:
93
- - - ! '>='
94
+ - - ">="
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
96
97
  required_rubygems_version: !ruby/object:Gem::Requirement
97
98
  requirements:
98
- - - ! '>='
99
+ - - ">="
99
100
  - !ruby/object:Gem::Version
100
101
  version: '0'
101
102
  requirements: []
102
103
  rubyforge_project:
103
- rubygems_version: 2.4.8
104
+ rubygems_version: 2.7.10
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: ''