smartware 0.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,7 @@ module Smartware
22
22
  def self.configure!(port, driver)
23
23
  @device = Smartware::Driver::CashAcceptor.const_get(driver).new(port)
24
24
  @session.kill if @session and @session.alive?
25
+ @commands = %w(monitor)
25
26
  @device.cancel_accept
26
27
  @session = self.start_poll!
27
28
  Smartware::Logging.logger.info "Cash acceptor monitor started"
@@ -128,4 +129,4 @@ module Smartware
128
129
  end
129
130
 
130
131
  DRb.start_service('druby://localhost:6001', Smartware::Interface::CashAcceptor)
131
- DRb.thread.join
132
+ DRb.thread.join
@@ -34,7 +34,7 @@ module Smartware
34
34
  end
35
35
 
36
36
  def self.print(filepath)
37
- @queue << filepath
37
+ @queue << filepath unless filepath.nil?
38
38
  end
39
39
 
40
40
  def self.test
@@ -50,7 +50,7 @@ module Smartware
50
50
  @status[:model] = @device.model
51
51
  else
52
52
  begin
53
- `lpr #{@queue[0]} >> #{File.expand_path(Smartware::Logging.logfile)} 2>&1` # Turn lpr-log from STDOUT to smartware
53
+ `lpr #{@queue[0]}`
54
54
  Smartware::Logging.logger.info "Printed #{@queue[0]}"
55
55
  @queue.shift
56
56
  sleep 5
@@ -1,3 +1,3 @@
1
1
  module Smartware
2
- VERSION = 0.1
3
- end
2
+ VERSION = "0.1.2"
3
+ end
data/smartware.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["e.sudarchikov@roundlake.ru", "boris@roundlake.ru"]
11
11
  gem.description = %q{Smartware is the Smartkiosk hardware control daemon}
12
12
  gem.summary = gem.description
13
- gem.homepage = ""
13
+ gem.homepage = "https://github.com/roundlake/smartware"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
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'
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-17 00:00:00.000000000 Z
13
+ date: 2012-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: serialport
17
- requirement: &70261534685920 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70261534685920
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: dante
28
- requirement: &70261534685280 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,7 +38,12 @@ dependencies:
33
38
  version: '0'
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *70261534685280
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
37
47
  description: Smartware is the Smartkiosk hardware control daemon
38
48
  email:
39
49
  - e.sudarchikov@roundlake.ru
@@ -66,7 +76,7 @@ files:
66
76
  - lib/smartware/service.rb
67
77
  - lib/smartware/version.rb
68
78
  - smartware.gemspec
69
- homepage: ''
79
+ homepage: https://github.com/roundlake/smartware
70
80
  licenses: []
71
81
  post_install_message:
72
82
  rdoc_options: []
@@ -86,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
96
  version: '0'
87
97
  requirements: []
88
98
  rubyforge_project:
89
- rubygems_version: 1.8.15
99
+ rubygems_version: 1.8.24
90
100
  signing_key:
91
101
  specification_version: 3
92
102
  summary: Smartware is the Smartkiosk hardware control daemon