infreemation 0.2.4 → 0.3.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
2
  SHA256:
3
- metadata.gz: 7a289cb99d27ae2f96e40a3a0d2fe42cc8f874e247f942960403e2294e7387ae
4
- data.tar.gz: a40d86773857343de52bf79823fec1e92a0df23077b11cb71b6345a96563723d
3
+ metadata.gz: 643bbef2e3a1447ba1083b90158d542360dc5a5abcb7d3c59759fba65a5dfc9f
4
+ data.tar.gz: 2a820cfa77a1540ec0271b38a7258b71f2649df3778467f01224fd4613e29df4
5
5
  SHA512:
6
- metadata.gz: d5ed1efb21e8c765a6f654b3a20ca3a596c29c9eaec37744c8e11416cf4db5d75733429286c846b65d02f27b30bd767c8a0eef461e04e9d2e7b48910776e574b
7
- data.tar.gz: e0ae45d91370e666901cedc5ad19e67d8dc172aa202a529b448189481c1450cf28a1804ecd9265db24def7d4cd2dc8282f9e6ee0f34a878de932717bbf6b3ea4
6
+ metadata.gz: 711a40510c5be821108fa022f874609814f45eb8fb76ffed329f964bb74b0927aec7cfbccd498cebd8132d7e7346eaa36fc100359fcd5a47ce596ec4b87ac99c
7
+ data.tar.gz: 050ab8f6d4c57c06db106b33c1c4c2f0ffdb60f5b9bec644f236667b3f31f9ccf13f29403a683b0cc6ca3f52cc9f94d37d52374265d94fd9f8b2099e6c6bdeb5
@@ -8,16 +8,15 @@ on:
8
8
  jobs:
9
9
  rspec:
10
10
  name: Ruby ${{ matrix.ruby }}
11
- runs-on: ubuntu-20.04
11
+ runs-on: ubuntu-latest
12
12
 
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
16
  include:
17
- - { ruby: 2.7 }
18
- - { ruby: '3.0' }
19
- - { ruby: 3.1 }
20
17
  - { ruby: 3.2 }
18
+ - { ruby: 3.3 }
19
+ - { ruby: 3.4 }
21
20
 
22
21
  steps:
23
22
  - uses: actions/checkout@v2
@@ -13,7 +13,7 @@ jobs:
13
13
  - name: Set up Ruby
14
14
  uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: 2.7
16
+ ruby-version: 3.2
17
17
 
18
18
  - name: Run RuboCop linter
19
19
  uses: reviewdog/action-rubocop@v2
data/.rubocop.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  ---
2
- require:
2
+ inherit_from: .rubocop_todo.yml
3
+
4
+ plugins:
3
5
  - rubocop-performance
4
6
  - rubocop-rspec
5
7
 
@@ -11,7 +13,7 @@ AllCops:
11
13
  - 'bin/rubocop'
12
14
  NewCops: enable
13
15
  SuggestExtensions: false
14
- TargetRubyVersion: 2.7
16
+ TargetRubyVersion: 3.2
15
17
 
16
18
  Metrics/BlockLength:
17
19
  Exclude:
@@ -20,7 +22,7 @@ Metrics/BlockLength:
20
22
 
21
23
  Layout/LineLength:
22
24
  Max: 80
23
- IgnoredPatterns:
25
+ AllowedPatterns:
24
26
  - '^\s*it\s+.*do$'
25
27
  - '^\s*context\s+.*do$'
26
28
  - '^\s*describe\s+.*do$'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,65 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100 --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.92.3.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ Gemspec/RequireMFA:
12
+ Exclude:
13
+ - 'infreemation.gemspec'
14
+
15
+ # Offense count: 1
16
+ # This cop supports safe autocorrection (--autocorrect).
17
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
18
+ # SupportedStyles: aligned, indented
19
+ Layout/LineEndStringConcatenationIndentation:
20
+ Exclude:
21
+ - 'infreemation.gemspec'
22
+
23
+ # Offense count: 1
24
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
25
+ # AllowedMethods: call
26
+ # WaywardPredicates: infinite?, nonzero?
27
+ Naming/PredicateMethod:
28
+ Exclude:
29
+ - 'lib/infreemation/request.rb'
30
+
31
+ # Offense count: 1
32
+ # This cop supports unsafe autocorrection (--autocorrect-all).
33
+ RSpec/BeEq:
34
+ Exclude:
35
+ - 'spec/infreemation/request_spec.rb'
36
+
37
+ # Offense count: 1
38
+ # This cop supports safe autocorrection (--autocorrect).
39
+ # Configuration parameters: EnforcedStyle.
40
+ # SupportedStyles: be, be_nil
41
+ RSpec/BeNil:
42
+ Exclude:
43
+ - 'spec/infreemation_spec.rb'
44
+
45
+ # Offense count: 2
46
+ # This cop supports unsafe autocorrection (--autocorrect-all).
47
+ RSpec/IncludeExamples:
48
+ Exclude:
49
+ - 'spec/infreemation/api_spec.rb'
50
+
51
+ # Offense count: 9
52
+ # This cop supports safe autocorrection (--autocorrect).
53
+ # Configuration parameters: EnforcedStyle, AllowedParentClasses.
54
+ # SupportedStyles: class_keyword, class_new, class_definition
55
+ Style/EmptyClassDefinition:
56
+ Exclude:
57
+ - 'lib/infreemation.rb'
58
+ - 'lib/infreemation/errors.rb'
59
+
60
+ # Offense count: 3
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: AllowedVariables, DefaultToNil.
63
+ Style/FetchEnvVar:
64
+ Exclude:
65
+ - 'bin/console'
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gemspec
8
8
  gem 'pry'
9
9
  gem 'rake', '~> 13.0'
10
10
  gem 'rspec', '~> 3.0'
11
- gem 'rubocop', '~> 1.12.0', require: false
11
+ gem 'rubocop', '~> 1.92', require: false
12
12
  gem 'rubocop-performance', require: false
13
13
  gem 'rubocop-rspec', require: false
14
14
  gem 'webmock'
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infreemation (0.2.4)
5
- json (~> 2.5.1)
4
+ infreemation (0.3.0)
5
+ json (~> 2.5)
6
6
  rest-client (~> 2.1.0)
7
7
 
8
8
  GEM
@@ -10,7 +10,7 @@ GEM
10
10
  specs:
11
11
  addressable (2.8.7)
12
12
  public_suffix (>= 2.0.2, < 7.0)
13
- ast (2.4.2)
13
+ ast (2.4.3)
14
14
  bigdecimal (3.1.9)
15
15
  coderay (1.1.3)
16
16
  crack (1.0.0)
@@ -22,7 +22,9 @@ GEM
22
22
  http-accept (1.7.0)
23
23
  http-cookie (1.0.8)
24
24
  domain_name (~> 0.5)
25
- json (2.5.1)
25
+ json (2.21.2)
26
+ language_server-protocol (3.17.0.6)
27
+ lint_roller (1.1.0)
26
28
  logger (1.6.5)
27
29
  method_source (1.1.0)
28
30
  mime-types (3.6.0)
@@ -30,10 +32,11 @@ GEM
30
32
  mime-types-data (~> 3.2015)
31
33
  mime-types-data (3.2025.0107)
32
34
  netrc (0.11.0)
33
- parallel (1.26.3)
34
- parser (3.3.7.0)
35
+ parallel (1.28.0)
36
+ parser (3.3.14.0)
35
37
  ast (~> 2.4.1)
36
38
  racc
39
+ prism (2.1.0)
37
40
  pry (0.15.2)
38
41
  coderay (~> 1.1)
39
42
  method_source (~> 1.0)
@@ -41,7 +44,7 @@ GEM
41
44
  racc (1.8.1)
42
45
  rainbow (3.1.1)
43
46
  rake (13.2.1)
44
- regexp_parser (2.10.0)
47
+ regexp_parser (2.13.4)
45
48
  rest-client (2.1.0)
46
49
  http-accept (>= 1.7.0, < 2.0)
47
50
  http-cookie (>= 1.0.2, < 2.0)
@@ -61,25 +64,34 @@ GEM
61
64
  diff-lcs (>= 1.2.0, < 2.0)
62
65
  rspec-support (~> 3.13.0)
63
66
  rspec-support (3.13.2)
64
- rubocop (1.12.1)
65
- parallel (~> 1.10)
66
- parser (>= 3.0.0.0)
67
+ rubocop (1.92.3)
68
+ json (>= 2.3)
69
+ language_server-protocol (~> 3.17.0.2)
70
+ lint_roller (~> 1.1.0)
71
+ parallel (>= 1.10)
72
+ parser (>= 3.3.0.2)
67
73
  rainbow (>= 2.2.2, < 4.0)
68
- regexp_parser (>= 1.8, < 3.0)
69
- rexml
70
- rubocop-ast (>= 1.2.0, < 2.0)
74
+ regexp_parser (>= 2.11.3, < 3.0)
75
+ rubocop-ast (>= 1.49.0, < 2.0)
71
76
  ruby-progressbar (~> 1.7)
72
- unicode-display_width (>= 1.4.0, < 3.0)
73
- rubocop-ast (1.37.0)
74
- parser (>= 3.3.1.0)
75
- rubocop-performance (1.19.1)
76
- rubocop (>= 1.7.0, < 2.0)
77
- rubocop-ast (>= 0.4.0)
78
- rubocop-rspec (2.4.0)
79
- rubocop (~> 1.0)
80
- rubocop-ast (>= 1.1.0)
77
+ unicode-display_width (>= 2.4.0, < 4.0)
78
+ rubocop-ast (1.53.0)
79
+ ast (~> 2.4)
80
+ parser (>= 3.3.7.2)
81
+ prism (>= 1.7)
82
+ racc
83
+ rubocop-performance (1.27.0)
84
+ lint_roller (~> 1.1)
85
+ rubocop (>= 1.89.0, < 2.0)
86
+ rubocop-ast (>= 1.47.1, < 2.0)
87
+ rubocop-rspec (3.10.2)
88
+ lint_roller (~> 1.1)
89
+ regexp_parser (>= 2.0)
90
+ rubocop (~> 1.86, >= 1.86.2)
81
91
  ruby-progressbar (1.13.0)
82
- unicode-display_width (2.6.0)
92
+ unicode-display_width (3.3.0)
93
+ unicode-emoji (~> 4.3)
94
+ unicode-emoji (4.3.0)
83
95
  webmock (3.24.0)
84
96
  addressable (>= 2.8.0)
85
97
  crack (>= 0.3.2)
@@ -93,7 +105,7 @@ DEPENDENCIES
93
105
  pry
94
106
  rake (~> 13.0)
95
107
  rspec (~> 3.0)
96
- rubocop (~> 1.12.0)
108
+ rubocop (~> 1.92)
97
109
  rubocop-performance
98
110
  rubocop-rspec
99
111
  webmock
data/infreemation.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  'built specifically to manage FOI, EIR and SAR requests.'
14
14
  spec.homepage = 'https://github.com/mysociety/infreemation-ruby'
15
15
  spec.license = 'MIT'
16
- spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
16
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
17
17
 
18
18
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
19
 
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ['lib']
34
34
 
35
- spec.add_dependency 'json', '~> 2.5.1'
35
+ spec.add_dependency 'json', '~> 2.5'
36
36
  spec.add_dependency 'rest-client', '~> 2.1.0'
37
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Infreemation
4
- VERSION = '0.2.4'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infreemation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mySociety
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.1
19
+ version: '2.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.5.1
26
+ version: '2.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +51,7 @@ files:
51
51
  - ".github/workflows/rubocop.yml"
52
52
  - ".gitignore"
53
53
  - ".rubocop.yml"
54
+ - ".rubocop_todo.yml"
54
55
  - CODE_OF_CONDUCT.md
55
56
  - Gemfile
56
57
  - Gemfile.lock
@@ -84,14 +85,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
85
  requirements:
85
86
  - - ">="
86
87
  - !ruby/object:Gem::Version
87
- version: 2.7.0
88
+ version: 3.2.0
88
89
  required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  requirements:
90
91
  - - ">="
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0'
93
94
  requirements: []
94
- rubygems_version: 3.5.22
95
+ rubygems_version: 3.4.19
95
96
  signing_key:
96
97
  specification_version: 4
97
98
  summary: Ruby library for the Infreemation API.