icasework 0.1.4 → 0.2.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: 45082576c5e11955988f656c194c0b5977bd0973117034328f9b7e4991f6f8e9
4
- data.tar.gz: 6149d81ed342b55df07110cb5118aa3c42945a7b4ddd4b6969a121998297cac6
3
+ metadata.gz: 3b524aacfdf0604f9ae3b46d5ed5aef5a9da5b644f435c67e0b57193870d5b44
4
+ data.tar.gz: 2e10f2f9765f0b5aeafdda172ac0e68bef68ca5924147645aaf0c629bc72e28a
5
5
  SHA512:
6
- metadata.gz: 5707d2819540e7c86198c247980929c5e2650449fcd021e7e170501e7443bc90d61963189f745f31fb74dd631962a08bbc08e7beb291ee5b69463793ce5a9664
7
- data.tar.gz: d1b2899bee60815587bd7e34689eca21c5459815e872699c09445d9019c5442ec76c672fe1dbe476791eb91462c084b8c9c9e957aef2ba3e87f60945fc4bc953
6
+ metadata.gz: 34e097fb76a141ed0ac2fe87b501bba576d8b2aa7cdf6cf3dcaf9b45ff55e15a2b2aa0f2b5c043b244d557d545dec9f3e35c555473a1ef3926311abb5aa65724
7
+ data.tar.gz: e83a9bc8d79723d6d4abb6402ecb46a429a672fadf6e8471c4fc6e45b5a690e48eaf4aa1cb4883407430e3b054f61256f3df98b78ce1a93a8e7739745f384eab
@@ -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,11 +13,7 @@ jobs:
13
13
  - name: Set up Ruby
14
14
  uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: 2.7
17
-
18
- - run: |
19
- gem install securerandom -v 0.3.2
20
- gem install activesupport -v 7.1.5.1
16
+ ruby-version: 3.2
21
17
 
22
18
  - name: Run RuboCop linter
23
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:
@@ -24,7 +26,7 @@ Naming/AccessorMethodName:
24
26
 
25
27
  Layout/LineLength:
26
28
  Max: 80
27
- IgnoredPatterns:
29
+ AllowedPatterns:
28
30
  - '^\s*it\s+.*do$'
29
31
  - '^\s*context\s+.*do$'
30
32
  - '^\s*describe\s+.*do$'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,70 @@
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
+ - 'icasework.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
+ - 'icasework.gemspec'
22
+
23
+ # Offense count: 5
24
+ # This cop supports unsafe autocorrection (--autocorrect-all).
25
+ RSpec/BeEq:
26
+ Exclude:
27
+ - 'spec/icasework/document_spec.rb'
28
+ - 'spec/icasework/token/jwt_spec.rb'
29
+
30
+ # Offense count: 1
31
+ # This cop supports safe autocorrection (--autocorrect).
32
+ # Configuration parameters: EnforcedStyle.
33
+ # SupportedStyles: be, be_nil
34
+ RSpec/BeNil:
35
+ Exclude:
36
+ - 'spec/icasework_spec.rb'
37
+
38
+ # Offense count: 5
39
+ # This cop supports unsafe autocorrection (--autocorrect-all).
40
+ RSpec/IncludeExamples:
41
+ Exclude:
42
+ - 'spec/icasework/resource_spec.rb'
43
+
44
+ # Offense count: 3
45
+ # This cop supports unsafe autocorrection (--autocorrect-all).
46
+ RSpec/ReceiveMessages:
47
+ Exclude:
48
+ - 'spec/icasework/resource_spec.rb'
49
+
50
+ # Offense count: 4
51
+ # This cop supports safe autocorrection (--autocorrect).
52
+ # Configuration parameters: EnforcedStyle, AllowedParentClasses.
53
+ # SupportedStyles: class_keyword, class_new, class_definition
54
+ Style/EmptyClassDefinition:
55
+ Exclude:
56
+ - 'lib/icasework.rb'
57
+ - 'lib/icasework/errors.rb'
58
+
59
+ # Offense count: 1
60
+ # This cop supports safe autocorrection (--autocorrect).
61
+ # Configuration parameters: AllowedVariables, DefaultToNil.
62
+ Style/FetchEnvVar:
63
+ Exclude:
64
+ - 'bin/console'
65
+
66
+ # Offense count: 1
67
+ # This cop supports safe autocorrection (--autocorrect).
68
+ Style/RedundantParentheses:
69
+ Exclude:
70
+ - 'lib/icasework/xml_converter.rb'
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 'timecop'
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- icasework (0.1.4)
5
- activesupport (>= 4.0.0, < 6.2)
6
- jwt (~> 2.2.0)
4
+ icasework (0.2.0)
5
+ activesupport (>= 6.1, < 9)
6
+ jwt (~> 2.2)
7
7
  nokogiri (~> 1.0)
8
8
  pdf-reader (~> 2.4.0)
9
9
  rest-client (~> 2.1.0)
@@ -13,32 +13,46 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  Ascii85 (1.1.1)
16
- activesupport (6.1.7.10)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ activesupport (8.1.4.1)
17
+ base64
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
+ connection_pool (>= 2.2.5)
21
+ drb
18
22
  i18n (>= 1.6, < 2)
23
+ json
24
+ logger (>= 1.4.2)
19
25
  minitest (>= 5.1)
20
- tzinfo (~> 2.0)
21
- zeitwerk (~> 2.3)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ uri (>= 0.13.1)
22
29
  addressable (2.8.7)
23
30
  public_suffix (>= 2.0.2, < 7.0)
24
31
  afm (0.2.2)
25
- ast (2.4.2)
32
+ ast (2.4.3)
33
+ base64 (0.3.0)
26
34
  bigdecimal (3.1.9)
27
35
  coderay (1.1.3)
28
- concurrent-ruby (1.3.5)
36
+ concurrent-ruby (1.3.8)
37
+ connection_pool (3.0.3)
29
38
  crack (1.0.0)
30
39
  bigdecimal
31
40
  rexml
32
41
  diff-lcs (1.5.1)
33
42
  domain_name (0.6.20240107)
43
+ drb (2.2.3)
34
44
  hashdiff (1.1.2)
35
45
  hashery (2.1.2)
36
46
  http-accept (1.7.0)
37
47
  http-cookie (1.0.8)
38
48
  domain_name (~> 0.5)
39
- i18n (1.14.6)
49
+ i18n (1.15.2)
40
50
  concurrent-ruby (~> 1.0)
41
- jwt (2.2.3)
51
+ json (3.1.0)
52
+ jwt (2.10.3)
53
+ base64
54
+ language_server-protocol (3.17.0.6)
55
+ lint_roller (1.1.0)
42
56
  logger (1.6.5)
43
57
  method_source (1.1.0)
44
58
  mime-types (3.6.0)
@@ -46,21 +60,23 @@ GEM
46
60
  mime-types-data (~> 3.2015)
47
61
  mime-types-data (3.2025.0107)
48
62
  mini_portile2 (2.8.8)
49
- minitest (5.25.4)
63
+ minitest (6.1.0)
64
+ drb (~> 2.0)
65
+ prism (>= 1.5, < 3)
50
66
  netrc (0.11.0)
51
- nokogiri (1.15.7)
67
+ nokogiri (1.19.7)
52
68
  mini_portile2 (~> 2.8.2)
53
69
  racc (~> 1.4)
54
- nokogiri (1.15.7-aarch64-linux)
70
+ nokogiri (1.19.7-aarch64-linux-gnu)
55
71
  racc (~> 1.4)
56
- nokogiri (1.15.7-arm64-darwin)
72
+ nokogiri (1.19.7-arm64-darwin)
57
73
  racc (~> 1.4)
58
- nokogiri (1.15.7-x86_64-darwin)
74
+ nokogiri (1.19.7-x86_64-darwin)
59
75
  racc (~> 1.4)
60
- nokogiri (1.15.7-x86_64-linux)
76
+ nokogiri (1.19.7-x86_64-linux-gnu)
61
77
  racc (~> 1.4)
62
- parallel (1.26.3)
63
- parser (3.3.7.0)
78
+ parallel (1.28.0)
79
+ parser (3.3.14.0)
64
80
  ast (~> 2.4.1)
65
81
  racc
66
82
  pdf-reader (2.4.2)
@@ -69,6 +85,7 @@ GEM
69
85
  hashery (~> 2.0)
70
86
  ruby-rc4
71
87
  ttfunk
88
+ prism (2.1.0)
72
89
  pry (0.15.2)
73
90
  coderay (~> 1.1)
74
91
  method_source (~> 1.0)
@@ -76,7 +93,7 @@ GEM
76
93
  racc (1.8.1)
77
94
  rainbow (3.1.1)
78
95
  rake (13.2.1)
79
- regexp_parser (2.10.0)
96
+ regexp_parser (2.13.4)
80
97
  rest-client (2.1.0)
81
98
  http-accept (>= 1.7.0, < 2.0)
82
99
  http-cookie (>= 1.0.2, < 2.0)
@@ -96,36 +113,46 @@ GEM
96
113
  diff-lcs (>= 1.2.0, < 2.0)
97
114
  rspec-support (~> 3.13.0)
98
115
  rspec-support (3.13.2)
99
- rubocop (1.12.1)
100
- parallel (~> 1.10)
101
- parser (>= 3.0.0.0)
116
+ rubocop (1.92.3)
117
+ json (>= 2.3)
118
+ language_server-protocol (~> 3.17.0.2)
119
+ lint_roller (~> 1.1.0)
120
+ parallel (>= 1.10)
121
+ parser (>= 3.3.0.2)
102
122
  rainbow (>= 2.2.2, < 4.0)
103
- regexp_parser (>= 1.8, < 3.0)
104
- rexml
105
- rubocop-ast (>= 1.2.0, < 2.0)
123
+ regexp_parser (>= 2.11.3, < 3.0)
124
+ rubocop-ast (>= 1.49.0, < 2.0)
106
125
  ruby-progressbar (~> 1.7)
107
- unicode-display_width (>= 1.4.0, < 3.0)
108
- rubocop-ast (1.37.0)
109
- parser (>= 3.3.1.0)
110
- rubocop-performance (1.19.1)
111
- rubocop (>= 1.7.0, < 2.0)
112
- rubocop-ast (>= 0.4.0)
113
- rubocop-rspec (2.4.0)
114
- rubocop (~> 1.0)
115
- rubocop-ast (>= 1.1.0)
126
+ unicode-display_width (>= 2.4.0, < 4.0)
127
+ rubocop-ast (1.53.0)
128
+ ast (~> 2.4)
129
+ parser (>= 3.3.7.2)
130
+ prism (>= 1.7)
131
+ racc
132
+ rubocop-performance (1.27.0)
133
+ lint_roller (~> 1.1)
134
+ rubocop (>= 1.89.0, < 2.0)
135
+ rubocop-ast (>= 1.47.1, < 2.0)
136
+ rubocop-rspec (3.10.2)
137
+ lint_roller (~> 1.1)
138
+ regexp_parser (>= 2.0)
139
+ rubocop (~> 1.86, >= 1.86.2)
116
140
  ruby-progressbar (1.13.0)
117
141
  ruby-rc4 (0.1.5)
142
+ securerandom (0.4.1)
118
143
  timecop (0.9.10)
119
144
  ttfunk (1.8.0)
120
145
  bigdecimal (~> 3.1)
121
146
  tzinfo (2.0.6)
122
147
  concurrent-ruby (~> 1.0)
123
- unicode-display_width (2.6.0)
148
+ unicode-display_width (3.3.0)
149
+ unicode-emoji (~> 4.3)
150
+ unicode-emoji (4.3.0)
151
+ uri (1.1.2)
124
152
  webmock (3.24.0)
125
153
  addressable (>= 2.8.0)
126
154
  crack (>= 0.3.2)
127
155
  hashdiff (>= 0.4.0, < 2.0.0)
128
- zeitwerk (2.6.18)
129
156
 
130
157
  PLATFORMS
131
158
  aarch64-linux
@@ -139,7 +166,7 @@ DEPENDENCIES
139
166
  pry
140
167
  rake (~> 13.0)
141
168
  rspec (~> 3.0)
142
- rubocop (~> 1.12.0)
169
+ rubocop (~> 1.92)
143
170
  rubocop-performance
144
171
  rubocop-rspec
145
172
  timecop
data/icasework.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  'organisations of all sizes to do a better job of case management'
14
14
  spec.homepage = 'https://github.com/mysociety/icasework-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,8 +32,8 @@ 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 'activesupport', '>= 4.0.0', '< 6.2'
36
- spec.add_dependency 'jwt', '~> 2.2.0'
35
+ spec.add_dependency 'activesupport', '>= 6.1', '< 9'
36
+ spec.add_dependency 'jwt', '~> 2.2'
37
37
  spec.add_dependency 'nokogiri', '~> 1.0'
38
38
  spec.add_dependency 'pdf-reader', '~> 2.4.0'
39
39
  spec.add_dependency 'rest-client', '~> 2.1.0'
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support'
3
4
  require 'active_support/core_ext/hash/deep_merge'
4
5
 
5
6
  module Icasework
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Icasework
4
- VERSION = '0.1.4'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support'
3
4
  require 'active_support/core_ext/hash/conversions'
4
5
 
5
6
  module Icasework
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icasework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mySociety
@@ -16,34 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: '6.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: '6.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: jwt
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.2.0
39
+ version: '2.2'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.2.0
46
+ version: '2.2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: nokogiri
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -113,6 +113,7 @@ files:
113
113
  - ".github/workflows/rubocop.yml"
114
114
  - ".gitignore"
115
115
  - ".rubocop.yml"
116
+ - ".rubocop_todo.yml"
116
117
  - CODE_OF_CONDUCT.md
117
118
  - Gemfile
118
119
  - Gemfile.lock
@@ -155,14 +156,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
156
  requirements:
156
157
  - - ">="
157
158
  - !ruby/object:Gem::Version
158
- version: 2.7.0
159
+ version: 3.2.0
159
160
  required_rubygems_version: !ruby/object:Gem::Requirement
160
161
  requirements:
161
162
  - - ">="
162
163
  - !ruby/object:Gem::Version
163
164
  version: '0'
164
165
  requirements: []
165
- rubygems_version: 3.5.22
166
+ rubygems_version: 3.4.19
166
167
  signing_key:
167
168
  specification_version: 4
168
169
  summary: Ruby library for the iCasework API.