panoramio-rb 0.0.7 → 0.0.8

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/README.rdoc CHANGED
@@ -2,13 +2,39 @@
2
2
 
3
3
  PanoramioRb gem help you to get geolocated photos from Panoramio.com how a Ruby Object.
4
4
 
5
- = Installation
5
+ == Installation
6
6
 
7
7
  In your Gemfile:
8
8
 
9
- gem 'panoramio-rb'
9
+ gem 'panoramio-rb'
10
+
11
+ Or by command line
12
+ gem install panoramio-rb
10
13
 
11
- = Usage
14
+ == Usage
15
+ require 'rubygems'
16
+ require 'panoramio-rb'
17
+ panoramio = PanoramioRb.get_panoramas(:minx => '-1.80', :miny => '-9.0', :maxx => '1.80', :maxy => '9.0')
18
+ photos = panoramio.photos
12
19
 
13
- panoramio = PanoramioRb.request_data
14
- photos = panoramio.photos
20
+ === Options
21
+ :set
22
+ Type of photos. Use :public (by default) for popular photos, :full to get all photos, or a Panoramio User ID.
23
+
24
+ :size
25
+ Photos size. You can use :original, :medium (by default), :thumbnail, :square, :mini_square
26
+
27
+ :from
28
+ From collection photos. Default 0
29
+
30
+ :to
31
+ To collection photos. Default 20
32
+
33
+ :mapfilter
34
+ Default true. When the mapfilter parameter is set to true, photos are filtered such that they look
35
+ better when they are placed on a map. It takes into account the location and tries to avoid of
36
+ returning photos of the same location.
37
+
38
+ :minx, :miny, :maxx, and :maxy
39
+ This values define the area to show photos from (minimum longitude, latitude, maximum longitude
40
+ and latitude, respectively).
@@ -1,3 +1,3 @@
1
1
  module PanoramioRb
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/panoramio-rb.rb CHANGED
@@ -13,7 +13,7 @@ module PanoramioRb
13
13
  :mapfilter => true
14
14
  }
15
15
 
16
- def self.request_data(options = {})
16
+ def self.get_panoramas(options = {})
17
17
  panoramio_options = DEFAULT_OPTIONS
18
18
  panoramio_options.merge!(options)
19
19
  response = RestClient.get URL, :params => panoramio_options
metadata CHANGED
@@ -1,111 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: panoramio-rb
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.8
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 7
10
- version: 0.0.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - William Wong Garay (willywg)
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-31 00:00:00 -05:00
12
+ date: 2011-11-02 00:00:00.000000000 -05:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: rails
23
- prerelease: false
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2156474140 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 1
30
- segments:
31
- - 3
32
- - 1
33
- - 1
21
+ - !ruby/object:Gem::Version
34
22
  version: 3.1.1
35
- requirement: *id001
36
23
  type: :runtime
37
- - !ruby/object:Gem::Dependency
38
- name: json
39
24
  prerelease: false
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2156474140
26
+ - !ruby/object:Gem::Dependency
27
+ name: json
28
+ requirement: &2156473640 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - "="
44
- - !ruby/object:Gem::Version
45
- hash: 13
46
- segments:
47
- - 1
48
- - 6
49
- - 1
30
+ requirements:
31
+ - - =
32
+ - !ruby/object:Gem::Version
50
33
  version: 1.6.1
51
- requirement: *id002
52
34
  type: :runtime
53
- - !ruby/object:Gem::Dependency
54
- name: hashie
55
35
  prerelease: false
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2156473640
37
+ - !ruby/object:Gem::Dependency
38
+ name: hashie
39
+ requirement: &2156473180 !ruby/object:Gem::Requirement
57
40
  none: false
58
- requirements:
59
- - - "="
60
- - !ruby/object:Gem::Version
61
- hash: 31
62
- segments:
63
- - 1
64
- - 2
65
- - 0
41
+ requirements:
42
+ - - =
43
+ - !ruby/object:Gem::Version
66
44
  version: 1.2.0
67
- requirement: *id003
68
45
  type: :runtime
69
- - !ruby/object:Gem::Dependency
70
- name: rest-client
71
46
  prerelease: false
72
- version_requirements: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2156473180
48
+ - !ruby/object:Gem::Dependency
49
+ name: rest-client
50
+ requirement: &2156472720 !ruby/object:Gem::Requirement
73
51
  none: false
74
- requirements:
75
- - - "="
76
- - !ruby/object:Gem::Version
77
- hash: 1
78
- segments:
79
- - 1
80
- - 6
81
- - 7
52
+ requirements:
53
+ - - =
54
+ - !ruby/object:Gem::Version
82
55
  version: 1.6.7
83
- requirement: *id004
84
56
  type: :runtime
85
- - !ruby/object:Gem::Dependency
86
- name: sqlite3
87
57
  prerelease: false
88
- version_requirements: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2156472720
59
+ - !ruby/object:Gem::Dependency
60
+ name: sqlite3
61
+ requirement: &2156472340 !ruby/object:Gem::Requirement
89
62
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
97
- requirement: *id005
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
98
67
  type: :development
99
- description: PanoramioRb gem help you to get geolocated photos from Panoramio.com how a Ruby Object.
100
- email:
68
+ prerelease: false
69
+ version_requirements: *2156472340
70
+ description: PanoramioRb gem help you to get geolocated photos from Panoramio.com
71
+ how a Ruby Object.
72
+ email:
101
73
  - willywg@gmail.com
102
74
  executables: []
103
-
104
75
  extensions: []
105
-
106
76
  extra_rdoc_files: []
107
-
108
- files:
77
+ files:
109
78
  - lib/panoramio-rb/version.rb
110
79
  - lib/panoramio-rb.rb
111
80
  - lib/tasks/panoramio-rb_tasks.rake
@@ -147,38 +116,36 @@ files:
147
116
  has_rdoc: true
148
117
  homepage: https://github.com/willywg/panoramio-rb
149
118
  licenses: []
150
-
151
119
  post_install_message:
152
120
  rdoc_options: []
153
-
154
- require_paths:
121
+ require_paths:
155
122
  - lib
156
- required_ruby_version: !ruby/object:Gem::Requirement
123
+ required_ruby_version: !ruby/object:Gem::Requirement
157
124
  none: false
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- hash: 3
162
- segments:
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ segments:
163
130
  - 0
164
- version: "0"
165
- required_rubygems_version: !ruby/object:Gem::Requirement
131
+ hash: 4162885138649014129
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
133
  none: false
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- hash: 3
171
- segments:
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ segments:
172
139
  - 0
173
- version: "0"
140
+ hash: 4162885138649014129
174
141
  requirements: []
175
-
176
142
  rubyforge_project:
177
- rubygems_version: 1.4.2
143
+ rubygems_version: 1.6.2
178
144
  signing_key:
179
145
  specification_version: 3
180
- summary: PanoramioRb gem help you to get geolocated photos from Panoramio.com how a Ruby Object.
181
- test_files:
146
+ summary: PanoramioRb gem help you to get geolocated photos from Panoramio.com how
147
+ a Ruby Object.
148
+ test_files:
182
149
  - test/dummy/app/assets/javascripts/application.js
183
150
  - test/dummy/app/assets/stylesheets/application.css
184
151
  - test/dummy/app/controllers/application_controller.rb