humble_rpi-plugin-mtp 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ff731684b9504b9459465b9b76114b7da2f468c
4
- data.tar.gz: fcd774a1451532fba8cda3fff65645c22df62a76
3
+ metadata.gz: 1ee9a740e5e6f72c4037aa9f3fe43241a56843b8
4
+ data.tar.gz: a73a84ec1db3927529ed2eeda797b2341430a832
5
5
  SHA512:
6
- metadata.gz: 9ae59d840b4eb1a80fd61c53bf8a66f87deee4308601d3fe1cd6040e4f9e81a1da07be527a895cc3803b9418a65cd8125ec0539ae758af4e5321beaf16da865d
7
- data.tar.gz: 6b446db38e2e0297ff07b734416628e6a0339a49cdce6b8aca87676675b02803695f5f384c09cd0e26bfd5558c13dd2273ef16fa2712e07f7467b88d34315c6e
6
+ metadata.gz: 6bccb559b4cf12eb558f7f87ab752f8eb6ee5567abc12dbad64f474f77f9ad202292ab75520cf5c9df7178aee0144c140ebffc69cc5108c68a28ac7338c8b921
7
+ data.tar.gz: b58c4cc458b3f9b767f73a4a2f1829f66932cb6ca4c37e00b64290f8d8684e5d574eb1d79fe42545124e730b5858f427444473ab0fe149a569efe7ed12f5fb24
@@ -1 +1 @@
1
- ��ZS^ܞ��y�W�B�u�H�|�hkH3�S"�
1
+ ){)�;��ub��~)#Z�����������@��?�%� �M$���j��f�^|
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ������l2�[˿*���l?�? m��) ��Fy�xy�ֺ�e5b�)�q���#s� Q���$�yBr�猶�A�ME��:��b&�^߹*�����v�g��)·�7�R!��N����#�S���� ���e�����<(P��Z�!�vl���9\%.��[�̽"ܶ}���{;ޗ5�I|����G;�LO���4� χ��"�)���a4R{H2ׂDں+bcj鴕�X�=u2�O�C�
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 4
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 wordwrap(x).lines
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.2
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-11 00:00:00.000000000 Z
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