ZCRMSDK 1.0.1 → 1.0.2

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: e94d56d890ac35f0b38ed54ba4e9194f6da2da9e7a9a34674af39f185aff4c26
4
- data.tar.gz: 0d55ff863d8566ad8e8418cf987f59d1f1b365772362fa52788d1133c69ea180
3
+ metadata.gz: dee3cb2847b80d98b0cc36e46e50575df0318f7ebe2248f70dd6036561ec855d
4
+ data.tar.gz: 2995099fc603a4d891d1ed3888c5919dc9110d0a31020b9c38a3363c89a2b321
5
5
  SHA512:
6
- metadata.gz: ebdc399d3373acd979e3ce7daedcc5d77a8c5e8636e383f12c0eba2a003070b4237cb7cc1266d77fd2dfd4c360b7131e5ce0f9f45bd5d39a155ec665b35b3aea
7
- data.tar.gz: a18a68e343488cc101ee8e8ed9d11e7eeec0d74b1b4d09e1c26debf21708e75bc991a85bbb02f4630d43dca2f3411ae717fd44489a09d93efc4f38b256d4b631
6
+ metadata.gz: b7d672083336ea2b57c69c776ea2cb1e1119dd0539032f63174c1db5440f41436f88d05135bbd8f8a6c29b41773ea7eee15ada9371904ced950e2e741339c7ad
7
+ data.tar.gz: cdad1d2a277dc912dfb913d262b62833f87f1ee3d18bc8483cfc942097c0e4b6a29b93830c081fe7225fe4424096b928dc1694f33c3beb986103951f179b760c
@@ -72,8 +72,9 @@ module ZCRMSDK
72
72
  file_obj.close
73
73
  arr = Marshal.load(serialized) unless serialized.nil? || serialized.empty?
74
74
  arr.push(oauth_tokens)
75
- file_obj = File.open(path, 'w+')
76
- file_obj.write(Marshal.dump(arr))
75
+ tokens = Marshal.dump(arr)
76
+ file_obj = File.open(path, "w:#{tokens.encoding.to_s}")
77
+ file_obj.write(tokens)
77
78
  file_obj.close
78
79
  end
79
80
 
@@ -117,8 +118,9 @@ module ZCRMSDK
117
118
  end
118
119
  if found
119
120
  deserialized.delete_at(i)
120
- file_obj = File.open(path, 'w+')
121
- file_obj.write(Marshal.dump(deserialized))
121
+ tokens = Marshal.dump(deserialized)
122
+ file_obj = File.open(path, "w:#{tokens.encoding.to_s}")
123
+ file_obj.write(tokens)
122
124
  file_obj.close
123
125
  end
124
126
  end
@@ -1,21 +1,21 @@
1
- # require './oauth_utility'
2
- # require './operations'
3
- # require './handler'
4
- # require './oauth_client'
5
- # require './operations'
6
- # require './org'
7
- # require './persistence'
8
- # require './request'
9
- # require './response'
10
- # require './utility'
11
- # require './restclient'
12
- # require './version'
13
- require 'ZCRMSDK'
1
+ require './oauth_utility'
2
+ require './operations'
3
+ require './handler'
4
+ require './oauth_client'
5
+ require './operations'
6
+ require './org'
7
+ require './persistence'
8
+ require './request'
9
+ require './response'
10
+ require './utility'
11
+ require './restclient'
12
+ require './version'
13
+ # require 'ZCRMSDK'
14
14
  # THIS CLASS SHOWS THE EXAMPLES
15
15
  class Tester
16
16
  def initialize
17
17
 
18
- config_details = { 'client_id' => 'client_id', 'client_secret' => 'client_secret', 'redirect_uri' => 'redirect_uri', 'api_base_url' => 'http://www.zohoapis.com', 'api_version' => 'v2', 'current_user_email' => 'current_user_email' ,'log_in_console' => 'true' }
18
+ # config_details = { 'client_id' => 'client_id', 'client_secret' => 'client_secret', 'redirect_uri' => 'redirect_uri', 'api_base_url' => 'http://www.zohoapis.com', 'api_version' => 'v2', 'current_user_email' => 'current_user_email' ,'log_in_console' => 'true' }
19
19
  ZCRMSDK::RestClient::ZCRMRestClient.init(config_details)
20
20
  end
21
21
 
@@ -5741,8 +5741,6 @@ obj.get_organization_details
5741
5741
 
5742
5742
  #OAuth token generation from refresh token
5743
5743
 
5744
- #client = ZCRMSDK::OAuthClient::ZohoOAuth.get_client_instance
5745
- #refresh_token = 'refresh_token'
5746
- #client.generate_access_token_from_refresh_token(refresh_token,useridentifier)
5747
-
5748
-
5744
+ # client = ZCRMSDK::OAuthClient::ZohoOAuth.get_client_instance
5745
+ # refresh_token = 'refresh_token'
5746
+ # client.generate_access_token_from_refresh_token(refresh_token,user_identifier)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZCRMSDK
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZCRMSDK
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZOHO CRM API TEAM
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-18 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler