pwup 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/picasa.rb +1 -1
- data/lib/pwup.rb +4 -3
- metadata +3 -3
data/lib/picasa.rb
CHANGED
@@ -96,7 +96,7 @@ module Picasa
|
|
96
96
|
access = options[:access].nil? ? "public" : options[:access]
|
97
97
|
commentable = options[:commentable].nil? ? "true" : options[:commentable].to_s
|
98
98
|
keywords = options[:keywords].nil? ? "" : options[:keywords]
|
99
|
-
time_i = (Time.now).to_i
|
99
|
+
time_i = (Time.now).to_i * 1000
|
100
100
|
|
101
101
|
createAlbumRequestXml = "<entry xmlns='http://www.w3.org/2005/Atom'
|
102
102
|
xmlns:media='http://search.yahoo.com/mrss/'
|
data/lib/pwup.rb
CHANGED
@@ -49,7 +49,6 @@ module PwUp
|
|
49
49
|
summary: album_name,
|
50
50
|
location: "",
|
51
51
|
keywords: "",
|
52
|
-
timestamp: Time.now.to_i
|
53
52
|
)
|
54
53
|
puts "album name = #{album.name}"
|
55
54
|
images.each do |image|
|
@@ -57,8 +56,10 @@ module PwUp
|
|
57
56
|
puts "Reading #{file_name}"
|
58
57
|
image_data = open(file_name, "rb").read
|
59
58
|
@picasa.post_photo(
|
60
|
-
image_data,
|
61
|
-
:
|
59
|
+
image_data,
|
60
|
+
album: album.name,
|
61
|
+
summary: file_name,
|
62
|
+
title: file_name
|
62
63
|
)
|
63
64
|
puts "photo #{file_name} uploaded to #{album.name}"
|
64
65
|
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.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
description: A simple
|
30
|
+
description: A simple picasaweb uploader utility class that support compressed archives
|
31
31
|
(.rar, .zip)
|
32
32
|
email: esteban.feldman@gmail.com
|
33
33
|
executables:
|
@@ -64,5 +64,5 @@ rubyforge_project:
|
|
64
64
|
rubygems_version: 1.8.23
|
65
65
|
signing_key:
|
66
66
|
specification_version: 3
|
67
|
-
summary:
|
67
|
+
summary: Picasaweb Uploader
|
68
68
|
test_files: []
|