rapgenius 1.0.3 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49d2a75888cab784e125d546bd00a1a4679e2c7e
4
- data.tar.gz: d0af868132d15dd99eb641a1334df3e368d7a008
3
+ metadata.gz: c71afe670cc43e7e1c0fbf1b4504e71ac1ec11c2
4
+ data.tar.gz: d378f0323e4913251404d7f5bc8ed2d38a6315fd
5
5
  SHA512:
6
- metadata.gz: 87ea2f40881d158f9b9d41a61ccc28bf296b09e549cb49d671cae27c9f176f2c5a0f8e20416f976101d95af1feb55d71db0cef7c4d0f3ffea10d9bfffb50be85
7
- data.tar.gz: 5ee75b7e8fd7645d160d1623e9437384d023b53b26e95aa5dc2fa3cf294a60bb44b858b99b7891ed08b6fda22373facf10b22fbf1770c5d491d41ec567fa69cf
6
+ metadata.gz: 646954e3fe4018e2a68774669e975b748546ec0eb16b30ea0d0a0a99fd043040d85a1f3eb980328fb6e19087bcd8f06abab07eb9456c40fcdfa1e21c225c37ca
7
+ data.tar.gz: ae683ff90366e036b70ca2e99b8895a2f164c004774463b84cce1f27d50810cc7bbee0aae7efe40e94c6cee14914f38866cbeebab0e42b4e6e87d7d2123f0dc0
@@ -33,6 +33,7 @@ __v1.0.2__ (2nd February 2014)
33
33
  * Defines a specific `RapGenius::NotFoundError` for when requests to the API
34
34
  return a 404
35
35
 
36
- __v1.0.3__ (2nd February 2014)
36
+ __v1.0.4__ (8th November 2014)
37
37
 
38
- * Adds `#id` accessor to Artist
38
+ * Fix annotations, so they're combined into a string with a space between each
39
+ one
data/README.md CHANGED
@@ -16,7 +16,7 @@ a private API, which this gem makes use of.
16
16
  Install the gem, and you're ready to go. Simply add the following to your
17
17
  Gemfile:
18
18
 
19
- `gem "rapgenius", "~> 1.0.3"`
19
+ `gem "rapgenius", "~> 1.0.4"`
20
20
 
21
21
  ## Usage
22
22
 
@@ -3,8 +3,6 @@ module RapGenius
3
3
  class Artist
4
4
  include RapGenius::Client
5
5
 
6
- attr_reader :id
7
-
8
6
  def self.find(id)
9
7
  self.new(id: id).tap { |artist| artist.document }
10
8
  end
@@ -42,7 +42,7 @@ module RapGenius
42
42
  @explanation ||= response["annotations"].map do |annotation|
43
43
  annotation["body"]["dom"]["children"].map do |node|
44
44
  parse_description(node)
45
- end.join("")
45
+ end.join(" ")
46
46
  end.flatten
47
47
  end
48
48
 
@@ -2,7 +2,6 @@
2
2
  module RapGenius
3
3
  class Song
4
4
  include RapGenius::Client
5
-
6
5
  attr_reader :id
7
6
 
8
7
  def self.find(id)
@@ -1,3 +1,3 @@
1
1
  module RapGenius
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -7,7 +7,6 @@ module RapGenius
7
7
 
8
8
  its(:url) { should eq "http://rapgenius.com/artists/Drake" }
9
9
  its(:name) { should eq "Drake" }
10
- its(:id) { should eq 130 }
11
10
  its(:image) { should eq "http://images.rapgenius.com/2b3fa8326a5277fa31f2012a7b581e2e.500x319x11.gif" }
12
11
  its(:description) { should include "Drake is part of a generation of new rappers" }
13
12
 
@@ -3,10 +3,10 @@ require 'spec_helper'
3
3
  module RapGenius
4
4
  describe Line, vcr: { cassette_name: "line-2638695" } do
5
5
 
6
- let(:line) { described_class.find(2638695) }
6
+ let(:line) { described_class.find("2638695") }
7
7
  subject { line }
8
8
 
9
- its(:id) { should eq 2638695 }
9
+ its(:id) { should eq "2638695" }
10
10
  its(:song) { should be_a Song }
11
11
  its(:lyric) { should eq "Versace, Versace, Medusa head on me like I'm 'luminati" }
12
12
  its("explanations.first") { should include "Versace’s logo is the head of Medusa" }
@@ -5,7 +5,6 @@ module RapGenius
5
5
  context "given Migos's Versace", vcr: { cassette_name: "song-176872" } do
6
6
  subject(:song) { described_class.find(176872) }
7
7
 
8
- its(:id) { should eq 176872 }
9
8
  its(:url) { should eq "http://rapgenius.com/Migos-versace-lyrics" }
10
9
  its(:title) { should eq "Versace" }
11
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapgenius
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Rogers
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-02 00:00:00.000000000 Z
12
+ date: 2014-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.0.3
145
+ rubygems_version: 2.4.1
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: A gem for accessing lyrics and explanations on RapGenius.com