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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20010320d2ba577a1b00f0762ed60c0ca4833bbd6b9e4034106f874db85e81d1
4
- data.tar.gz: 6415782f80bb4c6aea45510233ee8fd8928f24bf74c8edf4d9df91446cbb44ed
3
+ metadata.gz: 3c97dbbf10c8bd37e84d77c71759400feaba7bac5212e299e55d0eae6f8a1350
4
+ data.tar.gz: 2b56534b9f49f1126b25c3d8c9833e980ec160e613a0df6a0f910ac953a72404
5
5
  SHA512:
6
- metadata.gz: 491a486bd4cf93aa3bbc12f52ba2996bb3f88e0614729b774b19d5df40c17b62e9eff301170f47cc94c1a0d2c99e42c2774233444dea70ed2c4a8fb9af74fc96
7
- data.tar.gz: ed9141db314a096d8e786b60ff8a0f07ad53cbf78a32070861d80c90bf716e074ab7200a1cc09006b613bc9881727b8866cc556c2411adf42d105459caa6a44c
6
+ metadata.gz: 613d57a819451c0b50ef06ee7f2931a572b1df62b8e3e8b8ab26f00de58b566064f721a7b6229be6b58d867061b194a61dbe4bce9bcf92ea3eec6b684e32393b
7
+ data.tar.gz: ff072dc975075212f67565716b343022fbaf6ad20394a35312d1a14560dd5df8f4332812bf876537849843157eaee241e5cada879bfc7ea18b264d3ef8f61317
data/README.md CHANGED
@@ -96,3 +96,5 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/fmorto
96
96
  ## License
97
97
 
98
98
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
99
+
100
+
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 (and maybe Finch 2 later)'
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, you must connect '\
12
- 'to the Hummingbird Bit via bluetooth with the BlueBird Connector.'
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?
@@ -4,5 +4,5 @@
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Birdbrain
7
- VERSION = '0.9.4'
7
+ VERSION = '0.9.5'
8
8
  end
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
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-05 00:00:00.000000000 Z
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. To use Ruby with
15
- the Hummingbird Bit, you must connect to the Hummingbird Bit via bluetooth with
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 (and maybe Finch 2 later)
75
+ summary: Ruby Library for BirdBrain Technologies Hummingbird Bit and Finch 2
76
76
  test_files: []