Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
feat: adds gemspec, closes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Apr 29, 2020
1 parent 99b9863 commit d7e49b3
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.DS_Store
coverage/
.bundle/
*.gem
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Metrics/LineLength:
Layout/LineLength:
Max: 140
AllCops:
NewCops: enable
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'rake/testtask'

Rake::TestTask.new do |test|
test.test_files = Dir.glob('test/**/*_spec.rb')
end

task(default: :test)
3 changes: 3 additions & 0 deletions bin/mp3lyrics
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby

require 'mp3lyrics'
2 changes: 1 addition & 1 deletion mp3lyrics.rb → lib/mp3lyrics.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'mp3info'
require 'require_all'

require_all './lib/'
require_all './lib/wiki/'

def to_b(string)
!(string =~ /^(true|t|yes|y|1)$/i).nil?
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions mp3lyrics.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Gem::Specification.new do |s|
s.name = 'mp3lyrics'
s.version = '0.1.0'
s.date = '2010-04-28'
s.summary = 'CLI for mp3 lyrics fetching'
s.description = 'CLI for mp3 lyrics fetching. Uses ruby-mp3info and fetches different lyric wikis'
s.authors = ['Tim Brust']
s.email = '[email protected]'
s.files = Dir['{lib}/**/*.rb', 'bin/*', 'LICENSE', '*.md']
s.homepage = 'https://github.com/timbru31/'
s.license = 'MIT'
s.executables << 'mp3lyrics'
end
10 changes: 0 additions & 10 deletions rakefile.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/azlyrics_spec.rb → test/azlyrics_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require_relative './spec_helper'
require_relative '../lib/azlyrics'
require_relative '../lib/wiki/azlyrics'

rise_against_lyrics = "He said \"Son, have you seen the world?\rWell, what would you say if I "\
"said that you could?\rJust carry this gun and you'll even get paid\"\rI said \"That "\
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/genius_spec.rb → test/genius_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require_relative './spec_helper'
require_relative '../lib/genius'
require_relative '../lib/wiki/genius'

numb_lyrics = "[Verse 1: Chester Bennington]\rI'm tired of being what you want me to be\rFeeling so faithless, lost under the surface\r" \
"I don't know what you're expecting of me\rPut under the pressure of walking in your shoes\r\r[Pre-Chorus: Chester Bennington &amp; " \
Expand Down
2 changes: 1 addition & 1 deletion spec/lyricwiki_spec.rb → test/lyricwiki_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require_relative './spec_helper'
require_relative '../lib/lyricwiki'
require_relative '../lib/wiki/lyricwiki'

enter_shikari_lyrics = "Now, I don't know about you, but I don't think the primary purpose of your "\
"life, of my life and the entirety of the human race's is just to blindly consume to support a "\
Expand Down
2 changes: 1 addition & 1 deletion spec/metrolyrics_spec.rb → test/metrolyrics_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require_relative './spec_helper'
require_relative '../lib/metrolyrics'
require_relative '../lib/wiki/metrolyrics'

breaking_benjamin_lyrics = "Hold it together\rBirds of a feather\rNothing but lies and crooked wings\rI have the "\
"answer\rSpreading the cancer\rYou are the faith inside me\rNo\rDon't leave me to die here\rHelp me survive here "\
Expand Down
File renamed without changes.

0 comments on commit d7e49b3

Please sign in to comment.