itch_rewards 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/itch_rewards/cli.rb +3 -3
- data/lib/itch_rewards/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 532a40f260d7f2942244c1b983c20eea419c18eeea3ac601cb41f461e11eefd5
|
4
|
+
data.tar.gz: 5609c23072f7f006ca5a781f1c561d613942fcf1d8856c48f0c9f294d2d46e18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63e1a8858b7250c27a782ba1e57bdd1af9833070c88d5e720fb371d1ef5689f4211f4cafbc62c4964e656bd88f12d497049f5e1fc7f24ac049e89d329e201d28
|
7
|
+
data.tar.gz: b151326787353dabd45dfef0180c088edeac0180df15703b74fb297b8b2032d2950f542c0bec49632cf51874401fa0fdc293d26c32ab59bdf83a77aa18ee9d13
|
data/Gemfile.lock
CHANGED
data/lib/itch_rewards/cli.rb
CHANGED
@@ -114,7 +114,7 @@ module ItchRewards
|
|
114
114
|
result = cli.yes?("Config file #{config_path} does not exist, would you like to create it?")
|
115
115
|
|
116
116
|
if result
|
117
|
-
write_config(config_path)
|
117
|
+
Rewards.write_config(config_path, options)
|
118
118
|
cli.say "Config file written to #{config_path}"
|
119
119
|
end
|
120
120
|
else
|
@@ -148,9 +148,9 @@ module ItchRewards
|
|
148
148
|
cli.say render_table(table)
|
149
149
|
end
|
150
150
|
|
151
|
-
def self.write_config(path)
|
151
|
+
def self.write_config(path, options)
|
152
152
|
require 'erb'
|
153
|
-
client = authenticated_client!
|
153
|
+
client = authenticated_client!(options)
|
154
154
|
|
155
155
|
games = client.game_map.map.values
|
156
156
|
template = File.read(File.join(__dir__, 'templates/reward_config.yml.erb'))
|
data/lib/itch_rewards/version.rb
CHANGED