vtiger 0.4.4 → 0.4.5

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.
@@ -25,6 +25,7 @@ many commands to add via webservices including add trouble ticket, add contact e
25
25
  queries,
26
26
  describe object
27
27
  list entities
28
+ many commands are supported
28
29
 
29
30
  are all running
30
31
 
@@ -142,8 +142,8 @@ module Vtiger
142
142
  return res["success"],ticketlist
143
143
 
144
144
  end
145
- def find_open_tt_by_contact(contact)
146
- puts "in query tt by contact"
145
+ def check_open_tt_by_contact(contact)
146
+ puts "in query open tt by contact"
147
147
  action_string=ERB::Util.url_encode("select id,ticket_no from HelpDesk where parent_id = '#{contact}' and ticketstatus like 'Open';")
148
148
  # puts "action string:" +action_string
149
149
  res = http_ask_get(self.endpoint_url+"operation=query&sessionName=#{self.session_name}&query="+action_string)
@@ -154,8 +154,7 @@ module Vtiger
154
154
  ticketlist=[]
155
155
  values.each {|v| ticketlist << v['ticket_no'] }
156
156
  return res["success"],ticketlist
157
-
158
- end
157
+ end
159
158
  def run_rules(test)
160
159
  yield(test)
161
160
  end
@@ -152,7 +152,7 @@ class TestVtiger < Test::Unit::TestCase
152
152
  hv={}
153
153
  # hv[:firstname]='test'
154
154
  success,contact_id=cmd.query_element_by_email("scott.sproule@gmail.com","Contacts")
155
- tt,ticketlist=cmd.find_open_tt_by_contact(contact_id) if success
155
+ tt,ticketlist=cmd.check_open_tt_by_contact(contact_id) if success
156
156
  puts "trouble ticket is #{tt} ticket number is #{ticketlist}"
157
157
  assert challenge,"challenge is false "
158
158
  assert success,"could not find contact id with email scott.sproule@gmail.com "
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtiger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Sproule