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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b748e096eec0b2f1b84371700e28198ccc8e94a
4
- data.tar.gz: aa2cf8fb236f2d95a6fa7fc532f5e586866e118c
3
+ metadata.gz: a824ac2aa53431724a6e90f25fbcf030802b2a58
4
+ data.tar.gz: 8c02bb2148b342d84645da85799de353b342206f
5
5
  SHA512:
6
- metadata.gz: 7b7b29b00c77ed44c3709657be152324e03afbf620257a861585fab2b5ad0b025d7aae0146465f3401b8e33233e064380317f3090d5d81059c12bae832e4a6da
7
- data.tar.gz: 907506fc01ee8489861ea820ff62c9449c9abae8122172f1cf5fbc1e8805f41f1061d5efd6d13fbf2cdc9b76d3f0173ba8e5ed05b83cf4e9aad54bf673d058da
6
+ metadata.gz: 3590bf129b7bb99666c165b9ea776263dd0cd1b775e9733d18e4a2672faa5c239f23742eb94205d0680cf4d99585075e6cfb15111e30f67e8a882d38c665a789
7
+ data.tar.gz: 881177a06def9c0a86722e32791aa8fab6518d6e466fb45ea5612808d7cb1a724c5197d9030874a6e36f6d5578922a2e29d795be1f2bb1717ca40cda6ae2ecd7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.0.6 / 2017-05-19
2
+
3
+ * [FEATURE] Allow setting token on Management Client Config (instead of email + password)
4
+ * [BUG] Only use SSL if endpoint is https
5
+
1
6
  # 0.0.4 / 2016-08-25
2
7
 
3
8
  * [FEATURE] Use BigDecimal for all decimal numbers coming in/out of the
data/README.md CHANGED
@@ -16,11 +16,10 @@ provides 2 Ruby API clients:
16
16
 
17
17
  ## Installation
18
18
 
19
- There is no gem release yet, for now we recommend pulling directly from GitHub
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', :git => 'https://github.com/talon-one/talon-one.rb'
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
@@ -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 = true
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.5'
4
- s.date = '2017-03-06'
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'
@@ -1,7 +1,7 @@
1
1
  class TestIntegrationApiLive < LiveApiTest
2
2
  def setup
3
3
  @app = management_client.create_application(
4
- name: "Ruby SDK Test App",
4
+ name: "Ruby SDK Test App #{rand(36**3).to_s(36)}",
5
5
  key: "fefecafedeadbeef",
6
6
  currency: "USD",
7
7
  timezone: "UTC"
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.5
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-03-06 00:00:00.000000000 Z
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: stephen@talon.one
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: '0'
95
+ version: 2.2.0
93
96
  required_rubygems_version: !ruby/object:Gem::Requirement
94
97
  requirements:
95
98
  - - ">="