tomk32-flickr_fu 0.3.3 → 0.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ 2010-07-07: 0.3.4 (tomk32-flickr_fu)
2
+ * Added medium640 size (the new 'z' from flickr's brand-new broader layout)
3
+ * Added attributes for height and width of original
4
+
5
+ 2010-04-22: 0.3.3 (tomk32-flickr_fu)
6
+ * Fixed bug where :extra fields received via photos.search where ignored in Photo
7
+ and an additional API call was made
1
8
  2010-04-17: 0.3.1 (tomk32-flickr_fu)
2
9
  * Allows to add extra fields to flickr.photos.search (and other in this flickr.photo)
3
- that are requested from flickr. This can be used to e.g. get the original_url quicker.
10
+ that are requested from flickr. This can be used to e.g. get the original_url quicker.
@@ -86,7 +86,6 @@ module Flickr
86
86
  sign_request(options)
87
87
 
88
88
  rsp = request_over_http(options, http_method, endpoint)
89
- puts rsp.inspect
90
89
  rsp = '<rsp stat="ok"></rsp>' if rsp == ""
91
90
  xm = XmlMagic.new(rsp)
92
91
 
@@ -52,6 +52,7 @@ class Flickr::People::Person
52
52
  :method => 'public_photos',
53
53
  :options => options) do |photos|
54
54
  rsp.photos.photo.each do |photo|
55
+ puts photo.inspect
55
56
  attributes = {:id => photo[:id],
56
57
  :owner => photo[:owner],
57
58
  :secret => photo[:secret],
@@ -88,11 +88,13 @@ class Flickr::Photos::Photo
88
88
  # * size (Optional)
89
89
  # the size of the image to return. Optional sizes are:
90
90
  # :small - square 75x75
91
- # :thumbnail - 100 on longest side
92
- # :small - 240 on longest side
93
- # :medium - 500 on longest side
94
- # :large - 1024 on longest side (only exists for very large original images)
95
- # :original - original image, either a jpg, gif or png, depending on source format
91
+ # :thumbnail - 100 on longest side
92
+ # :small - 240 on longest side
93
+ # :medium - 500 on longest side
94
+ # :medium_500 - 500 on the longest side
95
+ # :medium_640 - 640 on the longest side
96
+ # :large - 1024 on longest side (only exists for very large original images)
97
+ # :original - original image, either a jpg, gif or png, depending on source format
96
98
  #
97
99
  def save_as(filename, size = :medium)
98
100
  format = size.to_sym == :original ? (self.original_format || 'jpg') : 'jpg'
@@ -275,6 +277,8 @@ class Flickr::Photos::Photo
275
277
  when :thumb, :thumbnail then 't'
276
278
  when :small then 'm'
277
279
  when :medium then ''
280
+ when :medium_500 then ''
281
+ when :medium_640 then 'z'
278
282
  when :large then 'b'
279
283
  when :original then 'o'
280
284
  else ''
@@ -16,8 +16,7 @@ class Flickr::Photos < Flickr::Base
16
16
  :tags => :tags,
17
17
  :o_dims => :o_dims,
18
18
  :views => :views,
19
- :media => :media,
20
- :url_o => :original_url
19
+ :media => :media
21
20
  }
22
21
  end
23
22
 
@@ -253,7 +252,9 @@ class Flickr::Photos < Flickr::Base
253
252
  :title => :title,
254
253
  :ispublic => :is_public,
255
254
  :isfriend => :is_friend,
256
- :isfamily => :is_family
255
+ :isfamily => :is_family,
256
+ :o_width => :width,
257
+ :o_height => :height
257
258
  }.merge(self.extras).each do |flickr_key, photo_key|
258
259
  attributes[photo_key] = photo[flickr_key]
259
260
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tomk32-flickr_fu}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4.1"
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", "Thomas R. Koll"]
12
- s.date = %q{2010-04-22}
12
+ s.date = %q{2010-07-07}
13
13
  s.description = %q{Provides a ruby interface to flickr via the REST api}
14
14
  s.email = %q{tomk32@gmx.de}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,12 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomk32-flickr_fu
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 69
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 3
8
- - 3
9
- version: 0.3.3
9
+ - 4
10
+ - 1
11
+ version: 0.3.4.1
10
12
  platform: ruby
11
13
  authors:
12
14
  - Ben Wyrosdick
@@ -16,16 +18,18 @@ autorequire:
16
18
  bindir: bin
17
19
  cert_chain: []
18
20
 
19
- date: 2010-04-22 00:00:00 +02:00
21
+ date: 2010-07-07 00:00:00 +02:00
20
22
  default_executable:
21
23
  dependencies:
22
24
  - !ruby/object:Gem::Dependency
23
25
  name: mime-types
24
26
  prerelease: false
25
27
  requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
26
29
  requirements:
27
30
  - - ">"
28
31
  - !ruby/object:Gem::Version
32
+ hash: 31
29
33
  segments:
30
34
  - 0
31
35
  - 0
@@ -37,9 +41,11 @@ dependencies:
37
41
  name: xml-magic
38
42
  prerelease: false
39
43
  requirement: &id002 !ruby/object:Gem::Requirement
44
+ none: false
40
45
  requirements:
41
46
  - - ">"
42
47
  - !ruby/object:Gem::Version
48
+ hash: 31
43
49
  segments:
44
50
  - 0
45
51
  - 0
@@ -135,23 +141,27 @@ rdoc_options:
135
141
  require_paths:
136
142
  - lib
137
143
  required_ruby_version: !ruby/object:Gem::Requirement
144
+ none: false
138
145
  requirements:
139
146
  - - ">="
140
147
  - !ruby/object:Gem::Version
148
+ hash: 3
141
149
  segments:
142
150
  - 0
143
151
  version: "0"
144
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
+ none: false
145
154
  requirements:
146
155
  - - ">="
147
156
  - !ruby/object:Gem::Version
157
+ hash: 3
148
158
  segments:
149
159
  - 0
150
160
  version: "0"
151
161
  requirements: []
152
162
 
153
163
  rubyforge_project:
154
- rubygems_version: 1.3.6
164
+ rubygems_version: 1.3.7
155
165
  signing_key:
156
166
  specification_version: 3
157
167
  summary: Provides a ruby interface to flickr via the REST api