catptcha 0.1.3 → 0.1.4

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/catptcha/seed.rb +8 -5
  2. data/lib/catptcha.rb +1 -1
  3. metadata +3 -3
data/lib/catptcha/seed.rb CHANGED
@@ -2,12 +2,14 @@ require 'flickr_fu'
2
2
 
3
3
  module Catptcha::Seed
4
4
  SEED_GROUP_KITTENS = {
5
- :cutekittens => '99442622@N00' # http://www.flickr.com/groups/cutekittens/
5
+ :cutekittens => '99442622@N00', # http://www.flickr.com/groups/cutekittens/
6
+ :catscatscats => '38559865@N00' # http://www.flickr.com/groups/cats-cats-cats
6
7
  }
7
8
  SEED_GROUP_NOTKITTENS = {
8
- :birdsphotos => '670107@N23', # http://www.flickr.com/groups/birdsphotos/
9
- :lovehorses => '44159230@N00', # http://www.flickr.com/groups/lovehorses/
10
- :puppylove => '26602919@N00' # http://www.flickr.com/groups/puppylove/
9
+ :birdsphotos => '670107@N23', # http://www.flickr.com/groups/birdsphotos/
10
+ :lovehorses => '44159230@N00', # http://www.flickr.com/groups/lovehorses/
11
+ :puppylove => '26602919@N00', # http://www.flickr.com/groups/puppylove/
12
+ :dogsdogsdogs => '35034344814@N01' # http://www.flickr.com/groups/dogsdogsdogs/
11
13
  }
12
14
 
13
15
  class << self
@@ -36,9 +38,10 @@ module Catptcha::Seed
36
38
 
37
39
  # fetches up to 2500 photos
38
40
  def update_photos group
41
+ # http://www.flickr.com/services/api/flickr.photos.search.html
39
42
  params = {
40
43
  :group_id => group.flickr_group_id, :safe_search => 1, :content_type => 1,
41
- :license => '4,6', #Attribution/NoDerivs
44
+ :text => 'cute', :license => '4,6', #Attribution/NoDerivs
42
45
  :per_page => 500, :page => 1
43
46
  }
44
47
  params[:min_upload_date] = group.photos_updated_at if group.photos_updated_at
data/lib/catptcha.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Catptcha
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
 
4
4
  class << self
5
5
  # Get a list of 3 kitten photos
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catptcha
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zack Hobson