valorant_daily_store 1.0.3 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8218782433c124d7e6c1df1df74584fabe07ed0ac8c8e5d3c0ee7daf4edb821
4
- data.tar.gz: ed263fb90ee5bbd98261fecf1da67fc12a4d01a0dc6e9a8e035b85ca235691c7
3
+ metadata.gz: 8f3a44a21a5cb77c69496f9fcb8cd8cf887a738a780853b1226ea0f35adb9356
4
+ data.tar.gz: 0e89b1c1bb9ab74f2f8c1eab33c5a8828393e3a9f67a9d7d0921d60aedd1b246
5
5
  SHA512:
6
- metadata.gz: 7fca8c260a6246fa0954f6abf6f48022819e0f23d42b4c998b934b5866c6da607d6dfeaa2d16394e53dd7b4aac8102ddc7322c976888f053ce82596ad2983bf0
7
- data.tar.gz: 27461d1462d5c1714e3d4294a27efe94c92693d52bab5a6245007adec66fb84240d664dc347e9c701cf709e6e358a75c82d6f9c7dccb69338af6393a9e97d309
6
+ metadata.gz: aed42f5bbf6df1c9c95dfb4ef82958a606683eaebfc264ad1ef3ccba2e53b702ab3f043b2ba28d56ebdf976aaab27db18b12fa1ccda25b989100a34a8cf65996
7
+ data.tar.gz: 19ae610b9f838090eca535753ec29abbfd2c52b4391f4eca2d2876b0d9560d94c9e7aa12dc5b95f076d880d3fa540833cfc04b6c1cf6a52854c87c04295c78d6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.6](https://github.com/Vegann/valorant_daily_store/compare/v1.0.5...v1.0.6) (2022-07-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * some additional headers have to be passed to retrieve the cookie ([3525428](https://github.com/Vegann/valorant_daily_store/commits/352542839434c250d4e16cfab836c272542f0267))
11
+ * version in package.json ([2418763](https://github.com/Vegann/valorant_daily_store/commits/24187639d54f12aeed49e870b941e1a0de5eca7e))
12
+
13
+ ### [1.0.1](https://github.com/Vegann/valorant_daily_store/compare/v1.0.5...v1.0.1) (2022-07-17)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * some additional headers have to be passed to retrieve the cookie ([3525428](https://github.com/Vegann/valorant_daily_store/commits/352542839434c250d4e16cfab836c272542f0267))
19
+
20
+ ### [1.0.5](https://github.com/Vegann/valorant_daily_store/compare/v1.0.4...v1.0.5) (2022-01-30)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * dont require pry in the skin class ([df22e48](https://github.com/Vegann/valorant_daily_store/commits/df22e485d5fadac7853c4c0f06f6d24f96c4fd4a))
26
+
27
+ ### [1.0.4](https://github.com/Vegann/valorant_daily_store/compare/v1.0.3...v1.0.4) (2022-01-29)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * cli ([f8ee988](https://github.com/Vegann/valorant_daily_store/commits/f8ee988efd96a47d95d1544fe05fd896a1221761))
33
+
5
34
  ### [1.0.3](https://github.com/Vegann/valorant_daily_store/compare/v1.0.2...v1.0.3) (2022-01-29)
6
35
 
7
36
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- valorant_daily_store (1.0.3)
4
+ valorant_daily_store (1.0.6)
5
5
  faraday (~> 2.1)
6
6
  faraday-cookie_jar (~> 0.0.7)
7
7
  thor (~> 1.2.1)
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/valorant_daily_store.svg)](https://rubygems.org/gems/valorant_daily_store)
1
2
  # Valorant Daily Store
2
3
 
3
4
  This gem will let you see your daily store without opening the game
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "valorant_daily_store/cli"
4
+
5
+ ValorantDailyStore::CLI.start(ARGV)
@@ -31,7 +31,12 @@ module ValorantDailyStore
31
31
  private
32
32
 
33
33
  def set_starting_cookies
34
- response = auth_conn.post("/api/v1/authorization", {nonce: "1", client_id: "play-valorant-web-prod", redirect_uri: "https://playvalorant.com/opt_in", response_type: "token id_token"})
34
+ response = auth_conn.post("/api/v1/authorization", {
35
+ nonce: "1",
36
+ client_id: "play-valorant-web-prod",
37
+ redirect_uri: "https://playvalorant.com/opt_in",
38
+ response_type: "token id_token"
39
+ })
35
40
  if response.status != 200
36
41
  raise AuthorizationCookiesError
37
42
  end
@@ -124,7 +129,9 @@ module ValorantDailyStore
124
129
  builder.response :json
125
130
  builder.request :json
126
131
  builder.adapter Faraday.default_adapter
127
- builder.headers["User-Agent"] = "RiotClient/43.0.1.4195386.4190634 rso-auth (Windows;10;;Professional, x64)"
132
+ builder.headers["Host"] = "auth.riotgames.com"
133
+ builder.headers["Referer"] = "https://hoppscotch.io/"
134
+ builder.headers["Origin"] = "https://hoppscotch.io"
128
135
  end
129
136
  end
130
137
 
@@ -1,4 +1,3 @@
1
- require "pry"
2
1
  module ValorantDailyStore
3
2
  class Skin
4
3
  def initialize(name:, price:, photo:, video:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ValorantDailyStore
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.6"
5
5
  end
data/package-lock.json CHANGED
@@ -1925,9 +1925,9 @@
1925
1925
  }
1926
1926
  },
1927
1927
  "node_modules/minimist": {
1928
- "version": "1.2.5",
1929
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
1930
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
1928
+ "version": "1.2.6",
1929
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
1930
+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
1931
1931
  "dev": true
1932
1932
  },
1933
1933
  "node_modules/minimist-options": {
@@ -4363,9 +4363,9 @@
4363
4363
  }
4364
4364
  },
4365
4365
  "minimist": {
4366
- "version": "1.2.5",
4367
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
4368
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
4366
+ "version": "1.2.6",
4367
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
4368
+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
4369
4369
  "dev": true
4370
4370
  },
4371
4371
  "minimist-options": {
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valorant_daily_store",
3
- "version": "1.0.0",
3
+ "version": "1.0.5",
4
4
  "description": "Simple gem to get your daily valorant store",
5
5
  "private": true,
6
6
  "directories": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valorant_daily_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vegann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-29 00:00:00.000000000 Z
11
+ date: 2022-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday-cookie_jar
@@ -153,7 +153,8 @@ dependencies:
153
153
  description:
154
154
  email:
155
155
  - git@vegann.anonaddy.com
156
- executables: []
156
+ executables:
157
+ - valorant_daily_store
157
158
  extensions: []
158
159
  extra_rdoc_files: []
159
160
  files:
@@ -174,7 +175,7 @@ files:
174
175
  - Rakefile
175
176
  - bin/console
176
177
  - bin/setup
177
- - bin/valorant_daily_store
178
+ - exe/valorant_daily_store
178
179
  - gem-version-updater.js
179
180
  - gemfile-lock-updater.js
180
181
  - lib/valorant_daily_store.rb
@@ -217,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
218
  - !ruby/object:Gem::Version
218
219
  version: '0'
219
220
  requirements: []
220
- rubygems_version: 3.3.3
221
+ rubygems_version: 3.3.7
221
222
  signing_key:
222
223
  specification_version: 4
223
224
  summary: Get your valorant daily store
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'valorant_daily_store/cli'
4
-
5
- ValorantDailyStore::CLI.start(ARGV)