relic_link 0.1.0 → 0.1.1
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/Gemfile.lock +15 -9
- data/README.md +3 -1
- data/lib/relic_link/coh3/faraday/connection.rb +3 -0
- data/lib/relic_link/version.rb +1 -1
- data/relic_link.gemspec +3 -1
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a9653c0649e12019ff4063d809eda6a317fa0eb0dbc1bf7518df0dc2a92ef3
|
4
|
+
data.tar.gz: 476e0b48c7753f552fbb1e0b33f1366c1683b75845f4244716574a39bb62c161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5337418bfd5336e1f1e2e521dab13ae49e5e711e94bee4b4b5499bf703344d8cc82e6515f75deae727c3718a425a2fe0ad3a7a88ffd7f2e1f926b726dd29b26
|
7
|
+
data.tar.gz: e0d92805ae1aadba0cd464e12b2a056f9112d40f525f41982dafab433b04dd5c8ec0e9979c4fc4fab5b01a914b48b0a76d62f22a4cc56c7d4795e335eedff69a
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relic_link (0.1.
|
4
|
+
relic_link (0.1.1)
|
5
5
|
faraday (~> 2.7)
|
6
|
+
faraday-mashify (~> 0.1)
|
7
|
+
hashie (~> 5.0)
|
6
8
|
|
7
9
|
GEM
|
8
10
|
remote: https://rubygems.org/
|
@@ -12,39 +14,43 @@ GEM
|
|
12
14
|
faraday (2.7.4)
|
13
15
|
faraday-net_http (>= 2.0, < 3.1)
|
14
16
|
ruby2_keywords (>= 0.0.4)
|
17
|
+
faraday-mashify (0.1.1)
|
18
|
+
faraday (~> 2.0)
|
19
|
+
hashie
|
15
20
|
faraday-net_http (3.0.2)
|
21
|
+
hashie (5.0.0)
|
16
22
|
json (2.6.3)
|
17
|
-
parallel (1.
|
18
|
-
parser (3.2.2.
|
23
|
+
parallel (1.23.0)
|
24
|
+
parser (3.2.2.1)
|
19
25
|
ast (~> 2.4.1)
|
20
26
|
rainbow (3.1.1)
|
21
27
|
rake (13.0.6)
|
22
|
-
regexp_parser (2.
|
28
|
+
regexp_parser (2.8.0)
|
23
29
|
rexml (3.2.5)
|
24
30
|
rspec (3.12.0)
|
25
31
|
rspec-core (~> 3.12.0)
|
26
32
|
rspec-expectations (~> 3.12.0)
|
27
33
|
rspec-mocks (~> 3.12.0)
|
28
|
-
rspec-core (3.12.
|
34
|
+
rspec-core (3.12.2)
|
29
35
|
rspec-support (~> 3.12.0)
|
30
|
-
rspec-expectations (3.12.
|
36
|
+
rspec-expectations (3.12.3)
|
31
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
38
|
rspec-support (~> 3.12.0)
|
33
39
|
rspec-mocks (3.12.5)
|
34
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
35
41
|
rspec-support (~> 3.12.0)
|
36
42
|
rspec-support (3.12.0)
|
37
|
-
rubocop (1.
|
43
|
+
rubocop (1.50.2)
|
38
44
|
json (~> 2.3)
|
39
45
|
parallel (~> 1.10)
|
40
46
|
parser (>= 3.2.0.0)
|
41
47
|
rainbow (>= 2.2.2, < 4.0)
|
42
48
|
regexp_parser (>= 1.8, < 3.0)
|
43
49
|
rexml (>= 3.2.5, < 4.0)
|
44
|
-
rubocop-ast (>= 1.
|
50
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
45
51
|
ruby-progressbar (~> 1.7)
|
46
52
|
unicode-display_width (>= 2.4.0, < 3.0)
|
47
|
-
rubocop-ast (1.28.
|
53
|
+
rubocop-ast (1.28.1)
|
48
54
|
parser (>= 3.2.1.0)
|
49
55
|
ruby-progressbar (1.13.0)
|
50
56
|
ruby2_keywords (0.0.5)
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# RelicLink
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/relic_link) [](https://rubydoc.info/github/ryantaylor/relic_link/v0.1.1)
|
4
|
+
|
3
5
|
A client wrapper for Relic APIs. Currently supports the Company of Heroes 3 leaderboard, stats, and recent matches API.
|
4
6
|
|
5
7
|
## Installation
|
@@ -27,7 +29,7 @@ client.recent_match_history(profile_ids: [8230])
|
|
27
29
|
client.recent_match_history_by_profile_id(8230)
|
28
30
|
client.personal_stats(profile_ids: [8230])
|
29
31
|
```
|
30
|
-
Consult the documentation for all endpoints that have been discovered and are currently queryable. Note that Relic does not publish official documentation for their endpoints, so the functionality here is based on best estimates and is subject to change without warning. Please open an issue if you are aware of endpoints that are not exposed in this library!
|
32
|
+
Consult the [documentation](https://rubydoc.info/github/ryantaylor/relic_link/v0.1.1) for all endpoints that have been discovered and are currently queryable. Note that Relic does not publish official documentation for their endpoints, so the functionality here is based on best estimates and is subject to change without warning. Please open an issue if you are aware of endpoints that are not exposed in this library!
|
31
33
|
|
32
34
|
## Contributing
|
33
35
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'faraday/mashify'
|
4
|
+
|
3
5
|
module RelicLink
|
4
6
|
module Coh3
|
5
7
|
module Faraday
|
@@ -15,6 +17,7 @@ module RelicLink
|
|
15
17
|
f.params[:title] = 'coh3'
|
16
18
|
|
17
19
|
f.response :logger
|
20
|
+
f.response :mashify
|
18
21
|
f.response :json
|
19
22
|
end
|
20
23
|
end
|
data/lib/relic_link/version.rb
CHANGED
data/relic_link.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.required_ruby_version = '>= 3.1.0'
|
16
16
|
|
17
|
-
spec.metadata[
|
17
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
18
18
|
|
19
19
|
spec.metadata['homepage_uri'] = spec.homepage
|
20
20
|
spec.metadata['source_code_uri'] = spec.homepage
|
@@ -31,6 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.require_paths = ['lib']
|
32
32
|
|
33
33
|
spec.add_dependency 'faraday', '~> 2.7'
|
34
|
+
spec.add_dependency 'faraday-mashify', '~> 0.1'
|
35
|
+
spec.add_dependency 'hashie', '~> 5.0'
|
34
36
|
|
35
37
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
36
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relic_link
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryantaylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday-mashify
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: hashie
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
27
55
|
description: Wraps Relic APIs for easy access in Ruby. Current supports CoH3 stats/leaderboards
|
28
56
|
API.
|
29
57
|
email:
|