3scale_client 2.4.0.pre.1 → 2.4.0
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 +19 -0
- data/lib/3scale/client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19f4ab95abe489a21be3179370e39eff488ee4ce
|
4
|
+
data.tar.gz: e9cff93cb9a39f429a2cbd9fb181a5a323b6d518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75ca5b9124b2eee69e3e8df07a28cdaf8778d858238175b679f4440d1d52b50eda5d3fb0475e8c2602826f3f7690117f2b487a34a3f969fdd4cbb7c526c145b7
|
7
|
+
data.tar.gz: 64f308475bcfe6a25fe80d38695795ce5409762edbc7caffeaf56c7fa44539791de49acaf55135b20c67d996858dddf87f8b7ef63e529fb15ec6bc25677906d9
|
data/README.md
CHANGED
@@ -42,6 +42,25 @@ client = ThreeScale::Client.new(:provider_key => "your provider key")
|
|
42
42
|
```
|
43
43
|
Because the object is stateless, you can create just one and store it globally.
|
44
44
|
|
45
|
+
|
46
|
+
### SSL and Persistence
|
47
|
+
|
48
|
+
Starting with version 2.4.0 you can use two more options: `:secure` and `:persistent` like:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
client = ThreeScale::Client.new(:provider_key => '...', :secure => true, :persistent => true)
|
52
|
+
```
|
53
|
+
|
54
|
+
#### :secure
|
55
|
+
|
56
|
+
Enabling secure will force all traffic going through HTTPS.
|
57
|
+
Because estabilishing SSL/TLS for every call is expensive, there is `:persistent`.
|
58
|
+
|
59
|
+
#### :persistent
|
60
|
+
|
61
|
+
Enabling persistent will use HTTP Keep-Alive to keep open connection to our servers.
|
62
|
+
This option requires installing gem `net-http-persistent`.
|
63
|
+
|
45
64
|
### Authrep
|
46
65
|
|
47
66
|
Authrep is a 'one-shot' operation to authorize an application and report the associated transaction at the same time.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 3scale_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.0
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Cichra
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|
@@ -154,9 +154,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - '
|
157
|
+
- - '>='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 2.2.2
|