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 +4 -4
- data/Gemfile +1 -1
- data/lib/ruby_tunes.rb +23 -9
- data/lib/ruby_tunes/version.rb +1 -1
- data/ruby_tunes.gemspec +0 -1
- metadata +1 -15
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: fa8c3ec84390bae484995a181992f43cde505444c5012543f2129b05d696ec38
         | 
| 4 | 
            +
              data.tar.gz: a182966dba9efa83199215299173925ce49e50a7d594a93b0a4ca7936981b6ac
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a4130e5dea15fe38de8391974f8b953493df326b2141215adff8017aa36b1f04d23eac63400d695da5d53b26c01e72b113aa76442b638bc67e2fb0064bba71cf
         | 
| 7 | 
            +
              data.tar.gz: c861c6a9de0e84b0119a69f03bb99a4b4545ffbd312354a1c1dcb4f8ed3f63b5bc15c69a447c43e5f56192089081632102e2e9f8e934dbae4dfc4be2b34b87b4
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        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 | 
            -
             | 
| 16 | 
            +
                  Rock.new.open_in_browser
         | 
| 16 17 | 
             
                end
         | 
| 17 18 |  | 
| 18 19 | 
             
                def open_in_browser
         | 
| 19 | 
            -
             | 
| 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 | 
            -
             | 
| 27 | 
            +
                  Country.new.open_in_browser
         | 
| 27 28 | 
             
                end
         | 
| 28 29 |  | 
| 29 30 | 
             
                def open_in_browser
         | 
| 30 | 
            -
             | 
| 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 | 
            -
             | 
| 38 | 
            +
                  Rap.new.open_in_browser
         | 
| 38 39 | 
             
                end
         | 
| 39 40 |  | 
| 40 41 | 
             
                def open_in_browser
         | 
| 41 | 
            -
             | 
| 42 | 
            +
                  Launchy.open($music["rap"].sample)
         | 
| 42 43 | 
             
                end
         | 
| 43 44 | 
             
              end
         | 
| 44 45 |  | 
| 45 | 
            -
             | 
| 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 |  | 
    
        data/lib/ruby_tunes/version.rb
    CHANGED
    
    
    
        data/ruby_tunes.gemspec
    CHANGED
    
    
    
        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. | 
| 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
         |