usd 1.4.0 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +0 -0
- data/README.md +4 -0
- data/bin/rusdc +1 -1
- data/bin/set_env +0 -0
- data/change_log.md +17 -1
- data/images/vcard.png +0 -0
- data/lib/usd.rb +3 -3
- data/usd.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fb06124d12015541d053861726881a2cf2f2a64c8a00fef97df274cfd8cc4d
|
4
|
+
data.tar.gz: a44b663365da6b7bc05049f36dd49578787bc166cad004f815eeb36a66a242ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aab1a03db57bb35fa08bfda4ff36bbfe78cfac64185c7ab0d4aa9f0e4892a80c7bda523312e7cb0ce1964d282d272fa1a6877085a68b02a7bee4da5b0fe5a578
|
7
|
+
data.tar.gz: 7d9eafb55dda1441e9bb956ac63a6fb12a682fd7b61b8351296432968768fe41ebc22f55ee407dfd3b13e5e3f0ad2d1fb0171ea0d3972a2a3de05657448c5538
|
data/LICENSE.md
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -117,3 +117,7 @@ more examples under [find examples-Wikipage](https://github.com/ogaida/usd/wiki/
|
|
117
117
|
# senarios
|
118
118
|
|
119
119
|
<img src="https://yuml.me/diagram/scruffy/class/[SDM%20REST-API{bg:red}]<->[usd-gem{bg:green}]<->[rusdc{bg:orange}],[ruby-script{bg:orange}]<->[usd-gem],[sinatra%20web-app{bg:orange}]<->[usd-gem],[bash commands]<->[rusdc],[shell-scripts]<->[rusdc],[import]->[ruby-script],[ruby-script]->[export],[reports]<-[sinatra%20web-app]<-[drop datafiles/emails/create objects]">
|
120
|
+
|
121
|
+
# feedback
|
122
|
+
|
123
|
+
Since I could only test this gem in a 14.1 environment, I would be interested to know whether it also works in a version 17 environment of CA Service Management. Any kind of feedback is very welcome.
|
data/bin/rusdc
CHANGED
@@ -520,7 +520,7 @@ class Rusdc < Thor
|
|
520
520
|
})
|
521
521
|
data = loadcon.update({:type => "json", :data => json})
|
522
522
|
if data.class == RestClient::BadRequest
|
523
|
-
puts "
|
523
|
+
puts "Hint: Do not panic, I got a bad Request-Response from USD-API. Now I try again to update via IDs of COMMON_NAME arguments. Be aware to specify a ref_obj if it's not nr."
|
524
524
|
cn_id = loadcon.search(obj,{'fields' => "@id","wc" => "#{Usd::CN[obj]} = '#{cn}' and delete_flag = 0"})[0]["@id"]
|
525
525
|
value_id = loadcon.search(ref_obj,{'fields' => "@id","wc" => "#{Usd::CN[ref_obj]} = '#{v}' and delete_flag = 0"})[0]["@id"]
|
526
526
|
invoke "update_ref_attr_by_id", [obj, cn_id, k, value_id]
|
data/bin/set_env
CHANGED
File without changes
|
data/change_log.md
CHANGED
@@ -1,8 +1,24 @@
|
|
1
1
|
# rusdc changelog
|
2
2
|
|
3
|
+
## 1.5.2
|
4
|
+
|
5
|
+
- disabled output, when login was successful. before this, it led to errors when the output was parsed
|
6
|
+
|
7
|
+
## 1.5.0
|
8
|
+
|
9
|
+
- sdm-access token caching changed, now for multiple user-sessions in one environment
|
10
|
+
|
11
|
+
## 1.4.2
|
12
|
+
|
13
|
+
- count number changed for search method from fixed value of 50 to dynamic value
|
14
|
+
|
15
|
+
## 1.4.1
|
16
|
+
|
17
|
+
- changed some comments
|
18
|
+
|
3
19
|
## 1.4.0
|
4
20
|
|
5
|
-
- remove "warning: URI.escape is obsolete"
|
21
|
+
- remove "warning: URI.escape is obsolete"
|
6
22
|
|
7
23
|
## 1.3.7
|
8
24
|
|
data/images/vcard.png
CHANGED
File without changes
|
data/lib/usd.rb
CHANGED
@@ -92,7 +92,7 @@ class Usd
|
|
92
92
|
@base_url = base_url
|
93
93
|
@user = user
|
94
94
|
@debug = false
|
95
|
-
remfile = "#{ENV["HOME"]}/.
|
95
|
+
remfile = "#{ENV["HOME"]}/.usd_#{user}"
|
96
96
|
if File.exist?(remfile) and hash[:save_access_key]
|
97
97
|
tt = YAML.load(File.open(remfile,"r"))
|
98
98
|
if (tt.expiration_date - Time.now.to_i ) > 900 and tt.base_url == base_url
|
@@ -121,7 +121,7 @@ class Usd
|
|
121
121
|
"authorization" => "Basic #{encoded}",
|
122
122
|
"cache-control" => "no-cache"
|
123
123
|
},
|
124
|
-
log: Logger.new(
|
124
|
+
log: Logger.new("/dev/null")
|
125
125
|
)
|
126
126
|
authData=JSON.parse(response.body)
|
127
127
|
if authData['rest_access']['access_key'] > 0
|
@@ -273,7 +273,7 @@ class Usd
|
|
273
273
|
else
|
274
274
|
retArray = res_rdata["collection_#{object}"][object]
|
275
275
|
if total_count > (count + start - 1)
|
276
|
-
new_params = {"start" => (start +
|
276
|
+
new_params = {"start" => (start + count)}
|
277
277
|
params = params.update new_params
|
278
278
|
retArray += search(object,params)
|
279
279
|
end
|
data/usd.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'usd'
|
3
|
-
spec.version = '1.
|
4
|
-
spec.date = '
|
3
|
+
spec.version = '1.5.2'
|
4
|
+
spec.date = '2021-02-24'
|
5
5
|
spec.summary = "SDM REST-API-Calls"
|
6
6
|
spec.description = "a Ruby class and a commandlinetool for SDM REST-API-Calls"
|
7
7
|
spec.authors = ["Oliver Gaida"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Gaida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|