grobi 0.1.0

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.
@@ -0,0 +1,242 @@
1
+ {
2
+ "results" : [
3
+ {
4
+ "address_components" : [
5
+ {
6
+ "long_name" : "台北市政府",
7
+ "short_name" : "台北市政府",
8
+ "types" : [ "establishment" ]
9
+ },
10
+ {
11
+ "long_name" : "西村里",
12
+ "short_name" : "西村里",
13
+ "types" : [ "sublocality", "political" ]
14
+ },
15
+ {
16
+ "long_name" : "Taipei",
17
+ "short_name" : "Taipei",
18
+ "types" : [ "locality", "political" ]
19
+ },
20
+ {
21
+ "long_name" : "TP",
22
+ "short_name" : "TP",
23
+ "types" : [ "administrative_area_level_2", "political" ]
24
+ },
25
+ {
26
+ "long_name" : "台灣",
27
+ "short_name" : "TW",
28
+ "types" : [ "country", "political" ]
29
+ },
30
+ {
31
+ "long_name" : "110",
32
+ "short_name" : "110",
33
+ "types" : [ "postal_code" ]
34
+ }
35
+ ],
36
+ "formatted_address" : "110台灣 TP, Taipei, 台北市政府",
37
+ "geometry" : {
38
+ "bounds" : {
39
+ "northeast" : {
40
+ "lat" : 25.0390270,
41
+ "lng" : 121.5653840
42
+ },
43
+ "southwest" : {
44
+ "lat" : 25.0360160,
45
+ "lng" : 121.5637320
46
+ }
47
+ },
48
+ "location" : {
49
+ "lat" : 25.0380,
50
+ "lng" : 121.5640
51
+ },
52
+ "location_type" : "APPROXIMATE",
53
+ "viewport" : {
54
+ "northeast" : {
55
+ "lat" : 25.0481090,
56
+ "lng" : 121.58000740
57
+ },
58
+ "southwest" : {
59
+ "lat" : 25.02789010,
60
+ "lng" : 121.54799260
61
+ }
62
+ }
63
+ },
64
+ "types" : [ "establishment" ]
65
+ },
66
+ {
67
+ "address_components" : [
68
+ {
69
+ "long_name" : "台北市政府",
70
+ "short_name" : "台北市政府",
71
+ "types" : [ "point_of_interest", "establishment" ]
72
+ },
73
+ {
74
+ "long_name" : "1號",
75
+ "short_name" : "1號",
76
+ "types" : [ "street_number" ]
77
+ },
78
+ {
79
+ "long_name" : "市府路",
80
+ "short_name" : "市府路",
81
+ "types" : [ "route" ]
82
+ },
83
+ {
84
+ "long_name" : "西村里",
85
+ "short_name" : "西村里",
86
+ "types" : [ "sublocality", "political" ]
87
+ },
88
+ {
89
+ "long_name" : "信義區",
90
+ "short_name" : "信義區",
91
+ "types" : [ "locality", "political" ]
92
+ },
93
+ {
94
+ "long_name" : "台北市",
95
+ "short_name" : "北市",
96
+ "types" : [ "administrative_area_level_2", "political" ]
97
+ },
98
+ {
99
+ "long_name" : "台灣",
100
+ "short_name" : "TW",
101
+ "types" : [ "country", "political" ]
102
+ },
103
+ {
104
+ "long_name" : "110",
105
+ "short_name" : "110",
106
+ "types" : [ "postal_code" ]
107
+ }
108
+ ],
109
+ "formatted_address" : "110台灣台北市信義區市府路1號台北市政府",
110
+ "geometry" : {
111
+ "location" : {
112
+ "lat" : 25.03758860,
113
+ "lng" : 121.56374570
114
+ },
115
+ "location_type" : "APPROXIMATE",
116
+ "viewport" : {
117
+ "northeast" : {
118
+ "lat" : 25.03893758029150,
119
+ "lng" : 121.5650946802915
120
+ },
121
+ "southwest" : {
122
+ "lat" : 25.03623961970850,
123
+ "lng" : 121.5623967197085
124
+ }
125
+ }
126
+ },
127
+ "types" : [ "point_of_interest", "establishment" ]
128
+ },
129
+ {
130
+ "address_components" : [
131
+ {
132
+ "long_name" : "台北市政府",
133
+ "short_name" : "台北市政府",
134
+ "types" : [ "point_of_interest", "establishment" ]
135
+ },
136
+ {
137
+ "long_name" : "1號",
138
+ "short_name" : "1號",
139
+ "types" : [ "street_number" ]
140
+ },
141
+ {
142
+ "long_name" : "市府路",
143
+ "short_name" : "市府路",
144
+ "types" : [ "route" ]
145
+ },
146
+ {
147
+ "long_name" : "信義區",
148
+ "short_name" : "信義區",
149
+ "types" : [ "locality", "political" ]
150
+ },
151
+ {
152
+ "long_name" : "台北市",
153
+ "short_name" : "台北市",
154
+ "types" : [ "administrative_area_level_2", "political" ]
155
+ },
156
+ {
157
+ "long_name" : "台灣",
158
+ "short_name" : "TW",
159
+ "types" : [ "country", "political" ]
160
+ },
161
+ {
162
+ "long_name" : "110",
163
+ "short_name" : "110",
164
+ "types" : [ "postal_code" ]
165
+ }
166
+ ],
167
+ "formatted_address" : "110台灣台北市信義區市府路1號台北市政府",
168
+ "geometry" : {
169
+ "location" : {
170
+ "lat" : 25.03599240,
171
+ "lng" : 121.58136350
172
+ },
173
+ "location_type" : "APPROXIMATE",
174
+ "viewport" : {
175
+ "northeast" : {
176
+ "lat" : 25.03734138029150,
177
+ "lng" : 121.5827124802915
178
+ },
179
+ "southwest" : {
180
+ "lat" : 25.03464341970850,
181
+ "lng" : 121.5800145197085
182
+ }
183
+ }
184
+ },
185
+ "types" : [ "point_of_interest", "establishment" ]
186
+ },
187
+ {
188
+ "address_components" : [
189
+ {
190
+ "long_name" : "臺北市政府民政局",
191
+ "short_name" : "臺北市政府民政局",
192
+ "types" : [ "point_of_interest", "establishment" ]
193
+ },
194
+ {
195
+ "long_name" : "西村里",
196
+ "short_name" : "西村里",
197
+ "types" : [ "sublocality", "political" ]
198
+ },
199
+ {
200
+ "long_name" : "信義區",
201
+ "short_name" : "信義區",
202
+ "types" : [ "locality", "political" ]
203
+ },
204
+ {
205
+ "long_name" : "台北市",
206
+ "short_name" : "北市",
207
+ "types" : [ "administrative_area_level_2", "political" ]
208
+ },
209
+ {
210
+ "long_name" : "台灣",
211
+ "short_name" : "TW",
212
+ "types" : [ "country", "political" ]
213
+ },
214
+ {
215
+ "long_name" : "110",
216
+ "short_name" : "110",
217
+ "types" : [ "postal_code" ]
218
+ }
219
+ ],
220
+ "formatted_address" : "110台灣台北市信義區臺北市政府民政局",
221
+ "geometry" : {
222
+ "location" : {
223
+ "lat" : 25.0372790,
224
+ "lng" : 121.5644720
225
+ },
226
+ "location_type" : "APPROXIMATE",
227
+ "viewport" : {
228
+ "northeast" : {
229
+ "lat" : 25.03862798029150,
230
+ "lng" : 121.5658209802915
231
+ },
232
+ "southwest" : {
233
+ "lat" : 25.03593001970849,
234
+ "lng" : 121.5631230197085
235
+ }
236
+ }
237
+ },
238
+ "types" : [ "point_of_interest", "establishment" ]
239
+ }
240
+ ],
241
+ "status" : "OK"
242
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "html_attributions" : [],
3
+ "result" : {
4
+ "address_components" : [
5
+ {
6
+ "long_name" : "48",
7
+ "short_name" : "48",
8
+ "types" : [ "street_number" ]
9
+ },
10
+ {
11
+ "long_name" : "Pirrama Road",
12
+ "short_name" : "Pirrama Road",
13
+ "types" : [ "route" ]
14
+ },
15
+ {
16
+ "long_name" : "Pyrmont",
17
+ "short_name" : "Pyrmont",
18
+ "types" : [ "locality", "political" ]
19
+ },
20
+ {
21
+ "long_name" : "NSW",
22
+ "short_name" : "NSW",
23
+ "types" : [ "administrative_area_level_1", "political" ]
24
+ },
25
+ {
26
+ "long_name" : "AU",
27
+ "short_name" : "AU",
28
+ "types" : [ "country", "political" ]
29
+ },
30
+ {
31
+ "long_name" : "2009",
32
+ "short_name" : "2009",
33
+ "types" : [ "postal_code" ]
34
+ }
35
+ ],
36
+ "events" : [
37
+ ],
38
+ "formatted_address" : "5/48 Pirrama Road, Pyrmont NSW, Australia",
39
+ "formatted_phone_number" : "(02) 9374 4000",
40
+ "geometry" : {
41
+ "location" : {
42
+ "lat" : -33.8669710,
43
+ "lng" : 151.1958750
44
+ }
45
+ },
46
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
47
+ "id" : "4f89212bf76dde31f092cfc14d7506555d85b5c7",
48
+ "international_phone_number" : "+61 2 9374 4000",
49
+ "name" : "Google Sydney",
50
+ "rating" : 4.60,
51
+ "reference" : "CnRlAAAAAfV6JIqSzL8Cf4VnXn0EaI1d5k3IPhdkEonq0MxiUbQFFSVuptVbXbNH4mrevb0bc7G8yWqTUv76i4KTuO_Wf3OrRHjCJJwzQ0mNLjbYGSVqy2eqyrgOUkl6S_sJfTbHzWZYrfPy7KZaet0mM5S6thIQJYuy5v_JD--ZxXEJLWTQRRoU5UaciXBBo89K-bce18Ii9RsEIws",
52
+ "types" : [ "store", "establishment" ],
53
+ "url" : "http://maps.google.com/maps/place?cid=10281119596374313554",
54
+ "vicinity" : "5/48 Pirrama Road, Pyrmont",
55
+ "website" : "http://www.google.com.au/"
56
+ },
57
+ "status" : "OK"
58
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "html_attributions" : [
3
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
4
+ ],
5
+ "results" : [
6
+ {
7
+ "geometry" : {
8
+ "location" : {
9
+ "lat" : -33.8719830,
10
+ "lng" : 151.1990860
11
+ }
12
+ },
13
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
14
+ "id" : "677679492a58049a7eae079e0890897eb953d79b",
15
+ "name" : "Zaaffran Restaurant - BBQ and GRILL, Darling Harbour",
16
+ "rating" : 3.90,
17
+ "reference" : "CpQBjAAAAHDHuimUQATR6gfoWNmZlk5dKUKq_n46BpSzPQCjk1m9glTKkiAHH_Gs4xGttdOSj35WJJDAV90dAPnNnZK2OaxMgogdeHKQhIedh6UduFrW53wtwXigUfpAzsCgIzYNI0UQtCj38cr_DE56RH4Wi9d2bWbbIuRyDX6tx2Fmk2EQzO_lVJ-oq4ZY5uI6I75RnxIQJ6smWUVVIHup9Jvc517DKhoUidfNPyQZZIgGiXS_SwGQ1wg0gtc",
18
+ "types" : [ "restaurant", "food", "establishment" ],
19
+ "vicinity" : "Harbourside Centre 10 Darling Drive, Darling Harbour, Sydney"
20
+ },
21
+ {
22
+ "geometry" : {
23
+ "location" : {
24
+ "lat" : -33.8722580,
25
+ "lng" : 151.1986550
26
+ }
27
+ },
28
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
29
+ "id" : "27ea39c8fed1c0437069066b8dccf958a2d06f19",
30
+ "name" : "Criniti's Darling Harbour",
31
+ "rating" : 3.60,
32
+ "reference" : "CnRwAAAA-5kh5WZ3m1CMTO3LslvhRtAYsrOcQP7wB9AE1bV5R6Bd46NN5wB16MtImXWQ9eS1nWVbV_j-8iXYXRpU13Efp1t_d-Dp4WfEsFcYj-_g6db1SC1vAukyeCyotjS5xrwhzqWWAhgmA4qIliWeev2u1BIQprWzxl_hkj_w3QdTiUBYKxoUDVTjF4RugJdaJWkC4n6w6pSajKw",
33
+ "types" : [ "restaurant", "food", "establishment" ],
34
+ "vicinity" : "Shop 461, 2-10 Darling Drive, Harbourside Shopping Centre, DARLING HARBOUR",
35
+ "events" : [
36
+ {
37
+ "event_id" : "7lH_gK1GphU",
38
+ "summary" : "Google Maps Developer Meetup: Rockin' out with the Places API",
39
+ "url" : "https://developers.google.com/maps/documentation/places"
40
+ }
41
+ ]
42
+ }
43
+ ],
44
+ "status" : "OK"
45
+ }
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: grobi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Yen-Ju Chen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: google-api-client
16
+ requirement: &70109180888180 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70109180888180
25
+ - !ruby/object:Gem::Dependency
26
+ name: nokogiri
27
+ requirement: &70109180887760 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70109180887760
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70109180887340 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70109180887340
47
+ - !ruby/object:Gem::Dependency
48
+ name: json_spec
49
+ requirement: &70109180886920 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70109180886920
58
+ description: Ruby wrapper on google-api-ruby-client and other service
59
+ email:
60
+ - yjchenx@gmail.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - .gitignore
66
+ - .rspec
67
+ - Gemfile
68
+ - README.rdoc
69
+ - Rakefile
70
+ - grobi.gemspec
71
+ - lib/grobi.rb
72
+ - lib/grobi/books.rb
73
+ - lib/grobi/client.rb
74
+ - lib/grobi/maps.rb
75
+ - lib/grobi/places.rb
76
+ - lib/grobi/version.rb
77
+ - spec/books_spec.rb
78
+ - spec/maps_spec.rb
79
+ - spec/places_spec.rb
80
+ - spec/spec_helper.rb
81
+ - spec/support/files/books1.json
82
+ - spec/support/files/maps1.json
83
+ - spec/support/files/place1.json
84
+ - spec/support/files/places1.json
85
+ homepage: ''
86
+ licenses: []
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project: grobi
105
+ rubygems_version: 1.8.15
106
+ signing_key:
107
+ specification_version: 3
108
+ summary: Ruby wrapper on google-api-ruby-client and other service
109
+ test_files:
110
+ - spec/books_spec.rb
111
+ - spec/maps_spec.rb
112
+ - spec/places_spec.rb
113
+ - spec/spec_helper.rb
114
+ - spec/support/files/books1.json
115
+ - spec/support/files/maps1.json
116
+ - spec/support/files/place1.json
117
+ - spec/support/files/places1.json