ue-ruby-sdk 1.1.8 → 1.1.9
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 +4 -4
- data/VERSION +1 -1
- data/example/example1.rb +1 -4
- data/lib/models/UEUser.rb +5 -3
- data/ue-ruby-sdk.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07632756fe81c502546d82e9973a9ebabc571c93
|
|
4
|
+
data.tar.gz: 1ffa75978ad2fd68da11c4222213f1dc8003b13c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ea2e50908d40c0acc8ca224f914bbe0a753c0e78dc373b295c07b850939b4d155302570ac99a8959a88df1927e27d1b7aafe68c72d6146c4600b4a8a127ab19
|
|
7
|
+
data.tar.gz: 4154e93e3c718815d036933e3a8177f4145aac984abf21604742c6e9ffcd03f60fdd4c1b77b428d9ae9faf02854402bdcc5bcacf6f966879f76f3d17fc3747df
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.9
|
data/example/example1.rb
CHANGED
data/lib/models/UEUser.rb
CHANGED
|
@@ -44,17 +44,19 @@ class UEUser
|
|
|
44
44
|
# @return {UEConnection} connection the created connection
|
|
45
45
|
#/
|
|
46
46
|
def add_connection(connection_name, service_scheme, service_access_token)
|
|
47
|
-
|
|
47
|
+
uri = "#{service_scheme}://#{service_access_token}@#{service_scheme}.com"
|
|
48
48
|
response = UERequest.fetch "connection/add",{
|
|
49
49
|
user: @user_key,
|
|
50
50
|
pass: @user_secret,
|
|
51
51
|
form: {
|
|
52
|
-
uri:
|
|
52
|
+
uri: uri,
|
|
53
53
|
name: connection_name
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
puts response
|
|
58
|
+
connection = UEConnection.new connection_name, uri, self
|
|
59
|
+
(response[:status]==200)? connection : response
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
end
|
data/ue-ruby-sdk.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: ue-ruby-sdk 1.1.
|
|
5
|
+
# stub: ue-ruby-sdk 1.1.9 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "ue-ruby-sdk"
|
|
9
|
-
s.version = "1.1.
|
|
9
|
+
s.version = "1.1.9"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Hossam Saraya"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-03-11"
|
|
15
15
|
s.description = "UnificationEngine Ruby SDK as a wrapper over UnificationEngine API"
|
|
16
16
|
s.email = "hossam.saraya@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ue-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hossam Saraya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logging
|