ingm-handler 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ingm/handler/crep.rb +3 -3
- metadata +1 -1
data/lib/ingm/handler/crep.rb
CHANGED
@@ -10,10 +10,10 @@ module INGM
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def report
|
13
|
-
super
|
14
|
-
f = Dir.glob(@config[:path]).sort_by { |f| File.ctime f }.last
|
13
|
+
super
|
14
|
+
f = Dir.glob("#{@config[:path]}/*").sort_by { |f| File.ctime f }.last
|
15
15
|
opt = { :headers => { 'Content-Type' => 'application/json'},
|
16
|
-
:body => f
|
16
|
+
:body => IO.read(f)
|
17
17
|
}
|
18
18
|
HTTParty.post @config[:server], opt
|
19
19
|
end
|