smartware 0.1.24 → 0.1.25

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.
@@ -1,6 +1,4 @@
1
1
  require 'drb'
2
- require 'smartware/drivers/cash_acceptor/ccnet'
3
- require 'smartware/drivers/cash_acceptor/dummy'
4
2
 
5
3
  module Smartware
6
4
  module Interface
@@ -1,6 +1,4 @@
1
1
  require 'drb'
2
- require 'smartware/drivers/modem/dummy'
3
- require 'smartware/drivers/modem/standard'
4
2
 
5
3
  module Smartware
6
4
  module Interface
@@ -1,6 +1,4 @@
1
1
  require 'drb'
2
- require 'smartware/drivers/printer/dummy'
3
- require 'smartware/drivers/printer/tg24xx'
4
2
 
5
3
  module Smartware
6
4
  module Interface
@@ -18,13 +18,16 @@ module Smartware
18
18
  Smartware::Logging.logger.info "Smartware started at #{Time.now}"
19
19
 
20
20
 
21
- @threads = %w(smartware/interfaces/modem
22
- smartware/interfaces/cash_acceptor
23
- smartware/interfaces/printer
21
+ @threads = %w(modem
22
+ cash_acceptor
23
+ printer
24
24
  ).inject([]) do |arr, iface|
25
25
  arr << Thread.new do
26
26
  begin
27
- require iface
27
+ driver = Smartware::Service.config["#{iface}_driver"].downcase
28
+
29
+ require "smartware/drivers/#{iface}/#{driver}"
30
+ require "smartware/interfaces/#{iface}"
28
31
  rescue => e
29
32
  Smartware::Logging.logger.fatal "During startup of #{iface}:"
30
33
  Smartware::Logging.logger.fatal e.message
@@ -1,3 +1,3 @@
1
1
  module Smartware
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: