flickr-folder 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +35 -0
  2. data/VERSION +1 -1
  3. data/flickr-folder.gemspec +1 -1
  4. metadata +1 -1
@@ -2,6 +2,41 @@
2
2
 
3
3
  Uses the Flickr API (through flickr_fu) to fill a folder with images that match a specified search string and quantity.
4
4
 
5
+ Results can be filtered by passing a filter proc that will be invoked per photo, so that you can further filter your
6
+ photos beyond what the Flickr API provides in its search syntax. For example, the API won't let you search based on
7
+ image resolution.
8
+
9
+ If you delete any photos and then run the update method again then it will automatically find new images that match your
10
+ search conditions and your filter, and it will check them against a SQLite3 database to make sure that it never downloads
11
+ the same photo twice.
12
+
13
+ = Example usage
14
+
15
+ require 'rubygems'
16
+ require 'flickr-folder'
17
+
18
+ FlickrFolder.new({
19
+ :config => 'flickr.yml',
20
+ :folder => {
21
+ :path => 'photos',
22
+ :number => 250,
23
+ :minimum_resolution => 1000
24
+ },
25
+ :search => {
26
+ :tags => 'miami beach',
27
+ :sort => 'interestingness-desc'
28
+ }
29
+ }).update
30
+
31
+ = API key
32
+
33
+ You need an API key from Flickr. Don't worry, it's quick and easy to get one. Just sign up at Flickr, log in, and go
34
+ to the "App Garden"[http://www.flickr.com/services/apps/create/apply] to create your key. Then create a YML file that
35
+ looks like this:
36
+
37
+ key: "0923400YOUR0KEY0GOES0HERE00198"
38
+ secret: "987YOUR0SECRET0HERE023"
39
+
5
40
  == Note on Patches/Pull Requests
6
41
 
7
42
  * Fork the project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flickr-folder}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Alyn Porter"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr-folder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Alyn Porter