shilpa20 1.1.7 → 1.1.8

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: c395570d5288acf49fc11fa38ff6bea7df9d8cb2085903dc316527a8e02166ef
4
- data.tar.gz: 887f49fc14714bd88a158003ad210afeffcca489c804ab46c7baefca97071740
3
+ metadata.gz: 944b0fc0f82d53a9c8b9cfe031dab2bbb0ecd88a89d797178470aac52356b5d6
4
+ data.tar.gz: b8ae014067125c0b0cf3fcbc8c85fe48cdf7976397a1be137752695468a87ef9
5
5
  SHA512:
6
- metadata.gz: 4bd429d56f91ab3a51f8a9a9728fd3e5f63016aecf86ffa6110af9413e25eee598b00cd443952098cf3f46a053b27225fe15f4e3edd18acb9652af2d0871579e
7
- data.tar.gz: c631a75acbd57014b6d468abb3926b8f43179ed843c1e42d5f7ea9f64f1d5fe592ef8553cdefe5e22d6251b8139e5318a73b1fc3a0e0d7624feb181112b8ea61
6
+ metadata.gz: ce533f13849ed11de8af97fbf093664a1dc0394851bacd7da5672147d33917360fbebe4b7956ad6835a7585a5f8e4197c55bf9eee7d7bf59e7311dc10c396f58
7
+ data.tar.gz: 000a943257ee93cad00b9057af800b76cf022602146b69f68389f9b8298fd6681c20776d94cae9a5b3a18d93a3c862576687d8cd63bb88ab530957314a777c1a
@@ -7,8 +7,8 @@ class AuthenticationService
7
7
  @@authentication_url = 'https://showoff-rails-react-production.herokuapp.com/oauth/token'
8
8
 
9
9
  def self.create_authentication(auth_data)
10
- auth_data.client_id =ApplicationConfig.get_client_id
11
- auth_data.client_secret =ApplicationConfig.get_client_secret
10
+ auth_data.client_id = ApplicationConfig.get_client_id
11
+ auth_data.client_secret = ApplicationConfig.get_client_secret
12
12
  auth_payload = Authentication.get_payload(auth_data)
13
13
  return RestClient::Request.execute(method: :post, url: @@authentication_url,
14
14
  payload: auth_payload, headers: {'Content-Type': 'application/json'})
data/lib/shilpa20.rb CHANGED
@@ -9,8 +9,13 @@ require File.dirname(__FILE__) + '/shilpa20/user_widget_service'
9
9
  require File.dirname(__FILE__) + '/domain/application_config'
10
10
 
11
11
  class Shilpa20
12
+
13
+ def self.set_config(client_id, client_secret)
14
+ #ApplicationConfig.set_config("277ef29692f9a70d511415dc60592daf4cf2c6f6552d3e1b769924b2f2e2e6fe", "d6106f26e8ff5b749a606a1fba557f44eb3dca8f48596847770beb9b643ea352")
15
+ ApplicationConfig.set_config(client_id, client_secret)
16
+ end
17
+
12
18
 
13
- ApplicationConfig.set_config("277ef29692f9a70d511415dc60592daf4cf2c6f6552d3e1b769924b2f2e2e6fe", "d6106f26e8ff5b749a606a1fba557f44eb3dca8f48596847770beb9b643ea352")
14
19
  #Create authentication token
15
20
  def self.create_authentication_token(auth_data)
16
21
  return AuthenticationService.create_authentication(auth_data)
@@ -103,7 +108,7 @@ class Shilpa20
103
108
  end
104
109
 
105
110
  #puts " Inside shilpa 20"
106
- puts Shilpa20.create_authentication_token(AuthenticationService.create_auth_data)
111
+ #puts Shilpa20.create_authentication_token(AuthenticationService.create_auth_data)
107
112
  #Shilpa20.set_config("cid1","csecret1")
108
113
  #Shilpa20.getConfig
109
114
  #puts "Hi"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shilpa20
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sachin Murthy