rmm5t-flickr_fu 0.3.2 → 0.3.3

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.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 2
4
+ :patch: 3
@@ -206,27 +206,27 @@ class Flickr::Photos < Flickr::Base
206
206
  def geo
207
207
  @geo ||= Flickr::Photos::Geo.new(@flickr)
208
208
  end
209
-
209
+
210
210
  # Returns a Flickr::Photos::Photo object of the given id.
211
211
  # Raises an error if photo not found
212
212
  def find_by_id(photo_id)
213
213
  rsp = @flickr.send_request('flickr.photos.getInfo', :photo_id => photo_id)
214
214
  Photo.new(@flickr, :id => rsp.photo[:id].to_i, :owner => rsp.photo.owner,
215
- :secret => rsp.photo[:secret], :server => rsp.photo[:server].to_i, :farm => rsp.photo[:farm],
215
+ :secret => rsp.photo[:secret], :server => rsp.photo[:server].to_i, :farm => rsp.photo[:farm], :views => rsp.photo[:views],
216
216
  :title => rsp.photo.title,
217
217
  :is_public => rsp.photo.visibility[:public], :is_friend => rsp.photo.visibility[:is_friend], :is_family => rsp.photo.visibility[:is_family])
218
218
  end
219
-
219
+
220
220
  protected
221
221
  def create_attributes(photo)
222
- {:id => photo[:id],
223
- :owner => photo[:owner],
224
- :secret => photo[:secret],
225
- :server => photo[:server],
226
- :farm => photo[:farm],
227
- :title => photo[:title],
228
- :is_public => photo[:ispublic],
229
- :is_friend => photo[:isfriend],
222
+ {:id => photo[:id],
223
+ :owner => photo[:owner],
224
+ :secret => photo[:secret],
225
+ :server => photo[:server],
226
+ :farm => photo[:farm],
227
+ :title => photo[:title],
228
+ :is_public => photo[:ispublic],
229
+ :is_friend => photo[:isfriend],
230
230
  :is_family => photo[:isfamily],
231
231
  :license_id => photo[:license].to_i,
232
232
  :uploaded_at => (Time.at(photo[:dateupload].to_i) rescue nil),
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rmm5t-flickr_fu}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
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"]
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
2
  <rsp stat="ok">
3
- <photo id="2984637736" secret="9e5762e027" server="3180" farm="4" dateuploaded="1225297614" isfavorite="0" license="0" rotation="0" media="photo">
3
+ <photo id="2984637736" secret="9e5762e027" server="3180" farm="4" dateuploaded="1225297614" isfavorite="0" license="0" rotation="0" views="20" media="photo">
4
4
  <owner nsid="80755658@N00" username="Maciej Biłas" realname="Maciej Biłas" location="Rzeszów, Poland"/>
5
5
  <title>Demolition of Hotel Rzeszów</title>
6
6
  <description>
@@ -38,4 +38,4 @@ The last picture from a quite old event. The demolition of the best known hotel
38
38
  </url>
39
39
  </urls>
40
40
  </photo>
41
- </rsp>
41
+ </rsp>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmm5t-flickr_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Wyrosdick