brandeins 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/brandeins.rb CHANGED
@@ -79,12 +79,13 @@ module BrandEins
79
79
 
80
80
  def get_magazines_of_year(year = 2000)
81
81
  setup
82
- puts "Getting all brand eins magazines of a #{year}. This could take a while..."
82
+ puts "Getting all brand eins magazines of #{year}. This could take a while..."
83
83
  magazine_links_per_year = @archive.get_magazine_links_by_year(year)
84
- magazine_links_per_year.each_with_index do |magazine_link, volume|
84
+ magazine_links_per_year.each_with_index do |magazine_link, index|
85
+ volume = index+1
85
86
  puts "Parsing Volume #{volume} of #{year}"
86
87
  target_pdf = get_target_pdf(year, volume)
87
- get_magazine_by_link(magazine_link, target_pdf)
88
+ get_magazine_by_link(magazine_link, target_pdf, year, volume)
88
89
  end
89
90
  end
90
91
 
@@ -1,3 +1,3 @@
1
1
  module BrandEins
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brandeins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: 1431581098543037223
122
+ hash: 4431273467015443430
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  none: false
125
125
  requirements:
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  segments:
130
130
  - 0
131
- hash: 1431581098543037223
131
+ hash: 4431273467015443430
132
132
  requirements: []
133
133
  rubyforge_project:
134
134
  rubygems_version: 1.8.24