smartware 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,10 @@ module Smartware
8
8
 
9
9
  end
10
10
 
11
+ def status
12
+ :ready
13
+ end
14
+
11
15
  def error
12
16
  nil
13
17
  end
@@ -21,7 +25,7 @@ module Smartware
21
25
  end
22
26
 
23
27
  def print(data)
24
-
28
+ true
25
29
  end
26
30
 
27
31
  def query
@@ -41,9 +41,9 @@ EOS
41
41
 
42
42
  def print_text(text, max_time = 30)
43
43
  data = "".force_encoding("BINARY")
44
- data << @render.doc_header.force_encoding("BINARY")
45
- data << @render.normal_text(text, true).force_encoding("BINARY")
46
- data << @render.doc_footer.force_encoding("BINARY")
44
+ data << @render.doc_header.force_encoding("BINARY") if @render.respond_to? :doc_header
45
+ data << @render.normal_text(text, true).force_encoding("BINARY") if @render.respond_to? :normal_text
46
+ data << @render.doc_footer.force_encoding("BINARY") if @render.respond_to? :doc_footer
47
47
 
48
48
  do_print data, max_time
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module Smartware
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
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.2.3
4
+ version: 0.2.4
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: 2013-01-17 00:00:00.000000000 Z
13
+ date: 2013-01-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: smartkiosk-common
17
- requirement: !ruby/object:Gem::Requirement
17
+ requirement: &70278459475040 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,15 +22,10 @@ dependencies:
22
22
  version: 0.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: 0.0.2
25
+ version_requirements: *70278459475040
31
26
  - !ruby/object:Gem::Dependency
32
27
  name: serialport
33
- requirement: !ruby/object:Gem::Requirement
28
+ requirement: &70278459473860 !ruby/object:Gem::Requirement
34
29
  none: false
35
30
  requirements:
36
31
  - - ! '>='
@@ -38,15 +33,10 @@ dependencies:
38
33
  version: '0'
39
34
  type: :runtime
40
35
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
36
+ version_requirements: *70278459473860
47
37
  - !ruby/object:Gem::Dependency
48
38
  name: cmux
49
- requirement: !ruby/object:Gem::Requirement
39
+ requirement: &70278459472340 !ruby/object:Gem::Requirement
50
40
  none: false
51
41
  requirements:
52
42
  - - ! '>='
@@ -54,15 +44,10 @@ dependencies:
54
44
  version: 0.0.2
55
45
  type: :runtime
56
46
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: 0.0.2
47
+ version_requirements: *70278459472340
63
48
  - !ruby/object:Gem::Dependency
64
49
  name: trollop
65
- requirement: !ruby/object:Gem::Requirement
50
+ requirement: &70278459470820 !ruby/object:Gem::Requirement
66
51
  none: false
67
52
  requirements:
68
53
  - - ! '>='
@@ -70,15 +55,10 @@ dependencies:
70
55
  version: '0'
71
56
  type: :runtime
72
57
  prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
58
+ version_requirements: *70278459470820
79
59
  - !ruby/object:Gem::Dependency
80
60
  name: activesupport
81
- requirement: !ruby/object:Gem::Requirement
61
+ requirement: &70278459469900 !ruby/object:Gem::Requirement
82
62
  none: false
83
63
  requirements:
84
64
  - - ! '>='
@@ -86,15 +66,10 @@ dependencies:
86
66
  version: '0'
87
67
  type: :runtime
88
68
  prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
94
- version: '0'
69
+ version_requirements: *70278459469900
95
70
  - !ruby/object:Gem::Dependency
96
71
  name: redcarpet
97
- requirement: !ruby/object:Gem::Requirement
72
+ requirement: &70278459469240 !ruby/object:Gem::Requirement
98
73
  none: false
99
74
  requirements:
100
75
  - - ! '>='
@@ -102,12 +77,7 @@ dependencies:
102
77
  version: '0'
103
78
  type: :runtime
104
79
  prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
80
+ version_requirements: *70278459469240
111
81
  description: Smartware is the Smartkiosk hardware control daemon
112
82
  email:
113
83
  - e.sudarchikov@roundlake.ru
@@ -170,8 +140,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
140
  version: '0'
171
141
  requirements: []
172
142
  rubyforge_project:
173
- rubygems_version: 1.8.24
143
+ rubygems_version: 1.8.15
174
144
  signing_key:
175
145
  specification_version: 3
176
146
  summary: Smartware is the Smartkiosk hardware control daemon
177
147
  test_files: []
148
+ has_rdoc: