valorant_daily_store 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.commitlintrc.json +3 -0
- data/.husky/commit-msg +4 -0
- data/.husky/pre-commit +4 -0
- data/.rspec +3 -0
- data/.standard.yml +2 -0
- data/.tool-versions +1 -0
- data/.versionrc.json +24 -0
- data/.vscode/settings.json +4 -0
- data/CHANGELOG.md +52 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +100 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +10 -0
- data/bin/console +12 -0
- data/bin/setup +9 -0
- data/bin/valorant_daily_store +5 -0
- data/gem-version-updater.js +16 -0
- data/gemfile-lock-updater.js +16 -0
- data/lib/valorant_daily_store/cli.rb +25 -0
- data/lib/valorant_daily_store/consts.rb +3 -0
- data/lib/valorant_daily_store/data.rb +163 -0
- data/lib/valorant_daily_store/errors.rb +49 -0
- data/lib/valorant_daily_store/skin.rb +26 -0
- data/lib/valorant_daily_store/version.rb +5 -0
- data/lib/valorant_daily_store.rb +10 -0
- data/package-lock.json +5070 -0
- data/package.json +26 -0
- data/sig/valorant_daily_store.rbs +4 -0
- data/valorant_daily_store.gemspec +42 -0
- data/vcr_cassettes/entitlements_token_could_not_be_acquired.json +127 -0
- data/vcr_cassettes/everything_went_fine.json +530 -0
- data/vcr_cassettes/offers_could_not_be_acquired.json +274 -0
- data/vcr_cassettes/player_id_could_not_be_acquired.json +175 -0
- data/vcr_cassettes/skin_ids_could_not_be_acquired.json +231 -0
- data/vcr_cassettes/username_or_password_is_invalid.json +123 -0
- data/vcr_cassettes/valorant_api_fail.json +530 -0
- metadata +224 -0
data/package.json
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "valorant_daily_store",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Simple gem to get your daily valorant store",
|
5
|
+
"private": true,
|
6
|
+
"directories": {
|
7
|
+
"lib": "lib"
|
8
|
+
},
|
9
|
+
"scripts": {
|
10
|
+
"release": "standard-version",
|
11
|
+
"release:minor": "standard-version --release-as minor",
|
12
|
+
"release:patch": "standard-version --release-as patch",
|
13
|
+
"release:major": "standard-version --release-as major",
|
14
|
+
"prepare": "husky install"
|
15
|
+
},
|
16
|
+
"author": "Vegann",
|
17
|
+
"license": "MIT",
|
18
|
+
"devDependencies": {
|
19
|
+
"husky": "^7.0.0",
|
20
|
+
"standard-version": "^9.3.2"
|
21
|
+
},
|
22
|
+
"dependencies": {
|
23
|
+
"@commitlint/cli": "^16.1.0",
|
24
|
+
"@commitlint/config-conventional": "^16.0.0"
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/valorant_daily_store/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "valorant_daily_store"
|
7
|
+
spec.version = ValorantDailyStore::VERSION
|
8
|
+
spec.authors = ["Vegann"]
|
9
|
+
spec.email = ["git@vegann.anonaddy.com"]
|
10
|
+
|
11
|
+
spec.summary = "Get your valorant daily store"
|
12
|
+
spec.homepage = "https://github.com/Vegann/valorant_daily_store"
|
13
|
+
spec.license = "MIT"
|
14
|
+
spec.required_ruby_version = ">= 3.1.0"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/Vegann/valorant_daily_store"
|
18
|
+
spec.metadata["changelog_uri"] = "https://github.com/Vegann/valorant_daily_store/blob/main/CHANGELOG.md"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
24
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
25
|
+
end
|
26
|
+
end
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_dependency "faraday-cookie_jar", "~> 0.0.7"
|
32
|
+
spec.add_dependency "faraday", "~> 2.1"
|
33
|
+
spec.add_dependency "thor", "~> 1.2.1"
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 2.3.3"
|
36
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency "pry", "~> 0.14.1"
|
39
|
+
spec.add_development_dependency "standard", "~> 1.3"
|
40
|
+
spec.add_development_dependency "vcr", "~> 6.0"
|
41
|
+
spec.add_development_dependency "webmock", "~> 3.14"
|
42
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
{
|
2
|
+
"http_interactions": [
|
3
|
+
{
|
4
|
+
"request": {
|
5
|
+
"method": "post",
|
6
|
+
"uri": "https://auth.riotgames.com/api/v1/authorization",
|
7
|
+
"body": {
|
8
|
+
"encoding": "UTF-8",
|
9
|
+
"string": "{\"nonce\":\"1\",\"client_id\":\"play-valorant-web-prod\",\"redirect_uri\":\"https://playvalorant.com/opt_in\",\"response_type\":\"token id_token\"}"
|
10
|
+
},
|
11
|
+
"headers": {
|
12
|
+
"User-Agent": [
|
13
|
+
"RiotClient/43.0.1.4195386.4190634 rso-auth (Windows;10;;Professional, x64)"
|
14
|
+
],
|
15
|
+
"Content-Type": ["application/json"],
|
16
|
+
"Accept-Encoding": ["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],
|
17
|
+
"Accept": ["*/*"]
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"response": {
|
21
|
+
"status": {
|
22
|
+
"code": 200,
|
23
|
+
"message": "OK"
|
24
|
+
},
|
25
|
+
"headers": {
|
26
|
+
"Date": ["Fri, 28 Jan 2022 23:25:11 GMT"],
|
27
|
+
"Content-Type": ["application/json; charset=utf-8"],
|
28
|
+
"Content-Length": ["31"],
|
29
|
+
"Connection": ["keep-alive"],
|
30
|
+
"Cache-Control": [
|
31
|
+
"no-store, no-cache, must-revalidate, proxy-revalidate"
|
32
|
+
],
|
33
|
+
"Etag": ["W/\"1f-YDrzkZDFynr/UugAD0CjFX4MZHA\""],
|
34
|
+
"Expires": ["0"],
|
35
|
+
"Pragma": ["no-cache"],
|
36
|
+
"Set-Cookie": [
|
37
|
+
"__cf_bm=M4f7g4Hwzhombr7Q.GsEcI2..CIMgwvA_.hny0Ej4QQ-1643412311-0-AQzWbh3zeThanPzR9icAb2/WRoZtaMHe3G5SsASPy/nj478d5NVPieqtzH9qEFo3MOxhiYON4jB8VEjB5GQVBCY=; path=/; expires=Fri, 28-Jan-22 23:55:11 GMT; domain=.riotgames.com; HttpOnly; Secure; SameSite=None",
|
38
|
+
"asid=xxxxx; Path=/; HttpOnly; Secure; SameSite=Strict",
|
39
|
+
"clid=ec1; Path=/; HttpOnly; Secure",
|
40
|
+
"tdid=xxxxx; Max-Age=31536000; Domain=riotgames.com; Path=/; Expires=Sat, 28 Jan 2023 23:25:11 GMT; HttpOnly; Secure"
|
41
|
+
],
|
42
|
+
"Surrogate-Control": ["no-store"],
|
43
|
+
"Vary": ["Accept-Encoding"],
|
44
|
+
"X-Content-Type-Options": ["nosniff"],
|
45
|
+
"X-Download-Options": ["noopen"],
|
46
|
+
"Cf-Cache-Status": ["DYNAMIC"],
|
47
|
+
"Expect-Ct": [
|
48
|
+
"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
|
49
|
+
],
|
50
|
+
"X-Riotgames-Cdn": ["Cloudflare"],
|
51
|
+
"Server": ["cloudflare"],
|
52
|
+
"Cf-Ray": ["6d4dfa829be4cc93-WAW"]
|
53
|
+
},
|
54
|
+
"body": {
|
55
|
+
"encoding": "UTF-8",
|
56
|
+
"string": "{\"type\":\"auth\",\"country\":\"pol\"}"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"recorded_at": "Fri, 28 Jan 2022 23:25:12 GMT"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"request": {
|
63
|
+
"method": "put",
|
64
|
+
"uri": "https://auth.riotgames.com/api/v1/authorization",
|
65
|
+
"body": {
|
66
|
+
"encoding": "UTF-8",
|
67
|
+
"string": "{\"type\":\"auth\",\"username\":\"xxxxx\",\"password\":\"xxxxx\"}"
|
68
|
+
},
|
69
|
+
"headers": {
|
70
|
+
"User-Agent": [
|
71
|
+
"RiotClient/43.0.1.4195386.4190634 rso-auth (Windows;10;;Professional, x64)"
|
72
|
+
],
|
73
|
+
"Cookie": [
|
74
|
+
"__cf_bm=M4f7g4Hwzhombr7Q.GsEcI2..CIMgwvA_.hny0Ej4QQ-1643412311-0-AQzWbh3zeThanPzR9icAb2/WRoZtaMHe3G5SsASPy/nj478d5NVPieqtzH9qEFo3MOxhiYON4jB8VEjB5GQVBCY=; asid=xxxxx; clid=ec1; tdid=xxxxx"
|
75
|
+
],
|
76
|
+
"Content-Type": ["application/json"],
|
77
|
+
"Accept-Encoding": ["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],
|
78
|
+
"Accept": ["*/*"]
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"response": {
|
82
|
+
"status": {
|
83
|
+
"code": 200,
|
84
|
+
"message": "OK"
|
85
|
+
},
|
86
|
+
"headers": {
|
87
|
+
"Date": ["Fri, 28 Jan 2022 23:25:12 GMT"],
|
88
|
+
"Content-Type": ["application/json; charset=utf-8"],
|
89
|
+
"Transfer-Encoding": ["chunked"],
|
90
|
+
"Connection": ["keep-alive"],
|
91
|
+
"Cache-Control": [
|
92
|
+
"no-store, no-cache, must-revalidate, proxy-revalidate"
|
93
|
+
],
|
94
|
+
"Etag": ["W/\"577-6lxnlkEmmg2+CbF/hy4hEgbhPqM\""],
|
95
|
+
"Expires": ["0"],
|
96
|
+
"Pragma": ["no-cache"],
|
97
|
+
"Set-Cookie": [
|
98
|
+
"asid=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; Secure",
|
99
|
+
"clid=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; Secure",
|
100
|
+
"clid=ec1; Path=/; HttpOnly; Secure",
|
101
|
+
"csid=xxxxx; Path=/; Secure; SameSite=None",
|
102
|
+
"ssid=xxxxx; Path=/; HttpOnly; Secure; SameSite=None",
|
103
|
+
"sub=xxxxx; Path=/; Secure",
|
104
|
+
"tdid=xxxxx; Max-Age=31536000; Domain=riotgames.com; Path=/; Expires=Sat, 28 Jan 2023 23:25:11 GMT; HttpOnly; Secure"
|
105
|
+
],
|
106
|
+
"Surrogate-Control": ["no-store"],
|
107
|
+
"Vary": ["Accept-Encoding"],
|
108
|
+
"X-Content-Type-Options": ["nosniff"],
|
109
|
+
"X-Download-Options": ["noopen"],
|
110
|
+
"Cf-Cache-Status": ["DYNAMIC"],
|
111
|
+
"Expect-Ct": [
|
112
|
+
"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
|
113
|
+
],
|
114
|
+
"X-Riotgames-Cdn": ["Cloudflare"],
|
115
|
+
"Server": ["cloudflare"],
|
116
|
+
"Cf-Ray": ["6d4dfa83bcab0030-WAW"]
|
117
|
+
},
|
118
|
+
"body": {
|
119
|
+
"encoding": "ASCII-8BIT",
|
120
|
+
"string": "{\"type\":\"response\",\"response\":{\"mode\":\"fragment\",\"parameters\":{\"uri\":\"https://playvalorant.com/opt_in#access_token=xxxxx&scope=openid&iss=https%3A%2F%2Fauth.riotgames.com&id_token=xxxxx&token_type=Bearer&session_state=yRySr1jVDGX8RwPQM317R_GP7UAFNjqB5CeYjKH7W58.wD4NWOlrASbfPZZQTWCqHg&expires_in=3600\"}},\"country\":\"pol\"}"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
"recorded_at": "Fri, 28 Jan 2022 23:25:13 GMT"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"recorded_with": "VCR 6.0.0"
|
127
|
+
}
|