flickru 0.0.9 → 0.0.10
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/README +25 -21
- data/lib/flickru/version.rb +1 -1
- data/lib/flickru.rb +2 -3
- metadata +54 -39
data/README
CHANGED
@@ -1,38 +1,42 @@
|
|
1
1
|
Command-line tool that automatises photo/video uploads to Flickr.
|
2
2
|
|
3
3
|
Entering 'flickru <directory>' in your command line, any photos under 'directory' (and subdirs)
|
4
|
-
are uploaded to your Flickr account (interactively entered
|
4
|
+
are uploaded to your Flickr account (interactively entered the first time you start flickru).
|
5
5
|
|
6
6
|
Photos are identified by case-insensitive extensions: GIF, JPEG, JPG, PNG, and TIFF.
|
7
7
|
Videos are identified by case-insensitive extensions: AVI, MPEG, and MPG.
|
8
8
|
|
9
|
-
|
10
|
-
(1) date
|
11
|
-
|
12
|
-
|
13
|
-
(
|
14
|
-
|
15
|
-
(
|
16
|
-
(
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
flickru automatically sets the following Flickr metadata:
|
10
|
+
(1) date taken: if JPEG/TIFF Exif metadata is found, date is
|
11
|
+
extracted from them, otherwise flickru sets date to the last modification
|
12
|
+
time.
|
13
|
+
(2) privacy policy: private, visible by friends & family, hidden for public
|
14
|
+
searches
|
15
|
+
(3) safety level: safe
|
16
|
+
(4) permissions: friends & family can add comments to the photo and its notes;
|
17
|
+
nobody can add notes and tags to the photo
|
18
|
+
(5) description: for videos longer than 90s (Flickr's longest allowed duration)
|
19
|
+
but shorter than 500MB (Flickr's maximum permisible size), it will contain
|
20
|
+
an annotation about its large duration.
|
21
|
+
(6) title, geolocation, and accuracy: extracted from the parent directory name.
|
20
22
|
|
21
|
-
|
23
|
+
Before uploading photos, please, make sure that you have correctly named each
|
24
|
+
photos parent directory according to the name format 'TITLE[@LOCATION[#PRECISION]]',
|
22
25
|
where:
|
23
|
-
(1) TITLE is the desired title for the photos
|
24
|
-
(2) LOCATION is the location of the
|
26
|
+
(1) TITLE is the desired title for the photos stored in the directory
|
27
|
+
(2) LOCATION is the location of the photos. Flickru gets locations in two ways:
|
25
28
|
(a) the Wikipedia page name (whitespaces allowed) of the location (if exists) or
|
26
29
|
(b) its coordinates LATITUDE,LONGITUDE
|
27
|
-
(3) PRECISION is the Flickr geolocation precision
|
28
|
-
case insentitive literals: street, city, region,
|
30
|
+
(3) PRECISION is the Flickr geolocation precision. Flickru sets it to one of
|
31
|
+
the following case insentitive literals: 'street', 'city', 'region',
|
32
|
+
'country', 'world'.
|
29
33
|
|
30
|
-
Photos are classified into
|
31
|
-
|
32
|
-
date taken (older first).
|
34
|
+
Photos are classified into photosets. If the photoset does not exist, flickru
|
35
|
+
creates it. This photoset is named after its grandparent directory. The
|
36
|
+
photoset is arranged by 'date taken' (older first).
|
33
37
|
|
34
38
|
To see some examples on the directory structure recognised by flickru, please
|
35
|
-
explore the subdirectories under var/ts.
|
39
|
+
explore the subdirectories under 'var/ts'.
|
36
40
|
|
37
41
|
Homepage: http://rubygems.org/gems/flickru
|
38
42
|
GitHub: http://github.com/jesuspv/flickru
|
data/lib/flickru/version.rb
CHANGED
data/lib/flickru.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# ruby
|
2
|
-
require 'etc'
|
3
2
|
require 'set'
|
4
3
|
# gems
|
5
4
|
require 'rubygems'
|
@@ -22,7 +21,7 @@ def Flickru.usage
|
|
22
21
|
Printer.show "usage: #{filename} [-h|--help|-v|--version] <photo directory>\n"
|
23
22
|
Printer.show "example: #{filename} my_photos\n"
|
24
23
|
readme = File.expand_path(File.join(File.dirname(__FILE__), '..', 'README'))
|
25
|
-
Printer.show "\n#{IO.read(readme)}
|
24
|
+
Printer.show "\n#{IO.read(readme)}"
|
26
25
|
end
|
27
26
|
|
28
27
|
def Flickru.die code, message
|
@@ -31,7 +30,7 @@ def Flickru.die code, message
|
|
31
30
|
end
|
32
31
|
|
33
32
|
def Flickru.config_filename
|
34
|
-
File.join
|
33
|
+
File.join ENV['HOME'], "." + File.basename(__FILE__, File.extname(__FILE__)) + "rc"
|
35
34
|
end
|
36
35
|
|
37
36
|
def self.read_config
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: flickru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jesus Pardillo
|
@@ -10,132 +10,147 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-07 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: bundler
|
17
17
|
prerelease: false
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: 1.0.21
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
27
|
+
name: colorize
|
28
28
|
prerelease: false
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.5.8
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id002
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: escape
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.0.4
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id003
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: exifr
|
50
50
|
prerelease: false
|
51
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 1.1.1
|
57
57
|
type: :runtime
|
58
58
|
version_requirements: *id004
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
60
|
+
name: flickraw
|
61
61
|
prerelease: false
|
62
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 0.9.4
|
68
68
|
type: :runtime
|
69
69
|
version_requirements: *id005
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: rubygems-update
|
72
72
|
prerelease: false
|
73
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: 1.8.11
|
79
79
|
type: :runtime
|
80
80
|
version_requirements: *id006
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
82
|
+
name: simplecov
|
83
83
|
prerelease: false
|
84
84
|
requirement: &id007 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.5.4
|
90
90
|
type: :runtime
|
91
91
|
version_requirements: *id007
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
93
|
+
name: unicode_utils
|
94
94
|
prerelease: false
|
95
95
|
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.1.2
|
101
|
+
type: :runtime
|
102
|
+
version_requirements: *id008
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rspec
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
96
107
|
none: false
|
97
108
|
requirements:
|
98
109
|
- - ~>
|
99
110
|
- !ruby/object:Gem::Version
|
100
111
|
version: 2.7.0
|
101
112
|
type: :development
|
102
|
-
version_requirements: *
|
113
|
+
version_requirements: *id009
|
103
114
|
description: |
|
104
115
|
Command-line tool that automatises photo/video uploads to Flickr.
|
105
116
|
|
106
117
|
Entering 'flickru <directory>' in your command line, any photos under 'directory' (and subdirs)
|
107
|
-
are uploaded to your Flickr account (interactively entered
|
118
|
+
are uploaded to your Flickr account (interactively entered the first time you start flickru).
|
108
119
|
|
109
120
|
Photos are identified by case-insensitive extensions: GIF, JPEG, JPG, PNG, and TIFF.
|
110
121
|
Videos are identified by case-insensitive extensions: AVI, MPEG, and MPG.
|
111
122
|
|
112
|
-
|
113
|
-
(1) date
|
114
|
-
|
115
|
-
|
116
|
-
(
|
117
|
-
|
118
|
-
(
|
119
|
-
(
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
+
flickru automatically sets the following Flickr metadata:
|
124
|
+
(1) date taken: if JPEG/TIFF Exif metadata is found, date is
|
125
|
+
extracted from them, otherwise flickru sets date to the last modification
|
126
|
+
time.
|
127
|
+
(2) privacy policy: private, visible by friends & family, hidden for public
|
128
|
+
searches
|
129
|
+
(3) safety level: safe
|
130
|
+
(4) permissions: friends & family can add comments to the photo and its notes;
|
131
|
+
nobody can add notes and tags to the photo
|
132
|
+
(5) description: for videos longer than 90s (Flickr's longest allowed duration)
|
133
|
+
but shorter than 500MB (Flickr's maximum permisible size), it will contain
|
134
|
+
an annotation about its large duration.
|
135
|
+
(6) title, geolocation, and accuracy: extracted from the parent directory name.
|
123
136
|
|
124
|
-
|
137
|
+
Before uploading photos, please, make sure that you have correctly named each
|
138
|
+
photos parent directory according to the name format 'TITLE[@LOCATION[#PRECISION]]',
|
125
139
|
where:
|
126
|
-
(1) TITLE is the desired title for the photos
|
127
|
-
(2) LOCATION is the location of the
|
140
|
+
(1) TITLE is the desired title for the photos stored in the directory
|
141
|
+
(2) LOCATION is the location of the photos. Flickru gets locations in two ways:
|
128
142
|
(a) the Wikipedia page name (whitespaces allowed) of the location (if exists) or
|
129
143
|
(b) its coordinates LATITUDE,LONGITUDE
|
130
|
-
(3) PRECISION is the Flickr geolocation precision
|
131
|
-
case insentitive literals: street, city, region,
|
144
|
+
(3) PRECISION is the Flickr geolocation precision. Flickru sets it to one of
|
145
|
+
the following case insentitive literals: 'street', 'city', 'region',
|
146
|
+
'country', 'world'.
|
132
147
|
|
133
|
-
Photos are classified into
|
134
|
-
|
135
|
-
date taken (older first).
|
148
|
+
Photos are classified into photosets. If the photoset does not exist, flickru
|
149
|
+
creates it. This photoset is named after its grandparent directory. The
|
150
|
+
photoset is arranged by 'date taken' (older first).
|
136
151
|
|
137
152
|
To see some examples on the directory structure recognised by flickru, please
|
138
|
-
explore the subdirectories under var/ts.
|
153
|
+
explore the subdirectories under 'var/ts'.
|
139
154
|
|
140
155
|
Homepage: http://rubygems.org/gems/flickru
|
141
156
|
GitHub: http://github.com/jesuspv/flickru
|