brandeins-dl 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/brandeins CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'brandeins-dl'
4
- BrandEins::CLI.start
4
+ BrandEins::CLI.start
@@ -1,3 +1,3 @@
1
1
  module BrandEins
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
data/lib/brandeins-dl.rb CHANGED
@@ -12,6 +12,13 @@ end
12
12
  module BrandEins
13
13
 
14
14
  class CLI < Thor
15
+ map '--version' => :version
16
+
17
+ desc '--version', 'Displays current version'
18
+ def version
19
+ puts BrandEins::VERSION
20
+ end
21
+
15
22
  desc 'download_all', 'Download all magazines of the defined year'
16
23
  method_option :year, :type => :numeric, :required => true
17
24
  method_option :path, :type => :string, :required => true
@@ -28,11 +35,6 @@ module BrandEins
28
35
  b1 = BrandEins::Downloader.new(options.path)
29
36
  b1.get_magazine(options.year, options.volume)
30
37
  end
31
-
32
- desc 'version', 'Displays current version'
33
- def version
34
- puts BrandEins::VERSION
35
- end
36
38
  end
37
39
 
38
40
  class Downloader
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: brandeins-dl
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gregory Igelmund
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- hash: -785877748697607790
81
+ hash: 3024033610115375201
82
82
  segments:
83
83
  - 0
84
84
  version: "0"
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- hash: -785877748697607790
90
+ hash: 3024033610115375201
91
91
  segments:
92
92
  - 0
93
93
  version: "0"