usd 1.4.0 → 1.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0f4c4811a43c68772d1caddb04541173cd3ca9818cd4b24519d3935a3434ff2
4
- data.tar.gz: e13a6fe87854b0d8f5bcbcf9de6cb159dc35eb1b833f54b7047cffb07414d15e
3
+ metadata.gz: e8fb06124d12015541d053861726881a2cf2f2a64c8a00fef97df274cfd8cc4d
4
+ data.tar.gz: a44b663365da6b7bc05049f36dd49578787bc166cad004f815eeb36a66a242ef
5
5
  SHA512:
6
- metadata.gz: a39169e0643ec4b4c860b2a01ce6de2ab8f599e23f7b15d1daab7299d0d9ea60c6a8bf94426eae9d08165903bc95e6d64f0f81477b8d188a7d49c2f720a83543
7
- data.tar.gz: f83e92536d7541fc3b22cd7cc960acff97e59eb8197662eb4f935b1bcfefdb1a61d0acebb5edec6e4120e8d2bc45aa20f116fd22d155ee7e08bc71c22dfc6873
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 "BadRequest-Response from USD-API, try to update via IDs. be aware to specify a ref_obj if it's not nr."
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"]}/.usd"
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(STDOUT)
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 + 50)}
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.0'
4
- spec.date = '2020-11-12'
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.0
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: 2020-11-12 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor