statsig 1.8.3 → 1.8.4.beta.pre.1

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: 81ace4d8446d73fce872d9774fc839eee17534d68c0b75054905f4a12a305504
4
- data.tar.gz: 635e3e5ccf2d6e631464b43371927614e8aeab7e087ccb62e90b3197778caf6d
3
+ metadata.gz: 9e0d1d1530c323ccc58ea83da7a0c305692b51defa32071ee3f842d1519bb16b
4
+ data.tar.gz: e0d5018bbfd6f8c3dbe4fc099039d729d270d1ea5df8d5f59dbb72e56772da30
5
5
  SHA512:
6
- metadata.gz: 0165b65c220e17ff64c36709856d74d6953fe55a1a17ceafdb565da9f2a98c0af0a04b3a709895cea7afbdd47f888dfb1db89de8a0430d058ebed9b40e71a2ae
7
- data.tar.gz: b091e61ef9f4044cd7f10e85c022e13b76c77efb778ec393cfba646044f3f5880dd2d1d7b140479d509eb5cb04c462d4d1057a716da6069bea1a4fc01a6e89d6
6
+ metadata.gz: 9aa5bcf5d281709982ab3c325043cfcea99118e36bf2d82d11fd75995ad4a1e1f8f3e3e1a087652432ae5b6d0f15ee3a1a5deebff6f8d557ede16167edf72250
7
+ data.tar.gz: b1d95b28521991e9a247f181b16ce7652158bf713e230aca0a2c4ebc1752c6a2e317223e50e69caaa2b1b9751d85b7e6db3de5d70e5dc1750ca41009e52ec0a8
data/lib/statsig.rb CHANGED
@@ -40,7 +40,7 @@ module Statsig
40
40
  def self.get_statsig_metadata
41
41
  {
42
42
  'sdkType' => 'ruby-server',
43
- 'sdkVersion' => '1.8.3',
43
+ 'sdkVersion' => '1.8.4.beta-1`',
44
44
  }
45
45
  end
46
46
 
@@ -44,10 +44,14 @@ module Statsig
44
44
  end
45
45
 
46
46
  def periodic_flush
47
+ puts "Statsig:: starting a thread"
47
48
  Thread.new do
48
49
  loop do
50
+ puts "Statsig:: beginning to sleep for 60 seconds"
49
51
  sleep 60
52
+ puts "Statsig:: finished sleeping"
50
53
  flush
54
+ puts "Statsig:: flushed"
51
55
  end
52
56
  end
53
57
  end
@@ -59,6 +63,7 @@ module Statsig
59
63
  if @events.length == 0
60
64
  return
61
65
  end
66
+ puts "Statsig:: flushing events, count: #{@events.length.to_s}"
62
67
  flush_events = @events.map { |e| e.serialize }
63
68
  @events = []
64
69
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statsig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4.beta.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Statsig, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-13 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,9 +141,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - ">"
145
145
  - !ruby/object:Gem::Version
146
- version: '0'
146
+ version: 1.3.1
147
147
  requirements: []
148
148
  rubygems_version: 3.2.3
149
149
  signing_key: