infreemation 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e01dcf757c760f60874ab63dd551cd2cbb48b53d77cd28a99a334bed299060e
4
- data.tar.gz: c0a1fe774d9f57325627b48522cea20c8a0afb04759b6fae2cb3d2bfa0e5300f
3
+ metadata.gz: 7a289cb99d27ae2f96e40a3a0d2fe42cc8f874e247f942960403e2294e7387ae
4
+ data.tar.gz: a40d86773857343de52bf79823fec1e92a0df23077b11cb71b6345a96563723d
5
5
  SHA512:
6
- metadata.gz: 6a33599e90e3c4aca2d45129671422fc545e993dab5be2af10795e8faee5b440c0064e7bed1cea0315425931841f2686e414bb6c97c7bede4a4d9e6cac70f38b
7
- data.tar.gz: 4097316f5430ebfa70903fc14b12ec99ee5d2c2578dcffc77debae54d627a3044606764810c8187ad7e0f5885077626be4a5f21f582697b02322b0e646e95105
6
+ metadata.gz: d5ed1efb21e8c765a6f654b3a20ca3a596c29c9eaec37744c8e11416cf4db5d75733429286c846b65d02f27b30bd767c8a0eef461e04e9d2e7b48910776e574b
7
+ data.tar.gz: e0ae45d91370e666901cedc5ad19e67d8dc172aa202a529b448189481c1450cf28a1804ecd9265db24def7d4cd2dc8282f9e6ee0f34a878de932717bbf6b3ea4
@@ -3,6 +3,6 @@ updates:
3
3
  - package-ecosystem: bundler
4
4
  directory: "/"
5
5
  schedule:
6
- interval: weekly
6
+ interval: monthly
7
7
  open-pull-requests-limit: 99
8
8
  rebase-strategy: "disabled"
@@ -14,8 +14,10 @@ jobs:
14
14
  fail-fast: false
15
15
  matrix:
16
16
  include:
17
- - { ruby: 2.6 }
18
17
  - { ruby: 2.7 }
18
+ - { ruby: '3.0' }
19
+ - { ruby: 3.1 }
20
+ - { ruby: 3.2 }
19
21
 
20
22
  steps:
21
23
  - uses: actions/checkout@v2
@@ -4,18 +4,21 @@ on: [pull_request]
4
4
 
5
5
  jobs:
6
6
  build:
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-latest
8
+ env:
9
+ BUNDLE_ONLY: rubocop
8
10
  steps:
9
- - uses: actions/checkout@v2
11
+ - uses: actions/checkout@v4
10
12
 
11
13
  - name: Set up Ruby
12
14
  uses: ruby/setup-ruby@v1
13
15
  with:
14
- ruby-version: 2.6
16
+ ruby-version: 2.7
15
17
 
16
18
  - name: Run RuboCop linter
17
- uses: reviewdog/action-rubocop@v1
19
+ uses: reviewdog/action-rubocop@v2
18
20
  with:
19
21
  github_token: ${{ secrets.github_token }}
20
- rubocop_version: 1.10.0
22
+ reporter: github-pr-review
23
+ rubocop_version: gemfile
21
24
  rubocop_extensions: rubocop-performance:gemfile rubocop-rspec:gemfile
data/.rubocop.yml CHANGED
@@ -11,7 +11,7 @@ AllCops:
11
11
  - 'bin/rubocop'
12
12
  NewCops: enable
13
13
  SuggestExtensions: false
14
- TargetRubyVersion: 2.6
14
+ TargetRubyVersion: 2.7
15
15
 
16
16
  Metrics/BlockLength:
17
17
  Exclude:
data/Gemfile CHANGED
@@ -6,9 +6,9 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'pry'
9
- gem 'rake'
10
- gem 'rspec'
11
- gem 'rubocop', require: false
9
+ gem 'rake', '~> 13.0'
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rubocop', '~> 1.12.0', 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,62 +1,67 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infreemation (0.2.3)
4
+ infreemation (0.2.4)
5
5
  json (~> 2.5.1)
6
6
  rest-client (~> 2.1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
11
+ addressable (2.8.7)
12
+ public_suffix (>= 2.0.2, < 7.0)
13
13
  ast (2.4.2)
14
+ bigdecimal (3.1.9)
14
15
  coderay (1.1.3)
15
- crack (0.4.5)
16
+ crack (1.0.0)
17
+ bigdecimal
16
18
  rexml
17
- diff-lcs (1.4.4)
18
- domain_name (0.5.20190701)
19
- unf (>= 0.0.5, < 1.0.0)
20
- hashdiff (1.0.1)
19
+ diff-lcs (1.5.1)
20
+ domain_name (0.6.20240107)
21
+ hashdiff (1.1.2)
21
22
  http-accept (1.7.0)
22
- http-cookie (1.0.3)
23
+ http-cookie (1.0.8)
23
24
  domain_name (~> 0.5)
24
25
  json (2.5.1)
25
- method_source (1.0.0)
26
- mime-types (3.3.1)
26
+ logger (1.6.5)
27
+ method_source (1.1.0)
28
+ mime-types (3.6.0)
29
+ logger
27
30
  mime-types-data (~> 3.2015)
28
- mime-types-data (3.2021.0225)
31
+ mime-types-data (3.2025.0107)
29
32
  netrc (0.11.0)
30
- parallel (1.20.1)
31
- parser (3.0.0.0)
33
+ parallel (1.26.3)
34
+ parser (3.3.7.0)
32
35
  ast (~> 2.4.1)
33
- pry (0.14.0)
36
+ racc
37
+ pry (0.15.2)
34
38
  coderay (~> 1.1)
35
39
  method_source (~> 1.0)
36
- public_suffix (4.0.6)
37
- rainbow (3.0.0)
38
- rake (13.0.3)
39
- regexp_parser (2.1.1)
40
+ public_suffix (5.1.1)
41
+ racc (1.8.1)
42
+ rainbow (3.1.1)
43
+ rake (13.2.1)
44
+ regexp_parser (2.10.0)
40
45
  rest-client (2.1.0)
41
46
  http-accept (>= 1.7.0, < 2.0)
42
47
  http-cookie (>= 1.0.2, < 2.0)
43
48
  mime-types (>= 1.16, < 4.0)
44
49
  netrc (~> 0.8)
45
- rexml (3.2.4)
46
- rspec (3.10.0)
47
- rspec-core (~> 3.10.0)
48
- rspec-expectations (~> 3.10.0)
49
- rspec-mocks (~> 3.10.0)
50
- rspec-core (3.10.1)
51
- rspec-support (~> 3.10.0)
52
- rspec-expectations (3.10.1)
50
+ rexml (3.4.0)
51
+ rspec (3.13.0)
52
+ rspec-core (~> 3.13.0)
53
+ rspec-expectations (~> 3.13.0)
54
+ rspec-mocks (~> 3.13.0)
55
+ rspec-core (3.13.2)
56
+ rspec-support (~> 3.13.0)
57
+ rspec-expectations (3.13.3)
53
58
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-mocks (3.10.2)
59
+ rspec-support (~> 3.13.0)
60
+ rspec-mocks (3.13.2)
56
61
  diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-support (3.10.2)
59
- rubocop (1.11.0)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-support (3.13.2)
64
+ rubocop (1.12.1)
60
65
  parallel (~> 1.10)
61
66
  parser (>= 3.0.0.0)
62
67
  rainbow (>= 2.2.2, < 4.0)
@@ -65,21 +70,18 @@ GEM
65
70
  rubocop-ast (>= 1.2.0, < 2.0)
66
71
  ruby-progressbar (~> 1.7)
67
72
  unicode-display_width (>= 1.4.0, < 3.0)
68
- rubocop-ast (1.4.1)
69
- parser (>= 2.7.1.5)
70
- rubocop-performance (1.10.1)
71
- rubocop (>= 0.90.0, < 2.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)
72
77
  rubocop-ast (>= 0.4.0)
73
- rubocop-rspec (2.2.0)
78
+ rubocop-rspec (2.4.0)
74
79
  rubocop (~> 1.0)
75
80
  rubocop-ast (>= 1.1.0)
76
- ruby-progressbar (1.11.0)
77
- unf (0.1.4)
78
- unf_ext
79
- unf_ext (0.0.7.7)
80
- unicode-display_width (2.0.0)
81
- webmock (3.12.1)
82
- addressable (>= 2.3.6)
81
+ ruby-progressbar (1.13.0)
82
+ unicode-display_width (2.6.0)
83
+ webmock (3.24.0)
84
+ addressable (>= 2.8.0)
83
85
  crack (>= 0.3.2)
84
86
  hashdiff (>= 0.4.0, < 2.0.0)
85
87
 
@@ -89,9 +91,9 @@ PLATFORMS
89
91
  DEPENDENCIES
90
92
  infreemation!
91
93
  pry
92
- rake
93
- rspec
94
- rubocop
94
+ rake (~> 13.0)
95
+ rspec (~> 3.0)
96
+ rubocop (~> 1.12.0)
95
97
  rubocop-performance
96
98
  rubocop-rspec
97
99
  webmock
data/bin/bundle ADDED
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||=
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version
67
+ end
68
+
69
+ def bundler_requirement
70
+ return "#{Gem::Requirement.default}.a" unless bundler_version
71
+
72
+ bundler_gem_version = Gem::Version.new(bundler_version)
73
+
74
+ requirement = bundler_gem_version.approximate_recommendation
75
+
76
+ return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77
+
78
+ requirement += ".a" if bundler_gem_version.prerelease?
79
+
80
+ requirement
81
+ end
82
+
83
+ def load_bundler!
84
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
85
+
86
+ activate_bundler
87
+ end
88
+
89
+ def activate_bundler
90
+ gem_error = activation_error_handling do
91
+ gem "bundler", bundler_requirement
92
+ end
93
+ return if gem_error.nil?
94
+ require_error = activation_error_handling do
95
+ require "bundler/version"
96
+ end
97
+ return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
+ warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99
+ exit 42
100
+ end
101
+
102
+ def activation_error_handling
103
+ yield
104
+ nil
105
+ rescue StandardError, LoadError => e
106
+ e
107
+ end
108
+ end
109
+
110
+ m.load_bundler!
111
+
112
+ if m.invoked_as_script?
113
+ load Gem.bin_path("bundler", "bundle")
114
+ end
data/bin/rake ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rake", "rake")
data/bin/rspec ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rspec-core", "rspec")
data/bin/rubocop ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rubocop", "rubocop")
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.6.0')
16
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
17
17
 
18
18
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Infreemation
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mySociety
@@ -57,7 +57,11 @@ files:
57
57
  - LICENSE.txt
58
58
  - README.md
59
59
  - Rakefile
60
+ - bin/bundle
60
61
  - bin/console
62
+ - bin/rake
63
+ - bin/rspec
64
+ - bin/rubocop
61
65
  - bin/setup
62
66
  - infreemation.gemspec
63
67
  - lib/infreemation.rb
@@ -80,14 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
84
  requirements:
81
85
  - - ">="
82
86
  - !ruby/object:Gem::Version
83
- version: 2.6.0
87
+ version: 2.7.0
84
88
  required_rubygems_version: !ruby/object:Gem::Requirement
85
89
  requirements:
86
90
  - - ">="
87
91
  - !ruby/object:Gem::Version
88
92
  version: '0'
89
93
  requirements: []
90
- rubygems_version: 3.1.3
94
+ rubygems_version: 3.5.22
91
95
  signing_key:
92
96
  specification_version: 4
93
97
  summary: Ruby library for the Infreemation API.