valorant_daily_store 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
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,4 @@
1
+ module ValorantDailyStore
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
@@ -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
+ }