rightmove_wrangler 0.1.7 → 0.1.8
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.
- data/lib/rightmove_wrangler.rb +13 -1
- data/lib/rightmove_wrangler/version.rb +1 -1
- metadata +2 -2
data/lib/rightmove_wrangler.rb
CHANGED
|
@@ -49,6 +49,10 @@ module RightmoveWrangler
|
|
|
49
49
|
@options[:url] = url
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
opts.on('-a', '--app_id APP_ID', 'App ID for API') do |app_id|
|
|
53
|
+
@options[:app_id] = app_id
|
|
54
|
+
end
|
|
55
|
+
|
|
52
56
|
opts.on_tail('-h', '--help', 'Show this message') do
|
|
53
57
|
puts opts
|
|
54
58
|
exit
|
|
@@ -103,7 +107,15 @@ module RightmoveWrangler
|
|
|
103
107
|
value
|
|
104
108
|
end
|
|
105
109
|
end
|
|
110
|
+
row_hash
|
|
106
111
|
end
|
|
112
|
+
|
|
113
|
+
payload = {
|
|
114
|
+
tag: @options[:app_id],
|
|
115
|
+
timestamp: Time.now.to_i,
|
|
116
|
+
rows: rows
|
|
117
|
+
}
|
|
118
|
+
post!(payload)
|
|
107
119
|
end
|
|
108
120
|
|
|
109
121
|
def work_zip_file(file)
|
|
@@ -126,7 +138,7 @@ module RightmoveWrangler
|
|
|
126
138
|
|
|
127
139
|
payload = {
|
|
128
140
|
row_set: {
|
|
129
|
-
tag:
|
|
141
|
+
tag: @options[:app_id],
|
|
130
142
|
timestamp: archive.timestamp.to_i,
|
|
131
143
|
rows: rows
|
|
132
144
|
}
|
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.
|
|
4
|
+
version: 0.1.8
|
|
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-
|
|
12
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rightmove
|