ayn-flickr_fu 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/flickr_fu.gemspec +2 -2
- data/lib/flickr/photo.rb +1 -1
- data/lib/flickr/photos.rb +5 -4
- data/lib/flickr/photoset.rb +4 -3
- metadata +4 -3
data/VERSION.yml
CHANGED
data/flickr_fu.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flickr_fu}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben Wyrosdick", "Maciej Bilas"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-15}
|
13
13
|
s.description = %q{Provides a ruby interface to flickr via the REST api}
|
14
14
|
s.email = %q{ayn@andrewng.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/flickr/photo.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# wrapping class to hold an flickr photo
|
2
2
|
class Flickr::Photos::Photo
|
3
3
|
attr_accessor :id, :owner, :secret, :server, :farm, :title, :is_public, :is_friend, :is_family # standard attributes
|
4
|
-
attr_accessor :license_id, :uploaded_at, :taken_at, :owner_name, :icon_server, :original_format, :updated_at, :geo, :tags, :machine_tags, :o_dims, :views, :media # extra attributes
|
4
|
+
attr_accessor :license_id, :uploaded_at, :taken_at, :owner_name, :icon_server, :original_format, :updated_at, :geo, :tags, :machine_tags, :o_dims, :views, :media, :url_l # extra attributes
|
5
5
|
attr_accessor :info_added, :description, :original_secret, :owner_username, :owner_realname, :url_photopage, :notes # info attributes
|
6
6
|
attr_accessor :comments # comment attributes
|
7
7
|
|
data/lib/flickr/photos.rb
CHANGED
@@ -115,7 +115,7 @@ class Flickr::Photos < Flickr::Base
|
|
115
115
|
# The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default.
|
116
116
|
#
|
117
117
|
def search(options)
|
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"})
|
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,url_l"})
|
119
119
|
|
120
120
|
rsp = @flickr.send_request('flickr.photos.search', options)
|
121
121
|
|
@@ -149,7 +149,7 @@ class Flickr::Photos < Flickr::Base
|
|
149
149
|
# The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default.
|
150
150
|
#
|
151
151
|
def get_recent(options = {})
|
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"})
|
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,url_l"})
|
153
153
|
|
154
154
|
rsp = @flickr.send_request('flickr.photos.getRecent', options)
|
155
155
|
|
@@ -169,7 +169,7 @@ class Flickr::Photos < Flickr::Base
|
|
169
169
|
end
|
170
170
|
|
171
171
|
def interesting(options)
|
172
|
-
options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media"})
|
172
|
+
options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media,url_l"})
|
173
173
|
|
174
174
|
rsp = @flickr.send_request('flickr.interestingness.getList', options)
|
175
175
|
|
@@ -240,7 +240,8 @@ class Flickr::Photos < Flickr::Base
|
|
240
240
|
:machine_tags => photo[:machine_tags],
|
241
241
|
:o_dims => photo[:o_dims],
|
242
242
|
:views => photo[:views].to_i,
|
243
|
-
:media => photo[:media]
|
243
|
+
:media => photo[:media],
|
244
|
+
:url_l => photo[:url_l]}
|
244
245
|
end
|
245
246
|
|
246
247
|
end
|
data/lib/flickr/photoset.rb
CHANGED
@@ -35,10 +35,11 @@ class Flickr::Photosets::Photoset
|
|
35
35
|
def create_attributes(photo)
|
36
36
|
{
|
37
37
|
:id => photo[:id],
|
38
|
-
:secret => photo[:secret],
|
39
|
-
:server => photo[:server],
|
38
|
+
:secret => photo[:secret],
|
39
|
+
:server => photo[:server],
|
40
40
|
:farm => photo[:farm],
|
41
|
-
:title => photo[:title]
|
41
|
+
:title => photo[:title],
|
42
|
+
:url_l => photo[:url_l]
|
42
43
|
}
|
43
44
|
end
|
44
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ayn-flickr_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Wyrosdick
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-09-
|
13
|
+
date: 2009-09-15 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- spec/spec_helper.rb
|
112
112
|
has_rdoc: false
|
113
113
|
homepage: http://github.com/ayn/flickr_fu
|
114
|
+
licenses:
|
114
115
|
post_install_message:
|
115
116
|
rdoc_options:
|
116
117
|
- --main
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
requirements: []
|
133
134
|
|
134
135
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.
|
136
|
+
rubygems_version: 1.3.5
|
136
137
|
signing_key:
|
137
138
|
specification_version: 3
|
138
139
|
summary: Provides a ruby interface to flickr via the REST api
|