sugarcrm_emp 0.10.1 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGRkNDc4ZTZjMTUwNjljMWM5OTg3MDFkYjk3MWM3ZGU5NzMxMTcyNA==
5
+ data.tar.gz: !binary |-
6
+ YTI2YmU0ZTI1ZDQ5OWU3YWEzODYwMDU2OTgyNjNkMjI2OTc0OGQ4YQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZWFiNjczODg5ODE2YjZjYTYxYzcyN2QyMjZkNWE3YTA2ZjM2Y2ZiNTcwMDBl
10
+ NjEzNjUzOTFmODRlMGU5ODM1Nzk4ZTI3MjIxYWZjYmI1YjBiNmYwMjNjYWMz
11
+ OTIxZjFmZGUxYzBlNGJjOTdhNDljNTQyZWI3MGY4M2RhMWQ2MTg=
12
+ data.tar.gz: !binary |-
13
+ Mjc3NTNkMDdlNDVmZTQ0YzFjZmUwYWIwNzk3OWY0ZGZkMDEyNTcwMGFhYjA4
14
+ ZjNmZDM4OGZlMGVmYjUyYjhjOWMwYTA4MWEzMTI1YjE2ZmU2ZDcxN2U1NThj
15
+ MmE0N2I4YzkxMmRkYTEyYzJjODY3ZDU4YzBkYTE3NThjYzNmYWU=
@@ -78,7 +78,7 @@ module SugarCRM
78
78
  # Use the link_field attribute "module"
79
79
  if @attributes["module"].length > 0
80
80
  module_name = SugarCRM::Module.find(@attributes["module"], @owner.class.session)
81
- return namespace.const_get(module_name.klass) if namespace.const_defined? module_name.klass
81
+ return namespace.const_get(module_name.klass) if module_name && namespace.const_defined?(module_name.klass)
82
82
  end
83
83
  # Use the "relationship" target
84
84
  if @attributes["relationship"].length > 0
@@ -87,8 +87,7 @@ module SugarCRM
87
87
  end
88
88
 
89
89
  if @proxy_methods.is_a? Array
90
- if @proxy_methods.last.include? "_1"
91
- return namespace.const_get(@proxy_methods.last[0..-3].camelize) if @proxy_methods.last != "securitygroups_1"
90
+ if @proxy_methods.include? "securitygroups"
92
91
  return namespace.const_get("SecurityGroup")
93
92
  end
94
93
 
@@ -8,7 +8,7 @@ module SugarCRM; class Connection
8
8
  :offset => '',
9
9
  :fields => [],
10
10
  :link_fields => [],
11
- :limit => '',
11
+ :limit => '100000',
12
12
  :deleted => 0
13
13
  }.merge! opts
14
14
 
@@ -71,11 +71,7 @@ module SugarCRM; class Connection
71
71
  @request = SugarCRM::Request.new(@url, method, json, @options[:debug])
72
72
  # Send Ze Reques
73
73
  begin
74
- if @request.length > 3900
75
- @response = @connection.post(@url, @request)
76
- else
77
- @response = @connection.get(@url, @request)
78
- end
74
+ @response = @connection.post(@url, @request)
79
75
  return handle_response
80
76
  # Timeouts are usually a server side issue
81
77
  rescue Timeout::Error => error
@@ -68,7 +68,7 @@ module SugarCRM; module FinderMethods
68
68
 
69
69
  # the number of records we retrieve with each query
70
70
  # it is kept small to avoid timeout issues
71
- SLICE_SIZE = 5
71
+ SLICE_SIZE = 50
72
72
  SLICE_SIZE.freeze
73
73
  # results accumulator stores the results we have fetched so far, recursively
74
74
  def find_by_sql(options, results_accumulator=nil, &block)
data/sugarcrm.gemspec CHANGED
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sugarcrm_emp"
8
- s.version = "0.10.1"
8
+ s.version = "0.10.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Carl Hicks", "David Sulc", "Dimitar Kostov"]
12
12
  s.date = "2011-12-13"
13
- s.email = "dimitar@emerchantpay.com"
13
+ s.email = "emil@emerchantpay.com"
14
14
  s.executables = ["sugarcrm"]
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugarcrm_emp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
5
- prerelease:
4
+ version: 0.10.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Carl Hicks
@@ -16,7 +15,6 @@ dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: activesupport
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ! '>='
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ! '>='
30
27
  - !ruby/object:Gem::Version
@@ -32,7 +29,6 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: i18n
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ! '>='
38
34
  - !ruby/object:Gem::Version
@@ -40,7 +36,6 @@ dependencies:
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
40
  - - ! '>='
46
41
  - !ruby/object:Gem::Version
@@ -48,7 +43,6 @@ dependencies:
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: json
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
47
  - - ! '>='
54
48
  - !ruby/object:Gem::Version
@@ -56,7 +50,6 @@ dependencies:
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
54
  - - ! '>='
62
55
  - !ruby/object:Gem::Version
@@ -64,7 +57,6 @@ dependencies:
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: httpclient
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
61
  - - ! '>='
70
62
  - !ruby/object:Gem::Version
@@ -72,7 +64,6 @@ dependencies:
72
64
  type: :runtime
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
68
  - - ! '>='
78
69
  - !ruby/object:Gem::Version
@@ -80,7 +71,6 @@ dependencies:
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: shoulda
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
75
  - - ! '>='
86
76
  - !ruby/object:Gem::Version
@@ -88,7 +78,6 @@ dependencies:
88
78
  type: :development
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
82
  - - ! '>='
94
83
  - !ruby/object:Gem::Version
@@ -96,7 +85,6 @@ dependencies:
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: bundler
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
89
  - - ~>
102
90
  - !ruby/object:Gem::Version
@@ -104,7 +92,6 @@ dependencies:
104
92
  type: :development
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
96
  - - ~>
110
97
  - !ruby/object:Gem::Version
@@ -112,7 +99,6 @@ dependencies:
112
99
  - !ruby/object:Gem::Dependency
113
100
  name: jeweler
114
101
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
102
  requirements:
117
103
  - - ~>
118
104
  - !ruby/object:Gem::Version
@@ -120,13 +106,12 @@ dependencies:
120
106
  type: :development
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
109
  requirements:
125
110
  - - ~>
126
111
  - !ruby/object:Gem::Version
127
112
  version: 1.5.2
128
113
  description:
129
- email: dimitar@emerchantpay.com
114
+ email: emil@emerchantpay.com
130
115
  executables:
131
116
  - sugarcrm
132
117
  extensions: []
@@ -229,25 +214,24 @@ files:
229
214
  - test/test_sugarcrm.rb
230
215
  homepage: http://github.com/eMerchantPay/sugarcrm
231
216
  licenses: []
217
+ metadata: {}
232
218
  post_install_message:
233
219
  rdoc_options: []
234
220
  require_paths:
235
221
  - lib
236
222
  required_ruby_version: !ruby/object:Gem::Requirement
237
- none: false
238
223
  requirements:
239
224
  - - ! '>='
240
225
  - !ruby/object:Gem::Version
241
226
  version: '0'
242
227
  required_rubygems_version: !ruby/object:Gem::Requirement
243
- none: false
244
228
  requirements:
245
229
  - - ! '>='
246
230
  - !ruby/object:Gem::Version
247
231
  version: '0'
248
232
  requirements: []
249
233
  rubyforge_project:
250
- rubygems_version: 1.8.23
234
+ rubygems_version: 2.1.11
251
235
  signing_key:
252
236
  specification_version: 3
253
237
  summary: A less clunky way to interact with SugarCRM via REST.