tomk32-flickr_fu 0.3.1 → 0.3.2

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/CHANGELOG ADDED
@@ -0,0 +1,3 @@
1
+ 2010-04-17: 0.3.1 (tomk32-flickr_fu)
2
+ * 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.
data/Rakefile CHANGED
@@ -10,12 +10,12 @@ begin
10
10
  require 'jeweler'
11
11
  end
12
12
  Jeweler::Tasks.new do |s|
13
- s.name = "flickr_fu"
13
+ s.name = "tomk32-flickr_fu"
14
14
  s.summary = "Provides a ruby interface to flickr via the REST api"
15
- s.email = "ben@commonthread.com"
16
- s.homepage = "http://github.com/commonthread/flickr_fu"
15
+ s.email = "tomk32@gmx.de"
16
+ s.homepage = "http://github.com/tomk32/flickr_fu"
17
17
  s.description = "Provides a ruby interface to flickr via the REST api"
18
- s.authors = ["Ben Wyrosdick", "Maciej Bilas"]
18
+ s.authors = ["Ben Wyrosdick", "Maciej Bilas", "Thomas R. Koll"]
19
19
  s.rdoc_options = ["--main", "README"]
20
20
  s.extra_rdoc_files = ["README"]
21
21
  s.add_dependency("mime-types", ["> 0.0.0"])
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 1
4
+ :patch: 2
data/lib/flickr/base.rb CHANGED
@@ -84,9 +84,8 @@ module Flickr
84
84
  def send_request(method, options = {}, http_method = :get, endpoint = REST_ENDPOINT)
85
85
  options.merge!(:api_key => @api_key, :method => method)
86
86
  sign_request(options)
87
+
87
88
  rsp = request_over_http(options, http_method, endpoint)
88
- puts y options
89
- puts y rsp
90
89
 
91
90
  rsp = '<rsp stat="ok"></rsp>' if rsp == ""
92
91
  xm = XmlMagic.new(rsp)
data/lib/flickr/photo.rb CHANGED
@@ -65,6 +65,7 @@ class Flickr::Photos::Photo
65
65
  # Retrieving 30 search results means calling the API 31 times if you call getSizes every time.
66
66
  # Mind that you still need to call getSizes if you go out for the original image.
67
67
  if size == :original
68
+ return original_url if respond_to?(:original_url) and !original_url.blank?
68
69
  size_hash[size.to_s].source if size_hash.has_key? size.to_s
69
70
  else
70
71
  key = "_#{size_key(size.to_sym)}"
data/lib/flickr/photos.rb CHANGED
@@ -16,7 +16,8 @@ class Flickr::Photos < Flickr::Base
16
16
  :tags => :tags,
17
17
  :o_dims => :o_dims,
18
18
  :views => :views,
19
- :media => :media
19
+ :media => :media,
20
+ :url_o => :original_url
20
21
  }
21
22
  end
22
23
 
@@ -1,12 +1,15 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{tomk32-flickr_fu}
5
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
6
9
 
7
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Ben Wyrosdick", "Maciej Bilas", "Thomas R. Koll"]
9
- s.date = %q{2010-04-17}
12
+ s.date = %q{2010-04-18}
10
13
  s.description = %q{Provides a ruby interface to flickr via the REST api}
11
14
  s.email = %q{tomk32@gmx.de}
12
15
  s.extra_rdoc_files = [
@@ -14,11 +17,11 @@ Gem::Specification.new do |s|
14
17
  ]
15
18
  s.files = [
16
19
  ".gitignore",
20
+ "CHANGELOG",
17
21
  "LICENSE",
18
22
  "README",
19
23
  "Rakefile",
20
24
  "VERSION.yml",
21
- "flickr_fu.gemspec",
22
25
  "lib/flickr/auth.rb",
23
26
  "lib/flickr/base.rb",
24
27
  "lib/flickr/comment.rb",
@@ -79,24 +82,25 @@ Gem::Specification.new do |s|
79
82
  "spec/flickr/test_spec.rb",
80
83
  "spec/flickr/urls_spec.rb",
81
84
  "spec/spec.opts",
82
- "spec/spec_helper.rb"
85
+ "spec/spec_helper.rb",
86
+ "tomk32-flickr_fu.gemspec"
83
87
  ]
84
88
  s.homepage = %q{http://github.com/tomk32/flickr_fu}
85
89
  s.rdoc_options = ["--main", "README"]
86
90
  s.require_paths = ["lib"]
87
- s.rubygems_version = %q{1.3.3}
91
+ s.rubygems_version = %q{1.3.6}
88
92
  s.summary = %q{Provides a ruby interface to flickr via the REST api}
89
93
  s.test_files = [
90
- "spec/spec_helper.rb",
91
- "spec/flickr/test_spec.rb",
92
- "spec/flickr/geo_spec.rb",
94
+ "spec/flickr/base_spec.rb",
93
95
  "spec/flickr/contacts_spec.rb",
94
- "spec/flickr/urls_spec.rb",
95
96
  "spec/flickr/errors_spec.rb",
96
- "spec/flickr/base_spec.rb",
97
+ "spec/flickr/geo_spec.rb",
97
98
  "spec/flickr/photo_spec.rb",
99
+ "spec/flickr/photos_spec.rb",
98
100
  "spec/flickr/photosets_spec.rb",
99
- "spec/flickr/photos_spec.rb"
101
+ "spec/flickr/test_spec.rb",
102
+ "spec/flickr/urls_spec.rb",
103
+ "spec/spec_helper.rb"
100
104
  ]
101
105
 
102
106
  if s.respond_to? :specification_version then
@@ -115,3 +119,4 @@ Gem::Specification.new do |s|
115
119
  s.add_dependency(%q<xml-magic>, ["> 0.0.0"])
116
120
  end
117
121
  end
122
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Wyrosdick
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-17 00:00:00 +02:00
19
+ date: 2010-04-18 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -57,11 +57,11 @@ extra_rdoc_files:
57
57
  - README
58
58
  files:
59
59
  - .gitignore
60
+ - CHANGELOG
60
61
  - LICENSE
61
62
  - README
62
63
  - Rakefile
63
64
  - VERSION.yml
64
- - flickr_fu.gemspec
65
65
  - lib/flickr/auth.rb
66
66
  - lib/flickr/base.rb
67
67
  - lib/flickr/comment.rb
@@ -123,6 +123,7 @@ files:
123
123
  - spec/flickr/urls_spec.rb
124
124
  - spec/spec.opts
125
125
  - spec/spec_helper.rb
126
+ - tomk32-flickr_fu.gemspec
126
127
  has_rdoc: true
127
128
  homepage: http://github.com/tomk32/flickr_fu
128
129
  licenses: []
@@ -155,13 +156,13 @@ signing_key:
155
156
  specification_version: 3
156
157
  summary: Provides a ruby interface to flickr via the REST api
157
158
  test_files:
158
- - spec/spec_helper.rb
159
- - spec/flickr/test_spec.rb
160
- - spec/flickr/geo_spec.rb
159
+ - spec/flickr/base_spec.rb
161
160
  - spec/flickr/contacts_spec.rb
162
- - spec/flickr/urls_spec.rb
163
161
  - spec/flickr/errors_spec.rb
164
- - spec/flickr/base_spec.rb
162
+ - spec/flickr/geo_spec.rb
165
163
  - spec/flickr/photo_spec.rb
166
- - spec/flickr/photosets_spec.rb
167
164
  - spec/flickr/photos_spec.rb
165
+ - spec/flickr/photosets_spec.rb
166
+ - spec/flickr/test_spec.rb
167
+ - spec/flickr/urls_spec.rb
168
+ - spec/spec_helper.rb