sugarcrm_rest 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1fb0327792616cc0dfe8816647e55648ebeb6365372075abe7fdf560f78ddcb
4
- data.tar.gz: f4a6d1c2c9968162626eb1009c4be76590b8c68fd93a7ac8a220d06f1dd0c645
3
+ metadata.gz: 1a5b18767557cc5a9690182ecd85b79b1fa791203086381b2a7dfa2d6ef7e7fd
4
+ data.tar.gz: aad29dfd73cbaf51984a53480cb7741d0aa4f65bb23462b05dcf525fbeff854a
5
5
  SHA512:
6
- metadata.gz: 0c8a24bd26318b8da0abfc3c7f503c3ed39675ae9695fa4e2e596163fa8cb701cfc70609e431bdab3e745219df523e895f140fbae5270a7bbcf59c76d28112bc
7
- data.tar.gz: 374ee990ebbd12ddcb8acec3fae44382a2b9f14776932375071806b691d402decb6686bd036cb6379ed198961a7a474e05c976156f654ea6c324e54e502d61c7
6
+ metadata.gz: e81d1f164586e522f7292070c99a7d664d2ef3246a47b5e7aa7b67b1e511b1be092a482824953013d30f41c0bc6fa0b86ecaedc3ffbfef770efdabdce86e039e
7
+ data.tar.gz: 88fa55c2ce95943de79da77696020dfcef23621b5744ff8067a40fbcb3ae8058f9b4e963650e1bc3fb3f99d31b14c9f16ee7109e5152514624df5d125173e8aa
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
  connect=SugarcrmRest::Connect.new(consumer_key,consumer_secret,username,password,platform,url) #Provide the connection object
24
24
  SugarcrmRest::Fetch_Data.fetch_single_record(connect,module_name,id) #Give the record with specified id from specified module
25
25
  SugarcrmRest::Fetch_Data.fetch_all_data(connect,module_name,offset,maxnum) #Fetch data from specified module according to offset
26
- SugarcrmRest::Fetch_Data.fetch_data_with_filters(connect,module_name,filter_json,fields=["no"],offset=0) #Return a json object of data having specified fields by applying specified filters.The filter format is filter=[{"name":"example"},{"age":{"$gte":age}}]
26
+ SugarcrmRest::Fetch_Data.fetch_data_with_filters(connect,module_name,filter_json,offset=0,fields=["no"]) #Return a json object of data having specified fields by applying specified filters.The filter format is filter=[{"name":"example"},{"age":{"$gte":age}}]
27
27
  SugarcrmRest::Fetch_Data.upload_document(connect,id,path) #upload the file having specified path and id to doccument module
28
28
 
29
29
  SugarcrmRest::Update_Sugar.create_new_record(connect,module_name,params) #Creating new record in specified module
@@ -1,3 +1,3 @@
1
1
  module SugarcrmRest
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/sugarcrm_rest.rb CHANGED
@@ -131,7 +131,7 @@ class Fetch_Data
131
131
  return result.to_json
132
132
  end
133
133
 
134
- def self.fetch_data_with_filters(connect,module_name,filter_json,fields=["no"],offset=0)
134
+ def self.fetch_data_with_filters(connect,module_name,filter_json,offset=0,fields=["no"])
135
135
  filter=filter_json
136
136
 
137
137
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugarcrm_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sruthi PN
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler