atdis 0.3.6 → 0.3.7

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: ff5e34131aa9ef946acbba27e88f82724b0e3a47
4
- data.tar.gz: 50f07ec4c8266b1c38ccaad0464b371ed5bffb91
3
+ metadata.gz: 4c653cce18bfb433e1e323ad5980f11caac4f73f
4
+ data.tar.gz: 90fc39e50ba3a7459658260b6499ab3627e443a3
5
5
  SHA512:
6
- metadata.gz: e5bd3343519a9d365637feb7da90300024481a54300646cf9ed6f3c87eb0cf90e14ed53b82961f55f26176b5338675b68445955e0da764acf975d47b557c56f5
7
- data.tar.gz: 264f166d23ca05825ea71fb381597c209ead1dc49661a5ab2dab60eae9860cdc5f7a83570ba44e66c6b757494ebb86ab36cab88e26f7abab82b07cac3b2c894b
6
+ metadata.gz: 7454c704f38b53e817f92375b2484629f2281a6e9fc6c20ee64a410c977474a3f40f96694fca73510f9a466890d0aaf25e9c8edb9f7303368aba1e2ea0af4e29
7
+ data.tar.gz: 91de8778c9f0fa6367a3d921331016aa5019f9e3571522b32c760aba7fb713ae123515ae6394d911e660b522fb18bb3fbb5bfce3840a0af9f631ce8a70e355fa
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] = CGI::unescape(value)
77
+ options[key.to_sym] = (CGI::unescape(value) if 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.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -86,7 +86,11 @@ describe ATDIS::Feed do
86
86
  end
87
87
 
88
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"}
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
91
+
92
+ it do
93
+ ATDIS::Feed.options_from_url("http://www.council.nsw.gov.au/atdis/1.0/applications.json?suburb=&postcode=2000").should == {postcode: "2000", suburb: nil}
90
94
  end
91
95
  end
92
96
 
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.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Landauer