picasaweb-backup 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/picasaweb-backup CHANGED
@@ -34,11 +34,6 @@ cli = Picasaweb::CLI.new opts
34
34
 
35
35
  begin
36
36
 
37
- if opts[:dir]
38
- cli.print "Changing working directory to #{opts[:dir]}"
39
- Dir.chdir opts[:dir]
40
- end
41
-
42
37
  account = File.open("account.yml", 'r') { |f| YAML.load f }
43
38
  verify_account account
44
39
  client = picasa_client account["username"], account["password"]
@@ -17,10 +17,20 @@ module Picasaweb
17
17
 
18
18
  def initialize opts
19
19
  @opts = opts
20
+
21
+ if opts[:dir]
22
+ Dir.chdir opts[:dir]
23
+ end
24
+
20
25
  if @opts[:log]
21
26
  @logger = Logger.new "picasaweb-backup.log", shift_age = "monthly"
22
27
  @logger.datetime_format = "%Y-%m-%d %H:%M"
23
28
  end
29
+
30
+ if opts[:dir]
31
+ self.print "Changing working directory to #{opts[:dir]}"
32
+ end
33
+
24
34
  end
25
35
 
26
36
  def print msg
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Picasaweb
2
2
  module Backup
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picasaweb-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: