phidgets 0.1.0 → 0.1.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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.1 2013-10-22
2
+ * Fixed bug in phidget executable that caused invalid arg exception when listing all attached phidget devices
3
+ * Updated some documentation that had examples from the old interface (using 1 and 0 instead of true and false)
4
+
1
5
  == 0.1.0 2013-10-19
2
6
  * Complete re-write as native C extension
3
7
 
data/README.rdoc CHANGED
@@ -14,6 +14,7 @@ This gem provides a ruby interface to the phidgets library.
14
14
  * The gem has been tested to work on both Linux and Windows.
15
15
  * Tested with Phidget Library version 2.1.8.20130618
16
16
  * Callbacks do not work on Ruby versions earlier than 1.9. This is because native threads are required for them to work.
17
+ * Method names follow the naming convention of the C library (getOutputState, setOutputState, etc). In addition, more "rubyish" aliases are provided (output_state, set_output_state, etc)
17
18
 
18
19
  == SYNOPSIS:
19
20
 
@@ -72,10 +73,10 @@ This gem provides a ruby interface to the phidgets library.
72
73
  ----------------------------------------------------------------------
73
74
 
74
75
  # To call a method for a specific local phidget:
75
- => phidget 73723 setOutputState 0 1
76
+ => phidget 73723 set_output_state 0 true
76
77
 
77
78
  # To call a method for a specific remote phidget:
78
- => phidget 192.168.100.67:73782 setOuputState 2 0
79
+ => phidget 192.168.100.67:73782 set_output_state 2 false
79
80
 
80
81
 
81
82
  == REQUIREMENTS:
data/bin/phidget CHANGED
@@ -12,7 +12,7 @@ def usage
12
12
  $stdout.puts
13
13
  $stdout.puts ' Examples:'
14
14
  $stdout.puts ' phidget list'
15
- $stdout.puts ' phidget -1 set_output_state 0 1'
15
+ $stdout.puts ' phidget -1 set_output_state 0 true'
16
16
  $stdout.puts ' phidget 34619 device_name'
17
17
  end
18
18
 
@@ -57,6 +57,7 @@ begin
57
57
  $stdout.puts "| SerialNumber | Device Name |"
58
58
  $stdout.puts "----------------------------------------------------------------------"
59
59
  devices.each_pair { |serial,phidget|
60
+ args[:serial_number] = serial
60
61
  phidget.open(args)
61
62
  phidget.wait_for_attachment(2000)
62
63
  d_str = "| #{serial}"
data/lib/phidgets.rb CHANGED
@@ -28,5 +28,5 @@ require File.dirname(__FILE__) + '/phidgets/text_led.rb'
28
28
  require File.dirname(__FILE__) + '/phidgets/weight_sensor.rb'
29
29
 
30
30
  module Phidgets
31
- VERSION = '0.1.0'
31
+ VERSION = '0.1.1'
32
32
  end
data/phidgets.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "phidgets"
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
  s.authors = ["Craig DeHaan"]
7
7
  s.email = ["cdehaan2@cfl.rr.com"]
8
8
  s.homepage = "https://github.com/csdehaan/phidgets"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phidgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-20 00:00:00.000000000 Z
12
+ date: 2013-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -58,80 +58,80 @@ extra_rdoc_files:
58
58
  - README.rdoc
59
59
  files:
60
60
  - bin/phidget
61
- - ext/phidgets/phidgets_motor_control.c
62
- - ext/phidgets/phidgets_text_led.c
63
61
  - ext/phidgets/phidgets_servo.c
64
- - ext/phidgets/phidgets_common.c
65
- - ext/phidgets/phidgets_interface_kit.c
66
- - ext/phidgets/phidgets_ir.c
67
- - ext/phidgets/phidgets_phsensor.c
68
- - ext/phidgets/phidgets_frequency_counter.c
69
62
  - ext/phidgets/phidgets_accelerometer.c
70
- - ext/phidgets/phidgets_gps.c
71
- - ext/phidgets/phidgets_dictionary.c
72
- - ext/phidgets/phidgets_rfid.c
73
- - ext/phidgets/phidgets_advanced_servo.c
74
- - ext/phidgets/phidgets_bridge.c
75
63
  - ext/phidgets/phidgets_spatial.c
76
- - ext/phidgets/phidgets_manager.c
77
- - ext/phidgets/phidgets_stepper.c
78
64
  - ext/phidgets/phidgets.c
79
- - ext/phidgets/phidgets_encoder.c
80
65
  - ext/phidgets/phidgets_text_lcd.c
81
- - ext/phidgets/phidgets_analog.c
82
- - ext/phidgets/phidgets_weight_sensor.c
66
+ - ext/phidgets/phidgets_stepper.c
67
+ - ext/phidgets/phidgets_motor_control.c
83
68
  - ext/phidgets/phidgets_temp_sensor.c
69
+ - ext/phidgets/phidgets_rfid.c
70
+ - ext/phidgets/phidgets_analog.c
71
+ - ext/phidgets/phidgets_frequency_counter.c
72
+ - ext/phidgets/phidgets_phsensor.c
73
+ - ext/phidgets/phidgets_bridge.c
74
+ - ext/phidgets/phidgets_text_led.c
84
75
  - ext/phidgets/phidgets_led.c
76
+ - ext/phidgets/phidgets_advanced_servo.c
77
+ - ext/phidgets/phidgets_manager.c
78
+ - ext/phidgets/phidgets_weight_sensor.c
79
+ - ext/phidgets/phidgets_dictionary.c
80
+ - ext/phidgets/phidgets_interface_kit.c
81
+ - ext/phidgets/phidgets_gps.c
82
+ - ext/phidgets/phidgets_encoder.c
83
+ - ext/phidgets/phidgets_common.c
84
+ - ext/phidgets/phidgets_ir.c
85
85
  - ext/phidgets/phidgets.h
86
- - lib/phidgets/stepper.rb
87
- - lib/phidgets/encoder.rb
88
- - lib/phidgets/frequency_counter.rb
89
- - lib/phidgets/bridge.rb
90
- - lib/phidgets/ir.rb
91
- - lib/phidgets/text_led.rb
92
- - lib/phidgets/advanced_servo.rb
93
- - lib/phidgets/ph_sensor.rb
94
- - lib/phidgets/text_lcd.rb
95
- - lib/phidgets/common.rb
96
- - lib/phidgets/weight_sensor.rb
97
- - lib/phidgets/interfacekit.rb
98
- - lib/phidgets/manager.rb
99
- - lib/phidgets/rfid.rb
100
- - lib/phidgets/motor_control.rb
101
- - lib/phidgets/dictionary.rb
86
+ - lib/phidgets.rb
102
87
  - lib/phidgets/servo.rb
103
- - lib/phidgets/gps.rb
88
+ - lib/phidgets/interfacekit.rb
89
+ - lib/phidgets/advanced_servo.rb
90
+ - lib/phidgets/frequency_counter.rb
104
91
  - lib/phidgets/spatial.rb
105
92
  - lib/phidgets/temperature_sensor.rb
93
+ - lib/phidgets/common.rb
94
+ - lib/phidgets/encoder.rb
95
+ - lib/phidgets/motor_control.rb
96
+ - lib/phidgets/ir.rb
97
+ - lib/phidgets/rfid.rb
106
98
  - lib/phidgets/analog.rb
99
+ - lib/phidgets/dictionary.rb
100
+ - lib/phidgets/text_lcd.rb
101
+ - lib/phidgets/manager.rb
102
+ - lib/phidgets/stepper.rb
107
103
  - lib/phidgets/accelerometer.rb
108
104
  - lib/phidgets/led.rb
109
- - lib/phidgets.rb
105
+ - lib/phidgets/bridge.rb
106
+ - lib/phidgets/gps.rb
107
+ - lib/phidgets/weight_sensor.rb
108
+ - lib/phidgets/ph_sensor.rb
109
+ - lib/phidgets/text_led.rb
110
+ - test/test_encoder.rb
111
+ - test/test_weight_sensor.rb
112
+ - test/test_dictionary.rb
113
+ - test/test_text_lcd.rb
114
+ - test/test_spatial.rb
115
+ - test/test_rfid.rb
116
+ - test/test_interfacekit.rb
117
+ - test/test_text_led.rb
118
+ - test/test_manager.rb
119
+ - test/test_servo.rb
120
+ - test/test_helper.rb
110
121
  - test/test_common.rb
111
122
  - test/test_motor_control.rb
112
- - test/test_gps.rb
123
+ - test/test_advanced_servo.rb
113
124
  - test/test_bridge.rb
114
- - test/test_encoder.rb
115
- - test/test_led.rb
116
- - test/test_stepper.rb
117
- - test/test_helper.rb
118
- - test/test_analog.rb
119
- - test/test_dictionary.rb
125
+ - test/test_accelerometer.rb
120
126
  - test/test_phsensor.rb
127
+ - test/test_stepper.rb
121
128
  - test/test_frequency_counter.rb
122
- - test/test_servo.rb
123
129
  - test/test_phidgets.rb
124
- - test/test_advanced_servo.rb
125
- - test/test_interfacekit.rb
126
- - test/test_weight_sensor.rb
127
130
  - test/test_temp_sensor.rb
128
131
  - test/test_ir.rb
129
- - test/test_spatial.rb
130
- - test/test_rfid.rb
131
- - test/test_text_led.rb
132
- - test/test_text_lcd.rb
133
- - test/test_manager.rb
134
- - test/test_accelerometer.rb
132
+ - test/test_analog.rb
133
+ - test/test_led.rb
134
+ - test/test_gps.rb
135
135
  - Rakefile
136
136
  - GNU_GPL.txt
137
137
  - History.txt
@@ -161,34 +161,34 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 1.8.25
164
+ rubygems_version: 1.8.24
165
165
  signing_key:
166
166
  specification_version: 3
167
167
  summary: Phidgets are a set of "plug and play" building blocks for low cost USB sensing
168
168
  and control from your PC. This gem provides a ruby interface to the phidgets library.
169
169
  test_files:
170
+ - test/test_encoder.rb
171
+ - test/test_weight_sensor.rb
172
+ - test/test_dictionary.rb
173
+ - test/test_text_lcd.rb
174
+ - test/test_spatial.rb
175
+ - test/test_rfid.rb
176
+ - test/test_interfacekit.rb
177
+ - test/test_text_led.rb
178
+ - test/test_manager.rb
179
+ - test/test_servo.rb
180
+ - test/test_helper.rb
170
181
  - test/test_common.rb
171
182
  - test/test_motor_control.rb
172
- - test/test_gps.rb
183
+ - test/test_advanced_servo.rb
173
184
  - test/test_bridge.rb
174
- - test/test_encoder.rb
175
- - test/test_led.rb
176
- - test/test_stepper.rb
177
- - test/test_helper.rb
178
- - test/test_analog.rb
179
- - test/test_dictionary.rb
185
+ - test/test_accelerometer.rb
180
186
  - test/test_phsensor.rb
187
+ - test/test_stepper.rb
181
188
  - test/test_frequency_counter.rb
182
- - test/test_servo.rb
183
189
  - test/test_phidgets.rb
184
- - test/test_advanced_servo.rb
185
- - test/test_interfacekit.rb
186
- - test/test_weight_sensor.rb
187
190
  - test/test_temp_sensor.rb
188
191
  - test/test_ir.rb
189
- - test/test_spatial.rb
190
- - test/test_rfid.rb
191
- - test/test_text_led.rb
192
- - test/test_text_lcd.rb
193
- - test/test_manager.rb
194
- - test/test_accelerometer.rb
192
+ - test/test_analog.rb
193
+ - test/test_led.rb
194
+ - test/test_gps.rb