usd 0.2.4.1 → 0.2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rusdc +4 -4
  3. data/change_log.md +9 -0
  4. data/usd.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13c57a8b5a92e0b256e188f927a641bba10a04b0a0c15d570e129922c5420f03
4
- data.tar.gz: 1ba480177e62fe2641ae626806a09205a457d24bf23d10c96f491a9c804a38c6
3
+ metadata.gz: 515503469768aad64a6610b7fc0b9e8233f0cc77aa765226503e14f9a6d22a51
4
+ data.tar.gz: ef1b76360680e68fcf1c2fc701757c40632c780be4adc9243890168f19d44a76
5
5
  SHA512:
6
- metadata.gz: 3729de4008529124375de72ad3c81d0fdb4bc500c6569ed768e803759984dc6905e8c6e531a86e69960d7188639da6208fdc5da3cb48a2dfbed91a8f11f1db7e
7
- data.tar.gz: 851d6e77c77eb6385bf84b50689f5975c171b8bb9642ec3b76fca8bf40719b103372570514b2d218af81d8087f9fdcc004257fcbbc7e9e62831299f146e90db4
6
+ metadata.gz: 271c5acb4202200f6d3cf82974307262ac99e9d8f42044c4006108001192bed71ffed0d7155ff3b60ebc4f6204f9306282a08bbafab07007cddca1227b08f2ac
7
+ data.tar.gz: 655db19bfe69c81bd94b4421e54e722012d50b566192d2fac0ef7794c5a2aeef504a40ef3b58d8ea2cddd72f823f503437e8a2ee04ea31aaa09278a3e01b71be
data/bin/rusdc CHANGED
@@ -186,7 +186,7 @@ class Rusdc < Thor
186
186
  def get_attachment_of_ci(ciname, filename)
187
187
  att_nr = loadcon.search("lrel_attachments_nr",{'fields' => "attmnt","wc" => "nr.name = '#{ciname}'"})
188
188
  att_nr.each do |att|
189
- attmnt = loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@id"]}")["attmnt"]
189
+ attmnt = loadcon.request("/caisd-rest/attmnt/#{att["attmnt"]["@id"]}")["attmnt"]
190
190
  if attmnt["orig_file_name"] == filename
191
191
  puts loadcon.request("/caisd-rest/attmnt/#{attmnt["@id"]}/file-resource",{:unchanged => true})
192
192
  end
@@ -198,7 +198,7 @@ class Rusdc < Thor
198
198
  chg_id=loadcon.request("/caisd-rest/chg/COMMON_NAME-#{coname}")["chg"]["@id"]
199
199
  att_nr = loadcon.search("lrel_attachments_changes",{'fields' => "attmnt","wc" => "chg = #{chg_id}"})
200
200
  att_nr.each do |att|
201
- attmnt = loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@COMMON_NAME"]}")["attmnt"]
201
+ attmnt = loadcon.request("/caisd-rest/attmnt/#{att["attmnt"]["@id"]}")["attmnt"]
202
202
  if attmnt["orig_file_name"] == filename
203
203
  puts loadcon.request("/caisd-rest/attmnt/#{attmnt["@id"]}/file-resource",{:unchanged => true})
204
204
  end
@@ -219,7 +219,7 @@ class Rusdc < Thor
219
219
  def list_attachments_of_ci(ciname)
220
220
  att_nr = loadcon.search("lrel_attachments_nr",{'fields' => "attmnt","wc" => "nr.name = '#{ciname}'"})
221
221
  att_nr.each do |att|
222
- puts loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@COMMON_NAME"]}")["attmnt"]["orig_file_name"]
222
+ puts loadcon.request("/caisd-rest/attmnt/#{att["attmnt"]["@id"]}")["attmnt"]["orig_file_name"]
223
223
  end
224
224
  end
225
225
 
@@ -228,7 +228,7 @@ class Rusdc < Thor
228
228
  chg_id=loadcon.request("/caisd-rest/chg/COMMON_NAME-#{coname}")["chg"]["@id"]
229
229
  att_nr = loadcon.search("lrel_attachments_changes",{'fields' => "attmnt","wc" => "chg = #{chg_id}"})
230
230
  att_nr.each do |att|
231
- puts loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@COMMON_NAME"]}")["attmnt"]["orig_file_name"]
231
+ puts loadcon.request("/caisd-rest/attmnt/#{att["attmnt"]["@id"]}")["attmnt"]["orig_file_name"]
232
232
  end
233
233
  end
234
234
 
@@ -1,5 +1,14 @@
1
1
  # rusdc changelog
2
2
 
3
+ ## 0.2.4.2
4
+
5
+ the same fixes as in 0.2.4.1 for:
6
+
7
+ ```
8
+ rusdc list_attachments_of_ci <ci_name>
9
+ rusdc list_attachments_of_co <co_name>
10
+ ```
11
+
3
12
  ## 0.2.4.1
4
13
 
5
14
  ### fixes
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'usd'
3
- spec.version = '0.2.4.1'
3
+ spec.version = '0.2.4.2'
4
4
  spec.date = '2020-01-28'
5
5
  spec.summary = "SDM REST-API-Calls"
6
6
  spec.description = "a Ruby class and a commandlinetool for SDM REST-API-Calls"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.1
4
+ version: 0.2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Gaida