metal-archives 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -26,7 +26,8 @@ module MetalArchives
26
26
 
27
27
  # Finds all the links to the search results pages as they are paginated.
28
28
  def paginated_result_links(year=Time.now.year)
29
- links = ["/advanced.php?release_year=#{year}"] # need the first page because it's not a link
29
+ # need the first page because it's not a link
30
+ links = ["/advanced.php?band_name=&band_status=&genre=&themes=&origin=0&location=&bandLabel=&release_name=&release_type=&label=&release_year=#{year}&p=1"]
30
31
  begin
31
32
  search_by_year(year).search('body table:nth-child(2n) tr:first-child a').each do |link|
32
33
  links << link['href']
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{metal-archives}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danny Olson"]
12
- s.date = %q{2011-02-11}
12
+ s.date = %q{2011-02-12}
13
13
  s.description = %q{metal-archives provides an interface to search for album releases for a specific year, defaulting to the current one if none is provided.}
14
14
  s.email = %q{dbolson@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -23,8 +23,9 @@ describe "MetalArchives" do
23
23
  agent = MetalArchives::Agent.new
24
24
  agent.stub!(:search_by_year).and_return(@search_results)
25
25
 
26
- links = ['/advanced.php?release_year=2011']
27
- (2..16).each do |i|
26
+ #links = ['/advanced.php?release_year=2011']
27
+ links = []
28
+ (1..16).each do |i|
28
29
  links << "/advanced.php?band_name=&band_status=&genre=&themes=&origin=0&location=&bandLabel=&release_name=&release_type=&label=&release_year=2011&p=#{i}"
29
30
  end
30
31
  agent.paginated_result_links.should == links
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Danny Olson
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-11 00:00:00 -08:00
17
+ date: 2011-02-12 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
- hash: -2409445096831824830
146
+ hash: 2481295180371427642
147
147
  segments:
148
148
  - 0
149
149
  version: "0"