atdis 0.3.5 → 0.3.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 528ead212dae0aa7f87f76ff92e6f7f5451aee40
4
- data.tar.gz: bd34d58c632307942e6e5ab6ddcb4f553c1dd358
3
+ metadata.gz: ff5e34131aa9ef946acbba27e88f82724b0e3a47
4
+ data.tar.gz: 50f07ec4c8266b1c38ccaad0464b371ed5bffb91
5
5
  SHA512:
6
- metadata.gz: 60592858c156171e9da739fa9204cdf406580f835a33a7ccd7fe0081bcc46484b1add1f37493c93bfee31ed18a5f72f36287e7f5a2b23b9c13df93242a6d90a0
7
- data.tar.gz: 38da539b1d5d8bc0c959d9a335156b04c81d719fdd366bebeb8fbd6a49f23e957c6fb13ee99a0dc80eea20b73cecfc735ed06450c4d61f2eac09a048bcb158ad
6
+ metadata.gz: e5bd3343519a9d365637feb7da90300024481a54300646cf9ed6f3c87eb0cf90e14ed53b82961f55f26176b5338675b68445955e0da764acf975d47b557c56f5
7
+ data.tar.gz: 264f166d23ca05825ea71fb381597c209ead1dc49661a5ab2dab60eae9860cdc5f7a83570ba44e66c6b757494ebb86ab36cab88e26f7abab82b07cac3b2c894b
data/lib/atdis/feed.rb CHANGED
@@ -74,7 +74,7 @@ module ATDIS
74
74
  if query
75
75
  query.split("&").each do |t|
76
76
  key, value = t.split("=")
77
- options[key.to_sym] = value
77
+ options[key.to_sym] = CGI::unescape(value)
78
78
  end
79
79
  end
80
80
  options
data/lib/atdis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Atdis
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -84,6 +84,10 @@ describe ATDIS::Feed do
84
84
  it "should assume that any query parameters that are not recognised are part of the base_url" do
85
85
  ATDIS::Feed.options_from_url("http://www.foo.nsw.gov.au/prefix/atdis/1.0/applications.json?postcode=2000&foo=bar").should == {postcode: "2000"}
86
86
  end
87
+
88
+ it do
89
+ ATDIS::Feed.options_from_url("http://www.council.nsw.gov.au/atdis/1.0/applications.json?suburb=willow+tree,foo,bar").should == {suburb: "willow tree,foo,bar"}
90
+ end
87
91
  end
88
92
 
89
93
  describe "#application_url" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atdis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Landauer