steamdeals-cli-gem 0.1.3 → 0.1.4
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/lib/steam_deals/cli.rb +11 -13
- data/lib/steam_deals/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b50e60bf4fcd9202d5e467b527b846efbcfaf72
|
|
4
|
+
data.tar.gz: d4ff4a7cb71d19c1ed0d1f7031479e996c9af0b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 663709905bbece6636ec8c515f8e4c7471d2eceef16a31e2e0030919edb03298d22a68142c132847013d19b6e3f08a0947c5764c173effbb844ac256726d57fc
|
|
7
|
+
data.tar.gz: 914c527d0c58bcda820b76c37508573a5adf3125caf556ccf7760de9a32dea2f0160f13d286e5c90cac68859e7133e6a15793b695a6291d7ada384704cdbcead
|
data/lib/steam_deals/cli.rb
CHANGED
|
@@ -24,13 +24,8 @@ class SteamDeals::CLI
|
|
|
24
24
|
|
|
25
25
|
def display_daily_deals
|
|
26
26
|
puts "\nNow retreiving Daily Deals. Please be patient\n"
|
|
27
|
-
puts "\nHere are the apps listed for today's Steam Daily Deals"
|
|
28
|
-
puts "-------------------------------------------------------"
|
|
29
27
|
SteamDeals::Deal.scrape_daily_deals
|
|
30
|
-
|
|
31
|
-
puts "#{index}. #{app.name}"
|
|
32
|
-
end
|
|
33
|
-
puts " "
|
|
28
|
+
puts "\nHere are the apps listed for today's Steam Daily Deals"
|
|
34
29
|
show_game_list
|
|
35
30
|
end
|
|
36
31
|
|
|
@@ -38,11 +33,6 @@ class SteamDeals::CLI
|
|
|
38
33
|
puts "\nNow retreiving Weeklong Deals. Please be patient\n"
|
|
39
34
|
SteamDeals::Deal.scrape_weeklong_deals
|
|
40
35
|
puts "Here are the apps listed for today's Steam Weeklong Deals"
|
|
41
|
-
puts "-------------------------------------------------------"
|
|
42
|
-
SteamDeals::Deal.all.each.with_index(1) do |app,index|
|
|
43
|
-
puts "#{index}. #{app.name}"
|
|
44
|
-
end
|
|
45
|
-
puts " "
|
|
46
36
|
show_game_list
|
|
47
37
|
end
|
|
48
38
|
|
|
@@ -50,7 +40,7 @@ class SteamDeals::CLI
|
|
|
50
40
|
input = ""
|
|
51
41
|
while input != "exit"
|
|
52
42
|
puts ""
|
|
53
|
-
puts "What details would you like to see? (Enter number choice or type exit to return to previous menu)"
|
|
43
|
+
puts "What details would you like to see about #{game.name}? (Enter number choice or type exit to return to previous menu)"
|
|
54
44
|
puts ""
|
|
55
45
|
puts "1. Sale Details"
|
|
56
46
|
puts "2. Game Details"
|
|
@@ -103,6 +93,11 @@ class SteamDeals::CLI
|
|
|
103
93
|
def show_game_list
|
|
104
94
|
input = ""
|
|
105
95
|
while input != "exit"
|
|
96
|
+
puts "-------------------------------------------------------"
|
|
97
|
+
SteamDeals::Deal.all.each.with_index(1) do |app, index|
|
|
98
|
+
puts "#{index}. #{app.name}"
|
|
99
|
+
end
|
|
100
|
+
puts " "
|
|
106
101
|
puts "Which game would you like to see in detail? (Enter the number associtaed with game on list)"
|
|
107
102
|
puts "or you can enter 'exit' to return to previous menu"
|
|
108
103
|
input = gets.chomp.downcase
|
|
@@ -112,8 +107,11 @@ class SteamDeals::CLI
|
|
|
112
107
|
elsif input.to_i > 0 && game = SteamDeals::Deal.app_at(input.to_i)
|
|
113
108
|
display_details(game)
|
|
114
109
|
else
|
|
115
|
-
puts "\nInvalid input. Try again.\n"
|
|
110
|
+
puts "\nInvalid input. Try again.\n"
|
|
111
|
+
puts "Reloading..."
|
|
112
|
+
sleep(1)
|
|
116
113
|
end
|
|
114
|
+
|
|
117
115
|
end
|
|
118
116
|
end
|
|
119
117
|
|
data/lib/steam_deals/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: steamdeals-cli-gem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Thomas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|