lyrics_finder 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98684a768ba21a1eb6325dc6c660d20e0326ea0b
4
- data.tar.gz: 5d650d627b2d2ed7259b186dc6c6df01110f2132
3
+ metadata.gz: 765287c206829de996e764c6c2ba0976fb410283
4
+ data.tar.gz: ffa8da1b47f88c47ad515b04669fc74d2698163a
5
5
  SHA512:
6
- metadata.gz: 0da1845a239dc51bcf3e2d7cbfd8e3110c48404074bff06884247ea7eae6dcf70d87cda69f9f310679fcfc6dedbdd522367f25b60136268d2d4d2bc665581210
7
- data.tar.gz: 506bae0ec626a79315f6840bf93c3849ba6efd6d8d9fda4b05292d485e42ccba8e2837b75bb25bcae538d04b390c1bc4e8906aea6c19342f776ada05631b8008
6
+ metadata.gz: 2e43b41ab4f61080d266d09ab3848257923275f4abbf9a23420761081592fd0d25673a1f16bbc9849d897e66df8a697d280991053b3a501127c9beca3b0c23c1
7
+ data.tar.gz: 94b7c8d466b670a170667d8621347355f2d003fcc3a7e06823087241017d3895d72020fbcc6c08109dcbd3b4e5c6c15c9f962b3fbb237031f6c10d2754d20b21
data/.gitignore CHANGED
@@ -25,4 +25,6 @@ mkmf.log
25
25
 
26
26
  .idea
27
27
 
28
- spec/vcr_cassettes
28
+ spec/vcr_cassettes
29
+
30
+ tags
@@ -1,3 +1,3 @@
1
1
  module LyricsFinder
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.6'
22
22
  spec.add_development_dependency 'rake'
23
- spec.add_development_dependency 'rspec', '~> 2.14.0'
23
+ spec.add_development_dependency 'rspec', '~> 3.1'
24
24
  spec.add_development_dependency 'vcr', '~> 2.9.2'
25
25
  spec.add_development_dependency 'webmock', '~> 1.18.0'
26
26
  spec.add_development_dependency 'coveralls', '~> 0.7.0'
@@ -1,11 +1,9 @@
1
1
  describe LyricsFinder do
2
-
3
2
  describe '#search' do
4
3
 
5
4
  context 'With LyricsWikia as the provider' do
6
5
  before :each do
7
- # LyricsFinder::Providers.stub(:list).and_return([LyricsFinder::Providers::LyricsWikia])
8
- LyricsFinder::Providers.stub(list: [LyricsFinder::Providers::LyricsWikia])
6
+ allow(LyricsFinder::Providers).to receive(:list).and_return([LyricsFinder::Providers::LyricsWikia])
9
7
  VCR.use_cassette 'LyricsWikia 200 search' do
10
8
  @song = LyricsFinder.search("american authors", "best day of my life")
11
9
  end
@@ -22,10 +20,10 @@ describe LyricsFinder do
22
20
 
23
21
  context 'With LyricsMania as the provider' do
24
22
  before :each do
25
- LyricsFinder::Providers.stub(list: [LyricsFinder::Providers::LyricsMania])
23
+ allow(LyricsFinder::Providers).to receive(:list).and_return([LyricsFinder::Providers::LyricsMania])
26
24
  VCR.use_cassette 'LyricsMania 200 search' do
27
25
  @song = LyricsFinder.search("american authors", "best day of my life")
28
- end
26
+ end
29
27
  end
30
28
 
31
29
  it 'returns an instance of Array' do
@@ -39,7 +37,7 @@ describe LyricsFinder do
39
37
 
40
38
  context 'With SongLyrics as the provider' do
41
39
  before :each do
42
- LyricsFinder::Providers.stub(list: [LyricsFinder::Providers::SongLyrics])
40
+ allow(LyricsFinder::Providers).to receive(:list).and_return([LyricsFinder::Providers::SongLyrics])
43
41
  VCR.use_cassette 'SongLyrics 200 search' do
44
42
  @song = LyricsFinder.search("american authors", "best day of my life")
45
43
  end
@@ -56,7 +54,7 @@ describe LyricsFinder do
56
54
 
57
55
  context 'With Azlyrics as the provider' do
58
56
  before :each do
59
- LyricsFinder::Providers.stub(list: [LyricsFinder::Providers::Azlyrics])
57
+ allow(LyricsFinder::Providers).to receive(:list).and_return([LyricsFinder::Providers::Azlyrics])
60
58
  VCR.use_cassette 'Azlyrics 200 search' do
61
59
  @song = LyricsFinder.search("american authors", "best day of my life")
62
60
  end
@@ -84,5 +82,4 @@ describe LyricsFinder do
84
82
  end
85
83
 
86
84
  end # '#search'
87
-
88
85
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyrics_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Romero
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 2.14.0
47
+ version: '3.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 2.14.0
54
+ version: '3.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: vcr
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +197,6 @@ files:
197
197
  - spec/spec_helper.rb
198
198
  - spec/support/sample_songs.rb
199
199
  - spec/support/vcr_setup.rb
200
- - tags
201
200
  homepage: https://github.com/dnlR/lyrics_finder
202
201
  licenses:
203
202
  - MIT
data/tags DELETED
@@ -1,26 +0,0 @@
1
- !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
- !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
- !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
- !_TAG_PROGRAM_NAME Exuberant Ctags //
5
- !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
- !_TAG_PROGRAM_VERSION 5.8 //
7
- CLI lib/lyrics_finder/cli.rb /^ class CLI < Thor$/;" c class:Lyrics
8
- Lyrics lib/lyrics_finder/cli.rb /^module Lyrics$/;" m
9
- LyricsFinder lib/lyrics_finder.rb /^module LyricsFinder$/;" m
10
- LyricsFinder lib/lyrics_finder/providers.rb /^module LyricsFinder::Providers$/;" m
11
- LyricsFinder lib/lyrics_finder/version.rb /^module LyricsFinder$/;" m
12
- SampleSongs spec/support/sample_songs.rb /^module SampleSongs$/;" m
13
- Song lib/lyrics_finder/song.rb /^class Song$/;" c
14
- css_element lib/lyrics_finder/providers.rb /^ def css_element; "#songLyricsDiv"; end$/;" f class:LyricsFinder
15
- css_element lib/lyrics_finder/providers.rb /^ def css_element; ".lyricbox"; end$/;" f class:LyricsFinder
16
- css_element lib/lyrics_finder/providers.rb /^ def css_element; ".lyrics-body"; end$/;" f class:LyricsFinder
17
- css_element lib/lyrics_finder/providers.rb /^ def css_element; "div:nth-child(7)"; end$/;" f class:LyricsFinder
18
- extract_lyric_from_data lib/lyrics_finder/providers.rb /^ def self.extract_lyric_from_data(data)$/;" F class:LyricsFinder
19
- format_attributes_with_separator! lib/lyrics_finder/song.rb /^ def format_attributes_with_separator!(separator)$/;" f class:Song
20
- format_url lib/lyrics_finder/providers.rb /^ def format_url$/;" f class:LyricsFinder
21
- initialize lib/lyrics_finder/song.rb /^ def initialize(author, title)$/;" f class:Song
22
- list lib/lyrics_finder/providers.rb /^ def self.list$/;" F class:LyricsFinder
23
- perform_request lib/lyrics_finder.rb /^ def self.perform_request(url)$/;" F class:LyricsFinder
24
- provider_url_for_song lib/lyrics_finder/providers.rb /^ def self.provider_url_for_song(provider, song)$/;" F class:LyricsFinder
25
- search lib/lyrics_finder.rb /^ def self.search(author, title)$/;" F class:LyricsFinder
26
- search lib/lyrics_finder/cli.rb /^ def search$/;" f class:Lyrics.CLI