policymap_wrap 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -74,7 +74,7 @@ Other search options:
74
74
 
75
75
  === PolicyMap::Client.containment_search(<search_options>)
76
76
 
77
- A +:containment+ type of search *returns a hash (with symbolized keys)* containing boundary IDs for each of the boundary types contained by the specified boundary ID.
77
+ A +:containment+ type of search *returns an array of hashes* containing boundary IDs for each of the boundary types contained by the specified boundary ID.
78
78
  For example, if the boundary ID is for Alameda County, specifying :city as the boundary_types will reveal all cities within Alameda county.
79
79
 
80
80
  Required search options:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -85,8 +85,8 @@ module PolicyMap
85
85
  content = nil
86
86
  else
87
87
  begin
88
- content = JSON.parse(response.body)
89
- rescue JSON::ParserError
88
+ content = Yajl::Parser.new.parse(response.body)
89
+ rescue Yajl::ParseError
90
90
  raise DecodeError, "content: <#{response.body}>"
91
91
  end
92
92
  end
@@ -1,5 +1,5 @@
1
1
  require 'uri'
2
- require 'yajl/json_gem'
2
+ require 'yajl'
3
3
  require 'curb'
4
4
 
5
5
  require 'policymap_wrap/connection'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: policymap_wrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mauricio Gomes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-17 00:00:00 -04:00
18
+ date: 2010-08-18 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency