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.
Files changed (2) hide show
  1. data/lib/ingm/handler/crep.rb +3 -3
  2. metadata +1 -1
@@ -10,10 +10,10 @@ module INGM
10
10
  end
11
11
 
12
12
  def report
13
- super.report
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ingm-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: