talon_one 0.0.5 → 0.0.6
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/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/management/client.rb +2 -2
- data/talon_one.gemspec +5 -4
- data/test/test_integration_api_live.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a824ac2aa53431724a6e90f25fbcf030802b2a58
|
4
|
+
data.tar.gz: 8c02bb2148b342d84645da85799de353b342206f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3590bf129b7bb99666c165b9ea776263dd0cd1b775e9733d18e4a2672faa5c239f23742eb94205d0680cf4d99585075e6cfb15111e30f67e8a882d38c665a789
|
7
|
+
data.tar.gz: 881177a06def9c0a86722e32791aa8fab6518d6e466fb45ea5612808d7cb1a724c5197d9030874a6e36f6d5578922a2e29d795be1f2bb1717ca40cda6ae2ecd7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,11 +16,10 @@ provides 2 Ruby API clients:
|
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
|
-
|
20
|
-
in your Gemfile:
|
19
|
+
The TalonOne Ruby SDK is available as a standard [gem release][]. Just add it in your Gemfile:
|
21
20
|
|
22
21
|
```ruby
|
23
|
-
gem 'talon_one'
|
22
|
+
gem 'talon_one'
|
24
23
|
```
|
25
24
|
|
26
25
|
## Getting started with the Integration API
|
@@ -69,3 +68,4 @@ client.track_event "my_unique_session_id", "viewed_promo_page", "url" => "http:/
|
|
69
68
|
To view the full list of data that each of these API calls accepts, please consult our [API documentation][].
|
70
69
|
|
71
70
|
[API documentation]: http://developers.talon.one/integration-api/reference/
|
71
|
+
[gem release]: https://rubygems.org/gems/talon_one
|
data/lib/management/client.rb
CHANGED
@@ -8,8 +8,8 @@ module TalonOne
|
|
8
8
|
)
|
9
9
|
@endpoint.path = @endpoint.path.sub(/\/+$/, '')
|
10
10
|
@http = Net::HTTP.new(@endpoint.host, @endpoint.port)
|
11
|
-
@http.use_ssl =
|
12
|
-
@token = ENV["TALONONE_SESSION_TOKEN"]
|
11
|
+
@http.use_ssl = @endpoint.scheme == "https"
|
12
|
+
@token = config[:token] || ENV["TALONONE_SESSION_TOKEN"]
|
13
13
|
if !@token
|
14
14
|
email = config[:email] || ENV["TALONONE_EMAIL"]
|
15
15
|
password = config[:password] || ENV["TALONONE_PASSWORD"]
|
data/talon_one.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'talon_one'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2017-
|
3
|
+
s.version = '0.0.6'
|
4
|
+
s.date = '2017-05-19'
|
5
5
|
s.summary = 'Client for the Talon.One API'
|
6
6
|
s.description = 'A simple client for using the Talon.One API'
|
7
|
-
s.authors = ['Stephen Sugden']
|
8
|
-
s.email = 'stephen@talon.one'
|
7
|
+
s.authors = ['Stephen Sugden', 'Laurens Van Wiele']
|
8
|
+
s.email = ['stephen@talon.one', 'vanwiele@talon.one']
|
9
|
+
s.required_ruby_version = '>= 2.2.0'
|
9
10
|
s.files = `git ls-files`.split("\n")
|
10
11
|
s.require_paths = ['lib']
|
11
12
|
s.homepage = 'https://github.com/talon-one/talon-one.rb'
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: talon_one
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Sugden
|
8
|
+
- Laurens Van Wiele
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2017-
|
12
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: oj
|
@@ -53,7 +54,9 @@ dependencies:
|
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: 5.10.1
|
55
56
|
description: A simple client for using the Talon.One API
|
56
|
-
email:
|
57
|
+
email:
|
58
|
+
- stephen@talon.one
|
59
|
+
- vanwiele@talon.one
|
57
60
|
executables: []
|
58
61
|
extensions: []
|
59
62
|
extra_rdoc_files: []
|
@@ -89,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
92
|
requirements:
|
90
93
|
- - ">="
|
91
94
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
95
|
+
version: 2.2.0
|
93
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
97
|
requirements:
|
95
98
|
- - ">="
|