rap_songs 0.6.0 → 0.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '059a334b584292cd4c991211598b5d5c9f1e94d9d33eaa111f71e72d54f55195'
4
- data.tar.gz: 891b96ab5ce9e54f98361e99c1a4c4cc378ff7ef25b6f248abd5487e637f0925
3
+ metadata.gz: 9eea2e896cfe968d36f9ddc16a77d364032ad5ba212a1d50d5453547f1386bfd
4
+ data.tar.gz: aa7620e64ad3bd7a431424a8b8d2a399b9969649bf0c6e2af5d5cce962208ee2
5
5
  SHA512:
6
- metadata.gz: 01a2fa54f830136467f491ba4342bd7743ca292f72e11f3065084844576cece88af966578689cc59a25d8228b1c922683e8cfd26dbb4ed4d88870cae84456cc8
7
- data.tar.gz: 97d15dee85fd7c2119231d8841e20610ed9a1c35bc3a2d58f664c75cb0f76edf0ed3756037989e167f9efc560f89b65e1c83e94f891eb75814014740caf6952a
6
+ metadata.gz: 7e330180c8ee013874dea24344eba501118e6907bab406ab95cee20ddb5e35125eb2ac31918b541606866b69325b0663a7d1b419058c05cef9dc4b3c43fd472a
7
+ data.tar.gz: d260e5ebe6b5c0509f978a95989c3b029f2fce8cb28ffd6ccfc4da476bc5301e2835a27c9671b8c076b91a8e64c050a9062f09bc1670d2caff83a50a223cd2be
data/Gemfile CHANGED
@@ -9,4 +9,8 @@ gem 'rspec'
9
9
  # Debugging
10
10
  gem 'pry'
11
11
 
12
- gem 'require_all'
12
+ gem 'require_all'
13
+
14
+ gem 'launchy'
15
+
16
+
data/Gemfile.lock CHANGED
@@ -1,17 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rap_songs (0.6.0)
4
+ rap_songs (0.7.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ addressable (2.7.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
9
11
  coderay (1.1.2)
10
12
  diff-lcs (1.3)
13
+ launchy (2.4.3)
14
+ addressable (~> 2.3)
11
15
  method_source (0.9.2)
12
16
  pry (0.12.2)
13
17
  coderay (~> 1.1.0)
14
18
  method_source (~> 0.9.0)
19
+ public_suffix (4.0.1)
15
20
  rake (10.5.0)
16
21
  require_all (3.0.0)
17
22
  rspec (3.9.0)
@@ -33,6 +38,7 @@ PLATFORMS
33
38
 
34
39
  DEPENDENCIES
35
40
  bundler (~> 2.0)
41
+ launchy
36
42
  pry
37
43
  rake (~> 10.0)
38
44
  rap_songs!
data/README.md CHANGED
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
  $ gem install rap_songs
19
19
 
20
20
 
21
- TODO: Write usage instructions here
21
+ ```RapSongs::Song.play```
22
22
 
23
23
  ## Development
24
24
 
@@ -1,2 +1,4 @@
1
1
  require 'require_all'
2
- require 'pry'
2
+ require 'pry'
3
+ require 'Launchy'
4
+
@@ -1,3 +1,3 @@
1
1
  module RapSongs
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
data/lib/rap_songs.rb CHANGED
@@ -5,28 +5,26 @@ require "rap_songs/version"
5
5
  module RapSongs
6
6
  class Song
7
7
 
8
- # RapSongs::Song.play
9
8
 
10
9
  def random_song
11
- ["IndigoChildRick - Vogue https://www.youtube.com/watch?v=ElOo0psAs3E",
12
- "Divine Council - Dirtbags in Distress https://www.youtube.com/watch?v=u7Fw8OHnJZM",
13
- "Sheck Wes - YKTS https://www.youtube.com/watch?v=mVFKMomXMOc",
14
- "Yung Bans - Partna in Crime https://www.youtube.com/watch?v=v5ybdpttu40",
15
- "Trippie Redd - Lil Wayne https://www.youtube.com/watch?v=pmdI9YdLQ_o",
16
- "Travis Scott - Skyfall ft. Young Thug - https://youtu.be/yL9bRzwk0Ds",
17
- "Madeintyo - Need Dat Pack - https://youtu.be/87VaeIKXV1s",
18
- "Kanye West 1997 Beat Tape - https://youtu.be/myrXQebr488",
10
+ ["https://www.youtube.com/watch?v=ElOo0psAs3E",
11
+ "https://www.youtube.com/watch?v=u7Fw8OHnJZM",
12
+ "https://www.youtube.com/watch?v=mVFKMomXMOc",
13
+ "https://www.youtube.com/watch?v=v5ybdpttu40",
14
+ "https://www.youtube.com/watch?v=pmdI9YdLQ_o",
15
+ "https://youtu.be/yL9bRzwk0Ds",
16
+ "https://youtu.be/87VaeIKXV1s",
17
+ "https://youtu.be/myrXQebr488",
19
18
  ].sample
20
19
  end
21
20
 
22
- def execute
23
- puts "\n\nHold Command + Press Link:\n"
24
- puts "#{random_song} \n\n\n"
25
- end
26
-
27
21
  def self.play
28
22
  song = Song.new
29
- song.execute
23
+ song.open_in_browser
24
+ end
25
+
26
+ def open_in_browser
27
+ Launchy.open(random_song)
30
28
  end
31
29
 
32
30
  # binding.pry
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rap_songs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aryaziai