apiotics_factory 1.0.14 → 1.0.15

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
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9270010b9cb3c5341dcde31399a9a6d1dfd4ac97
4
- data.tar.gz: fcaac312ac73565c72a1ca2b24a7242cafa0c480
3
+ metadata.gz: 945329b31f53bfcc9d934823f1ff3b52ba7fc83d
4
+ data.tar.gz: 6b2d8470e37453f3b549aafdcb50ae600df363d5
5
5
  SHA512:
6
- metadata.gz: '025129626bfcbce7e4540a6b0bc406e0b618a7695415910e3b8e68425a7d150c32563a7a7a7c87bcb60fe8ff5450431193bf7a80c966fb1f8b0703dce352600e'
7
- data.tar.gz: 8a0e7978b0dd1b00ae997c40d0bf1d18dad8ddd712ab2235c58845fee42c08a8dddc9bcf003a4f60b230bba3b69c93f0b79ece41584edea0faf07c9239480aa7
6
+ metadata.gz: 524ccf8a04dcbc6639c1f2489ba9a7a26e8a13b346e6bdd7556fcd885b923d25a8fa45852f0f66ab9d16f77bb03549c4716913473b73fc9ff8b4961b13bfd5fd
7
+ data.tar.gz: 0753d655a473125f5c5a710fb7e0964b294c74f057e33cbab3952a011f721a1c51c59f00e568026fd1ccb3a630e104f7247d2cd3613298e5cd9c781d83f6585c
@@ -1,3 +1,3 @@
1
1
  module ApioticsFactory
2
- VERSION = '1.0.14'
2
+ VERSION = '1.0.15'
3
3
  end
@@ -14,23 +14,17 @@ class <%= @driver_name %> < ApioticsDriver
14
14
  <% unless k == "port" || k == "delay" %>
15
15
  <% if v["accessor"] == "write only" || v["accessor"] == "read/write" %>
16
16
  def <%= "write_#{k}(#{v["type"]})"%>
17
- # IF YOU ARE USING GROVE PI PERIPHERALS, UNCOMMENT THE GrovePi.get_lock AND GrovePi.release_lock LINES BELOW.
18
- # GrovePi.get_lock
19
17
 
20
18
  # Your hardware specific logic to set the state of your <%= k %> hardware goes here based on the value of the <%= v['type'] %> variable.
21
-
22
- # GrovePi.release_lock
19
+
23
20
  self.send_msg(<%= v["type"]%>) # This line sends a confirmation message back to the web application noting that the operation is complete.
24
21
  end
25
22
  <% end %>
26
23
  <% if v["accessor"] == "read only" || v["accessor"] == "read/write" %>
27
24
  def <%= "read_#{k}"%>
28
- # IF YOU ARE USING GROVE PI PERIPHERALS, UNCOMMENT THE GrovePi.get_lock AND GrovePi.release_lock LINES BELOW.
29
- # GrovePi.get_lock
30
25
 
31
26
  # Your hardware specific logic here should read a value from your <%= k %> hardware, and set the <%= v["type"] %> variable appropriately.
32
27
 
33
- # GrovePi.release_lock
34
28
  self.send_msg(<%= v["type"]%>) # This line sends the value in the <%= v["type"] %> variable to the web application.
35
29
  end
36
30
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics_factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apiotics