kentaa-api 0.6.0 → 0.7.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 +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +56 -5
- data/lib/kentaa/api/client.rb +13 -9
- data/lib/kentaa/api/config.rb +3 -3
- data/lib/kentaa/api/deprecation.rb +13 -0
- data/lib/kentaa/api/request.rb +28 -19
- data/lib/kentaa/api/resources/action.rb +36 -5
- data/lib/kentaa/api/resources/billing.rb +51 -0
- data/lib/kentaa/api/resources/company.rb +218 -0
- data/lib/kentaa/api/resources/company_package.rb +39 -0
- data/lib/kentaa/api/resources/consent.rb +77 -4
- data/lib/kentaa/api/resources/contact.rb +1 -1
- data/lib/kentaa/api/resources/donation.rb +29 -1
- data/lib/kentaa/api/resources/manual_donation.rb +2 -2
- data/lib/kentaa/api/resources/newsletter_subscription.rb +17 -1
- data/lib/kentaa/api/resources/performance.rb +8 -0
- data/lib/kentaa/api/resources/performance_photo.rb +36 -0
- data/lib/kentaa/api/resources/project.rb +16 -0
- data/lib/kentaa/api/resources/recurring_donor.rb +1 -1
- data/lib/kentaa/api/resources/site.rb +4 -4
- data/lib/kentaa/api/resources/user.rb +22 -2
- data/lib/kentaa/api/resources/users.rb +1 -1
- data/lib/kentaa/api/util.rb +5 -1
- data/lib/kentaa/api/version.rb +1 -1
- data/lib/kentaa/api.rb +41 -36
- metadata +14 -24
- data/.github/workflows/test.yml +0 -23
- data/.gitignore +0 -16
- data/.rspec +0 -2
- data/.rubocop.yml +0 -72
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -79
- data/Rakefile +0 -10
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/kentaa-api.gemspec +0 -30
data/.github/workflows/test.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
name: CI
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
pull_request:
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
test:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
strategy:
|
13
|
-
matrix:
|
14
|
-
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0']
|
15
|
-
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v2
|
18
|
-
- uses: ruby/setup-ruby@v1
|
19
|
-
with:
|
20
|
-
ruby-version: ${{ matrix.ruby-version }}
|
21
|
-
bundler-cache: true
|
22
|
-
- name: Run tests
|
23
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
# Kentaa-API RuboCop configuration
|
2
|
-
|
3
|
-
require:
|
4
|
-
- rubocop-performance
|
5
|
-
- rubocop-rake
|
6
|
-
- rubocop-rspec
|
7
|
-
|
8
|
-
AllCops:
|
9
|
-
NewCops: enable
|
10
|
-
TargetRubyVersion: 2.4
|
11
|
-
DisplayCopNames: true
|
12
|
-
DisplayStyleGuide: true
|
13
|
-
Exclude:
|
14
|
-
- 'tmp/**/*'
|
15
|
-
- 'vendor/**/*'
|
16
|
-
|
17
|
-
Layout/LineLength:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Metrics/AbcSize:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Metrics/BlockLength:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Metrics/ClassLength:
|
27
|
-
Enabled: false
|
28
|
-
|
29
|
-
Metrics/CyclomaticComplexity:
|
30
|
-
Enabled: false
|
31
|
-
|
32
|
-
Metrics/MethodLength:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
Metrics/PerceivedComplexity:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
RSpec/DescribedClass:
|
39
|
-
Enabled: false
|
40
|
-
|
41
|
-
RSpec/ExampleLength:
|
42
|
-
Enabled: false
|
43
|
-
|
44
|
-
RSpec/MultipleExpectations:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Style/Documentation:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
Style/ExpandPathArguments:
|
51
|
-
Enabled: false
|
52
|
-
|
53
|
-
Style/HashEachMethods:
|
54
|
-
Enabled: true
|
55
|
-
|
56
|
-
Style/HashTransformKeys:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
Style/HashTransformValues:
|
60
|
-
Enabled: true
|
61
|
-
|
62
|
-
Style/IfUnlessModifier:
|
63
|
-
Enabled: false
|
64
|
-
|
65
|
-
Style/SafeNavigation:
|
66
|
-
Enabled: false
|
67
|
-
|
68
|
-
Style/StringLiterals:
|
69
|
-
Enabled: false
|
70
|
-
|
71
|
-
Style/SymbolArray:
|
72
|
-
Enabled: false
|
data/Gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in kentaa-api.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem 'rubocop', '~> 1.12.0'
|
9
|
-
gem 'rubocop-performance', '~> 1.10.2'
|
10
|
-
gem 'rubocop-rake', '~> 0.5.1'
|
11
|
-
gem 'rubocop-rspec', '~> 2.2.0'
|
data/Gemfile.lock
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
kentaa-api (0.6.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
addressable (2.5.2)
|
10
|
-
public_suffix (>= 2.0.2, < 4.0)
|
11
|
-
ast (2.4.2)
|
12
|
-
crack (0.4.3)
|
13
|
-
safe_yaml (~> 1.0.0)
|
14
|
-
diff-lcs (1.4.4)
|
15
|
-
hashdiff (0.3.7)
|
16
|
-
parallel (1.20.1)
|
17
|
-
parser (3.0.0.0)
|
18
|
-
ast (~> 2.4.1)
|
19
|
-
public_suffix (3.0.3)
|
20
|
-
rainbow (3.0.0)
|
21
|
-
rake (13.0.3)
|
22
|
-
regexp_parser (2.1.1)
|
23
|
-
rexml (3.2.5)
|
24
|
-
rspec (3.10.0)
|
25
|
-
rspec-core (~> 3.10.0)
|
26
|
-
rspec-expectations (~> 3.10.0)
|
27
|
-
rspec-mocks (~> 3.10.0)
|
28
|
-
rspec-core (3.10.1)
|
29
|
-
rspec-support (~> 3.10.0)
|
30
|
-
rspec-expectations (3.10.1)
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.10.0)
|
33
|
-
rspec-mocks (3.10.2)
|
34
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.10.0)
|
36
|
-
rspec-support (3.10.2)
|
37
|
-
rubocop (1.12.0)
|
38
|
-
parallel (~> 1.10)
|
39
|
-
parser (>= 3.0.0.0)
|
40
|
-
rainbow (>= 2.2.2, < 4.0)
|
41
|
-
regexp_parser (>= 1.8, < 3.0)
|
42
|
-
rexml
|
43
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
44
|
-
ruby-progressbar (~> 1.7)
|
45
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
46
|
-
rubocop-ast (1.4.1)
|
47
|
-
parser (>= 2.7.1.5)
|
48
|
-
rubocop-performance (1.10.2)
|
49
|
-
rubocop (>= 0.90.0, < 2.0)
|
50
|
-
rubocop-ast (>= 0.4.0)
|
51
|
-
rubocop-rake (0.5.1)
|
52
|
-
rubocop
|
53
|
-
rubocop-rspec (2.2.0)
|
54
|
-
rubocop (~> 1.0)
|
55
|
-
rubocop-ast (>= 1.1.0)
|
56
|
-
ruby-progressbar (1.11.0)
|
57
|
-
safe_yaml (1.0.4)
|
58
|
-
unicode-display_width (2.0.0)
|
59
|
-
webmock (2.3.2)
|
60
|
-
addressable (>= 2.3.6)
|
61
|
-
crack (>= 0.3.2)
|
62
|
-
hashdiff
|
63
|
-
|
64
|
-
PLATFORMS
|
65
|
-
ruby
|
66
|
-
|
67
|
-
DEPENDENCIES
|
68
|
-
bundler (~> 2.0)
|
69
|
-
kentaa-api!
|
70
|
-
rake (~> 13.0)
|
71
|
-
rspec (~> 3.0)
|
72
|
-
rubocop (~> 1.12.0)
|
73
|
-
rubocop-performance (~> 1.10.2)
|
74
|
-
rubocop-rake (~> 0.5.1)
|
75
|
-
rubocop-rspec (~> 2.2.0)
|
76
|
-
webmock (~> 2.3, >= 2.3.2)
|
77
|
-
|
78
|
-
BUNDLED WITH
|
79
|
-
2.2.3
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "bundler/setup"
|
5
|
-
require "kentaa/api"
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require "irb"
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/kentaa-api.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'kentaa/api/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = "kentaa-api"
|
9
|
-
spec.version = Kentaa::Api::VERSION
|
10
|
-
spec.authors = ["Kentaa"]
|
11
|
-
spec.email = ["support@kentaa.nl"]
|
12
|
-
|
13
|
-
spec.summary = "Ruby library for communicating with the Kentaa API"
|
14
|
-
spec.homepage = "https://github.com/KentaaNL/kentaa-api"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test|spec|features)/})
|
19
|
-
end
|
20
|
-
spec.bindir = "exe"
|
21
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
-
spec.require_paths = ["lib"]
|
23
|
-
|
24
|
-
spec.required_ruby_version = ">= 2.4.0"
|
25
|
-
|
26
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
28
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
-
spec.add_development_dependency "webmock", "~> 2.3", ">= 2.3.2"
|
30
|
-
end
|