humble_rpi-plugin-mtp 0.3.2 → 0.3.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +2 -1
- data/lib/humble_rpi-plugin-mtp.rb +8 -7
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ee9a740e5e6f72c4037aa9f3fe43241a56843b8
|
|
4
|
+
data.tar.gz: a73a84ec1db3927529ed2eeda797b2341430a832
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bccb559b4cf12eb558f7f87ab752f8eb6ee5567abc12dbad64f474f77f9ad202292ab75520cf5c9df7178aee0144c140ebffc69cc5108c68a28ac7338c8b921
|
|
7
|
+
data.tar.gz: b58c4cc458b3f9b767f73a4a2f1829f66932cb6ca4c37e00b64290f8d8684e5d574eb1d79fe42545124e730b5858f427444473ab0fe149a569efe7ed12f5fb24
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
){�)�;��ub��~)#Z�����������@��?�%� �M$���j��f�^|
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
aqxZ~�l)T��ق4���ď�n^�4ʉ�M���N�G���J6�
|
|
2
|
+
�S��
|
|
@@ -10,25 +10,25 @@ require 'serialport_mtp'
|
|
|
10
10
|
|
|
11
11
|
class Html < DomRender
|
|
12
12
|
|
|
13
|
-
def p(x)
|
|
13
|
+
def p(x, attributes, style)
|
|
14
14
|
render_all x
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def b(x)
|
|
17
|
+
def b(x, attributes, style)
|
|
18
18
|
[:bold_on, render_all(x), :bold_off]
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
alias strong b
|
|
22
22
|
|
|
23
|
-
def br(x)
|
|
23
|
+
def br(x, attributes, style)
|
|
24
24
|
:feed
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
def strike(x)
|
|
27
|
+
def strike(x, attributes, style)
|
|
28
28
|
[:strike_on, render_all(x), :strike_off]
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def u(x)
|
|
31
|
+
def u(x, attributes, style)
|
|
32
32
|
[:underline_on, render_all(x), :underline_off]
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -65,8 +65,9 @@ class HumbleRPiPluginMTP < SerialPortMTP
|
|
|
65
65
|
scanprint Html.new(message).to_a
|
|
66
66
|
else
|
|
67
67
|
wordwrap(message).lines {|x| self.print x}
|
|
68
|
+
feed 5 if message.length < 140
|
|
68
69
|
end
|
|
69
|
-
feed
|
|
70
|
+
feed 5
|
|
70
71
|
|
|
71
72
|
sleep_after 10 # seconds
|
|
72
73
|
end
|
|
@@ -93,7 +94,7 @@ class HumbleRPiPluginMTP < SerialPortMTP
|
|
|
93
94
|
a2.each do |x|
|
|
94
95
|
|
|
95
96
|
if x.is_a? String then
|
|
96
|
-
self.print
|
|
97
|
+
self.print (x).lines.join
|
|
97
98
|
elsif x.is_a? Array
|
|
98
99
|
scanprint x
|
|
99
100
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: humble_rpi-plugin-mtp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
07Qsn8/aUhItdv3jAFZhDZ0Je1h0BeZoQQygHJrJDg7K0lFZXkWE/fJqdoPgKdPv
|
|
32
32
|
KcCsTt7owyec9w==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-11-
|
|
34
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: serialport_mtp
|
metadata.gz.sig
CHANGED
|
Binary file
|