arduino_firmata 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
- ---
2
- SHA1:
3
- metadata.gz: d68b7048e7a2ee534ed8316df91d9a9f9a54257c
4
- data.tar.gz: 34544b4a01613ef1367d751170edb216d1064c39
5
- SHA512:
6
- metadata.gz: 706ff76370523d0ece421d5f501e92c395d4d9f35498ba4adbcfd77f07d4fa1341e42aad529d0e29451714268409fdbe5b3fdeb8b0b09c5cb5d03171b6bf1b7b
7
- data.tar.gz: 31a9715f5760ed4a82070fe49dc6cffe71064da6186df152db2554f124f23f5fae85aa9cc85a6aa10aaac90b5f790463a8468ec2e261e70b2dcf7e433b338c2d
1
+ ---
2
+ SHA512:
3
+ metadata.gz: ec81873c286d63e32b1fd56335cd2532b67a5525e6c411efb4d8d776e896f3a42a73e6d55d52695c1a6cca5a163304d6f592b1147bdaeb50bf588495e60adbe3
4
+ data.tar.gz: bc2546305596a23d16a299b31dea766a679936c4ba9ad5184e52a61b9a7320114a93ebc30b8719810b10cc3141c161f358ee127b21cb77df2b26f58cab56506a
5
+ SHA1:
6
+ metadata.gz: 887162c6d6753235202c0ee30cec3cc071d0b0e4
7
+ data.tar.gz: 31096640209066b1c605c735c9fa11abec08b62f
@@ -1,3 +1,8 @@
1
+ === 0.3.3 2013-09-02
2
+
3
+ * bugfix EOFError handling
4
+ * thank you for contributing @threez
5
+
1
6
  === 0.3.2 2013-08-28
2
7
 
3
8
  * use "Object#at_exit" insteadof trap "SIHUP/SIGINT"
@@ -174,11 +174,16 @@ module ArduinoFirmata
174
174
 
175
175
  def read
176
176
  return if status == Status::CLOSE
177
- if nonblock_io
178
- @serial.read_nonblock @read_byte_size rescue EOFError
179
- else
180
- @serial.read @read_byte_size rescue EOFError
177
+ data = nil
178
+ begin
179
+ if nonblock_io
180
+ data = @serial.read_nonblock @read_byte_size
181
+ else
182
+ data = @serial.read @read_byte_size
183
+ end
184
+ rescue IOError, EOFError => e
181
185
  end
186
+ data
182
187
  end
183
188
 
184
189
  def process_input
@@ -1,3 +1,3 @@
1
1
  module ArduinoFirmata
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,121 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: arduino_firmata
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-28 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2013-09-02 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '1.3'
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - &id003
20
+ - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
34
23
  type: :development
24
+ version_requirements: *id001
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
35
27
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ requirements:
38
30
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
31
+ - !ruby/object:Gem::Version
32
+ version: "1.3"
48
33
  type: :development
34
+ version_requirements: *id002
35
+ - !ruby/object:Gem::Dependency
36
+ name: minitest
49
37
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: backports
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
38
+ requirement: &id004 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - *id003
62
41
  type: :development
42
+ version_requirements: *id004
43
+ - !ruby/object:Gem::Dependency
44
+ name: backports
63
45
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
46
+ requirement: &id005 !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - *id003
49
+ type: :development
50
+ version_requirements: *id005
51
+ - !ruby/object:Gem::Dependency
70
52
  name: serialport
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: 1.1.0
76
- type: :runtime
77
53
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
54
+ requirement: &id006 !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
82
58
  version: 1.1.0
83
- - !ruby/object:Gem::Dependency
84
- name: args_parser
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: 0.1.4
90
59
  type: :runtime
60
+ version_requirements: *id006
61
+ - !ruby/object:Gem::Dependency
62
+ name: args_parser
91
63
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
64
+ requirement: &id007 !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
96
68
  version: 0.1.4
97
- - !ruby/object:Gem::Dependency
98
- name: event_emitter
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: 0.2.4
104
69
  type: :runtime
70
+ version_requirements: *id007
71
+ - !ruby/object:Gem::Dependency
72
+ name: event_emitter
105
73
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
74
+ requirement: &id008 !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
110
78
  version: 0.2.4
79
+ type: :runtime
80
+ version_requirements: *id008
111
81
  description: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
112
- email:
82
+ email:
113
83
  - hashimoto@shokai.org
114
- executables:
84
+ executables:
115
85
  - arduino_firmata
116
86
  extensions: []
87
+
117
88
  extra_rdoc_files: []
118
- files:
89
+
90
+ files:
119
91
  - .gitignore
120
92
  - Gemfile
121
93
  - History.txt
@@ -154,30 +126,29 @@ files:
154
126
  - test/test_helper.rb
155
127
  - test/test_sysex.rb
156
128
  homepage: http://shokai.github.com/arduino_firmata
157
- licenses:
129
+ licenses:
158
130
  - MIT
159
131
  metadata: {}
132
+
160
133
  post_install_message:
161
134
  rdoc_options: []
162
- require_paths:
135
+
136
+ require_paths:
163
137
  - lib
164
- required_ruby_version: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - '>='
167
- - !ruby/object:Gem::Version
168
- version: '0'
169
- required_rubygems_version: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - *id003
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - *id003
174
144
  requirements: []
145
+
175
146
  rubyforge_project:
176
- rubygems_version: 2.0.5
147
+ rubygems_version: 2.0.3
177
148
  signing_key:
178
149
  specification_version: 4
179
150
  summary: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
180
- test_files:
151
+ test_files:
181
152
  - test/test_arduino_firmata.rb
182
153
  - test/test_block.rb
183
154
  - test/test_classmethods.rb