patch_retention 0.1.3 → 0.1.4
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/patch_retention/contacts/find_or_create.rb +0 -11
- data/lib/patch_retention/version.rb +1 -1
- metadata +6 -7
- data/patch_retention.gemspec +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74769f12f495c1ff67df371af6f479ed920b3ea5482ee632121335b02cef81a4
|
4
|
+
data.tar.gz: 692a99729ed3badf1bec6be626e869a8ce34653ff5800181532d18ac54454d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56a950a4024d1ac2830f990aefe7a4c2c80b411b4fafb9c72b1681bfb11b31c6f329b833d60885ffdf7bd060f535de11d790e3b97deb22730647f6157af1445
|
7
|
+
data.tar.gz: 95ba13ef24688739d163e426e5dae899211b22cd710bf121a2b3b8b81aeee632cabda9a58d0c72c9762eb87d8e4268a3f10c306e7eb6d9ea0404f68e18b36d38
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
- Fix `delete` method to return true when the response is 204
|
9
9
|
- Allow users to pass a config object for any request, and use the config object for the connection
|
10
10
|
|
11
|
+
## [0.1.4] - YYYY-MM-DD
|
12
|
+
|
13
|
+
- Enhanced the `PatchRetention::Contacts::FindOrCreate` service to accept a flexible set of contact parameters, removing the previous restriction on allowed keys.
|
14
|
+
|
11
15
|
## [0.1.0] - 2023-12-03
|
12
16
|
|
13
17
|
- Initial release
|
@@ -4,18 +4,7 @@ module PatchRetention::Contacts::FindOrCreate
|
|
4
4
|
include PatchRetention::Util
|
5
5
|
extend self
|
6
6
|
|
7
|
-
ALLOWED_CONTACT_PARAMS = %i[
|
8
|
-
first_name
|
9
|
-
last_name
|
10
|
-
email
|
11
|
-
phone
|
12
|
-
sms_on
|
13
|
-
email_on
|
14
|
-
].freeze
|
15
|
-
|
16
7
|
def call(contact_params:, query_params:, config: nil)
|
17
|
-
contact_params = contact_params.slice(*ALLOWED_CONTACT_PARAMS)
|
18
|
-
|
19
8
|
raise_error_if_present do
|
20
9
|
PatchRetention.connection(config).patch(PatchRetention::Contacts::API_PATH) do |req|
|
21
10
|
req.params["search"] = build_search_string(query_params)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patch_retention
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Playbypoint
|
8
8
|
- Gerardo Ortega
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Patch Retention API wrapper.
|
15
15
|
email:
|
@@ -41,7 +41,6 @@ files:
|
|
41
41
|
- lib/patch_retention/events/find.rb
|
42
42
|
- lib/patch_retention/util.rb
|
43
43
|
- lib/patch_retention/version.rb
|
44
|
-
- patch_retention.gemspec
|
45
44
|
- sig/patch_retention.rbs
|
46
45
|
homepage: https://playbypoint.com
|
47
46
|
licenses:
|
@@ -50,7 +49,7 @@ metadata:
|
|
50
49
|
homepage_uri: https://playbypoint.com
|
51
50
|
source_code_uri: https://playbypoint.com
|
52
51
|
changelog_uri: https://playbypoint.com
|
53
|
-
post_install_message:
|
52
|
+
post_install_message:
|
54
53
|
rdoc_options: []
|
55
54
|
require_paths:
|
56
55
|
- lib
|
@@ -65,8 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
64
|
- !ruby/object:Gem::Version
|
66
65
|
version: '0'
|
67
66
|
requirements: []
|
68
|
-
rubygems_version: 3.1
|
69
|
-
signing_key:
|
67
|
+
rubygems_version: 3.0.3.1
|
68
|
+
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: Patch Retention API wrapper.
|
72
71
|
test_files: []
|
data/patch_retention.gemspec
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/patch_retention/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "patch_retention"
|
7
|
-
spec.version = PatchRetention::VERSION
|
8
|
-
spec.authors = ["Playbypoint", "Gerardo Ortega"]
|
9
|
-
spec.email = ["webmaster@playbypoint.com", "g3ortega@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Patch Retention API wrapper."
|
12
|
-
spec.description = "Patch Retention API wrapper."
|
13
|
-
spec.homepage = "https://playbypoint.com"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.6.0"
|
16
|
-
|
17
|
-
# spec.metadata["allowed_push_host"] = "Set to your gem server 'https://example.com'"
|
18
|
-
|
19
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
-
spec.metadata["source_code_uri"] = "https://playbypoint.com"
|
21
|
-
spec.metadata["changelog_uri"] = "https://playbypoint.com"
|
22
|
-
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
-
spec.files = Dir.chdir(__dir__) do
|
26
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
28
|
-
end
|
29
|
-
end
|
30
|
-
spec.bindir = "exe"
|
31
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
-
spec.require_paths = ["lib"]
|
33
|
-
|
34
|
-
# Uncomment to register a new dependency of your gem
|
35
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
36
|
-
|
37
|
-
# For more information and examples about making a new gem, check out our
|
38
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
39
|
-
end
|