featurehub-sdk 1.2.1 → 1.2.2

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
  SHA256:
3
- metadata.gz: 64f6c49d496d101322385a5ecd391efc0306f8d4b5e98bade99018492dda76c8
4
- data.tar.gz: 11e43513703e3a5a343e84b57a7fa95237b3cfeb87111d175f2c82de9b3dad27
3
+ metadata.gz: 2d8c63466d2e3a9d0a83b3e536a7655a26399443eb593f95cad46ee5cf0ac50f
4
+ data.tar.gz: 8df77aebec08f1be8ee34c3a373043f9af5066aface8419897a7380c9530447f
5
5
  SHA512:
6
- metadata.gz: 7611bba9948b3d61c54d4e94470a06674795f0f2616b741a2b564cfd7c360378e8e58c4f12d70620c37bf4dcfa13c495b9e71428edeae493f470009c9464fce6
7
- data.tar.gz: 5e3fe11fc58a9240fb2196d6af37aa8dd225f949a3a6c7adee2175c9e460116a51d34889f5ec283a1c57f0df2bb9c8170492bff7d8dcd2f9d4ae05653bbfa07e
6
+ metadata.gz: e19c86bf6ed7ac3401d801d9b982915229472e518d35286d63d6d2ceef7904c8d8c86db765a73d60788a7c269214386d799297497abcac2b54f52fd49042c54f
7
+ data.tar.gz: 01aebf2525adcbc277555f918eec2757514b4de0cc945ccaec22e21a97ca55af5d5ad7745eac2121b27ede140e44ed1f1889d1bc016876394beee2f4864f8165
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.7
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.6
1
+ 3.0.6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.2.2] - 2023-08-07
2
+
3
+ - Changed the log levels for API logging to debug
4
+ - Widened the possible transitive dependencies
5
+
6
+ ## [1.2.1] - 2022-11-21
7
+
8
+ - Minor bug fixes (Chris Spalding)
9
+
1
10
  ## [1.2.0] - 2022-10-14
2
11
 
3
12
  - Fixing polling client for server eval
data/Gemfile CHANGED
@@ -13,9 +13,9 @@ gem "rubocop", "~> 1.21"
13
13
 
14
14
  gem "simplecov", "~> 0.21"
15
15
 
16
- gem "concurrent-ruby", "~> 1.1.10"
16
+ gem "concurrent-ruby", "~> 1.1"
17
17
 
18
- gem "faraday", "~> 2.3"
18
+ gem "faraday", "~> 2"
19
19
 
20
20
  gem "murmurhash3", "~> 0.1.6"
21
21
 
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- featurehub-sdk (1.2.0)
5
- concurrent-ruby (~> 1.1.10)
6
- faraday (~> 2.3)
4
+ featurehub-sdk (1.2.3)
5
+ concurrent-ruby (~> 1.1)
6
+ faraday (~> 2)
7
7
  ld-eventsource (~> 2.2.0)
8
8
  murmurhash3 (~> 0.1.6)
9
9
  sem_version (~> 2.0.0)
@@ -92,8 +92,8 @@ PLATFORMS
92
92
  ruby
93
93
 
94
94
  DEPENDENCIES
95
- concurrent-ruby (~> 1.1.10)
96
- faraday (~> 2.3)
95
+ concurrent-ruby (~> 1.1)
96
+ faraday (~> 2)
97
97
  featurehub-sdk!
98
98
  ld-eventsource (~> 2.2.0)
99
99
  murmurhash3 (~> 0.1.6)
data/featurehub-sdk.iml CHANGED
@@ -3,63 +3,67 @@
3
3
  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
4
  <exclude-output />
5
5
  <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="jdk" jdkName="rbenv: 2.7.6" jdkType="RUBY_SDK" />
6
+ <orderEntry type="jdk" jdkName="rbenv: 3.0.6" jdkType="RUBY_SDK" />
7
7
  <orderEntry type="sourceFolder" forTests="false" />
8
- <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.0, rbenv: 2.7.6) [gem]" level="application" />
9
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 2.7.6) [gem]" level="application" />
10
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, rbenv: 2.7.6) [gem]" level="application" />
11
- <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, rbenv: 2.7.6) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, rbenv: 2.7.6) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, rbenv: 2.7.6) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20190701, rbenv: 2.7.6) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="faraday (v2.3.0, rbenv: 2.7.6) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v2.0.3, rbenv: 2.7.6) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, rbenv: 2.7.6) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="ffi-compiler (v1.0.1, rbenv: 2.7.6) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="http (v5.0.4, rbenv: 2.7.6) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.5, rbenv: 2.7.6) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="http-form_data (v2.3.0, rbenv: 2.7.6) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="ld-eventsource (v2.2.0, rbenv: 2.7.6) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="llhttp-ffi (v0.4.0, rbenv: 2.7.6) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="murmurhash3 (v0.1.6, rbenv: 2.7.6) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, rbenv: 2.7.6) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="parser (v3.1.2.0, rbenv: 2.7.6) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="public_suffix (v4.0.7, rbenv: 2.7.6) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, rbenv: 2.7.6) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, rbenv: 2.7.6) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.5.0, rbenv: 2.7.6) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, rbenv: 2.7.6) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.11.0, rbenv: 2.7.6) [gem]" level="application" />
33
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.11.0, rbenv: 2.7.6) [gem]" level="application" />
34
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.11.0, rbenv: 2.7.6) [gem]" level="application" />
35
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.11.1, rbenv: 2.7.6) [gem]" level="application" />
36
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.11.0, rbenv: 2.7.6) [gem]" level="application" />
37
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.30.1, rbenv: 2.7.6) [gem]" level="application" />
38
- <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.18.0, rbenv: 2.7.6) [gem]" level="application" />
39
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, rbenv: 2.7.6) [gem]" level="application" />
40
- <orderEntry type="library" scope="PROVIDED" name="ruby2_keywords (v0.0.5, rbenv: 2.7.6) [gem]" level="application" />
41
- <orderEntry type="library" scope="PROVIDED" name="sem_version (v2.0.1, rbenv: 2.7.6) [gem]" level="application" />
42
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.21.2, rbenv: 2.7.6) [gem]" level="application" />
43
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.3, rbenv: 2.7.6) [gem]" level="application" />
44
- <orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, rbenv: 2.7.6) [gem]" level="application" />
45
- <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 2.7.6) [gem]" level="application" />
46
- <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.8.2, rbenv: 2.7.6) [gem]" level="application" />
47
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, rbenv: 2.7.6) [gem]" level="application" />
8
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.0, rbenv: 3.0.6) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 3.0.6) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, rbenv: 3.0.6) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, rbenv: 3.0.6) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, rbenv: 3.0.6) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20190701, rbenv: 3.0.6) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="faraday (v2.3.0, rbenv: 3.0.6) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v2.0.3, rbenv: 3.0.6) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, rbenv: 3.0.6) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="ffi-compiler (v1.0.1, rbenv: 3.0.6) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="http (v5.0.4, rbenv: 3.0.6) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.5, rbenv: 3.0.6) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="http-form_data (v2.3.0, rbenv: 3.0.6) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="ld-eventsource (v2.2.0, rbenv: 3.0.6) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="llhttp-ffi (v0.4.0, rbenv: 3.0.6) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="murmurhash3 (v0.1.6, rbenv: 3.0.6) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, rbenv: 3.0.6) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.1.2.0, rbenv: 3.0.6) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="public_suffix (v4.0.7, rbenv: 3.0.6) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, rbenv: 3.0.6) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, rbenv: 3.0.6) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.5.0, rbenv: 3.0.6) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, rbenv: 3.0.6) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.11.0, rbenv: 3.0.6) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.11.0, rbenv: 3.0.6) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.11.0, rbenv: 3.0.6) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.11.1, rbenv: 3.0.6) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.11.0, rbenv: 3.0.6) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.30.1, rbenv: 3.0.6) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.18.0, rbenv: 3.0.6) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, rbenv: 3.0.6) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="ruby2_keywords (v0.0.5, rbenv: 3.0.6) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="sem_version (v2.0.1, rbenv: 3.0.6) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.21.2, rbenv: 3.0.6) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.3, rbenv: 3.0.6) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, rbenv: 3.0.6) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 3.0.6) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.8.2, rbenv: 3.0.6) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, rbenv: 3.0.6) [gem]" level="application" />
48
47
  </component>
49
48
  <component name="RakeTasksCache">
50
49
  <option name="myRootTask">
51
50
  <RakeTaskImpl id="rake">
52
51
  <subtasks>
53
- <RakeTaskImpl description="Build featurehub-sdk-0.0.1.gem into the pkg directory" fullCommand="build" id="build" />
52
+ <RakeTaskImpl description="Build featurehub-sdk-1.2.3.gem into the pkg directory" fullCommand="build" id="build" />
53
+ <RakeTaskImpl id="build">
54
+ <subtasks>
55
+ <RakeTaskImpl description="Generate SHA512 checksum if featurehub-sdk-1.2.3.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
56
+ </subtasks>
57
+ </RakeTaskImpl>
54
58
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
55
59
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
56
- <RakeTaskImpl description="Build and install featurehub-sdk-0.0.1.gem into system gems" fullCommand="install" id="install" />
60
+ <RakeTaskImpl description="Build and install featurehub-sdk-1.2.3.gem into system gems" fullCommand="install" id="install" />
57
61
  <RakeTaskImpl id="install">
58
62
  <subtasks>
59
- <RakeTaskImpl description="Build and install featurehub-sdk-0.0.1.gem into system gems without network access" fullCommand="install:local" id="local" />
63
+ <RakeTaskImpl description="Build and install featurehub-sdk-1.2.3.gem into system gems without network access" fullCommand="install:local" id="local" />
60
64
  </subtasks>
61
65
  </RakeTaskImpl>
62
- <RakeTaskImpl description="Create tag v0.0.1 and build and push featurehub-sdk-0.0.1.gem to https://github.com/featurehub-io/featurehub-ruby-sdk" fullCommand="release[remote]" id="release[remote]" />
66
+ <RakeTaskImpl description="Create tag v1.2.3 and build and push featurehub-sdk-1.2.3.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
63
67
  <RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
64
68
  <RakeTaskImpl id="rubocop">
65
69
  <subtasks>
@@ -73,7 +73,7 @@ module FeatureHub
73
73
  def poll_with_interval
74
74
  return if @cancel || !@task.nil? || @stopped
75
75
 
76
- @logger.info("starting polling for #{determine_request_url}")
76
+ @logger.debug("starting polling for #{determine_request_url}")
77
77
  @task = Concurrent::TimerTask.new(execution_interval: @interval, run_now: false) do
78
78
  get_updates
79
79
  end
@@ -58,7 +58,7 @@ module FeatureHub
58
58
  end
59
59
 
60
60
  def start_streaming
61
- @logger.info("streaming from #{@url}")
61
+ @logger.debug("streaming from #{@url}")
62
62
  # we can get an error before returning the new() function and get a race condition on the close
63
63
  must_close = false
64
64
  @sse_client = SSE::Client.new(@url) do |client|
@@ -3,7 +3,7 @@
3
3
  module FeatureHub
4
4
  # already documented elsewhere
5
5
  module Sdk
6
- VERSION = "1.2.1"
6
+ VERSION = "1.2.2"
7
7
 
8
8
  def default_logger
9
9
  log = ::Logger.new($stdout)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featurehub-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Vowles
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-11-21 00:00:00.000000000 Z
12
+ date: 2023-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.10
20
+ version: '1.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.10
27
+ version: '1.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.3'
34
+ version: '2'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '2.3'
41
+ version: '2'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: ld-eventsource
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -132,14 +132,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- version: 2.6.0
135
+ version: 2.7.6
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.1.6
142
+ rubygems_version: 3.2.33
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: FeatureHub Ruby SDK