3scale_client 2.4.0.pre.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca13a0b71b091111263b305b227d8384e3648e53
4
- data.tar.gz: 204c15465a171d3c181f72e7f7877155ca77933c
3
+ metadata.gz: 19f4ab95abe489a21be3179370e39eff488ee4ce
4
+ data.tar.gz: e9cff93cb9a39f429a2cbd9fb181a5a323b6d518
5
5
  SHA512:
6
- metadata.gz: 245f5ad62823a036a60fb6c1209f87053bd084fda544b0be17be338f4dfdde45e88931cd1241071115ddc40ce5c4ed6a3f409616c25681fe8e0544ec8111facc
7
- data.tar.gz: 003b18dd48bcc5117169e6326bb9e7a268cf7e6e92f97de2d8d0a9669ec4f80141b8c99d9b8638c566e24b0907bc3053826d84dee30bb84ce051a1cfbf3a679f
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.
@@ -1,5 +1,5 @@
1
1
  module ThreeScale
2
2
  class Client
3
- VERSION = '2.4.0.pre.1'
3
+ VERSION = '2.4.0'
4
4
  end
5
5
  end
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.pre.1
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-05-20 00:00:00.000000000 Z
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: 1.3.1
159
+ version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
162
  rubygems_version: 2.2.2