samanage 2.1.14 → 2.1.15
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/changelog.md +3 -0
- data/lib/samanage/api/contracts.rb +2 -2
- data/lib/samanage/api/groups.rb +2 -2
- data/lib/samanage/api/releases.rb +2 -2
- data/lib/samanage/api/users.rb +2 -2
- data/lib/samanage/utils.rb +0 -7
- data/lib/samanage/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: 2b3edf616c02a5a68065d36aa9cf44c2bb7eddec
|
|
4
|
+
data.tar.gz: 36489fd9004eb8c220fc8a7eaf55dd6f1919ee46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06d6187866bf910eee253f3fa485f5b88239f8b700f2b0df0467c6de1436e6d4e8c191d3e0c884e357d59c86abc717926dd9d423a11bb6f194862592381913ac
|
|
7
|
+
data.tar.gz: e0378296ebae937e9f6dd9b6e030341020f9ff2218e52841e9da330f585251ce7e44c6d9532aed11fee25ca663423bc5fbcad98a5af77036e7ef55c950db1467
|
data/changelog.md
CHANGED
|
@@ -33,9 +33,9 @@ module Samanage
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# Find contract given id
|
|
36
|
-
def find_contract(id: )
|
|
36
|
+
def find_contract(id: , options: {})
|
|
37
37
|
path = "contracts/#{id}.json"
|
|
38
|
-
self.execute(path: path)
|
|
38
|
+
self.execute(path: path, options: {})
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
# Check for contract using URL builder
|
data/lib/samanage/api/groups.rb
CHANGED
|
@@ -39,9 +39,9 @@ module Samanage
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
def find_group(id: )
|
|
42
|
+
def find_group(id: , options: {})
|
|
43
43
|
path = "groups/#{id}.json"
|
|
44
|
-
self.execute(path: path)
|
|
44
|
+
self.execute(path: path, options: {})
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def add_member_to_group(email: , group_id: nil, group_name: nil)
|
|
@@ -36,9 +36,9 @@ module Samanage
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
# Find release by id
|
|
39
|
-
def find_release(id: )
|
|
39
|
+
def find_release(id: , options: {})
|
|
40
40
|
path = "releases/#{id}.json"
|
|
41
|
-
self.execute(path: path)
|
|
41
|
+
self.execute(path: path, options: {})
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
# Update release given json and id
|
data/lib/samanage/api/users.rb
CHANGED
|
@@ -34,9 +34,9 @@ module Samanage
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Return user by ID
|
|
37
|
-
def find_user(id: )
|
|
37
|
+
def find_user(id: , options: {})
|
|
38
38
|
path = "users/#{id}.json"
|
|
39
|
-
self.execute(path: path)
|
|
39
|
+
self.execute(path: path, options: {})
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Email is unique so compare first for exact match only. Returns nil or the id
|
data/lib/samanage/utils.rb
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
# Consts and common lookup functions
|
|
2
2
|
module Samanage
|
|
3
|
-
INCIDENT_ORIGIN = {
|
|
4
|
-
1 => 'Web',
|
|
5
|
-
2 => 'Portal',
|
|
6
|
-
3 => 'API',
|
|
7
|
-
4 => 'Email'
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
def find_custom_field(custom_fields_values: , field_name:, user_type: false, user_resolve: 'email')
|
|
11
4
|
result = custom_fields_values.select{|field| field['name'] == field_name}.first.to_h
|
|
12
5
|
if user_type
|
data/lib/samanage/version.rb
CHANGED
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: 2.1.
|
|
4
|
+
version: 2.1.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Walls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|