landslider 0.4.0 → 0.4.1

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.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
data/landslider.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{landslider}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jay Prall"]
data/lib/landslider.rb CHANGED
@@ -53,7 +53,7 @@ class Landslider < Handsoap::Service
53
53
  response = invoke("getAccounts", :soap_action => :none) do |message|
54
54
  message.add('accountsRequest') { |ar|
55
55
  ar.add 'firstResultPosition', 1
56
- ar.add 'totalResultsRequested', 10
56
+ ar.add 'totalResultsRequested', 25
57
57
  ar.add('searchCriteria') { |sc|
58
58
  # just find accounts with an empty main city
59
59
 
@@ -95,14 +95,14 @@ class Landslider < Handsoap::Service
95
95
 
96
96
  ans.add 'accountId', account_id
97
97
  ans.add 'firstResultPosition', 1
98
- ans.add 'totalResultsRequested', 10
98
+ ans.add 'totalResultsRequested', 25
99
99
 
100
- ans.add('searchCriteria') { |sc|
101
- # just find accounts with an empty main city
102
-
103
- sc.add 'fieldId', 'MainAddressCity'
104
- sc.add 'operator', 'Empty'
105
- }
100
+ # ans.add('searchCriteria') { |sc|
101
+ # # just find accounts with an empty main city
102
+ #
103
+ # sc.add 'fieldId', 'MainAddressCity'
104
+ # sc.add 'operator', 'Empty'
105
+ # }
106
106
  }
107
107
  end
108
108
  node = response.document.xpath('//ns:getAccountNotesResponse', ns)
@@ -126,7 +126,7 @@ class Landslider < Handsoap::Service
126
126
  message.add('contactNote') { |ans|
127
127
  ans.add 'contactId', contact_id
128
128
  ans.add 'firstResultPosition', 1
129
- ans.add 'totalResultsRequested', 10
129
+ ans.add 'totalResultsRequested', 25
130
130
  }
131
131
  end
132
132
  node = response.document.xpath('//ns:getContactNotesResponse', ns)
@@ -151,7 +151,7 @@ class Landslider < Handsoap::Service
151
151
  message.add('leadRequest') { |lr|
152
152
 
153
153
  lr.add 'firstResultPosition', 1
154
- lr.add 'totalResultsRequested', 10
154
+ lr.add 'totalResultsRequested', 25
155
155
  }
156
156
  end
157
157
  node = response.document.xpath('//ns:getLeadsResponse', ns)
@@ -166,7 +166,7 @@ class Landslider < Handsoap::Service
166
166
 
167
167
  ans.add 'leadId', lead_id
168
168
  ans.add 'firstResultPosition', 1
169
- ans.add 'totalResultsRequested', 10
169
+ ans.add 'totalResultsRequested', 25
170
170
  }
171
171
  end
172
172
  node = response.document.xpath('//ns:getLeadNotesResponse', ns)
@@ -182,7 +182,7 @@ class Landslider < Handsoap::Service
182
182
 
183
183
  ans.add 'opportunityId', opportunity_id
184
184
  ans.add 'firstResultPosition', 1
185
- ans.add 'totalResultsRequested', 10
185
+ ans.add 'totalResultsRequested', 25
186
186
  }
187
187
  end
188
188
  node = response.document.xpath('//ns:getOpportunityNotesResponse', ns)
@@ -34,7 +34,7 @@ class LandsliderTest < Test::Unit::TestCase
34
34
 
35
35
  def test_landslider_get_accounts
36
36
  result = Landslider.get_accounts($sid)
37
-
37
+
38
38
  assert_equal false, result[:error]
39
39
  assert_not_nil result[:accounts]
40
40
  assert result[:accounts].all? { |a| !a[:account_name].nil? }, "account name required"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: landslider
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Prall