persona-ruby 0.1.2 → 0.1.3

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
2
  SHA256:
3
- metadata.gz: 5cc7f275fc525eeb0e36145989d91d6aabfb6b7900b95e98093e534d505ded11
4
- data.tar.gz: 8525817da267ab069a01a1e19767e1937a0d3624173b845ef7b6d4df59292674
3
+ metadata.gz: 1590bdfbf51bbcfd8f40f2643b40de92c65c39c853352082beb9c0b7f07af092
4
+ data.tar.gz: 3daade3dbc6bab7fee1e7effe55eeff3fb6801fd84a3c743e898fa7503d6fc21
5
5
  SHA512:
6
- metadata.gz: 748fb5eef608c43ce65afae5b5ec840ecff58833793dc2b3054662cdfa2079f6560d72ddeb460ef1a2018d8cd44ebb0beb7422308f8d7ea4e7c9e3715c917083
7
- data.tar.gz: 8cc8a748f4b55b614ea6df49a2bac17f080dca07e0075d18de36a118866be786f80aa47b06194eed45fafe31bd8c6ab336261d106ae355ddca8bcc64649c0f72
6
+ metadata.gz: 8f2d61f1a579d3dcd2118bd0e0285f11a7d44fd4ac15938a954b3ddd495a61c52d93b16d12865f9911617a475f217b0f629a983e05a097bd19636cdf1c65bc53
7
+ data.tar.gz: 8685bb614dd9b4c8e6d282dea2b47d4f707ec00eb97ddc6569d01e843da0c6b376324f47fdfcded770d4229170d86ca1be0440f06fad452dfd0ecad71ba42166
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ require:
4
4
  AllCops:
5
5
  NewCops: enable
6
6
  SuggestExtensions: false
7
- TargetRubyVersion: 2.6
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.52.1"
12
- gem "rubocop-rspec", "~> 2.22.0"
11
+ gem "rubocop", "~> 1.65.1"
12
+ gem "rubocop-rspec", "~> 3.0.4"
13
13
  gem "webmock", "~> 3.18.1"
14
14
  end
data/Gemfile.lock CHANGED
@@ -15,18 +15,19 @@ GEM
15
15
  net-http
16
16
  hashdiff (1.1.0)
17
17
  json (2.7.2)
18
+ language_server-protocol (3.17.0.3)
18
19
  net-http (0.4.1)
19
20
  uri
20
- parallel (1.24.0)
21
- parser (3.3.0.5)
21
+ parallel (1.26.2)
22
+ parser (3.3.4.2)
22
23
  ast (~> 2.4.1)
23
24
  racc
24
25
  public_suffix (5.0.5)
25
- racc (1.7.3)
26
+ racc (1.8.1)
26
27
  rainbow (3.1.1)
27
28
  rake (13.0.6)
28
- regexp_parser (2.9.0)
29
- rexml (3.2.6)
29
+ regexp_parser (2.9.2)
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,26 +43,21 @@ 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.52.1)
46
+ rubocop (1.65.1)
46
47
  json (~> 2.3)
48
+ language_server-protocol (>= 3.17.0)
47
49
  parallel (~> 1.10)
48
- parser (>= 3.2.2.3)
50
+ parser (>= 3.3.0.2)
49
51
  rainbow (>= 2.2.2, < 4.0)
50
- regexp_parser (>= 1.8, < 3.0)
52
+ regexp_parser (>= 2.4, < 3.0)
51
53
  rexml (>= 3.2.5, < 4.0)
52
- rubocop-ast (>= 1.28.0, < 2.0)
54
+ rubocop-ast (>= 1.31.1, < 2.0)
53
55
  ruby-progressbar (~> 1.7)
54
56
  unicode-display_width (>= 2.4.0, < 3.0)
55
- rubocop-ast (1.31.2)
56
- parser (>= 3.3.0.4)
57
- rubocop-capybara (2.20.0)
58
- rubocop (~> 1.41)
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)
57
+ rubocop-ast (1.32.0)
58
+ parser (>= 3.3.1.0)
59
+ rubocop-rspec (3.0.4)
60
+ rubocop (~> 1.61)
65
61
  ruby-progressbar (1.13.0)
66
62
  unicode-display_width (2.5.0)
67
63
  uri (0.13.0)
@@ -79,8 +75,8 @@ DEPENDENCIES
79
75
  rake (~> 13.0.6)
80
76
  rspec (~> 3.12.0)
81
77
  rspec_junit_formatter (~> 0.6.0)
82
- rubocop (~> 1.52.1)
83
- rubocop-rspec (~> 2.22.0)
78
+ rubocop (~> 1.65.1)
79
+ rubocop-rspec (~> 3.0.4)
84
80
  webmock (~> 3.18.1)
85
81
 
86
82
  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: url) do |builder|
8
+ @connection = Faraday.new(url:) do |builder|
9
9
  builder.request :json
10
10
  builder.headers[:accept] = "application/json"
11
11
  builder.response :json
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Persona
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Trivedi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-04-24 00:00:00.000000000 Z
12
+ date: 2024-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -63,14 +63,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 2.6.0
66
+ version: 3.3.0
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.5.3
73
+ rubygems_version: 3.5.11
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: An API client for Persona in ruby.