infreemation 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/ci.yml +33 -0
- data/.github/workflows/rubocop.yml +24 -0
- data/.rubocop.yml +20 -12
- data/Gemfile +8 -2
- data/Gemfile.lock +71 -55
- data/bin/bundle +114 -0
- data/bin/console +6 -6
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/infreemation.gemspec +15 -22
- data/lib/infreemation/version.rb +1 -1
- metadata +20 -82
- data/.github/workflows/ruby.yml +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a289cb99d27ae2f96e40a3a0d2fe42cc8f874e247f942960403e2294e7387ae
|
4
|
+
data.tar.gz: a40d86773857343de52bf79823fec1e92a0df23077b11cb71b6345a96563723d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ed1efb21e8c765a6f654b3a20ca3a596c29c9eaec37744c8e11416cf4db5d75733429286c846b65d02f27b30bd767c8a0eef461e04e9d2e7b48910776e574b
|
7
|
+
data.tar.gz: e0ae45d91370e666901cedc5ad19e67d8dc172aa202a529b448189481c1450cf28a1804ecd9265db24def7d4cd2dc8282f9e6ee0f34a878de932717bbf6b3ea4
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [master, develop]
|
6
|
+
pull_request:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
rspec:
|
10
|
+
name: Ruby ${{ matrix.ruby }}
|
11
|
+
runs-on: ubuntu-20.04
|
12
|
+
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
include:
|
17
|
+
- { ruby: 2.7 }
|
18
|
+
- { ruby: '3.0' }
|
19
|
+
- { ruby: 3.1 }
|
20
|
+
- { ruby: 3.2 }
|
21
|
+
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
|
25
|
+
- name: Set up Ruby
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
|
31
|
+
- name: Run tests
|
32
|
+
run: |
|
33
|
+
bundle exec rspec
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: RuboCop
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
env:
|
9
|
+
BUNDLE_ONLY: rubocop
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v4
|
12
|
+
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 2.7
|
17
|
+
|
18
|
+
- name: Run RuboCop linter
|
19
|
+
uses: reviewdog/action-rubocop@v2
|
20
|
+
with:
|
21
|
+
github_token: ${{ secrets.github_token }}
|
22
|
+
reporter: github-pr-review
|
23
|
+
rubocop_version: gemfile
|
24
|
+
rubocop_extensions: rubocop-performance:gemfile rubocop-rspec:gemfile
|
data/.rubocop.yml
CHANGED
@@ -1,11 +1,30 @@
|
|
1
|
+
---
|
2
|
+
require:
|
3
|
+
- rubocop-performance
|
4
|
+
- rubocop-rspec
|
5
|
+
|
1
6
|
AllCops:
|
2
|
-
|
7
|
+
Exclude:
|
8
|
+
- 'bin/bundle'
|
9
|
+
- 'bin/rake'
|
10
|
+
- 'bin/rspec'
|
11
|
+
- 'bin/rubocop'
|
12
|
+
NewCops: enable
|
13
|
+
SuggestExtensions: false
|
14
|
+
TargetRubyVersion: 2.7
|
3
15
|
|
4
16
|
Metrics/BlockLength:
|
5
17
|
Exclude:
|
6
18
|
- '*.gemspec'
|
7
19
|
- 'spec/**/*_spec.rb'
|
8
20
|
|
21
|
+
Layout/LineLength:
|
22
|
+
Max: 80
|
23
|
+
IgnoredPatterns:
|
24
|
+
- '^\s*it\s+.*do$'
|
25
|
+
- '^\s*context\s+.*do$'
|
26
|
+
- '^\s*describe\s+.*do$'
|
27
|
+
|
9
28
|
Layout/DotPosition:
|
10
29
|
EnforcedStyle: trailing
|
11
30
|
|
@@ -15,14 +34,3 @@ Style/ClassAndModuleChildren:
|
|
15
34
|
Style/MixinUsage:
|
16
35
|
Exclude:
|
17
36
|
- 'spec/spec_helper.rb'
|
18
|
-
|
19
|
-
Lint/RaiseException:
|
20
|
-
Enabled: true
|
21
|
-
Lint/StructNewOverride:
|
22
|
-
Enabled: true
|
23
|
-
Style/HashEachMethods:
|
24
|
-
Enabled: true
|
25
|
-
Style/HashTransformKeys:
|
26
|
-
Enabled: true
|
27
|
-
Style/HashTransformValues:
|
28
|
-
Enabled: true
|
data/Gemfile
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
-
|
7
5
|
# Specify your gem's dependencies in infreemation.gemspec
|
8
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'pry'
|
9
|
+
gem 'rake', '~> 13.0'
|
10
|
+
gem 'rspec', '~> 3.0'
|
11
|
+
gem 'rubocop', '~> 1.12.0', require: false
|
12
|
+
gem 'rubocop-performance', require: false
|
13
|
+
gem 'rubocop-rspec', require: false
|
14
|
+
gem 'webmock'
|
data/Gemfile.lock
CHANGED
@@ -1,83 +1,99 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
infreemation (0.2.
|
5
|
-
json (~> 2.
|
6
|
-
rest-client (~> 2.0
|
4
|
+
infreemation (0.2.4)
|
5
|
+
json (~> 2.5.1)
|
6
|
+
rest-client (~> 2.1.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
13
|
-
ast (2.4.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
addressable (2.8.7)
|
12
|
+
public_suffix (>= 2.0.2, < 7.0)
|
13
|
+
ast (2.4.2)
|
14
|
+
bigdecimal (3.1.9)
|
15
|
+
coderay (1.1.3)
|
16
|
+
crack (1.0.0)
|
17
|
+
bigdecimal
|
18
|
+
rexml
|
19
|
+
diff-lcs (1.5.1)
|
20
|
+
domain_name (0.6.20240107)
|
21
|
+
hashdiff (1.1.2)
|
22
|
+
http-accept (1.7.0)
|
23
|
+
http-cookie (1.0.8)
|
21
24
|
domain_name (~> 0.5)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
+
json (2.5.1)
|
26
|
+
logger (1.6.5)
|
27
|
+
method_source (1.1.0)
|
28
|
+
mime-types (3.6.0)
|
29
|
+
logger
|
25
30
|
mime-types-data (~> 3.2015)
|
26
|
-
mime-types-data (3.
|
31
|
+
mime-types-data (3.2025.0107)
|
27
32
|
netrc (0.11.0)
|
28
|
-
parallel (1.
|
29
|
-
parser (
|
30
|
-
ast (~> 2.4.
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
parallel (1.26.3)
|
34
|
+
parser (3.3.7.0)
|
35
|
+
ast (~> 2.4.1)
|
36
|
+
racc
|
37
|
+
pry (0.15.2)
|
38
|
+
coderay (~> 1.1)
|
39
|
+
method_source (~> 1.0)
|
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)
|
45
|
+
rest-client (2.1.0)
|
46
|
+
http-accept (>= 1.7.0, < 2.0)
|
35
47
|
http-cookie (>= 1.0.2, < 2.0)
|
36
48
|
mime-types (>= 1.16, < 4.0)
|
37
49
|
netrc (~> 0.8)
|
38
|
-
rexml (3.
|
39
|
-
rspec (3.
|
40
|
-
rspec-core (~> 3.
|
41
|
-
rspec-expectations (~> 3.
|
42
|
-
rspec-mocks (~> 3.
|
43
|
-
rspec-core (3.
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-expectations (3.
|
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)
|
46
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-mocks (3.
|
59
|
+
rspec-support (~> 3.13.0)
|
60
|
+
rspec-mocks (3.13.2)
|
49
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-support (3.
|
52
|
-
rubocop (
|
53
|
-
jaro_winkler (~> 1.5.1)
|
62
|
+
rspec-support (~> 3.13.0)
|
63
|
+
rspec-support (3.13.2)
|
64
|
+
rubocop (1.12.1)
|
54
65
|
parallel (~> 1.10)
|
55
|
-
parser (>=
|
66
|
+
parser (>= 3.0.0.0)
|
56
67
|
rainbow (>= 2.2.2, < 4.0)
|
68
|
+
regexp_parser (>= 1.8, < 3.0)
|
57
69
|
rexml
|
70
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
58
71
|
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (>= 1.4.0, <
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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)
|
81
|
+
ruby-progressbar (1.13.0)
|
82
|
+
unicode-display_width (2.6.0)
|
83
|
+
webmock (3.24.0)
|
84
|
+
addressable (>= 2.8.0)
|
68
85
|
crack (>= 0.3.2)
|
69
|
-
hashdiff
|
86
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
70
87
|
|
71
88
|
PLATFORMS
|
72
89
|
ruby
|
73
90
|
|
74
91
|
DEPENDENCIES
|
75
|
-
bundler (~> 1.16)
|
76
92
|
infreemation!
|
93
|
+
pry
|
77
94
|
rake (~> 13.0)
|
78
95
|
rspec (~> 3.0)
|
79
|
-
rubocop (~>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
1.17.2
|
96
|
+
rubocop (~> 1.12.0)
|
97
|
+
rubocop-performance
|
98
|
+
rubocop-rspec
|
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/console
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
require 'bundler/setup'
|
5
5
|
require 'infreemation'
|
6
6
|
|
7
|
+
Infreemation.url = ENV['INFREEMATION_URL']
|
8
|
+
Infreemation.api_key = ENV['INFREEMATION_API_KEY']
|
9
|
+
Infreemation.username = ENV['INFREEMATION_USERNAME']
|
10
|
+
|
7
11
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
12
|
# with your gem easier. You can also use a different console, if you like.
|
9
13
|
|
10
|
-
|
11
|
-
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|
14
|
+
require 'pry'
|
15
|
+
Pry.start
|
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
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'infreemation/version'
|
3
|
+
require_relative 'lib/infreemation/version'
|
6
4
|
|
7
5
|
Gem::Specification.new do |spec|
|
8
6
|
spec.name = 'infreemation'
|
@@ -15,30 +13,25 @@ Gem::Specification.new do |spec|
|
|
15
13
|
'built specifically to manage FOI, EIR and SAR requests.'
|
16
14
|
spec.homepage = 'https://github.com/mysociety/infreemation-ruby'
|
17
15
|
spec.license = 'MIT'
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
|
-
else
|
25
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
26
|
-
'public gem pushes.'
|
27
|
-
end
|
18
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
19
|
+
|
20
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
21
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
28
22
|
|
29
|
-
|
30
|
-
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added
|
25
|
+
# into git.
|
26
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
f.match(%r{^(test|spec|features)/})
|
29
|
+
end
|
31
30
|
end
|
32
31
|
spec.bindir = 'exe'
|
33
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
33
|
spec.require_paths = ['lib']
|
35
34
|
|
36
|
-
spec.add_dependency 'json', '~> 2.
|
37
|
-
spec.add_dependency 'rest-client', '~> 2.0
|
38
|
-
|
39
|
-
spec.add_development_dependency 'bundler', '~> 1.16'
|
40
|
-
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
|
-
spec.add_development_dependency 'rubocop', '~> 0.81.0'
|
43
|
-
spec.add_development_dependency 'webmock', '~> 3.3.0'
|
35
|
+
spec.add_dependency 'json', '~> 2.5.1'
|
36
|
+
spec.add_dependency 'rest-client', '~> 2.1.0'
|
44
37
|
end
|
data/lib/infreemation/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infreemation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mySociety
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -16,98 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.5.1
|
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:
|
26
|
+
version: 2.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rest-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0
|
33
|
+
version: 2.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.16'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.16'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '13.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '13.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.81.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.81.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: webmock
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 3.3.0
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 3.3.0
|
40
|
+
version: 2.1.0
|
111
41
|
description: Infreemation is a eCase management software system built specifically
|
112
42
|
to manage FOI, EIR and SAR requests.
|
113
43
|
email:
|
@@ -116,7 +46,9 @@ executables: []
|
|
116
46
|
extensions: []
|
117
47
|
extra_rdoc_files: []
|
118
48
|
files:
|
119
|
-
- ".github/
|
49
|
+
- ".github/dependabot.yml"
|
50
|
+
- ".github/workflows/ci.yml"
|
51
|
+
- ".github/workflows/rubocop.yml"
|
120
52
|
- ".gitignore"
|
121
53
|
- ".rubocop.yml"
|
122
54
|
- CODE_OF_CONDUCT.md
|
@@ -125,7 +57,11 @@ files:
|
|
125
57
|
- LICENSE.txt
|
126
58
|
- README.md
|
127
59
|
- Rakefile
|
60
|
+
- bin/bundle
|
128
61
|
- bin/console
|
62
|
+
- bin/rake
|
63
|
+
- bin/rspec
|
64
|
+
- bin/rubocop
|
129
65
|
- bin/setup
|
130
66
|
- infreemation.gemspec
|
131
67
|
- lib/infreemation.rb
|
@@ -138,7 +74,9 @@ licenses:
|
|
138
74
|
- MIT
|
139
75
|
metadata:
|
140
76
|
allowed_push_host: https://rubygems.org
|
141
|
-
|
77
|
+
homepage_uri: https://github.com/mysociety/infreemation-ruby
|
78
|
+
source_code_uri: https://github.com/mysociety/infreemation-ruby
|
79
|
+
post_install_message:
|
142
80
|
rdoc_options: []
|
143
81
|
require_paths:
|
144
82
|
- lib
|
@@ -146,15 +84,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
84
|
requirements:
|
147
85
|
- - ">="
|
148
86
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
87
|
+
version: 2.7.0
|
150
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
89
|
requirements:
|
152
90
|
- - ">="
|
153
91
|
- !ruby/object:Gem::Version
|
154
92
|
version: '0'
|
155
93
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
157
|
-
signing_key:
|
94
|
+
rubygems_version: 3.5.22
|
95
|
+
signing_key:
|
158
96
|
specification_version: 4
|
159
97
|
summary: Ruby library for the Infreemation API.
|
160
98
|
test_files: []
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
name: Ruby
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master, develop ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ master, develop ]
|
8
|
-
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
build:
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby: [2.5, 2.6]
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v2
|
18
|
-
|
19
|
-
- uses: actions/cache@v1
|
20
|
-
with:
|
21
|
-
path: vendor/bundle
|
22
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
23
|
-
restore-keys: |
|
24
|
-
${{ runner.os }}-gems-
|
25
|
-
|
26
|
-
- name: Set up Ruby
|
27
|
-
uses: ruby/setup-ruby@v1.29.0
|
28
|
-
with:
|
29
|
-
ruby-version: ${{ matrix.ruby }}
|
30
|
-
|
31
|
-
- name: Install gems
|
32
|
-
run: |
|
33
|
-
bundle config path vendor/bundle
|
34
|
-
bundle install --jobs 4 --retry 3
|
35
|
-
|
36
|
-
- name: Run tests
|
37
|
-
env:
|
38
|
-
RAILS_ENV: test
|
39
|
-
run: |
|
40
|
-
bundle exec rake
|