brandeins 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/lib/brandeins.rb CHANGED
@@ -26,18 +26,19 @@ module BrandEins
26
26
  method_option :all
27
27
  method_option :year, :type => :numeric
28
28
  def download
29
- path = options.path || Dir.pwd
30
- year = options.year || Time.new.year
29
+ path = options.path || Dir.pwd
30
+ year = options.year || Time.new.year
31
+ all = options.all
31
32
  volume = options.volume
32
- all = options.all
33
+
33
34
  if volume.nil? && all.nil?
34
35
  puts "If you want to download a specific volune use the --volume flag or use --all to download all volumes of a year"
35
36
  else
36
37
  b1 = BrandEins::Downloader.new path
37
38
  if !all.nil?
38
- b1.get_magazines_of_year year if !volume.nil?
39
- elsif !volume.nil?
40
- b1.get_magazine year, volume
39
+ b1.get_magazines_of_year year
40
+ else
41
+ b1.get_magazine year, volume
41
42
  end
42
43
  end
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module BrandEins
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
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.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 1067590824955183263
105
+ hash: 4032879917195506471
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: 1067590824955183263
114
+ hash: 4032879917195506471
115
115
  requirements: []
116
116
  rubyforge_project:
117
117
  rubygems_version: 1.8.24