spotify_rec 1.2 → 1.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tutorial.rb +56 -0
  3. data/public/users.json +47 -1
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 832dfdbb67807131538f45562b49208797c83e0b11604cbbaa72891af354daab
4
- data.tar.gz: cc7abdbdc29cda735fb491e2eb30c35957dd60be465f30f9e253d6c4fe8f294a
3
+ metadata.gz: b08957a3d839195d0423afad8a933ebd1da0fe079dabdadfd2f37883b3a78c92
4
+ data.tar.gz: a8b1fe7c2d427c1a597505fed3e53b9f95a26f5bc591b7e535bbc74efac215a7
5
5
  SHA512:
6
- metadata.gz: bc61791f2c2d5065b66010f991f5c625db257209562648f917f05832e8dcadb4545fe452e9c75eb30e9ff021a54e4e1be2dc97fd7f99bba0826cd65f5afb33fb
7
- data.tar.gz: 528555fb05397d6d5106f724324d56da3e2eed96a003eed0a3ce9270640beba67f6dfb8d46724202007df0d6d059dab152945a396d2d82281523a3662f289a11
6
+ metadata.gz: c7a91d805bc0eae3619bee76b301736455b06959dfaa9ade5886f4e49e894726c12ad861b297a6546f73f29675d28367f832af666d10894f8d5e64ecb81c9241
7
+ data.tar.gz: ede7bc294c3b7faad5a5e4bd5e33dd0d9f59df4fbebec713ad36e8c9f1c22ad496f261cdd56355a94f23563fb8d9f5c0ed0a913c3b4cedf02cd621bf6f745146
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Contains methods to display tutorial screens
4
+ module Tutorial
5
+ @prompt = TTY::Prompt.new
6
+
7
+ def start
8
+ system('clear')
9
+ puts '》 WELCOME TO SPOTIFY REC 《'.colorize(:light_green)
10
+ puts 'This tutorial will walk you through the basics to using the app.'
11
+ puts "There are 3 main areas that you'll need to understand:"
12
+ puts '- My List'
13
+ puts '- Recommendations'
14
+ puts '- Playlist'
15
+ puts
16
+ @prompt.keypress('Press any key to continue..')
17
+ my_list
18
+ end
19
+
20
+ def my_list
21
+ system('clear')
22
+ puts '》 MY LIST 《'.colorize(:light_green)
23
+ puts 'My List is the base that your recommendations are generated from. It can consist of'
24
+ puts "up to 5 of any 'items'. An item is either a track, artist or genre. You can add and remove"
25
+ puts 'items from my list, so make sure to change them up regularly to get a range of recommendations!'
26
+ puts "Searching for an item will return the top 5 results for your keywords, so if yours doesn't show"
27
+ puts 'up, try searching again with a more specific query!'
28
+ puts
29
+ @prompt.keypress('Press any key to continue..')
30
+ recommendations
31
+ end
32
+
33
+ def recommendations
34
+ system('clear')
35
+ puts '》 RECOMMENDATIONS 《'.colorize(:light_green)
36
+ puts 'As mentioned on the previous screen, recommendations are tracks, and are generated based on the'
37
+ puts "items in your list. You can select the amount you'd like to generate, and select any number of"
38
+ puts 'the recommendations to store in your playlist. Recommendations are capped at 10 per generate,'
39
+ puts 'but you can repeat the generate step as many times as you would like.'
40
+ puts
41
+ @prompt.keypress('Press any key to continue..')
42
+ playlist
43
+ end
44
+
45
+ def playlist
46
+ system('clear')
47
+ puts '》 PLAYLIST 《'.colorize(:light_green)
48
+ puts "Your playlist stores all of the recommendations you've chosen, but you can also manually add and"
49
+ puts "remove songs as well. This can all be done from the playlist menu. At any point you'd like to look"
50
+ puts 'at your playlist outside of Spotify Rec, you can export the contents to a file on your desktop.'
51
+ puts 'This file includes a link to each song on Spotify, so you can easily go and start listening!'
52
+ puts
53
+ @prompt.keypress('Press any key to return to finish..')
54
+ exit
55
+ end
56
+ end
@@ -1 +1,47 @@
1
- []
1
+ [
2
+ {
3
+ "id": "1",
4
+ "username": "benahale",
5
+ "password": "password",
6
+ "playlist": [
7
+ {
8
+ "name": "44 More",
9
+ "id": "3e7Y6sfFlIdBMJhX7wpqVO",
10
+ "artist": "Logic"
11
+ },
12
+ {
13
+ "name": "Outnumbered",
14
+ "id": "6UjZ2Yx2g2a52XxiA8ONxZ",
15
+ "artist": "Dermot Kennedy"
16
+ }
17
+ ],
18
+ "mylist": [
19
+ {
20
+ "name": "Dermot Kennedy",
21
+ "id": "5KNNVgR6LBIABRIomyCwKJ",
22
+ "type": "artist"
23
+ },
24
+ {
25
+ "name": "MIDDLE CHILD",
26
+ "artist": "J. Cole",
27
+ "id": "2JvzF1RMd7lE3KmFlsyZD8",
28
+ "type": "track"
29
+ },
30
+ {
31
+ "name": "Pop",
32
+ "type": "genre"
33
+ },
34
+ {
35
+ "name": "Fool's Gold - Acoustic",
36
+ "artist": "Passenger",
37
+ "id": "4JPB2Kjr3lkMJFz4sZnt6G",
38
+ "type": "track"
39
+ },
40
+ {
41
+ "name": "Drake",
42
+ "id": "3TVXtAsR1Inumwj472S9r4",
43
+ "type": "artist"
44
+ }
45
+ ]
46
+ }
47
+ ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotify_rec
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ahale
@@ -23,6 +23,7 @@ files:
23
23
  - lib/my_list.rb
24
24
  - lib/playlist.rb
25
25
  - lib/rec.rb
26
+ - lib/tutorial.rb
26
27
  - lib/user.rb
27
28
  - public/users.json
28
29
  homepage: