pwup 0.0.7 → 0.0.8

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.
Files changed (3) hide show
  1. data/lib/picasa.rb +3 -0
  2. data/lib/pwup.rb +2 -3
  3. metadata +3 -3
data/lib/picasa.rb CHANGED
@@ -2,6 +2,9 @@
2
2
  # www.code71.com
3
3
  # http://code.google.com/p/picasaonrails/
4
4
 
5
+ # TODO: use gem 'builder' to generate xml
6
+ # TODO: fix ifs, etc...
7
+
5
8
  require 'rubygems'
6
9
  require 'cgi'
7
10
  require 'net/https'
data/lib/pwup.rb CHANGED
@@ -51,9 +51,8 @@ module PwUp
51
51
  keywords: "",
52
52
  )
53
53
  puts "album name = #{album.name}"
54
- images.each do |image|
54
+ images.each_with_index do |image, index|
55
55
  file_name = image
56
- puts "Reading #{file_name}"
57
56
  image_data = open(file_name, "rb").read
58
57
  @picasa.post_photo(
59
58
  image_data,
@@ -61,7 +60,7 @@ module PwUp
61
60
  summary: file_name,
62
61
  title: file_name
63
62
  )
64
- puts "photo #{file_name} uploaded to #{album.name}"
63
+ puts "photo #{file_name} uploaded to #{album.name} - #{index+1} of #{images.length}"
65
64
  end
66
65
  return album
67
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-21 00:00:00.000000000 Z
12
+ date: 2012-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
@@ -61,7 +61,7 @@ requirements:
61
61
  - unrar cli
62
62
  - unzip cli
63
63
  rubyforge_project:
64
- rubygems_version: 1.8.23
64
+ rubygems_version: 1.8.24
65
65
  signing_key:
66
66
  specification_version: 3
67
67
  summary: Picasaweb Uploader