kentaa-api 0.6.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +59 -8
- 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 +81 -4
- data/lib/kentaa/api/resources/contact.rb +1 -1
- data/lib/kentaa/api/resources/donation.rb +39 -1
- data/lib/kentaa/api/resources/manual_donation.rb +8 -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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kentaa-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,42 +58,27 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 2.3.2
|
61
|
+
version: '3.0'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
66
|
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 2.3.2
|
68
|
+
version: '3.0'
|
75
69
|
description:
|
76
70
|
email:
|
77
|
-
-
|
71
|
+
- developers@kentaa.nl
|
78
72
|
executables: []
|
79
73
|
extensions: []
|
80
74
|
extra_rdoc_files: []
|
81
75
|
files:
|
82
|
-
- ".github/workflows/test.yml"
|
83
|
-
- ".gitignore"
|
84
|
-
- ".rspec"
|
85
|
-
- ".rubocop.yml"
|
86
|
-
- Gemfile
|
87
|
-
- Gemfile.lock
|
88
76
|
- LICENSE.txt
|
89
77
|
- README.md
|
90
|
-
- Rakefile
|
91
|
-
- bin/console
|
92
|
-
- bin/setup
|
93
|
-
- kentaa-api.gemspec
|
94
78
|
- lib/kentaa/api.rb
|
95
79
|
- lib/kentaa/api/client.rb
|
96
80
|
- lib/kentaa/api/config.rb
|
81
|
+
- lib/kentaa/api/deprecation.rb
|
97
82
|
- lib/kentaa/api/exception.rb
|
98
83
|
- lib/kentaa/api/request.rb
|
99
84
|
- lib/kentaa/api/resources/action.rb
|
@@ -101,6 +86,9 @@ files:
|
|
101
86
|
- lib/kentaa/api/resources/address.rb
|
102
87
|
- lib/kentaa/api/resources/banner.rb
|
103
88
|
- lib/kentaa/api/resources/base.rb
|
89
|
+
- lib/kentaa/api/resources/billing.rb
|
90
|
+
- lib/kentaa/api/resources/company.rb
|
91
|
+
- lib/kentaa/api/resources/company_package.rb
|
104
92
|
- lib/kentaa/api/resources/consent.rb
|
105
93
|
- lib/kentaa/api/resources/contact.rb
|
106
94
|
- lib/kentaa/api/resources/donation.rb
|
@@ -111,6 +99,7 @@ files:
|
|
111
99
|
- lib/kentaa/api/resources/manual_donation.rb
|
112
100
|
- lib/kentaa/api/resources/newsletter_subscription.rb
|
113
101
|
- lib/kentaa/api/resources/performance.rb
|
102
|
+
- lib/kentaa/api/resources/performance_photo.rb
|
114
103
|
- lib/kentaa/api/resources/photo.rb
|
115
104
|
- lib/kentaa/api/resources/project.rb
|
116
105
|
- lib/kentaa/api/resources/question.rb
|
@@ -131,7 +120,8 @@ files:
|
|
131
120
|
homepage: https://github.com/KentaaNL/kentaa-api
|
132
121
|
licenses:
|
133
122
|
- MIT
|
134
|
-
metadata:
|
123
|
+
metadata:
|
124
|
+
rubygems_mfa_required: 'true'
|
135
125
|
post_install_message:
|
136
126
|
rdoc_options: []
|
137
127
|
require_paths:
|
@@ -140,14 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
130
|
requirements:
|
141
131
|
- - ">="
|
142
132
|
- !ruby/object:Gem::Version
|
143
|
-
version: 2.
|
133
|
+
version: 2.5.0
|
144
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
135
|
requirements:
|
146
136
|
- - ">="
|
147
137
|
- !ruby/object:Gem::Version
|
148
138
|
version: '0'
|
149
139
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.0.9
|
151
141
|
signing_key:
|
152
142
|
specification_version: 4
|
153
143
|
summary: Ruby library for communicating with the Kentaa API
|
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
|