sqreen 1.24.1 → 1.24.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: 5af6f04955c963eed44fee974e349c98af97865f27106d636a094f57bf2894f1
4
- data.tar.gz: 88ddda4d964661c6f9dd39ad980ee3be46787eb1e9ba31656d7c6ec0d1b60047
3
+ metadata.gz: dea2ca186e8470cf1cec16ca8ab33156c1002d28004c3a68c2296e2ec5d9b7ed
4
+ data.tar.gz: 2722948150517f7f7c29c73fa9f49acac18266e2cc286e70907b8ff91ba535d1
5
5
  SHA512:
6
- metadata.gz: fbbfc447bfb415cfed1c476907387c5d347810985f2b82a10a28c3f836c25fcc863244d164503a7220e0e6f38d598918331c0f802a2465b1f0a3f7407d895c74
7
- data.tar.gz: ba08edf7f68cd16ee70a688a9d9437e41ecbb1f5504750fdd5c791ff3e993f65b80c27f443f44e97e7250d733b25605e7753023dc09367210fc67ca7bcd4e489
6
+ metadata.gz: 1ecf19e0200c0c1d9012f8140996e5c1918be31a9dcca081f302cdf05e818fe5137199489d30486eca18b814e6d98bfeda5efb1ee8103efe08d158fca5f12717
7
+ data.tar.gz: 6f01d3300a326c1504917cfe2e1a25f46020f936a5400d6b347a9a1d1001f616912fb58bffe466539ecb47ef259e233a9cc5652f6da2a1739e5c4cdd5f01949b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.24.2
2
+
3
+ * Fix kwargs for rule callbacks on Ruby 3+
4
+ * Fix properties propagation for custom events
5
+ * Fix Devise key type mismatch for signup
6
+
1
7
  ## 1.24.1
2
8
 
3
9
  * Add Datadog trace keeping through sampling
@@ -112,7 +112,7 @@ module Sqreen
112
112
 
113
113
  flow = catch(Ball.new) do |ball|
114
114
  Timer.new(c.name, &timed_callbacks_proc).measure(ignore: chrono) do
115
- c.call(CallbackCall.new(c, remaining, hooked_call.instance, hooked_call.args_passed), ball)
115
+ c.call(CallbackCall.new(c, remaining, hooked_call.instance, kwargs.empty? ? hooked_call.args_passed : hooked_call.args_passed + [kwargs]), ball)
116
116
  end
117
117
  end
118
118
 
@@ -20,7 +20,7 @@ module Sqreen
20
20
  keys = args[1].class.authentication_keys
21
21
  ip = framework.client_ip
22
22
  category = 'auto-signup'
23
- data = data.select { |k, _| keys.include?(k) }
23
+ data = data.select { |k, _| keys.map(&:to_s).include?(k.to_s) }
24
24
 
25
25
  if data.empty?
26
26
  Sqreen.log.debug { "#{category} from #{ip} but keys empty" }
@@ -197,12 +197,13 @@ module Sqreen
197
197
  # see Sqreen::RequestRecord.processed_sdk_calls
198
198
  def convert_track(call_info)
199
199
  options = call_info[:args][1] || {}
200
+ args = options[:args] || {}
200
201
  Kit::Signals::Specialized::SdkTrackCall.new(
201
202
  signal_name: "sq.sdk.#{call_info[:args][0]}",
202
203
  time: call_info[:time],
203
204
  payload: Kit::Signals::Specialized::SdkTrackCall::Payload.new(
204
- properties: options[:properties],
205
- user_identifiers: options[:user_identifiers]
205
+ properties: args[:properties],
206
+ user_identifiers: args[:user_identifiers]
206
207
  )
207
208
  )
208
209
  end
@@ -4,5 +4,5 @@
4
4
  # Please refer to our terms for more information: https://www.sqreen.com/terms.html
5
5
 
6
6
  module Sqreen
7
- VERSION = '1.24.1'.freeze
7
+ VERSION = '1.24.2'.freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.1
4
+ version: 1.24.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sqreen
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  - !ruby/object:Gem::Version
355
355
  version: '0'
356
356
  requirements: []
357
- rubygems_version: 3.2.16
357
+ rubygems_version: 3.2.26
358
358
  signing_key:
359
359
  specification_version: 4
360
360
  summary: Sqreen Ruby agent