fotonauts-flickr_fu 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION.yml +1 -1
  2. data/flickr_fu.gemspec +1 -1
  3. data/lib/flickr_fu.rb +12 -12
  4. metadata +38 -49
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 3
4
+ :patch: 5
data/flickr_fu.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fotonauts-flickr_fu}
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Wyrosdick", "Maciej Bilas", "Fotonauts"]
data/lib/flickr_fu.rb CHANGED
@@ -53,17 +53,17 @@ module Flickr
53
53
  require 'rexml/document'
54
54
 
55
55
  def initialize(xml, namespace="")
56
- if xml.class == REXML::Element or xml.class == Array
56
+ if xml.class == ::REXML::Element or xml.class == ::Array
57
57
  @element = xml
58
58
  else
59
- @xml = REXML::Document.new(xml)
59
+ @xml = ::REXML::Document.new(xml)
60
60
  @element = @xml.root
61
61
  end
62
62
  @namespace = namespace
63
63
  end
64
64
 
65
65
  def each
66
- @element.each {|e| yield CommonThread::XML::XmlMagic.new(e, @namespace)}
66
+ @element.each {|e| yield ::Flickr::XmlMagic.new(e, @namespace)}
67
67
  end
68
68
 
69
69
  def method_missing(method, selection=nil)
@@ -79,7 +79,7 @@ module Flickr
79
79
  end
80
80
 
81
81
  def to_s
82
- if @element.class == Array
82
+ if @element.class == ::Array
83
83
  @element.collect{|e| e.text}.join
84
84
  else
85
85
  @element.text
@@ -87,18 +87,18 @@ module Flickr
87
87
  end
88
88
 
89
89
  def [](index, count = nil)
90
- if index.is_a?(Fixnum) or index.is_a?(Bignum) or index.is_a?(Integer) or index.is_a?(Range)
91
- if @element.is_a?(Array)
90
+ if index.is_a?(::Fixnum) or index.is_a?(::Bignum) or index.is_a?(::Integer) or index.is_a?(::Range)
91
+ if @element.is_a?(::Array)
92
92
  if count
93
- CommonThread::XML::XmlMagic.new(@element[index, count], @namespace)
93
+ ::Flickr::XmlMagic.new(@element[index, count], @namespace)
94
94
  else
95
- CommonThread::XML::XmlMagic.new(@element[index], @namespace)
95
+ ::Flickr::XmlMagic.new(@element[index], @namespace)
96
96
  end
97
97
  else
98
98
  nil
99
99
  end
100
- elsif index.is_a?(Symbol)
101
- if @element.is_a?(Array)
100
+ elsif index.is_a?(::Symbol)
101
+ if @element.is_a?(::Array)
102
102
  if @element.empty?
103
103
  nil
104
104
  else
@@ -113,7 +113,7 @@ module Flickr
113
113
  private
114
114
  def evaluate(name, selection)
115
115
 
116
- if @element.is_a?(Array)
116
+ if @element.is_a?(::Array)
117
117
  elements = @element[0].get_elements(@namespace + name)
118
118
  else
119
119
  elements = @element.get_elements(@namespace + name)
@@ -125,7 +125,7 @@ module Flickr
125
125
  if selection == :count
126
126
  elements.length
127
127
  else
128
- CommonThread::XML::XmlMagic.new(elements, @namespace)
128
+ ::Flickr::XmlMagic.new(elements, @namespace)
129
129
  end
130
130
  end
131
131
  end
metadata CHANGED
@@ -1,47 +1,41 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fotonauts-flickr_fu
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 3
9
- version: 0.3.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Ben Wyrosdick
13
9
  - Maciej Bilas
14
10
  - Fotonauts
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
-
19
- date: 2009-05-19 00:00:00 +02:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2009-05-19 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: mime-types
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">"
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 0
32
- - 0
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>'
22
+ - !ruby/object:Gem::Version
33
23
  version: 0.0.0
34
24
  type: :runtime
35
- version_requirements: *id001
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>'
30
+ - !ruby/object:Gem::Version
31
+ version: 0.0.0
36
32
  description: Provides a ruby interface to flickr via the REST api
37
33
  email: ben@commonthread.com
38
34
  executables: []
39
-
40
35
  extensions: []
41
-
42
- extra_rdoc_files:
36
+ extra_rdoc_files:
43
37
  - README
44
- files:
38
+ files:
45
39
  - .gitignore
46
40
  - LICENSE
47
41
  - README
@@ -109,38 +103,33 @@ files:
109
103
  - spec/flickr/urls_spec.rb
110
104
  - spec/spec.opts
111
105
  - spec/spec_helper.rb
112
- has_rdoc: true
113
106
  homepage: http://github.com/commonthread/flickr_fu
114
107
  licenses: []
115
-
116
108
  post_install_message:
117
- rdoc_options:
109
+ rdoc_options:
118
110
  - --main
119
111
  - README
120
- require_paths:
112
+ require_paths:
121
113
  - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- segments:
134
- - 0
135
- version: "0"
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
136
126
  requirements: []
137
-
138
127
  rubyforge_project:
139
- rubygems_version: 1.3.6
128
+ rubygems_version: 1.8.23
140
129
  signing_key:
141
130
  specification_version: 3
142
131
  summary: Provides a ruby interface to flickr via the REST api
143
- test_files:
132
+ test_files:
144
133
  - spec/spec_helper.rb
145
134
  - spec/flickr/test_spec.rb
146
135
  - spec/flickr/geo_spec.rb