mruby-sysfs-gpio 0.9.0 → 0.9.3

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: 0f1089ddaf2fac2419d96329266191f95fa186ce6874c413ec760ce613cea778
4
- data.tar.gz: dbf651b91a38c20574400416d68927b453337acf658869b178eeef63dab0918d
3
+ metadata.gz: c433286a8efee3dc6f6b616e8325d414212377c692effdd9fb3f454e4255cafa
4
+ data.tar.gz: 99958321f531066575f299feb83f0518713e7a553f863bda0af8e5c5806a476c
5
5
  SHA512:
6
- metadata.gz: bc9b8550ef886b679203cf5cd129cae6e3a56593c2fd4205ce9c0cbee68fb98411e0083aaaf2a512d51f401dfea87f9a2b54ab9da78bf056cfbfc03b5179af05
7
- data.tar.gz: 3752775990083bc49c7a28fcead23d017adcc8a28d7ceadf5d32f58d2809646cdfbced9b1d0933eae3d0e86174b8f5c89ca55dcb19b6a7fa6c84899fccfc1a5a
6
+ metadata.gz: a9be8d6f361203b23cbc3602d6f2e6d824209c0b1acf38aba71f33b6a62d2794ae551a203445cef1be57a0731078c5ff920a64559ebe41924c848e462c8d04f6
7
+ data.tar.gz: f191b94e683ecf83bda73b418c51181aa2b08f89023549cab56d8363d5351a009d55de6d0585ad4a2d4325dfd83961e9596be06a6e2ec628c7c23f3ed8d170ce
@@ -183,7 +183,7 @@ class GPIO
183
183
  # constructor
184
184
  #
185
185
  #@param [Integer] pin pin number
186
- #@param [Constant] params modes
186
+ #@param [Constant] params modes (GPIO::IN or GPIO::OUT)
187
187
  #
188
188
  def initialize( pin, params )
189
189
  @pin = pin
@@ -199,7 +199,7 @@ class GPIO
199
199
  #
200
200
  def read()
201
201
  @value.sysseek( 0 )
202
- return @value.sysread( 10 ).to_i
202
+ return @value.sysread(10).to_i
203
203
  end
204
204
 
205
205
 
@@ -258,7 +258,7 @@ class GPIO
258
258
  # (extend)
259
259
  #
260
260
  #@param [Constant] edge GPIO::RISING, GPIO::FALLING or GPIO::BOTH
261
- #@param [Integer] bounce_ms bounce time (milliseconds)
261
+ #@param [Integer] bounce_ms bounce time in milliseconds.
262
262
  #@return [Thread] event thread.
263
263
  #
264
264
  #@example
@@ -272,7 +272,7 @@ class GPIO
272
272
  @events_falling = []
273
273
 
274
274
  @value.sysseek( 0 )
275
- v1 = @value.sysread( 10 ).to_i
275
+ v1 = @value.sysread(10).to_i
276
276
 
277
277
  @event_thread = Thread.new {
278
278
  while true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GPIO
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mruby-sysfs-gpio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - HirohitoHigashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -23,11 +23,13 @@ files:
23
23
  - lib/mruby/gpio/sysfs.rb
24
24
  - lib/mruby/gpio/sysfs/gpio_sysfs.rb
25
25
  - lib/mruby/gpio/sysfs/version.rb
26
- homepage: https://github.com/HirohitoHigashi/mruby-mio/tree/main/mruby-sysfs-gpio
26
+ homepage: https://github.com/HirohitoHigashi/mruby-mio/
27
27
  licenses:
28
28
  - BSD 3-CLAUSE
29
29
  metadata:
30
- homepage_uri: https://github.com/HirohitoHigashi/mruby-mio/tree/main/mruby-sysfs-gpio
30
+ homepage_uri: https://github.com/HirohitoHigashi/mruby-mio/
31
+ source_code_uri: https://github.com/HirohitoHigashi/mruby-mio/tree/main/mruby-sysfs-gpio
32
+ documentation_uri: https://www.rubydoc.info/gems/mruby-sysfs-gpio
31
33
  post_install_message:
32
34
  rdoc_options: []
33
35
  require_paths:
@@ -46,6 +48,6 @@ requirements: []
46
48
  rubygems_version: 3.4.13
47
49
  signing_key:
48
50
  specification_version: 4
49
- summary: GPIO class library using Linux sysfs. compliant with mruby, mruby/c common
51
+ summary: GPIO class library using Linux sysfs. Compliant with mruby, mruby/c common
50
52
  I/O API guidelines.
51
53
  test_files: []