file-processing-job 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  require 'file-processing-job'
2
2
 
3
3
  class FileProcessor
4
- def receive_file data
4
+ def receive_file(filename,data)
5
5
  puts "received file:"
6
6
  p data
7
7
  end
data/lib/fpj/client.rb CHANGED
@@ -63,7 +63,7 @@ module FileProcessingJob
63
63
 
64
64
  def process_file
65
65
  begin
66
- self.class.callback.new.send(:receive_file, self.data)
66
+ self.class.callback.new.send(:receive_file, self.filename, self.data)
67
67
  send_data "processed #{self.filename}"
68
68
  rescue
69
69
  logger.error("Error processing #{self.filename}. The file can be found on the server in the 'error' directory")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - cj2