musk 0.1.4 → 0.1.5

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: fe54725858bda7ea5b54f600384b2825aa215beb
4
- data.tar.gz: 714ce8c5c38647b30f12d94440c41ec2bd3bdd68
3
+ metadata.gz: b6fbabb4893fc5a6bd0f19518e3a907315924c47
4
+ data.tar.gz: 9c3aa75d246f6631336e22d0fef746fd75fe1136
5
5
  SHA512:
6
- metadata.gz: 4e84f1c53a46a00e865f6b1c72a5dae29a7bf8040fa1fe73a160e4b82a19fd25ccdb58a44e378565e038b66d603e5974231510e7a903a079f466496ade18a6e2
7
- data.tar.gz: 25b70dc5dee44dc91aa5e388e9653f9a5978594a2b6bff2fd6f1338bf7e0740fad451a26c29e71559fb390db81ea77ad5b19740ad3bfc0a5cfaf18dd530095a4
6
+ metadata.gz: e83faf0aefe688bbcd451aa9473e4c4a2f4d5b709db75a4207ecaa93d64d89d0d2cb7d4c9751ba9834af52da3266a7bd726d2b6e50ca01cf9f6429b900001ef7
7
+ data.tar.gz: d9f5db98079f587d2c5c39ba6132fc47f48d5fc14c2e59f05febd30112a6a2449a0b34627a62a90a5c818861d080c350edd2f0bb702677ecac31f12fd740d65b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- musk (0.1.4)
4
+ musk (0.1.5)
5
5
  gli (~> 2.9)
6
6
  taglib-ruby (~> 0.6)
7
7
 
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ## Musk
2
2
 
3
- [![Gem Version](https://img.shields.io/gem/v/musk.svg)](https://badge.fury.io/rb/musk)
4
- [![Code Climate](https://img.shields.io/codeclimate/github/pempel/musk.svg)](https://codeclimate.com/github/pempel/musk)
5
- [![Coverage Status](https://img.shields.io/coveralls/pempel/musk/master.svg)](https://coveralls.io/r/pempel/musk?branch=master)
6
- [![Build Status](https://img.shields.io/travis/pempel/musk/master.svg)](https://travis-ci.org/pempel/musk)
7
- [![Dependency Status](https://img.shields.io/gemnasium/pempel/musk.svg)](https://gemnasium.com/pempel/musk)
8
- [![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://tldrlegal.com/license/mit-license)
3
+ [![Gem Version](http://img.shields.io/gem/v/musk.svg)](https://badge.fury.io/rb/musk)
4
+ [![Code Climate](http://img.shields.io/codeclimate/github/pempel/musk.svg)](https://codeclimate.com/github/pempel/musk)
5
+ [![Coverage Status](http://img.shields.io/coveralls/pempel/musk/master.svg)](https://coveralls.io/r/pempel/musk?branch=master)
6
+ [![Build Status](http://img.shields.io/travis/pempel/musk/master.svg)](https://travis-ci.org/pempel/musk)
7
+ [![Dependency Status](http://img.shields.io/gemnasium/pempel/musk.svg)](https://gemnasium.com/pempel/musk)
8
+ [![MIT License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://tldrlegal.com/license/mit-license)
9
9
 
10
10
  Use musk to impart the demonic scent of musk to your music.
11
11
  Musk allows you to extract tags from MP3 files and perfume MP3 files
@@ -0,0 +1,10 @@
1
+ module Musk
2
+ module Formatter
3
+ class Base
4
+ def initialize(tracks)
5
+ @tracks = tracks.map { |t| Musk::Decorator::PrintableTrack.new(t) }
6
+ @fields = [:path, :title, :position, :artist, :release, :genre, :year, :comment]
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,15 +1,10 @@
1
1
  module Musk
2
2
  module Formatter
3
- class CSV
3
+ class CSV < Base
4
4
  def self.print(tracks)
5
5
  new(tracks).print
6
6
  end
7
7
 
8
- def initialize(tracks)
9
- @tracks = tracks.map { |t| Musk::Decorator::PrintableTrack.new(t) }
10
- @fields = [:path, :title, :position, :artist, :release, :genre, :year, :comment]
11
- end
12
-
13
8
  def print
14
9
  @tracks.each { |t| puts printed(t) }
15
10
  end
@@ -1,15 +1,10 @@
1
1
  module Musk
2
2
  module Formatter
3
- class Pretty
3
+ class Pretty < Base
4
4
  def self.print(tracks)
5
5
  new(tracks).print
6
6
  end
7
7
 
8
- def initialize(tracks)
9
- @tracks = tracks.map { |t| Musk::Decorator::PrintableTrack.new(t) }
10
- @fields = [:path, :title, :position, :artist, :release, :genre, :year, :comment]
11
- end
12
-
13
8
  def print
14
9
  puts @tracks.map { |t| printed(t) }.join("\n")
15
10
  end
data/lib/musk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Musk
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/musk.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "musk/decorator/printable_track"
2
+ require "musk/formatter/base"
2
3
  require "musk/formatter/csv"
3
4
  require "musk/formatter/pretty"
4
5
  require "musk/track"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Pempel
@@ -55,6 +55,7 @@ files:
55
55
  - bin/musk
56
56
  - lib/musk.rb
57
57
  - lib/musk/decorator/printable_track.rb
58
+ - lib/musk/formatter/base.rb
58
59
  - lib/musk/formatter/csv.rb
59
60
  - lib/musk/formatter/pretty.rb
60
61
  - lib/musk/track.rb