persona-ruby 0.1.2 → 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/.rubocop.yml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +22 -25
- data/lib/persona-ruby/actions/inquiries.rb +2 -2
- data/lib/persona-ruby/connection.rb +1 -1
- data/lib/persona-ruby/error.rb +1 -1
- data/lib/persona-ruby/version.rb +1 -1
- data/persona-ruby-0.1.3.gem +0 -0
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204ebc23f6ace3484b14d77d85e7954b09dadbfaf09a964ab69ebd201e2db6e7
|
4
|
+
data.tar.gz: b38e4c03268977aa80aee498935699483812caba74abe2141174d9dabe724414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41c7a0334cde2cee4c732353c4e3a9b5dd8b416f7c0dafe18858ce51a67d549aa00f018d61e029fc750792014072c5d0fa7e0412f3548bbc5300d95d1e1d1b4b
|
7
|
+
data.tar.gz: 299c50fa79a6565111e7d1612baa473ffa02bf22d510fdaa49b50be8bd1fa6c0b0aac6d2237b0274d8c20c180252e3cdfb53d37e2ebfd39fe1c6b99e326bb659
|
data/.rubocop.yml
CHANGED
@@ -4,7 +4,7 @@ require:
|
|
4
4
|
AllCops:
|
5
5
|
NewCops: enable
|
6
6
|
SuggestExtensions: false
|
7
|
-
TargetRubyVersion:
|
7
|
+
TargetRubyVersion: 3.3.3
|
8
8
|
|
9
9
|
Metrics/BlockLength:
|
10
10
|
Enabled: true
|
@@ -19,15 +19,15 @@ Naming/FileName:
|
|
19
19
|
RSpec/ExampleLength:
|
20
20
|
Enabled: false
|
21
21
|
|
22
|
-
RSpec/FilePath:
|
23
|
-
Enabled: false
|
24
|
-
|
25
22
|
RSpec/InstanceVariable:
|
26
23
|
Enabled: false
|
27
24
|
|
28
25
|
RSpec/MultipleMemoizedHelpers:
|
29
26
|
Enabled: false
|
30
27
|
|
28
|
+
RSpec/SpecFilePathFormat:
|
29
|
+
Enabled: false
|
30
|
+
|
31
31
|
RSpec/SubjectStub:
|
32
32
|
Enabled: false
|
33
33
|
|
data/Gemfile
CHANGED
@@ -8,7 +8,7 @@ group :development, :test do
|
|
8
8
|
gem "rake", "~> 13.0.6"
|
9
9
|
gem "rspec", "~> 3.12.0"
|
10
10
|
gem "rspec_junit_formatter", "~> 0.6.0"
|
11
|
-
gem "rubocop", "~> 1.
|
12
|
-
gem "rubocop-rspec", "~>
|
11
|
+
gem "rubocop", "~> 1.69.2"
|
12
|
+
gem "rubocop-rspec", "~> 3.0.4"
|
13
13
|
gem "webmock", "~> 3.18.1"
|
14
14
|
end
|
data/Gemfile.lock
CHANGED
@@ -14,19 +14,20 @@ GEM
|
|
14
14
|
faraday-net_http (3.1.0)
|
15
15
|
net-http
|
16
16
|
hashdiff (1.1.0)
|
17
|
-
json (2.
|
17
|
+
json (2.9.1)
|
18
|
+
language_server-protocol (3.17.0.3)
|
18
19
|
net-http (0.4.1)
|
19
20
|
uri
|
20
|
-
parallel (1.
|
21
|
-
parser (3.3.0
|
21
|
+
parallel (1.26.3)
|
22
|
+
parser (3.3.6.0)
|
22
23
|
ast (~> 2.4.1)
|
23
24
|
racc
|
24
25
|
public_suffix (5.0.5)
|
25
|
-
racc (1.
|
26
|
+
racc (1.8.1)
|
26
27
|
rainbow (3.1.1)
|
27
28
|
rake (13.0.6)
|
28
|
-
regexp_parser (2.
|
29
|
-
rexml (3.
|
29
|
+
regexp_parser (2.10.0)
|
30
|
+
rexml (3.3.8)
|
30
31
|
rspec (3.12.0)
|
31
32
|
rspec-core (~> 3.12.0)
|
32
33
|
rspec-expectations (~> 3.12.0)
|
@@ -42,28 +43,24 @@ GEM
|
|
42
43
|
rspec-support (3.12.2)
|
43
44
|
rspec_junit_formatter (0.6.0)
|
44
45
|
rspec-core (>= 2, < 4, != 2.12.0)
|
45
|
-
rubocop (1.
|
46
|
+
rubocop (1.69.2)
|
46
47
|
json (~> 2.3)
|
48
|
+
language_server-protocol (>= 3.17.0)
|
47
49
|
parallel (~> 1.10)
|
48
|
-
parser (>= 3.
|
50
|
+
parser (>= 3.3.0.2)
|
49
51
|
rainbow (>= 2.2.2, < 4.0)
|
50
|
-
regexp_parser (>=
|
51
|
-
|
52
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
52
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
53
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
53
54
|
ruby-progressbar (~> 1.7)
|
54
|
-
unicode-display_width (>= 2.4.0, <
|
55
|
-
rubocop-ast (1.
|
56
|
-
parser (>= 3.3.0
|
57
|
-
rubocop-
|
58
|
-
rubocop (~> 1.
|
59
|
-
rubocop-factory_bot (2.25.1)
|
60
|
-
rubocop (~> 1.41)
|
61
|
-
rubocop-rspec (2.22.0)
|
62
|
-
rubocop (~> 1.33)
|
63
|
-
rubocop-capybara (~> 2.17)
|
64
|
-
rubocop-factory_bot (~> 2.22)
|
55
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
56
|
+
rubocop-ast (1.37.0)
|
57
|
+
parser (>= 3.3.1.0)
|
58
|
+
rubocop-rspec (3.0.4)
|
59
|
+
rubocop (~> 1.61)
|
65
60
|
ruby-progressbar (1.13.0)
|
66
|
-
unicode-display_width (
|
61
|
+
unicode-display_width (3.1.3)
|
62
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
63
|
+
unicode-emoji (4.0.4)
|
67
64
|
uri (0.13.0)
|
68
65
|
webmock (3.18.1)
|
69
66
|
addressable (>= 2.8.0)
|
@@ -79,8 +76,8 @@ DEPENDENCIES
|
|
79
76
|
rake (~> 13.0.6)
|
80
77
|
rspec (~> 3.12.0)
|
81
78
|
rspec_junit_formatter (~> 0.6.0)
|
82
|
-
rubocop (~> 1.
|
83
|
-
rubocop-rspec (~>
|
79
|
+
rubocop (~> 1.69.2)
|
80
|
+
rubocop-rspec (~> 3.0.4)
|
84
81
|
webmock (~> 3.18.1)
|
85
82
|
|
86
83
|
BUNDLED WITH
|
@@ -12,11 +12,11 @@ module Persona
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def inquiry_create(attributes = {})
|
15
|
-
connection.post("inquiries", {data: { attributes:}})
|
15
|
+
connection.post("inquiries", { data: { attributes: } })
|
16
16
|
end
|
17
17
|
|
18
18
|
def inquiry_update(id, attributes = {})
|
19
|
-
connection.patch("inquiries/#{id}", {data: {attributes:}})
|
19
|
+
connection.patch("inquiries/#{id}", { data: { attributes: } })
|
20
20
|
end
|
21
21
|
|
22
22
|
def inquiry_delete(id)
|
@@ -5,7 +5,7 @@ require "faraday"
|
|
5
5
|
module Persona
|
6
6
|
class Connection
|
7
7
|
def initialize(url, auth_token)
|
8
|
-
@connection = Faraday.new(url:
|
8
|
+
@connection = Faraday.new(url:) do |builder|
|
9
9
|
builder.request :json
|
10
10
|
builder.headers[:accept] = "application/json"
|
11
11
|
builder.response :json
|
data/lib/persona-ruby/error.rb
CHANGED
@@ -4,7 +4,7 @@ module Persona
|
|
4
4
|
class Error < StandardError
|
5
5
|
attr_reader :response
|
6
6
|
|
7
|
-
def self.from_response(response)
|
7
|
+
def self.from_response(response) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength
|
8
8
|
klass =
|
9
9
|
case response.status
|
10
10
|
when 400 then BadRequest
|
data/lib/persona-ruby/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: persona-ruby
|
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
|
- Ravi Trivedi
|
@@ -9,12 +9,15 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '2.0'
|
18
21
|
- - ">="
|
19
22
|
- !ruby/object:Gem::Version
|
20
23
|
version: 2.0.1
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '2.0'
|
25
31
|
- - ">="
|
26
32
|
- !ruby/object:Gem::Version
|
27
33
|
version: 2.0.1
|
@@ -47,12 +53,12 @@ files:
|
|
47
53
|
- lib/persona-ruby/connection.rb
|
48
54
|
- lib/persona-ruby/error.rb
|
49
55
|
- lib/persona-ruby/version.rb
|
56
|
+
- persona-ruby-0.1.3.gem
|
50
57
|
homepage: https://github.com/riipen/persona-ruby
|
51
58
|
licenses:
|
52
59
|
- MIT
|
53
60
|
metadata:
|
54
61
|
homepage_uri: https://github.com/riipen/persona-ruby
|
55
|
-
source_code_uri: https://github.com/riipen/persona-ruby
|
56
62
|
changelog_uri: https://github.com/riipen/persona-ruby/blob/master/CHANGELOG.md
|
57
63
|
rubygems_mfa_required: 'true'
|
58
64
|
post_install_message:
|
@@ -63,14 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
69
|
requirements:
|
64
70
|
- - ">="
|
65
71
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
72
|
+
version: 3.3.0
|
67
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
74
|
requirements:
|
69
75
|
- - ">="
|
70
76
|
- !ruby/object:Gem::Version
|
71
77
|
version: '0'
|
72
78
|
requirements: []
|
73
|
-
rubygems_version: 3.5.
|
79
|
+
rubygems_version: 3.5.11
|
74
80
|
signing_key:
|
75
81
|
specification_version: 4
|
76
82
|
summary: An API client for Persona in ruby.
|