usd 0.2.4 → 0.2.4.1

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -0
  3. data/bin/rusdc +1 -2
  4. data/change_log.md +8 -2
  5. data/usd.gemspec +1 -1
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 479f24c444d94d2e4a9402658fd5936248c31a0495340bc9d763079d6705b389
4
- data.tar.gz: 74b7001f18af2803ca5f819ec0919ac74c549fa4ce577f06843228c15b079ab3
3
+ metadata.gz: 13c57a8b5a92e0b256e188f927a641bba10a04b0a0c15d570e129922c5420f03
4
+ data.tar.gz: 1ba480177e62fe2641ae626806a09205a457d24bf23d10c96f491a9c804a38c6
5
5
  SHA512:
6
- metadata.gz: acf5a1aa250215e678a4c5e7cb3292c7a1fdcdf8935a146e25bbef98c734135d8427accc680965312bcd9d9da7fda11a653b3d51a65c9fa479ffef7b20945edd
7
- data.tar.gz: b02d7b8e452854a215e88515f964b6cb1bd683e0326350601b87210b00d44e9f076dbf2b79f2efaa6953e7e780909ff4cc50a8d4b5962ea2d84d9df015b7f307
6
+ metadata.gz: 3729de4008529124375de72ad3c81d0fdb4bc500c6569ed768e803759984dc6905e8c6e531a86e69960d7188639da6208fdc5da3cb48a2dfbed91a8f11f1db7e
7
+ data.tar.gz: 851d6e77c77eb6385bf84b50689f5975c171b8bb9642ec3b76fca8bf40719b103372570514b2d218af81d8087f9fdcc004257fcbbc7e9e62831299f146e90db4
data/README.md CHANGED
@@ -83,3 +83,14 @@ then
83
83
  export usdpass
84
84
  fi
85
85
  ```
86
+
87
+ # example - find records
88
+
89
+ ```bash
90
+ $ rusdc find nr "name like 'foo%'" name,description --format mlr
91
+ name description
92
+ foo1 foo QS
93
+ foo2 foo TEST
94
+ ```
95
+
96
+ more examples under [find examples-Wikipage](https://github.com/ogaida/usd/wiki/find-examples) or in the [change_log](https://github.com/ogaida/usd/blob/master/change_log.md)
data/bin/rusdc CHANGED
@@ -172,7 +172,6 @@ class Rusdc < Thor
172
172
  chg_id=loadcon.request("/caisd-rest/chg/COMMON_NAME-#{coname}")["chg"]["@id"]
173
173
  att_nr = loadcon.search("lrel_attachments_changes",{'fields' => "attmnt","wc" => "chg = #{chg_id}"})
174
174
  att_nr.each do |att|
175
- #attmnt = loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@COMMON_NAME"]}")["attmnt"]
176
175
  attmnt = loadcon.request("/caisd-rest/attmnt/#{att["attmnt"]["@id"]}")["attmnt"]
177
176
  filename = attmnt["orig_file_name"]
178
177
  puts "save #{filename}"
@@ -187,7 +186,7 @@ class Rusdc < Thor
187
186
  def get_attachment_of_ci(ciname, filename)
188
187
  att_nr = loadcon.search("lrel_attachments_nr",{'fields' => "attmnt","wc" => "nr.name = '#{ciname}'"})
189
188
  att_nr.each do |att|
190
- attmnt = loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@COMMON_NAME"]}")["attmnt"]
189
+ attmnt = loadcon.request("/caisd-rest/attmnt/COMMON_NAME-#{att["attmnt"]["@id"]}")["attmnt"]
191
190
  if attmnt["orig_file_name"] == filename
192
191
  puts loadcon.request("/caisd-rest/attmnt/#{attmnt["@id"]}/file-resource",{:unchanged => true})
193
192
  end
@@ -1,6 +1,12 @@
1
1
  # rusdc changelog
2
2
 
3
- ## 0.2.4 - coming soon
3
+ ## 0.2.4.1
4
+
5
+ ### fixes
6
+
7
+ - `rusdc get_attachment_of_ci` : attachment with spaces in path could not be downloaded
8
+
9
+ ## 0.2.4
4
10
 
5
11
  - find function has exitcode > 0 if no records has been found
6
12
 
@@ -17,7 +23,7 @@ i am here, you may update me
17
23
 
18
24
  ### fixes
19
25
 
20
- - attachment with spaces in path could not be downloaded
26
+ - `rusdc get_all_attachments_of_co` : attachment with spaces in path could not be downloaded
21
27
 
22
28
  ## 0.2.3
23
29
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'usd'
3
- spec.version = '0.2.4'
3
+ spec.version = '0.2.4.1'
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
4
+ version: 0.2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Gaida