rightmove_wrangler 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RightmoveWrangler
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -147,7 +147,7 @@ module RightmoveWrangler
147
147
  end
148
148
 
149
149
  def instantiate_from_dir(file_name, dir)
150
- path = File.join(file_name, dir)
150
+ path = File.join(dir, file_name)
151
151
  if File.exists?(path)
152
152
  $stdout.puts "Found file: #{path}"
153
153
  instantiate_file File.open(path)
@@ -197,7 +197,7 @@ module RightmoveWrangler
197
197
  builder.adapter :net_http
198
198
  end
199
199
 
200
- params = uri.query_values.merge(payload)
200
+ params = uri.query_values.present? ? uri.query_values.merge(payload) : payload
201
201
  response = conn.post uri.path, params
202
202
 
203
203
  if response.status == 200
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rightmove_wrangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-19 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rightmove