mixtape 0.0.2 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 969e5a517f915f3661191cf97528e3c858f8f6d4
4
- data.tar.gz: ea399c1ee34808dc230ef2f62a9689067b711352
3
+ metadata.gz: 79558111db5f22b4a7777a20d1d96d202008cef1
4
+ data.tar.gz: a5b5df2d6584b5747815610f60626190e0262c85
5
5
  SHA512:
6
- metadata.gz: 5a3105a17ff8ec89ae9580f78b1988d3084bf696c558773ce9c6eea5066d1dec3458f6bbfaef00b6fa7ff5759d8095d2bb91a7a49c33805f6f5905814a97ca21
7
- data.tar.gz: 8aabd17fb65413e814721772cfb5212e529f551549db5c12b53d6927a7a9172e4f676d5b9d758ccd7f997ad00b7c78a4fa74380b299a7688002fa1982be037ee
6
+ metadata.gz: 525b89af6338859b066afa4f7141e32ea7a6d3b8507c0252346d58d44efb18140d2ea0ddc95d3cf91b53a07055a5747f2ee99716acc5a45f746f9e167f1b29e2
7
+ data.tar.gz: 434e3fd2d904047341cff5f54d2194d920ec2868b7814e6c46b13efb0626e0509f5cf91e9cf1c0dede5533bac82b3dc21cc6f98168b85319361863f46d7c5b84
@@ -3,7 +3,7 @@
3
3
  $LOAD_PATH.unshift File.expand_path('../../lib/', __FILE__)
4
4
  require 'mixtape'
5
5
 
6
- source = ARGV[0] || Mixtape::Source.constants.sample.to_s
6
+ source = ARGV[0] || (Mixtape::Source.constants - [:Base]).sample.to_s
7
7
 
8
8
  begin
9
9
  cli = Mixtape::CLI.new(source, 10)
@@ -2,6 +2,8 @@ module Mixtape
2
2
  class CLI
3
3
  class InvalidSource < StandardError; end
4
4
 
5
+ attr_reader :source
6
+
5
7
  def initialize(source_name, number_of_songs)
6
8
  source_constant = Mixtape::Source.const_get(source_name.capitalize)
7
9
  @source = source_constant.new(number_of_songs)
@@ -1,3 +1,3 @@
1
1
  module Mixtape
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixtape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Añasco