phidgets 1.0.0 → 1.0.1
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 +5 -5
- data/History.txt +4 -1
- data/README.rdoc +1 -1
- data/ext/phidgets/phidgets_log.c +2 -1
- data/lib/phidgets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4598e3cecdba6ffe24130930aa2448c014535ff15011c523725119b555c02c37
|
4
|
+
data.tar.gz: 3042c3545c7ea47497cf70de7f5aff81d1e92db45b45a28b58bdaa3d42809fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba2092518a500734f28f1700446dfa8ede8b4ce2bb575b781745a5b5cee15245fb1e3eb083367f37d6f439ddef9b172821d808bb40615a49917dc7c1b3124231
|
7
|
+
data.tar.gz: 1a9bfdb51d40bffa58ca6545800ad10794eb1e8bdf52228b7bcd602711fbe226fdcca174559423937f1a09af7ede7876f44030134e8c23da66f1fbde62dd7b44
|
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -9,7 +9,7 @@ This gem provides a ruby interface to the phidgets library.
|
|
9
9
|
|
10
10
|
== FEATURES/PROBLEMS:
|
11
11
|
|
12
|
-
* Version 1.0 of this gem
|
12
|
+
* Version 1.0 of this gem is for Phidget Lib 2.2. For the older Phidget Lib 2.1, use version 0.1.3 of the gem.
|
13
13
|
* This gem compiles a c extension for the phidget library, so the library must be installed and the development files must be located
|
14
14
|
in a place that the compiler can find them. For windows the DevKit is required.
|
15
15
|
* The gem has been tested to work on both Linux and Windows.
|
data/ext/phidgets/phidgets_log.c
CHANGED
@@ -246,6 +246,7 @@ VALUE ph_log_get_sources(VALUE self) {
|
|
246
246
|
const char **sources;
|
247
247
|
uint32_t count;
|
248
248
|
VALUE ary = rb_ary_new();
|
249
|
+
uint32_t i;
|
249
250
|
|
250
251
|
ph_raise(PhidgetLog_getSources(NULL, &count));
|
251
252
|
sources = malloc(sizeof(const char *) * count);
|
@@ -256,7 +257,7 @@ VALUE ph_log_get_sources(VALUE self) {
|
|
256
257
|
ph_raise(rc);
|
257
258
|
}
|
258
259
|
|
259
|
-
for(
|
260
|
+
for(i=0; i<count; i++) rb_ary_push(ary, rb_str_new2(sources[i]));
|
260
261
|
free(sources);
|
261
262
|
return ary;
|
262
263
|
}
|
data/lib/phidgets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phidgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig DeHaan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem provides a ruby interface to the phidgets library.
|
14
14
|
email:
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.7.8
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Phidgets are a set of "plug and play" building blocks for low cost USB sensing
|