vagalume 0.1.6 → 0.1.7

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: cdb570dd97273427b15f1f1038d14673f7e8220b
4
- data.tar.gz: 4dd491d32fabed72de2253289668845f398babf0
3
+ metadata.gz: 22b175a12e11ac29b9d3f0bb7c1d8ae9939a8d60
4
+ data.tar.gz: f3222160fcc0e3728cc4121805dcf343703dac86
5
5
  SHA512:
6
- metadata.gz: 20fd8b6211abf6acb9ae361a00bcda7c990bc18cc1816c45e31cf4c64a78fb88516d022baa4f7b6c1ddfcc94306482e409d75894836b54adb8df1f77f3f370c5
7
- data.tar.gz: 3ea8b96d1a530ff86efde1f8d4f2657da8306bc1b3912f6f10a2a15ca02f3495b6cd107208b9c93ac7218297a88eea0126d57e593e2eeb9c620731a6b06f40a5
6
+ metadata.gz: 44506d63053c42667a4e6c29eb5e397999dd408638f1360a99bd2c081964dce65afcf0d71bbed9b418a21449f3a792bfdf8287250632686c1329d060500ed308
7
+ data.tar.gz: e206ce99571e0662d4326eabcf205678120d56af2e110454c32b57cfd17c0d41678b569573a808bbb61dd6240c40b97b88232c83b817eb86c9b79a0befbf5d71
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vagalume (0.1.6)
4
+ vagalume (0.1.7)
5
5
  multi_json (~> 1.9)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  crack (0.4.2)
12
12
  safe_yaml (~> 1.0.0)
13
13
  diff-lcs (1.2.5)
14
- multi_json (1.10.1)
14
+ multi_json (1.12.1)
15
15
  rspec (2.14.1)
16
16
  rspec-core (~> 2.14.0)
17
17
  rspec-expectations (~> 2.14.0)
@@ -35,3 +35,6 @@ DEPENDENCIES
35
35
  vagalume!
36
36
  vcr (~> 2.9)
37
37
  webmock (~> 1.17)
38
+
39
+ BUNDLED WITH
40
+ 1.12.5
data/lib/vagalume.rb CHANGED
@@ -12,7 +12,7 @@ require_relative "vagalume/status"
12
12
  module Vagalume
13
13
  extend self
14
14
 
15
- BASE_URL = "http://www.vagalume.com.br/api/search.php?"
15
+ BASE_URL = "https://www.vagalume.com.br/api/search.php?"
16
16
 
17
17
  def find(artist, song)
18
18
  request_url = BASE_URL + "art=#{CGI.escape(artist)}&mus=#{CGI.escape(song)}"
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.vagalume.com.br/api/search.php?art=Metallica&mus=The%20Unforgiven
5
+ uri: https://www.vagalume.com.br/api/search.php?art=Metallica&mus=The%20Unforgiven
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -95,6 +95,6 @@ http_interactions:
95
95
  me rotularam\nEu rotularei voc\u00eas\nEnt\u00e3o eu os nomeio imperdo\u00e1veis\n\nNunca
96
96
  livre\nNunca eu mesmo\nEnt\u00e3o eu os nomeio imperdo\u00e1veis\n\nVoc\u00eas
97
97
  me rotularam\nEu rotularei voc\u00eas\nEnt\u00e3o eu os nomeio imperdo\u00e1veis"}]}]}'
98
- http_version:
98
+ http_version:
99
99
  recorded_at: Mon, 09 Jul 2012 22:38:28 GMT
100
100
  recorded_with: VCR 2.2.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.vagalume.com.br/api/search.php?art=Oops&mus=Oops
5
+ uri: https://www.vagalume.com.br/api/search.php?art=Oops&mus=Oops
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -49,6 +49,6 @@ http_interactions:
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ! '{"type":"notfound"}'
52
- http_version:
52
+ http_version:
53
53
  recorded_at: Mon, 09 Jul 2012 22:38:28 GMT
54
54
  recorded_with: VCR 2.2.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.vagalume.com.br/api/search.php?art=Metallica&mus=Oops
5
+ uri: https://www.vagalume.com.br/api/search.php?art=Metallica&mus=Oops
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -49,6 +49,6 @@ http_interactions:
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ! '{"type":"song_notfound","art":{"id":"3ade68b5g7257eda3","name":"Metallica","url":"http:\/\/www.vagalume.com.br\/metallica\/"}}'
52
- http_version:
52
+ http_version:
53
53
  recorded_at: Mon, 09 Jul 2012 22:38:28 GMT
54
54
  recorded_with: VCR 2.2.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.vagalume.com.br/api/search.php?art=Bruce%20Springsteen&mus=Ain%27t%20good%20enough%20for%20You
5
+ uri: https://www.vagalume.com.br/api/search.php?art=Bruce%20Springsteen&mus=Ain%27t%20good%20enough%20for%20You
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -6,12 +6,12 @@ describe Vagalume::SearchResult do
6
6
  it 'knows the song was not found when the status is NOT_FOUND' do
7
7
  result = { "type" => Vagalume::Status::NOT_FOUND }
8
8
  search_result = Vagalume::SearchResult.new(result)
9
- search_result.not_found?.should be_true
9
+ search_result.not_found?.should be(true)
10
10
  end
11
11
 
12
12
  it 'knows the song was not found when the status is SONG_NOT_FOUND' do
13
13
  result = { "type" => Vagalume::Status::SONG_NOT_FOUND }
14
14
  search_result = Vagalume::SearchResult.new(result)
15
- search_result.not_found?.should be_true
15
+ search_result.not_found?.should be(true)
16
16
  end
17
17
  end
data/vagalume.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "vagalume"
7
7
  spec.executables = ["vagalume"]
8
- spec.version = "0.1.6"
8
+ spec.version = "0.1.7"
9
9
  spec.authors = ["Brian Thomas Storti"]
10
10
  spec.email = ["btstorti@gmail.com"]
11
11
  spec.description = "Ruby interface for the Vagalume API"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagalume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Thomas Storti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.6
143
+ rubygems_version: 2.5.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Ruby interface for the Vagalume API