usd 0.2.4 → 0.2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/bin/rusdc +1 -2
- data/change_log.md +8 -2
- data/usd.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13c57a8b5a92e0b256e188f927a641bba10a04b0a0c15d570e129922c5420f03
|
4
|
+
data.tar.gz: 1ba480177e62fe2641ae626806a09205a457d24bf23d10c96f491a9c804a38c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"]["@
|
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
|
data/change_log.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# rusdc changelog
|
2
2
|
|
3
|
-
## 0.2.4
|
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
|
|
data/usd.gemspec
CHANGED