ruby_tunes 0.4.3 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f1bf753a5d4c415fad20e2488c47399cffd40fd1956594101a0b8ff52483d3e
4
- data.tar.gz: 95d47d11ccb29c5c08f0cd5547acdbc1d39592a0d557b8aff3990c7907f267cd
3
+ metadata.gz: fa8c3ec84390bae484995a181992f43cde505444c5012543f2129b05d696ec38
4
+ data.tar.gz: a182966dba9efa83199215299173925ce49e50a7d594a93b0a4ca7936981b6ac
5
5
  SHA512:
6
- metadata.gz: 77a275f341a0560d08d8c0a17905a71e963789b1c1c2b0e3bd091823210a4948c9c93e3822bb67bc17a21177e0c8ab2b8ca4f1c1971d2be82edaa490e81d081d
7
- data.tar.gz: 50ad5a8784ccd51de2862d8a05eb14b98694fc1816a0e5e84fb45934cf2eaa5eb635b4bfe71b8f0c4d1aaf3184ffedd219d00d4a59058dcf9bb7dfedad37ccf7
6
+ metadata.gz: a4130e5dea15fe38de8391974f8b953493df326b2141215adff8017aa36b1f04d23eac63400d695da5d53b26c01e72b113aa76442b638bc67e2fb0064bba71cf
7
+ data.tar.gz: c861c6a9de0e84b0119a69f03bb99a4b4545ffbd312354a1c1dcb4f8ed3f63b5bc15c69a447c43e5f56192089081632102e2e9f8e934dbae4dfc4be2b34b87b4
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gemspec
7
7
  # gem 'rspec'
8
8
 
9
9
  # Debugging
10
- gem 'pry'
10
+ # gem 'pry'
11
11
 
12
12
  # gem 'require_all'
13
13
 
data/lib/ruby_tunes.rb CHANGED
@@ -1,48 +1,62 @@
1
1
  require 'launchy'
2
- require 'pry'
2
+ # require 'pry'
3
3
 
4
4
  module RubyTunes
5
5
 
6
6
  $music = {
7
7
  "rock" => ["https://youtu.be/ijGesPRut_o", "https://youtu.be/7Gr63DiEUxw", "https://youtu.be/Jesi67UJMVk", "https://youtu.be/tuHkNbk4nos", "https://youtu.be/J9jKQulDRCQ", "https://youtu.be/LE4u5qnJJj8", "https://youtu.be/55NJzOSuKuY"],
8
8
  "country" => ["https://youtu.be/3pQc25SCaNs", "https://youtu.be/3A85JE2ugiI", "https://youtu.be/qcCH6JpcK5w", "https://youtu.be/23nlI9t4TlM", "https://youtu.be/XUH5FjUX3Qo", "https://youtu.be/P7kqqmr2HWI", "https://youtu.be/Vlhy7QPFohY"],
9
- "rap" => ["https://www.youtube.com/watch?v=ElOo0psAs3E", "https://www.youtube.com/watch?v=u7Fw8OHnJZM", "https://www.youtube.com/watch?v=mVFKMomXMOc", "https://www.youtube.com/watch?v=v5ybdpttu40", "https://www.youtube.com/watch?v=pmdI9YdLQ_o", "https://youtu.be/yL9bRzwk0Ds", "https://youtu.be/87VaeIKXV1s", "https://youtu.be/myrXQebr488", "https://www.youtube.com/watch?v=8UhshSef0zs"]
9
+ "rap" => ["https://www.youtube.com/watch?v=ElOo0psAs3E", "https://www.youtube.com/watch?v=u7Fw8OHnJZM", "https://www.youtube.com/watch?v=mVFKMomXMOc", "https://www.youtube.com/watch?v=v5ybdpttu40", "https://www.youtube.com/watch?v=pmdI9YdLQ_o", "https://youtu.be/yL9bRzwk0Ds", "https://youtu.be/87VaeIKXV1s", "https://youtu.be/myrXQebr488", "https://www.youtube.com/watch?v=8UhshSef0zs"],
10
+ "pop" => ["https://youtu.be/av5JD1dfj_c","https://youtu.be/0yW7w8F2TVA","https://youtu.be/PT2_F-1esPk","https://youtu.be/2Vv-BfVoq4g","https://youtu.be/y83x7MgzWOA","https://youtu.be/k2qgadSvNyU","https://youtu.be/-BjZmE2gtdo"]
10
11
  }
11
12
 
12
13
 
13
14
  class Rock
14
15
  def self.play
15
- Rock.new.open_in_browser
16
+ Rock.new.open_in_browser
16
17
  end
17
18
 
18
19
  def open_in_browser
19
- Launchy.open($music["rock"].sample)
20
+ Launchy.open($music["rock"].sample)
20
21
  end
21
22
  end
22
23
 
23
24
 
24
25
  class Country
25
26
  def self.play
26
- Country.new.open_in_browser
27
+ Country.new.open_in_browser
27
28
  end
28
29
 
29
30
  def open_in_browser
30
- Launchy.open($music["country"].sample)
31
+ Launchy.open($music["country"].sample)
31
32
  end
32
33
  end
33
34
 
34
35
 
35
36
  class Rap
36
37
  def self.play
37
- Rap.new.open_in_browser
38
+ Rap.new.open_in_browser
38
39
  end
39
40
 
40
41
  def open_in_browser
41
- Launchy.open($music["rap"].sample)
42
+ Launchy.open($music["rap"].sample)
42
43
  end
43
44
  end
44
45
 
45
- # binding.pry
46
+
47
+
48
+ class Pop
49
+ def self.play
50
+ Pop.new.open_in_browser
51
+ end
52
+
53
+ def open_in_browser
54
+ Launchy.open($music["pop"].sample)
55
+ end
56
+ end
57
+
58
+
59
+ # binding.pry
46
60
 
47
61
  end
48
62
 
@@ -1,3 +1,3 @@
1
1
  module RubyTunes
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
data/ruby_tunes.gemspec CHANGED
@@ -31,5 +31,4 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "bundler", "~> 2.0"
32
32
  spec.add_development_dependency "rake", "~> 10.0"
33
33
  spec.add_dependency "launchy"
34
- spec.add_dependency "pry"
35
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_tunes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - aryaziai
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  description: My second ruby gem. Plays a random selected song from the genre you choose.
70
56
  email:
71
57
  - arya721@gmail.com