wegift-ruby-client 1.7.1 → 1.7.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 +4 -4
- data/README.md +4 -4
- data/lib/wegift/client.rb +2 -2
- data/lib/wegift/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 354e3ffd5e6a48aa62b42f45f18befa65c58a175
|
4
|
+
data.tar.gz: 23e9db8aa35458e2fd47c2c5f39b2d87606cac50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2226058175cac736b14c6810c0482dec1fe8ae5b79f3ed0229340c477319eeb2da5a57e6f7c977ef41c697a57cb13fdf5d3aad683b473e256a990e07b7be0fd8
|
7
|
+
data.tar.gz: 7344a534379e21c0999a5f64d890f8359a35706e04ab2d1aac57f8562c014e292c537b1f926365366d5b8d961175b543fce35a1f58b41e524a74d8bd10c838ed
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ Simple example for ordering a Digital Card
|
|
26
26
|
```ruby
|
27
27
|
# a simple client
|
28
28
|
client = Wegift::Client.new(
|
29
|
-
:api_host => '
|
29
|
+
:api_host => 'https://playground.wegift.io',
|
30
30
|
:api_path => '/api/b2b-sync/v1',
|
31
31
|
:api_key => ENV['AUTH_NAME'],
|
32
32
|
:api_secret => ENV['AUTH_PASS'],
|
@@ -91,13 +91,13 @@ rspec
|
|
91
91
|
|
92
92
|
It will load all tapes found in `spec/tapes`, we are using [VCR][vcr].
|
93
93
|
|
94
|
-
To remaster all recordings, you will need a
|
94
|
+
To remaster all recordings, you will need a playground account.
|
95
95
|
Add an `.env` file to your root:
|
96
96
|
|
97
97
|
```bash
|
98
98
|
# .env
|
99
|
-
AUTH_NAME='
|
100
|
-
AUTH_PASS='
|
99
|
+
AUTH_NAME='playground_username'
|
100
|
+
AUTH_PASS='playground_password'
|
101
101
|
PROXY='proxy_uri'
|
102
102
|
```
|
103
103
|
|
data/lib/wegift/client.rb
CHANGED
@@ -11,10 +11,10 @@ module Wegift
|
|
11
11
|
class Client
|
12
12
|
attr_accessor :api_host, :api_path, :api_key, :api_secret, :connection
|
13
13
|
|
14
|
-
# supported: basic-http-auth - see:
|
14
|
+
# supported: basic-http-auth - see: https://playground.wegift.io
|
15
15
|
|
16
16
|
def initialize(options = {})
|
17
|
-
@api_host = options[:api_host] || 'https://
|
17
|
+
@api_host = options[:api_host] || 'https://playground.wegift.io'
|
18
18
|
@api_path = options[:api_path] || '/api/b2b-sync/v1'
|
19
19
|
@api_key = options[:api_key].to_s
|
20
20
|
@api_secret = options[:api_secret]
|
data/lib/wegift/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wegift-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Klaas Endrikat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
202
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
203
|
+
rubygems_version: 2.5.2
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: A simple Ruby client for the WEGIFT API
|