splitclient-rb 3.1.0.pre.rc2 → 3.1.0.pre.rc4

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: 848d0aacbc266ce731699e451bd82976446240e0
4
- data.tar.gz: 3de885436b94b499290e29a0aac4ca1f1767e660
3
+ metadata.gz: 8d86d4f7f7e1e0794c835f22916d06176c5df0a6
4
+ data.tar.gz: 275b5bc5b7876dbd0a55e1dcb90bf4b0bdbffbbd
5
5
  SHA512:
6
- metadata.gz: 550e6f8a4e3bf0b475946055fe432ce1a3790035170811a131270e25ee8dee6ebdfc70ce6baedd9797f07d56cea9cc1904fa23fe4dff630c3823463dd8fe3cf1
7
- data.tar.gz: cc9e7d82c6878c698614de9b092a8ca705f884127213c9359bd1aafbeabd3abe20b08760d50e52cdba1d14b0013b65d76467993e3c3ab1ef21e20b34fe0bcb70
6
+ metadata.gz: a409d2f655ec55ffd75bb82c2879997277119188035701bdbbf1f8c2ff02a09690963fb636a7d77d7dd6784a8ec42903ea5cbccceb170982b172b772a2b60771
7
+ data.tar.gz: 2f63641202e9a2cf981b1a327dd767f6a8be8d06663fd41444eae6b6307edea6318efc0a3fa3170f709ccad80f62a74586c5777c9c9021d3bde8476ec06c562c
data/README.md CHANGED
@@ -149,10 +149,9 @@ SENTINELS = [{host: '127.0.0.1', port: 26380},
149
149
  redis_url = Redis.new(url: 'redis://mymaster', sentinels: SENTINELS, role: :master)
150
150
  ```
151
151
 
152
- Example
152
+ Example using Redis
153
153
  ```ruby
154
154
  options = {
155
- base_uri: 'https://my.app.api/',
156
155
  connection_timeout: 10,
157
156
  read_timeout: 5,
158
157
  features_refresh_rate: 120,
@@ -162,6 +161,7 @@ options = {
162
161
  logger: Logger.new('logfile.log'),
163
162
  block_until_ready: 5,
164
163
  cache_adapter: :redis,
164
+ mode: :consumer,
165
165
  redis_url: 'redis://127.0.0.1:6379/0'
166
166
  }
167
167
  begin
@@ -278,7 +278,6 @@ SDK can be ran in `producer` mode both in the scope of the application (e.g. as
278
278
  ```yaml
279
279
  ---
280
280
  :api_key: 'SECRET_API_KEY'
281
- :base_uri: 'https://my.app.api/'
282
281
  :connection_timeout: 10
283
282
  :read_timeout: 5
284
283
  :features_refresh_rate: 120
@@ -287,6 +286,7 @@ SDK can be ran in `producer` mode both in the scope of the application (e.g. as
287
286
  :impressions_refresh_rate: 360
288
287
  :block_until_ready: 5
289
288
  :cache_adapter: :redis
289
+ :mode: :producer
290
290
  :redis_url: 'redis://127.0.0.1:6379/0'
291
291
  ```
292
292
 
@@ -162,9 +162,6 @@ module SplitIoClient
162
162
  begin
163
163
  @adapter.impressions.log(matching_key, feature, result, (Time.now.to_f * 1000.0))
164
164
  latency = (Time.now - start) * 1000.0
165
- # if (@adapter.impressions.queue.length >= @adapter.impressions.max_number_of_keys)
166
- # @adapter.impressions_producer.wakeup
167
- # end
168
165
  rescue StandardError => error
169
166
  @config.log_found_exception(__method__.to_s, error)
170
167
  end
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '3.1.0-rc2'
2
+ VERSION = '3.1.0-rc4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.pre.rc2
4
+ version: 3.1.0.pre.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2016-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler