vtiger 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmI3ODYxZTQ0OTE1Mzk3MzUxNjFmZWE1MzFiYmRhMWNhYWE1M2E3OA==
5
+ data.tar.gz: !binary |-
6
+ ODhlZjA5YzQ0YjViMWViOTZmM2RlYmVjNmNiNzg2ZDhhYTEzMjkzYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZTE4ZjlhNmI0OTUxZDdkZDEwZTBhODhhYjAzMjkzMzEyZGQwZTA5M2Y5MzNm
10
+ NGYwNjhhMTUwZDk3OGY2YzBiYzIyMzg3Y2NhYmFkY2UxYTY3MGI4NmIyZWQ1
11
+ MjJjYzY0YjY3ZDUyNTFmOWVhYmI4M2UyNDViOGZkZGJmYTFlZTA=
12
+ data.tar.gz: !binary |-
13
+ YzFlOWUyNGY3ZGRhOGViNzNkZDk2YmY4Yjc1ZmMxYTllMzE2NjcxZWVhOTQ5
14
+ MWVlZDRmMmVlMTFlNDMwNjdjNjU4ZmZlNmFlYWJiZGQ2YzFiMWIwNTI5MGRh
15
+ ODY5ODEzYTQ0NWUyNWYwMDc3ZGJlNjAwNTZlYzBhOWU3NDkzMDg=
@@ -17,7 +17,7 @@ class Hash
17
17
  class CampaignList < ActiveRecord::Base
18
18
 
19
19
  def self.scott_connect(dbhost, dbname, dbuser,dbpasswd)
20
- CampaignList.set_table_name('vtiger_campaigncontrel')
20
+ CampaignList.table_name='vtiger_campaigncontrel'
21
21
  @myconnection =CampaignList.establish_connection(
22
22
  :adapter => "mysql",
23
23
  :host => dbhost,
@@ -1,4 +1,4 @@
1
1
  VTIGERDB= 'collinbniesdb'
2
- VTIGERDBHOST='myestormdb1.cz7ya2tbsgz7.us-east-1.rds.amazonaws.com'
2
+ VTIGERDBHOST='myestormdb3.cz7ya2tbsgz7.us-east-1.rds.amazonaws.com'
3
3
  VTIGERDBUSER='collinbnies'
4
4
  VTIGERDBPASSWD='9collinbnies341'
@@ -0,0 +1,29 @@
1
+
2
+ require File.dirname(__FILE__) + '/test_helper.rb'
3
+
4
+ class TestVtiger < Test::Unit::TestCase
5
+
6
+ def setup
7
+ @options={}
8
+ @options[:url]='crm.estormtech.com'
9
+ @options[:key]='lwyIHQA6VxTSmBg'
10
+ @options[:username]="admin"
11
+ @options[:element_type]="Contacts"
12
+ end
13
+
14
+ def test_get_contacts_from_campaigns
15
+ cmd = Vtiger::Commands.new()
16
+ @options[:username]='admin'
17
+ challenge=cmd.challenge(@options)
18
+ login=cmd.login(@options)
19
+ success,values=cmd.get_campaigns()
20
+ assert success, "not success"
21
+ require 'test_secret'
22
+ cmd.accessdatabase(VTIGERDBHOST, VTIGERDB, VTIGERDBUSER,VTIGERDBPASSWD)
23
+
24
+ idx="14"
25
+ results=cmd.get_list_from_campaign(idx,"Contacts")
26
+ puts "results are #{results}"
27
+ end
28
+
29
+ end
metadata CHANGED
@@ -1,26 +1,18 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vtiger
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 8
8
- - 0
9
- version: 0.8.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Scott Sproule
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2012-08-06 00:00:00 +08:00
18
- default_executable:
11
+ date: 2013-09-06 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
13
  description: Use to access vtiger crm system from ruby.
22
14
  email: scott.sproule@estormtech.com
23
- executables:
15
+ executables:
24
16
  - add_contact.rb
25
17
  - add_lead.rb
26
18
  - update_lead.rb
@@ -32,10 +24,8 @@ executables:
32
24
  - add_trouble_ticket.rb
33
25
  - update_stock_inventory.rb
34
26
  extensions: []
35
-
36
27
  extra_rdoc_files: []
37
-
38
- files:
28
+ files:
39
29
  - lib/vtiger/base.rb
40
30
  - lib/vtiger/commands.rb
41
31
  - lib/vtiger/support.rb
@@ -44,6 +34,7 @@ files:
44
34
  - test/test_login.rb
45
35
  - test/test_philweb.rb
46
36
  - test/test_secret.rb
37
+ - test/test_vt_db.rb
47
38
  - test/test_vtiger.rb
48
39
  - bin/add_contact.rb
49
40
  - bin/add_email.rb
@@ -62,37 +53,27 @@ files:
62
53
  - Rakefile
63
54
  - Rakefile.orig
64
55
  - README.rdoc
65
- has_rdoc: true
66
56
  homepage: http://github.com/semdinsp/vtiger-ruby-webservices
67
57
  licenses: []
68
-
58
+ metadata: {}
69
59
  post_install_message:
70
60
  rdoc_options: []
71
-
72
- require_paths:
61
+ require_paths:
73
62
  - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- segments:
79
- - 0
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- segments:
86
- - 1
87
- - 3
88
- - 4
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
89
72
  version: 1.3.4
90
73
  requirements: []
91
-
92
74
  rubyforge_project: vtiger
93
- rubygems_version: 1.3.6
75
+ rubygems_version: 2.0.6
94
76
  signing_key:
95
- specification_version: 3
77
+ specification_version: 4
96
78
  summary: Vtiger web service support via ruby
97
79
  test_files: []
98
-