usd 1.3.4 → 1.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rusdc +0 -5
  3. data/change_log.md +4 -0
  4. data/lib/usd.rb +1 -1
  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: f324bd2fb86597239321dad232f442527502773a66fda4cf5096e9ebec7d30b1
4
- data.tar.gz: 8376aa51f4e5ec5be644c452d93bb7b975c02368121cb7be2c80baa2ae14dac9
3
+ metadata.gz: e2dc7c020bc56752e81b0ca22201b6661e17a1fcf54ffb37295ce19ad779fd7d
4
+ data.tar.gz: ef77af20f3e5a2c1b6b71c2f8a78cad5f38da174908c33da9ef6a41c8fcb71be
5
5
  SHA512:
6
- metadata.gz: 03c0822a8e18840e2beda5b720fd9bb81fb64c8bf3bd17f6ee10db9af77c9bb97157fa5faad5ff31c7cd3976c64bf0f3d98994b6878e9527b6b986cebc3ff67a
7
- data.tar.gz: bb0df905af199fa12e3abaa0e83debde076e9bc40a204dd75dd5c07d930f592ce2b4c34cf510dc4402592dc770ed898560ce628f34280a996e1b82a4b24ad4ca
6
+ metadata.gz: 0edea409a25f20dac2a91f5ecdacfaf9fbf5b954d7d30801a5c12cf23080789c3f616f2d08947632cf90efdd55cb1ed1fc1bf46870921789e759782739d51344
7
+ data.tar.gz: 972f687caeea7d9a6b71a1704018ff67cc2da94e81849fbc0aaca93f27eb1b43c7f9b3a44a4917c095e8344f48caa277a76faf7a79bb04262539338e97c9cc66
data/bin/rusdc CHANGED
@@ -230,16 +230,12 @@ class Rusdc < Thor
230
230
  end
231
231
  end
232
232
 
233
- # in: lrel_attachments_requests ?
234
-
235
233
  desc "get_attachment_of_co <co_name> <filename>", "download an attachment of a changeorder and print it out on stdout"
236
234
  def get_attachment_of_co(coname, filename)
237
235
  ids = loadcon.search("lrel_attachments_changes",{'fields' => "*","wc" => "chg.chg_ref_num = 'CO341144' and attmnt.orig_file_name = 'IMAP61A845F524A9D06536_3212.eml'"})
238
236
  puts loadcon.request("/caisd-rest/attmnt/#{ids[0]["@id"]}/file-resource",{:unchanged => true}) if ids.class == Array
239
237
  end
240
238
 
241
-
242
- #lrel_attachments_requests",{'fields' => "attmnt","wc" => "cr.ref_num
243
239
  desc "in_add_attachment <in> <file>", "attach the file to incident"
244
240
  def in_add_attachment(incident, file)
245
241
  response = loadcon.upload_attachment(file)
@@ -261,7 +257,6 @@ class Rusdc < Thor
261
257
  :id => data["attmnt"]["@id"],
262
258
  :incident => incident
263
259
  })
264
- #puts "create relation to chg with json: #{json}"
265
260
  puts loadcon.create({:type => "json", :data => json})
266
261
  end
267
262
 
@@ -1,5 +1,9 @@
1
1
  # rusdc changelog
2
2
 
3
+ ## 1.3.4.1
4
+
5
+ - fixed another error in Usd.search. which comes with 1.3.1 .
6
+
3
7
  ## 1.3.4
4
8
 
5
9
  - move function `upload_attachment` from `bin/rusdc` to `lib/usd`.
data/lib/usd.rb CHANGED
@@ -251,7 +251,7 @@ class Usd
251
251
  # if wc contains no sql-compare operater, it will be changed to "COMMON_NAME like '%<wc-before>%'"
252
252
  wc = attr.pop
253
253
  wc.gsub!(/^WC=/,'')
254
- if ([" like ","<",">","="," is "," in "].find {|e| wc =~ /#{e}/}).nil?
254
+ if ([" like ","<",">","="," is "," in "," LIKE ", " IS ", " IN "].find {|e| wc =~ /#{e}/}).nil?
255
255
  wc = "#{CN[object]} like '%#{wc}%'"
256
256
  end
257
257
  attr.push "WC=#{wc}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'usd'
3
- spec.version = '1.3.4'
3
+ spec.version = '1.3.4.1'
4
4
  spec.date = '2020-09-11'
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: 1.3.4
4
+ version: 1.3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Gaida