flickrup 0.1.7 → 1.0.0
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.md +29 -0
- data/lib/flickrup/processor.rb +1 -1
- metadata +5 -4
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
Flickrup
|
2
|
+
========
|
3
|
+
|
4
|
+
Purpose
|
5
|
+
-------
|
6
|
+
|
7
|
+
Simplify image uploading to Flickr, by supporting the following features:
|
8
|
+
|
9
|
+
* Automated, async upload of images, post-tagging
|
10
|
+
* Tagging via Picasa (nice interface for tagging)
|
11
|
+
* Option for tagging on another machine (i.e. via Dropbox)
|
12
|
+
* Storage of tags within image EXIF data (not solely on Flickr)
|
13
|
+
* Storage of set data with image EXIF data (not solely on Flickr)
|
14
|
+
* Archiving of photos into /year/month/ folders
|
15
|
+
|
16
|
+
Operation
|
17
|
+
---------
|
18
|
+
|
19
|
+
Flickrup is a script which will run and monitor image files in a directory. When it has detected files have changed (and then remained unchanged for a specified period), it will process them. They will be uploaded to Flickr and archived.
|
20
|
+
|
21
|
+
Additionally, machine tags are supported, but as Picasa won't allow equals (=) in tags, any tags of the form group:key::value will be converted to group:key=value and rewritten into the file.
|
22
|
+
|
23
|
+
Special tags can also direct the script to place the images in Sets, and control the visibility of the image. See the configuration file for more detail.
|
24
|
+
|
25
|
+
|
26
|
+
Usage
|
27
|
+
-----
|
28
|
+
|
29
|
+
Run flickrup script, passing location of config file (will default to ./flickrup.yml if not specified).
|
data/lib/flickrup/processor.rb
CHANGED
@@ -28,7 +28,7 @@ class Processor
|
|
28
28
|
|
29
29
|
images = files.map { |x| TaggedImage.new(x) }
|
30
30
|
|
31
|
-
tagged = images.select { |x| !(x.tags.nil? || x.tags.empty?) }
|
31
|
+
tagged = images.select { |x| !(x.tags.nil? || x.tags.empty?) }.sort { |x,y| x.filename <=> y.filename}
|
32
32
|
|
33
33
|
logger.debug("Selected #{tagged.length} files for upload")
|
34
34
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flickrup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Gilbert
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/flickrup/uploader.rb
|
155
155
|
- lib/flickrup.rb
|
156
156
|
- bin/flickrup
|
157
|
+
- README.md
|
157
158
|
homepage: http://bitbucket.org/jgilbert/flickrup
|
158
159
|
licenses: []
|
159
160
|
|