elvallenato 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +45 -2
- data/VERSION +1 -1
- data/elvallenato.gemspec +55 -23
- data/lib/elvallenato.rb +1 -2
- data/lib/elvallenato/letra.rb +6 -7
- data/lib/elvallenato/search.rb +48 -43
- data/spec/letra_spec.rb +12 -10
- data/spec/search_spec.rb +30 -33
- data/spec/spec_helper.rb +6 -2
- metadata +48 -149
- checksums.yaml +0 -7
- data/.bundle/config +0 -1
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -57
- data/Guardfile +0 -30
- data/autotest/discover.rb +0 -9
- data/lib/elvallenato/version.rb +0 -3
data/Rakefile
CHANGED
@@ -1,2 +1,45 @@
|
|
1
|
-
require '
|
2
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "elvallenato"
|
8
|
+
gem.summary = %Q{Gem to support elvallentato.com}
|
9
|
+
gem.description = %Q{Gem to support el vallenato.com}
|
10
|
+
gem.email = "jmaya@lasamaria.com"
|
11
|
+
# gem.homepage = "http://github.com/jmaya/elvallenato"
|
12
|
+
gem.authors = ["John Maya"]
|
13
|
+
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
Jeweler::GemcutterTasks.new
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'spec/rake/spectask'
|
22
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
23
|
+
spec.libs << 'lib' << 'spec'
|
24
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
25
|
+
end
|
26
|
+
|
27
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
28
|
+
spec.libs << 'lib' << 'spec'
|
29
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
30
|
+
spec.rcov = true
|
31
|
+
end
|
32
|
+
|
33
|
+
task :spec => :check_dependencies
|
34
|
+
|
35
|
+
task :default => :spec
|
36
|
+
|
37
|
+
require 'rake/rdoctask'
|
38
|
+
Rake::RDocTask.new do |rdoc|
|
39
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
40
|
+
|
41
|
+
rdoc.rdoc_dir = 'rdoc'
|
42
|
+
rdoc.title = "elvallenato #{version}"
|
43
|
+
rdoc.rdoc_files.include('README*')
|
44
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.0
|
data/elvallenato.gemspec
CHANGED
@@ -1,29 +1,61 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "elvallenato/version"
|
4
5
|
|
5
6
|
Gem::Specification.new do |s|
|
6
|
-
s.name
|
7
|
-
s.version
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["John Maya"]
|
10
|
-
s.email = ["jcmaya@hotmail.com"]
|
11
|
-
s.homepage = ""
|
12
|
-
s.summary = %q{This gem will interface with http://www.elvallenato.com}
|
13
|
-
s.description = %q{This gem will interface with http://www.elvallenato.com}
|
7
|
+
s.name = %q{elvallenato}
|
8
|
+
s.version = "0.1.0"
|
14
9
|
|
15
|
-
s.
|
16
|
-
|
17
|
-
s.
|
18
|
-
s.
|
19
|
-
s.
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["John Maya"]
|
12
|
+
s.date = %q{2009-11-23}
|
13
|
+
s.description = %q{Gem to support el vallenato.com}
|
14
|
+
s.email = %q{jmaya@lasamaria.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"elvallenato.gemspec",
|
27
|
+
"lib/elvallenato.rb",
|
28
|
+
"lib/elvallenato/letra.rb",
|
29
|
+
"lib/elvallenato/search.rb",
|
30
|
+
"spec/elvallenato_spec.rb",
|
31
|
+
"spec/fixtures/diomedes_search.htm",
|
32
|
+
"spec/fixtures/siete_palabras.htm",
|
33
|
+
"spec/letra_spec.rb",
|
34
|
+
"spec/search_spec.rb",
|
35
|
+
"spec/spec.opts",
|
36
|
+
"spec/spec_helper.rb"
|
37
|
+
]
|
38
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
20
39
|
s.require_paths = ["lib"]
|
21
|
-
s.
|
22
|
-
s.
|
23
|
-
s.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
40
|
+
s.rubygems_version = %q{1.3.5}
|
41
|
+
s.summary = %q{Gem to support elvallentato.com}
|
42
|
+
s.test_files = [
|
43
|
+
"spec/elvallenato_spec.rb",
|
44
|
+
"spec/letra_spec.rb",
|
45
|
+
"spec/search_spec.rb",
|
46
|
+
"spec/spec_helper.rb"
|
47
|
+
]
|
48
|
+
|
49
|
+
if s.respond_to? :specification_version then
|
50
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
51
|
+
s.specification_version = 3
|
52
|
+
|
53
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
54
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
60
|
+
end
|
29
61
|
end
|
data/lib/elvallenato.rb
CHANGED
data/lib/elvallenato/letra.rb
CHANGED
@@ -1,29 +1,28 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
1
|
module ElVallenato
|
4
2
|
class Letra
|
5
3
|
|
6
4
|
attr_reader :content
|
7
5
|
|
8
6
|
def initialize(content)
|
7
|
+
|
9
8
|
@content = content
|
10
|
-
@doc =
|
9
|
+
@doc = Hpricot(@content)
|
11
10
|
end
|
12
11
|
|
13
12
|
def title
|
14
|
-
@
|
13
|
+
@doc.at(".text_title").inner_html
|
15
14
|
end
|
16
15
|
|
17
16
|
def body
|
18
|
-
@
|
17
|
+
@doc.search("td .text_std")[6].inner_html.gsub(/<br \/>/, "\n")
|
19
18
|
end
|
20
19
|
|
21
20
|
def composer
|
22
|
-
@
|
21
|
+
@doc.search("td .text_std")[9].inner_html
|
23
22
|
end
|
24
23
|
|
25
24
|
def artist
|
26
|
-
@
|
25
|
+
@doc.search("td .text_std")[8].inner_html
|
27
26
|
end
|
28
27
|
|
29
28
|
end
|
data/lib/elvallenato/search.rb
CHANGED
@@ -1,65 +1,70 @@
|
|
1
|
-
require 'cgi'
|
2
|
-
require 'open-uri'
|
3
|
-
require 'URI'
|
4
|
-
|
5
1
|
module ElVallenato
|
6
2
|
|
7
3
|
class Search
|
8
|
-
attr_reader :
|
4
|
+
attr_reader :doc
|
5
|
+
require 'open-uri'
|
6
|
+
require 'CGI'
|
7
|
+
|
8
|
+
def initialize(mode,query)
|
9
|
+
@mode = mode
|
10
|
+
@query = query
|
11
|
+
url
|
12
|
+
end
|
13
|
+
|
14
|
+
def url
|
15
|
+
return @url if !@url.nil?
|
16
|
+
if @query.nil? or @query == ""
|
17
|
+
@url = "http://www.elvallenato.com/letras/busqueda.php?x=&busca=#{@mode}&image.x=8&image.y=6"
|
18
|
+
else
|
19
|
+
@url = "http://www.elvallenato.com/letras/busqueda.php?x=#{CGI.escape(@query)}&busca=#{@mode}&image.x=12&image.y=11"
|
20
|
+
end
|
21
|
+
end
|
9
22
|
|
10
|
-
def
|
11
|
-
@
|
12
|
-
@mode = CGI.escape(mode)
|
13
|
-
@term = CGI.escape(term)
|
14
|
-
@url = "http://www.elvallenato.com/letras/busqueda.php?x=#{@term}&busca=#{@mode}&image.x=12&image.y=11"
|
15
|
-
@base = "http://" + URI.parse(@url).host
|
23
|
+
def url=(url)
|
24
|
+
@url = url
|
16
25
|
end
|
17
26
|
|
18
|
-
def
|
19
|
-
@
|
27
|
+
def next_url=(next_url)
|
28
|
+
@next_url = next_url
|
20
29
|
end
|
21
30
|
|
22
31
|
def next_url
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
@current_link += 1
|
27
|
-
return [@base,link].join("/")
|
28
|
-
else
|
29
|
-
@all_links ||= Nokogiri::HTML.parse(content).css("span.class5 a")
|
30
|
-
link = @all_links[0]["href"]
|
31
|
-
@current_link += 1
|
32
|
-
return [@base,link].join("/")
|
32
|
+
partial_next = "http://www.elvallenato.com/letras/"
|
33
|
+
@doc.search("a").each do |d|
|
34
|
+
partial_next << d["href"] if d.inner_html == 'Siguiente >>'
|
33
35
|
end
|
34
|
-
|
36
|
+
@url = partial_next
|
37
|
+
partial_next == "http://www.elvallenato.com/letras/" ? nil : partial_next
|
38
|
+
# @next_url
|
35
39
|
end
|
36
|
-
|
37
|
-
|
40
|
+
|
41
|
+
def load_content=(lc)
|
42
|
+
@load_content = lc
|
43
|
+
@doc = Hpricot(@load_content)
|
38
44
|
end
|
39
45
|
|
40
|
-
def
|
41
|
-
@
|
42
|
-
|
43
|
-
|
46
|
+
def fetch_content
|
47
|
+
@load_content = open(@url).read
|
48
|
+
@doc = Hpricot(@load_content)
|
49
|
+
end
|
50
|
+
|
51
|
+
def collect_links
|
52
|
+
@doc.search(".class10").collect {|e| clean_url(e.at("a")["href"])}
|
44
53
|
end
|
45
54
|
|
46
|
-
def
|
47
|
-
|
48
|
-
clean_url(e["href"])
|
49
|
-
end.compact.sort.uniq
|
55
|
+
def collect_lirics
|
56
|
+
collect_links.collect {|l| Letra.new(open(clean_url(l)).read)}
|
50
57
|
end
|
51
58
|
|
52
|
-
def clean_url(
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
59
|
+
def clean_url(url_in)
|
60
|
+
first_part = url_in.gsub(/(\d+)\/.+$/,"\\1/")
|
61
|
+
second_part = url_in.scan(/\d+\/(.+)$/)[0][0]
|
62
|
+
# url_in.gsub(/\s/, "+")
|
63
|
+
first_part + CGI.escape(second_part)
|
57
64
|
end
|
58
65
|
|
59
|
-
def
|
60
|
-
|
61
|
-
Letra.new(OpenURI.open_uri(link).read)
|
62
|
-
end
|
66
|
+
def fetch
|
67
|
+
load_content = open(clean_url(@url)).read
|
63
68
|
end
|
64
69
|
end
|
65
70
|
end
|
data/spec/letra_spec.rb
CHANGED
@@ -1,29 +1,31 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
1
2
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
3
|
|
3
4
|
describe Letra do
|
4
5
|
before(:each) do
|
5
|
-
@content = File.
|
6
|
-
@
|
6
|
+
@content = File.read(File.join(File.dirname(__FILE__), "fixtures", "siete_palabras.htm"))
|
7
|
+
@l = Letra.new(@content)
|
7
8
|
end
|
8
|
-
|
9
|
+
|
9
10
|
it "should be started with the html content" do
|
10
|
-
@
|
11
|
+
l = Letra.new(@content)
|
12
|
+
l.content.size.should eql 71004
|
11
13
|
end
|
12
14
|
|
13
15
|
it "should have a title" do
|
14
|
-
@
|
16
|
+
@l.title.should eql "Siete Palabras"
|
15
17
|
end
|
16
|
-
|
18
|
+
|
17
19
|
it "should have a body" do
|
18
|
-
@
|
20
|
+
@l.body.scan(/y q sabe y no sabe nada,/)[0].should eql "y q sabe y no sabe nada,"
|
19
21
|
end
|
20
22
|
|
21
23
|
it "chould have a composer" do
|
22
|
-
@
|
24
|
+
@l.composer.should eql "Kaleth Morales"
|
23
25
|
end
|
24
26
|
|
25
27
|
it "should have an artist" do
|
26
|
-
@
|
28
|
+
@l.artist.should eql "Kaleth Morales"
|
27
29
|
end
|
28
|
-
|
30
|
+
|
29
31
|
end
|
data/spec/search_spec.rb
CHANGED
@@ -2,54 +2,51 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
2
2
|
|
3
3
|
describe Search do
|
4
4
|
before(:each) do
|
5
|
-
@
|
6
|
-
@
|
7
|
-
|
8
|
-
@search = Search.new('canta', 'Diomedes')
|
5
|
+
@s = Search.new("canta", "Diomedes")
|
6
|
+
@search_content = File.join(File.dirname(__FILE__), "fixtures", "diomedes_search.htm")
|
7
|
+
@s.load_content = (File.read(@search_content))
|
9
8
|
end
|
10
|
-
|
11
|
-
it "should
|
12
|
-
|
9
|
+
|
10
|
+
it "should state cantante compositor clave the type and the search" do
|
11
|
+
#http://www.elvallenato.com/letras/busqueda.php?x=&busca=canta&image.x=8&image.y=6
|
12
|
+
s = Search.new("canta", "Diomedes Diaz")
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should generate the right url" do
|
16
|
-
|
16
|
+
s = Search.new("canta", "")
|
17
|
+
s.url.should eql "http://www.elvallenato.com/letras/busqueda.php?x=&busca=canta&image.x=8&image.y=6"
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should generate the right url with query" do
|
21
|
+
s = Search.new("canta", "Diomedes")
|
22
|
+
s.url.should eql "http://www.elvallenato.com/letras/busqueda.php?x=Diomedes&busca=canta&image.x=12&image.y=11"
|
17
23
|
end
|
24
|
+
|
18
25
|
it "should deal with url query with spaces" do
|
19
26
|
s = Search.new("canta", "Diomedes Dias")
|
20
27
|
s.url.should eql "http://www.elvallenato.com/letras/busqueda.php?x=Diomedes+Dias&busca=canta&image.x=12&image.y=11"
|
21
28
|
end
|
22
|
-
|
23
|
-
|
24
|
-
it "should open the url and read the html to a local variable" do
|
25
|
-
@search.content.size.should == 54171
|
26
|
-
end
|
27
|
-
|
28
|
-
it "should load the content only 1 time (we are using memoization)" do
|
29
|
-
OpenURI.should_receive(:open_uri).exactly(1).times
|
30
|
-
@search.content
|
31
|
-
@search.content
|
32
|
-
@search.content
|
33
|
-
end
|
29
|
+
it "should load content from a string" do
|
30
|
+
@s.doc.class.to_s.should eql "Hpricot::Doc"
|
34
31
|
end
|
35
|
-
|
36
|
-
it "should have
|
37
|
-
@
|
32
|
+
|
33
|
+
it "should have a valid page" do
|
34
|
+
@s.next_url.should eql "http://www.elvallenato.com/letras/busqueda.php?x=Diomedes&busca=canta&pg=1"
|
38
35
|
end
|
39
36
|
|
40
|
-
it "should
|
41
|
-
|
42
|
-
@search.next_url.should eql "http://www.elvallenato.com/busqueda.php?x=Diomedes&busca=canta&pg=#{t}"
|
43
|
-
end
|
44
|
-
#the next one should be nil
|
45
|
-
@search.next_url.should be_nil
|
37
|
+
it "should collect links" do
|
38
|
+
@s.collect_links.size.should eql 20
|
46
39
|
end
|
47
40
|
|
48
41
|
it "should clean the url" do
|
49
|
-
@
|
42
|
+
@s.clean_url("http://www.elvallenato.com/letras/letras/347/Bonita-Diomedes Diaz-Diomedes Diaz.htm").should eql "http://www.elvallenato.com/letras/letras/347/Bonita-Diomedes+Diaz-Diomedes+Diaz.htm"
|
50
43
|
end
|
51
|
-
|
52
|
-
it "should
|
53
|
-
|
44
|
+
|
45
|
+
it "should generate liric objects from the links" do
|
46
|
+
# @s.collect_lirics.size.should eql 20
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should have valid links" do
|
50
|
+
@s.collect_links[0].should eql 'http://www.elvallenato.com/letras/letras/347/Bonita-Diomedes+Diaz-Diomedes+Diaz.htm'
|
54
51
|
end
|
55
52
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
require 'elvallenato'
|
4
|
-
require '
|
5
|
-
require '
|
4
|
+
require 'spec'
|
5
|
+
require 'spec/autorun'
|
6
6
|
|
7
7
|
include ElVallenato
|
8
|
+
|
9
|
+
Spec::Runner.configure do |config|
|
10
|
+
|
11
|
+
end
|
metadata
CHANGED
@@ -1,150 +1,47 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: elvallenato
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- John Maya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2009-11-23 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
14
16
|
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
17
|
type: :development
|
21
|
-
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
requirements:
|
31
|
-
- - '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: guard-rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: guard-bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rb-fsevent
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: awesome_print
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '>='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '>='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: RedCloth
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '>='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: nokogiri
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '>='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
description: This gem will interface with http://www.elvallenato.com
|
126
|
-
email:
|
127
|
-
- jcmaya@hotmail.com
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.9
|
24
|
+
version:
|
25
|
+
description: Gem to support el vallenato.com
|
26
|
+
email: jmaya@lasamaria.com
|
128
27
|
executables: []
|
28
|
+
|
129
29
|
extensions: []
|
130
|
-
|
131
|
-
|
132
|
-
-
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
133
35
|
- .document
|
134
36
|
- .gitignore
|
135
|
-
- Gemfile
|
136
|
-
- Gemfile.lock
|
137
|
-
- Guardfile
|
138
37
|
- LICENSE
|
139
38
|
- README.rdoc
|
140
39
|
- Rakefile
|
141
40
|
- VERSION
|
142
|
-
- autotest/discover.rb
|
143
41
|
- elvallenato.gemspec
|
144
42
|
- lib/elvallenato.rb
|
145
43
|
- lib/elvallenato/letra.rb
|
146
44
|
- lib/elvallenato/search.rb
|
147
|
-
- lib/elvallenato/version.rb
|
148
45
|
- spec/elvallenato_spec.rb
|
149
46
|
- spec/fixtures/diomedes_search.htm
|
150
47
|
- spec/fixtures/siete_palabras.htm
|
@@ -152,34 +49,36 @@ files:
|
|
152
49
|
- spec/search_spec.rb
|
153
50
|
- spec/spec.opts
|
154
51
|
- spec/spec_helper.rb
|
155
|
-
|
52
|
+
has_rdoc: true
|
53
|
+
homepage:
|
156
54
|
licenses: []
|
157
|
-
|
55
|
+
|
158
56
|
post_install_message:
|
159
|
-
rdoc_options:
|
160
|
-
|
57
|
+
rdoc_options:
|
58
|
+
- --charset=UTF-8
|
59
|
+
require_paths:
|
161
60
|
- lib
|
162
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- -
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version:
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: "0"
|
66
|
+
version:
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: "0"
|
72
|
+
version:
|
172
73
|
requirements: []
|
173
|
-
|
174
|
-
|
74
|
+
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 1.3.5
|
175
77
|
signing_key:
|
176
|
-
specification_version:
|
177
|
-
summary:
|
178
|
-
test_files:
|
78
|
+
specification_version: 3
|
79
|
+
summary: Gem to support elvallentato.com
|
80
|
+
test_files:
|
179
81
|
- spec/elvallenato_spec.rb
|
180
|
-
- spec/fixtures/diomedes_search.htm
|
181
|
-
- spec/fixtures/siete_palabras.htm
|
182
82
|
- spec/letra_spec.rb
|
183
83
|
- spec/search_spec.rb
|
184
|
-
- spec/spec.opts
|
185
84
|
- spec/spec_helper.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: face9e2c5e1d24fadb250ffe5aca8050c25e787c
|
4
|
-
data.tar.gz: c8d9fd37c89086591c64cb7378fe1fdfd910d1e1
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: e7aa19f89a71036673df7711262c9376c85cef38429ae25e67f5e41df06de6182645d084ad94fb5671c1e7bf366ad6d66ac10995e5f31e98bd13a29ad1a5367e
|
7
|
-
data.tar.gz: 2a3e3a81c206e6227998bafea7eeb4c23e8a922bc5fb05ef178831c1e3a50acd58f2a8352ab0bffa91e70cbded4b643b34b42cd38797524490d87cf355d58e77
|
data/.bundle/config
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--- {}
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
elvallenato (0.0.5)
|
5
|
-
RedCloth
|
6
|
-
nokogiri
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
RedCloth (4.2.9)
|
12
|
-
awesome_print (1.1.0)
|
13
|
-
coderay (1.1.0)
|
14
|
-
diff-lcs (1.2.5)
|
15
|
-
formatador (0.2.4)
|
16
|
-
guard (1.7.0)
|
17
|
-
formatador (>= 0.2.4)
|
18
|
-
listen (>= 0.6.0)
|
19
|
-
lumberjack (>= 1.0.2)
|
20
|
-
pry (>= 0.9.10)
|
21
|
-
thor (>= 0.14.6)
|
22
|
-
guard-bundler (1.0.0)
|
23
|
-
bundler (~> 1.0)
|
24
|
-
guard (~> 1.1)
|
25
|
-
guard-rspec (1.2.1)
|
26
|
-
guard (>= 1.1)
|
27
|
-
listen (0.7.3)
|
28
|
-
lumberjack (1.0.5)
|
29
|
-
method_source (0.8.2)
|
30
|
-
nokogiri (1.5.5)
|
31
|
-
pry (0.9.12.6)
|
32
|
-
coderay (~> 1.0)
|
33
|
-
method_source (~> 0.8)
|
34
|
-
slop (~> 3.4)
|
35
|
-
rb-fsevent (0.9.4)
|
36
|
-
rspec (2.14.1)
|
37
|
-
rspec-core (~> 2.14.0)
|
38
|
-
rspec-expectations (~> 2.14.0)
|
39
|
-
rspec-mocks (~> 2.14.0)
|
40
|
-
rspec-core (2.14.8)
|
41
|
-
rspec-expectations (2.14.5)
|
42
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
43
|
-
rspec-mocks (2.14.6)
|
44
|
-
slop (3.5.0)
|
45
|
-
thor (0.19.1)
|
46
|
-
|
47
|
-
PLATFORMS
|
48
|
-
ruby
|
49
|
-
|
50
|
-
DEPENDENCIES
|
51
|
-
awesome_print
|
52
|
-
elvallenato!
|
53
|
-
guard
|
54
|
-
guard-bundler
|
55
|
-
guard-rspec
|
56
|
-
rb-fsevent
|
57
|
-
rspec
|
data/Guardfile
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
guard 'bundler' do
|
5
|
-
watch('Gemfile')
|
6
|
-
# Uncomment next line if Gemfile contain `gemspec' command
|
7
|
-
# watch(/^.+\.gemspec/)
|
8
|
-
end
|
9
|
-
|
10
|
-
guard 'rspec', :version => 2 do
|
11
|
-
watch(%r{^spec/.+_spec\.rb$})
|
12
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
13
|
-
watch('spec/spec_helper.rb') { "spec" }
|
14
|
-
|
15
|
-
# Rails example
|
16
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
17
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
18
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
19
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
20
|
-
watch('config/routes.rb') { "spec/routing" }
|
21
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
22
|
-
|
23
|
-
# Capybara request specs
|
24
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
25
|
-
|
26
|
-
# Turnip features and steps
|
27
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
28
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
29
|
-
end
|
30
|
-
|
data/autotest/discover.rb
DELETED
data/lib/elvallenato/version.rb
DELETED