samanage 1.8.9 → 1.8.91

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: 12aaeb776e072d9ce54b43f057110c940aa12be8
4
- data.tar.gz: 6e825ba3089895f5552dc4fd5146d58fc8060602
3
+ metadata.gz: 4b82a02c5f07344fe1a33e1c6817bbf658ab8a31
4
+ data.tar.gz: 2ba9ee1d94717d38a60b3df233cd9270df12bb7d
5
5
  SHA512:
6
- metadata.gz: cdf644e3b6496ff4a6b4eee7c75c189098f2d6f7bd673d49053f98f151e93d2a649abc70102380ce056de34b1866bd963f3136b168df78106771c417ee3c9323
7
- data.tar.gz: 416eeccd82d3ba033211114872d5110fa74b72688b83aa93ba4e87eeb8b7d121082dc48e22499650b24700cfce0b28ac488d42e2afd7aee0fa80801395cc17a6
6
+ metadata.gz: e15f279e3db1f215c199903f3cb39520d455828c673c006604411bb2e1e5d2a95e2334da604dfd76f05cfe48cc2d3b06694e9df421d632381f9010291b5d258e
7
+ data.tar.gz: 968e5e92f9a96041812a43bff596287815e7e092c2e8aab93b2e8c8fc6016722441f37070577b24490ef02544106c3e00e727f9fe1f7e420ae46e6573d1b1227
data/README.md CHANGED
@@ -8,11 +8,6 @@
8
8
  ## Installation
9
9
  `gem install samanage`
10
10
 
11
- #### Linux (CentOS)
12
- - `sudo yum install gcc-c++`
13
- - `sudo yum install ruby-devel`
14
- - `sudo gem install samanage`
15
-
16
11
 
17
12
 
18
13
 
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.8.91
2
+ - Group case sensitivity fix
3
+
1
4
  # 1.8.9
2
5
  - Adding output verbosity for collection methods
3
6
 
@@ -22,7 +22,7 @@ module Samanage
22
22
 
23
23
  def find_group_id_by_name(group: nil)
24
24
  group_api = self.execute(path: "groups.json?name=#{group}")
25
- if group_api[:data].size == 1 && group.to_s.downcase == group_api[:data].first['name'].to_s.downcase
25
+ if !group_api[:data].empty? && group == group_api[:data].first['name']
26
26
  return group_api[:data].first['id']
27
27
  end
28
28
  end
data/lib/samanage/api.rb CHANGED
@@ -92,9 +92,10 @@ module Samanage
92
92
  else
93
93
  raise Samanage::Error.new(response: {response: 'Unknown HTTP method'})
94
94
  end
95
- rescue Errno::ECONNREFUSED, Net::OpenTimeout, Errno::ETIMEDOUT => e
96
- puts "#{e} - #{e.class}"
95
+ rescue Errno::ECONNREFUSED, Net::OpenTimeout, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError => e
96
+ puts "Error: #{e} - #{e.class}"
97
97
  puts "Retry: #{retries}/#{self.max_retries}"
98
+ sleep 3
98
99
  retries += 1
99
100
  retry if retries < self.max_retries
100
101
  error = e
@@ -1,3 +1,3 @@
1
1
  module Samanage
2
- VERSION = '1.8.9'
2
+ VERSION = '1.8.91'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samanage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.9
4
+ version: 1.8.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Walls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty