vtiger 0.5.7 → 0.5.8

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 (2) hide show
  1. data/lib/vtiger/commands.rb +5 -2
  2. metadata +3 -3
@@ -191,12 +191,15 @@ module Vtiger
191
191
  # one day ago --- Time.now-60*60*24
192
192
  # eg v.find_items_by_date_and_key_null('Contacts',to_s,'cf_579',"")
193
193
  def find_items_by_date_and_key_null(element,date,key, extraparam=nil)
194
- puts "in query by date and not null "
194
+ # NEED TO ADD QUERY SIZE CAPABILIIES
195
+ puts "in query by date #{date} and not null "
195
196
  queryparams=''
196
197
  queryparams=",#{extraparam}" if extraparam!=nil
197
198
  t=Time.parse(date)
198
199
  y=t.strftime('%Y-%m-%d')
199
- action_string=ERB::Util.url_encode("select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} LIKE '';")
200
+ #puts "select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} LIKE '%';"
201
+ # action_string=ERB::Util.url_encode("select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} NOT LIKE '%2011';")
202
+ action_string=ERB::Util.url_encode("select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} < '0';")
200
203
  puts "action string:" +action_string
201
204
  res = http_ask_get(self.endpoint_url+"operation=query&sessionName=#{self.session_name}&query="+action_string)
202
205
  puts "TT RES: #{res["result"]} class: #{res["result"].class}"
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: 5
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Sproule