flickraw 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/examples/flickr_KDE.rb +0 -0
  2. data/lib/flickraw.rb +2 -2
  3. data/rakefile +2 -2
  4. metadata +52 -45
  5. data/TODO +0 -6
File without changes
data/lib/flickraw.rb CHANGED
@@ -26,7 +26,7 @@ require 'json'
26
26
  require 'cgi'
27
27
 
28
28
  module FlickRaw
29
- VERSION='0.5'
29
+ VERSION='0.5.1'
30
30
 
31
31
  FLICKR_HOST='api.flickr.com'.freeze
32
32
 
@@ -187,7 +187,7 @@ module FlickRaw
187
187
 
188
188
  private
189
189
  def parse_response(response, req = nil)
190
- json = JSON.load(response.body.gsub(/:([^\s])/, ': \1'))
190
+ json = JSON.load(response.body)
191
191
  raise FailedResponse.new(json['message'], json['code'], req) if json.delete('stat') == 'fail'
192
192
  name, json = json.to_a.first if json.size == 1
193
193
 
data/rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/testtask'
6
6
  require 'lib/flickraw'
7
7
  require 'flickraw_rdoc'
8
8
 
9
- PKG_FILES = FileList["lib/flickraw.rb", "flickraw_rdoc.rb", "copying.txt", "README", "TODO", "rakefile", "examples/*.rb", "test/*.rb"].to_a
9
+ PKG_FILES = FileList["lib/flickraw.rb", "flickraw_rdoc.rb", "copying.txt", "README", "rakefile", "examples/*.rb", "test/*.rb"].to_a
10
10
 
11
11
  spec = Gem::Specification.new do |s|
12
12
  s.summary = "Flickr library with a syntax close to the syntax described on http://www.flickr.com/services/api"
@@ -22,7 +22,7 @@ spec = Gem::Specification.new do |s|
22
22
  end
23
23
 
24
24
  Rake::RDocTask.new do |rd|
25
- rd.rdoc_files.include "README", "lib/flickraw.rb", "TODO"
25
+ rd.rdoc_files.include "README", "lib/flickraw.rb"
26
26
  rd.options << "--inline-source"
27
27
  end
28
28
 
metadata CHANGED
@@ -1,64 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: flickraw
5
3
  version: !ruby/object:Gem::Version
6
- version: "0.5"
7
- date: 2008-11-10 00:00:00 +01:00
8
- summary: Flickr library with a syntax close to the syntax described on http://www.flickr.com/services/api
9
- require_paths:
10
- - lib
11
- email: maelclerambault@yahoo.fr
12
- homepage: http://flickraw.rubyforge.org
13
- rubyforge_project: flickraw
14
- description:
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 0.5.1
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Mael Clerambault
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-11-23 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description:
26
+ email: maelclerambault@yahoo.fr
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files: []
32
+
31
33
  files:
32
34
  - lib/flickraw.rb
33
35
  - flickraw_rdoc.rb
34
36
  - copying.txt
35
37
  - README
36
- - TODO
37
38
  - rakefile
38
- - examples/interestingness.rb
39
- - examples/upload.rb
40
39
  - examples/flickr_KDE.rb
40
+ - examples/upload.rb
41
41
  - examples/auth.rb
42
+ - examples/interestingness.rb
42
43
  - test/test.rb
43
- test_files:
44
- - test/test.rb
44
+ has_rdoc: false
45
+ homepage: http://flickraw.rubyforge.org
46
+ post_install_message:
45
47
  rdoc_options: []
46
48
 
47
- extra_rdoc_files: []
48
-
49
- executables: []
50
-
51
- extensions: []
52
-
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
53
63
  requirements: []
54
64
 
55
- dependencies:
56
- - !ruby/object:Gem::Dependency
57
- name: json
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Version::Requirement
60
- requirements:
61
- - - ">"
62
- - !ruby/object:Gem::Version
63
- version: 0.0.0
64
- version:
65
+ rubyforge_project: flickraw
66
+ rubygems_version: 1.2.0
67
+ signing_key:
68
+ specification_version: 2
69
+ summary: Flickr library with a syntax close to the syntax described on http://www.flickr.com/services/api
70
+ test_files:
71
+ - test/test.rb
data/TODO DELETED
@@ -1,6 +0,0 @@
1
- == General
2
- * Add helper classes for URL support
3
-
4
- == Documentation
5
- * Document the object returned by the flickr method calls ( FlickRaw::Xml )
6
- * Add more examples.