sift 4.0.0 → 4.1.0

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
- SHA1:
3
- metadata.gz: 57a679adbe12a556895633060cde177cf89fcb06
4
- data.tar.gz: d3eff77b83c2ba5696c4c391f82d592a8df7443a
2
+ SHA256:
3
+ metadata.gz: 4b20b0230176dc6340e5ea4939e51b6e1ed2642e788c25fa2f7f4e829b5c61ff
4
+ data.tar.gz: 28932a0fddd658fe868c6c6b6b408ab1d8529060cfbe0766ffeef76e2398e43e
5
5
  SHA512:
6
- metadata.gz: 5809b998556c975ff30faceacf5468a812e815dead3e836640343fe681c1d612192a9a26615f8a0c35c4c13a3cb9b232f3aff1bbf7649d6b3e6c8250cd7f2896
7
- data.tar.gz: 8b941c79e41784d1452f8ae4fe8b1052f7f32ed3954f8afb16b16f3e7346a0bf6e5cfc71f6080c6475ff75a0fce78172a58e4f8ece8f73ab47385ffd57d3001a
6
+ metadata.gz: b905f6002c28777a4cf82cc6b0e59b2c79c300fdf1f4b4b3bf8b0bff8691946325d83794da812d5abc4b344b5e35d24f72b720aae1ddc0783b7e935117f35588
7
+ data.tar.gz: e161d32f1c210f3fc4562b985537ceb6e2f304330a3fb14ddbce142cd105b0a0c567f6e177dd3c29c99e6c50133e3a7eb40c5ba922071914d9cf56b540c8f427
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ === 4.1.0 2022-06-22
2
+ - Add return_route_info query param
3
+
1
4
  === 4.0.0 2019-05-15
2
5
  - Breaking change: Propagate exception in Client.track() – previously we were silently swallowing exceptions and now we are bubbling them up. You will need to add exception handling code.
3
6
  - Fix URL encoding
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
- # Sift Ruby bindings
2
-
1
+ # sift-ruby
3
2
  [![CircleCI](https://circleci.com/gh/SiftScience/sift-ruby.svg?style=svg)](https://circleci.com/gh/SiftScience/sift-ruby)
4
3
 
4
+ The official Ruby bindings for the latest version (v205) of the [Sift API](https://sift.com/developers/docs/java/apis-overview).
5
+
5
6
  ## Requirements
6
7
 
7
8
  * Ruby 2.0.0 or above.
data/lib/sift/client.rb CHANGED
@@ -216,6 +216,7 @@ module Sift
216
216
  return_score = opts[:return_score]
217
217
  return_action = opts[:return_action]
218
218
  return_workflow_status = opts[:return_workflow_status]
219
+ return_route_info = opts[:return_route_info]
219
220
  force_workflow_run = opts[:force_workflow_run]
220
221
  abuse_types = opts[:abuse_types]
221
222
 
@@ -227,6 +228,7 @@ module Sift
227
228
  query["return_score"] = "true" if return_score
228
229
  query["return_action"] = "true" if return_action
229
230
  query["return_workflow_status"] = "true" if return_workflow_status
231
+ query["return_route_info"] = "true" if return_route_info
230
232
  query["force_workflow_run"] = "true" if force_workflow_run
231
233
  query["abuse_types"] = abuse_types.join(",") if abuse_types
232
234
 
data/lib/sift/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Sift
2
- VERSION = "4.0.0"
2
+ VERSION = "4.1.0"
3
3
  API_VERSION = "205"
4
4
  end
@@ -469,7 +469,7 @@ describe Sift::Client do
469
469
  }
470
470
 
471
471
  stub_request(:post,
472
- "https://api.siftscience.com/v205/events?return_workflow_status=true&abuse_types=legacy,payment_abuse")
472
+ "https://api.siftscience.com/v205/events?return_workflow_status=true&return_route_info=true&abuse_types=legacy,payment_abuse")
473
473
  .to_return(:status => 200, :body => MultiJson.dump(response_json),
474
474
  :headers => {"content-type"=>"application/json; charset=UTF-8",
475
475
  "content-length"=> "74"})
@@ -478,7 +478,8 @@ describe Sift::Client do
478
478
  properties = valid_transaction_properties
479
479
  response = Sift::Client.new(:api_key => api_key)
480
480
  .track(event, properties,
481
- :return_workflow_status => true, :abuse_types => ['legacy', 'payment_abuse'])
481
+ :return_workflow_status => true, :return_route_info => true,
482
+ :abuse_types => ['legacy', 'payment_abuse'])
482
483
  expect(response.ok?).to eq(true)
483
484
  expect(response.api_status).to eq(0)
484
485
  expect(response.api_error_message).to eq("OK")
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sift
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Sadaghiani
8
8
  - Yoav Schatzberg
9
9
  - Jacob Burnim
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-15 00:00:00.000000000 Z
13
+ date: 2022-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -156,7 +156,7 @@ files:
156
156
  homepage: http://siftscience.com
157
157
  licenses: []
158
158
  metadata: {}
159
- post_install_message:
159
+ post_install_message:
160
160
  rdoc_options: []
161
161
  require_paths:
162
162
  - lib
@@ -171,9 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubyforge_project: sift
175
- rubygems_version: 2.5.2.3
176
- signing_key:
174
+ rubygems_version: 3.1.4
175
+ signing_key:
177
176
  specification_version: 4
178
177
  summary: Sift Science Ruby API Gem
179
178
  test_files: