birdbrain 0.9.4 → 0.9.5
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
- data/README.md +2 -0
- data/birdbrain.gemspec +3 -3
- data/lib/birdbrain/birdbrain_device.rb +5 -1
- data/lib/birdbrain/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c97dbbf10c8bd37e84d77c71759400feaba7bac5212e299e55d0eae6f8a1350
|
|
4
|
+
data.tar.gz: 2b56534b9f49f1126b25c3d8c9833e980ec160e613a0df6a0f910ac953a72404
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 613d57a819451c0b50ef06ee7f2931a572b1df62b8e3e8b8ab26f00de58b566064f721a7b6229be6b58d867061b194a61dbe4bce9bcf92ea3eec6b684e32393b
|
|
7
|
+
data.tar.gz: ff072dc975075212f67565716b343022fbaf6ad20394a35312d1a14560dd5df8f4332812bf876537849843157eaee241e5cada879bfc7ea18b264d3ef8f61317
|
data/README.md
CHANGED
data/birdbrain.gemspec
CHANGED
|
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
|
|
|
6
6
|
spec.authors = ['fmorton']
|
|
7
7
|
spec.email = ['fmorton@mac.com']
|
|
8
8
|
|
|
9
|
-
spec.summary = 'Ruby Library for Hummingbird Bit
|
|
9
|
+
spec.summary = 'Ruby Library for BirdBrain Technologies Hummingbird Bit and Finch 2'
|
|
10
10
|
spec.description = 'This Ruby library allows students to use Ruby to read sensors and set motors and LEDs with the '\
|
|
11
|
-
'Birdbrain Technologies Hummingbird Bit. To use Ruby with the Hummingbird Bit
|
|
12
|
-
'
|
|
11
|
+
'Birdbrain Technologies Hummingbird Bit and Finch 2. To use Ruby with the Hummingbird Bit or '\
|
|
12
|
+
'Finch 2, you must connect via bluetooth with the BlueBird Connector.'
|
|
13
13
|
spec.homepage = 'https://github.com/fmorton/BirdBrain-Ruby-Library'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
|
@@ -13,7 +13,7 @@ class BirdbrainDevice
|
|
|
13
13
|
|
|
14
14
|
def initialize(device = DEFAULT_DEVICE)
|
|
15
15
|
self.state = BirdbrainState.new
|
|
16
|
-
self.device = device
|
|
16
|
+
self.device = remap_device(device)
|
|
17
17
|
self.connected = nil
|
|
18
18
|
end
|
|
19
19
|
|
|
@@ -30,6 +30,10 @@ class BirdbrainDevice
|
|
|
30
30
|
device
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
def remap_device(device = DEFAULT_DEVICE)
|
|
34
|
+
device
|
|
35
|
+
end
|
|
36
|
+
|
|
33
37
|
def connect
|
|
34
38
|
self.connected = BirdbrainRequest.connected?(device)
|
|
35
39
|
self.connected = nil unless valid_device_type?
|
data/lib/birdbrain/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: birdbrain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- fmorton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This Ruby library allows students to use Ruby to read sensors and set
|
|
14
|
-
motors and LEDs with the Birdbrain Technologies Hummingbird Bit
|
|
15
|
-
the Hummingbird Bit, you must connect
|
|
14
|
+
motors and LEDs with the Birdbrain Technologies Hummingbird Bit and Finch 2. To
|
|
15
|
+
use Ruby with the Hummingbird Bit or Finch 2, you must connect via bluetooth with
|
|
16
16
|
the BlueBird Connector.
|
|
17
17
|
email:
|
|
18
18
|
- fmorton@mac.com
|
|
@@ -72,5 +72,5 @@ requirements: []
|
|
|
72
72
|
rubygems_version: 3.2.5
|
|
73
73
|
signing_key:
|
|
74
74
|
specification_version: 4
|
|
75
|
-
summary: Ruby Library for Hummingbird Bit
|
|
75
|
+
summary: Ruby Library for BirdBrain Technologies Hummingbird Bit and Finch 2
|
|
76
76
|
test_files: []
|