keyhole 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sat_parser.rb +3 -1
- metadata +3 -3
data/lib/sat_parser.rb
CHANGED
@@ -11,7 +11,9 @@ class SatParser < EventMachine::Connection
|
|
11
11
|
def receive_data(data)
|
12
12
|
puts "Data received..."
|
13
13
|
puts data.inspect
|
14
|
-
@db.query("insert into locations(latitude, longitude) value('ninja', 'neger');")
|
14
|
+
q = @db.query("insert into locations(latitude, longitude) value('ninja', 'neger');")
|
15
|
+
q.callback{|res| puts res.inspect}
|
16
|
+
q.errback{|res| puts "E:"+res.inspect}
|
15
17
|
$channel << data
|
16
18
|
end
|
17
19
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keyhole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- buffpojken
|