commonthread-flickr_fu 0.2.0 → 0.2.1

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 CHANGED
@@ -144,3 +144,4 @@ token_cache: "token_cache.yml"
144
144
  Luke Francl
145
145
  Thomas R. Koll
146
146
  P. Mark Anderson
147
+ Josh Nichols
data/flickr_fu.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "flickr_fu"
3
- s.version = "0.2.0"
3
+ s.version = "0.2.1"
4
4
  s.date = "2008-12-30"
5
5
  s.summary = "Provides a ruby interface to flickr via the REST api"
6
6
  s.email = "ben@commonthread.com"
data/lib/flickr/photo.rb CHANGED
@@ -55,6 +55,12 @@ class Flickr::Photos::Photo
55
55
  url_photopage
56
56
  end
57
57
 
58
+ def video_url
59
+ if size_hash['video player']
60
+ size_hash['video player'].source
61
+ end
62
+ end
63
+
58
64
  # save the current photo to the local computer
59
65
  #
60
66
  # == Params
data/lib/flickr/photos.rb CHANGED
@@ -111,6 +111,8 @@ class Flickr::Photos < Flickr::Base
111
111
  # Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.
112
112
  # * page (Optional)
113
113
  # The page of results to return. If this argument is omitted, it defaults to 1.
114
+ # * media (Optional)
115
+ # The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default.
114
116
  #
115
117
  def search(options)
116
118
  options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media"})
@@ -143,6 +145,8 @@ class Flickr::Photos < Flickr::Base
143
145
  # Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.
144
146
  # * page (Optional)
145
147
  # The page of results to return. If this argument is omitted, it defaults to 1.
148
+ # * media (Optional)
149
+ # The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default.
146
150
  #
147
151
  def get_recent(options)
148
152
  options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media"})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonthread-flickr_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Wyrosdick