ffi-wiring_pi 0.4.0 → 0.5.0

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: 19e1117a25b8972026d0855e55c76dfc0264f3102efe8eb658c33f039af3628a
4
- data.tar.gz: 32c9523cd1c4b605127760a87f0840efcc82e65fcb7ad657b4bc2bf54c7b7dd9
3
+ metadata.gz: 1342e5c0c449c226bdc35c261b4b90da174dc8669d96d847da33dc33a01197d8
4
+ data.tar.gz: 2ebdebfb6a78f120235b62499d3d86cc7d47d0f3a55f372944caf4aa9fe6db55
5
5
  SHA512:
6
- metadata.gz: bd6b2ab6e7f04a9288f5344e3d43a8b2b88bfa7dbe1b74a62a62349adef0bc6bc83f7100c6a7a826ee298b5b0662f56e886009da21e371d07575ef7ac9925d5f
7
- data.tar.gz: d713437e2a39be14dedcbc0297b713fd20997e34b9a2bd41a968879b3e007d9b4a0c34f05f52192928c634ccb796b233600aeb865b529e5c2000e7b04cdd074c
6
+ metadata.gz: f1606444c571faecf425a414bc770b16cb2a1c38b8a8eb1ed974b56612678af77077119aec657b16c5c9ec0794217ad5c2564da047be806cdffd8e0f45cd4b6f
7
+ data.tar.gz: fc9c9ed9f28380036f1a09403b41065e1e30c4e753d089262ab41ca034529613f110389686e1b6f86bd0b6549d1905c3b2127652fcffc4372ec1df09f5d48c23
data/.gitignore CHANGED
@@ -10,24 +10,7 @@
10
10
  /test/version_tmp/
11
11
  /tmp/
12
12
 
13
- # Used by dotenv library to load environment variables.
14
- # .env
15
-
16
- ## Specific to RubyMotion:
17
- .dat*
18
- .repl_history
19
13
  build/
20
- *.bridgesupport
21
- build-iPhoneOS/
22
- build-iPhoneSimulator/
23
-
24
- ## Specific to RubyMotion (use of CocoaPods):
25
- #
26
- # We recommend against adding the Pods directory to your .gitignore. However
27
- # you should judge for yourself, the pros and cons are mentioned at:
28
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
- #
30
- # vendor/Pods/
31
14
 
32
15
  ## Documentation cache and generated files:
33
16
  /.yardoc/
data/.travis.yml CHANGED
@@ -7,4 +7,4 @@ before_install:
7
7
  - gem install bundler:2.0.1
8
8
  rvm:
9
9
  - 2.6.1
10
- script: rake test
10
+ script: bundle ex rspec
data/ChangeLog.md CHANGED
@@ -2,3 +2,4 @@
2
2
  # 0.3.0 Added Software PWM, added instructions for libws281x, but not enabled
3
3
  # 0.2.0 Added PWM pin control functions
4
4
  # 0.1.0 Added GPIO basic functions: read and write
5
+ # 0.1.0 Added Pcf8591 module to setup pins
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ffi-wiring_pi (0.3.0)
4
+ ffi-wiring_pi (0.4.0)
5
5
  ffi (~> 1.0)
6
6
 
7
7
  GEM
data/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: ffi-wiring_pi
2
- version: 0.4.0
2
+ version: 0.5.0
3
3
  summary: FFI bindings for wiringPi
4
4
  description: Ruby FFI bindings for the wiringPi library.
5
5
  license: MIT
data/lib/ffi/wiring_pi.rb CHANGED
@@ -13,3 +13,4 @@ end
13
13
  require 'ffi/wiring_pi/gpio'
14
14
  require 'ffi/wiring_pi/soft_pwm'
15
15
  require 'ffi/wiring_pi/soft_tone'
16
+ require 'ffi/wiring_pi/pcf8591'
@@ -0,0 +1,10 @@
1
+ #frozen_string_literal: true
2
+
3
+ module FFI::WiringPi::Pcf8591
4
+ extend FFI::Library
5
+
6
+ ffi_lib 'wiringPi'
7
+
8
+ attach_function :setup, :pcf8591Setup, [:int, :int], :void
9
+ end
10
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-wiring_pi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Huk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2019-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -92,6 +92,7 @@ files:
92
92
  - lib/ffi/wiring_pi.rb
93
93
  - lib/ffi/wiring_pi/gpio.rb
94
94
  - lib/ffi/wiring_pi/neopixel.rb
95
+ - lib/ffi/wiring_pi/pcf8591.rb
95
96
  - lib/ffi/wiring_pi/soft_pwm.rb
96
97
  - lib/ffi/wiring_pi/soft_tone.rb
97
98
  - spec/ffi/wiring_pi/gpio_spec.rb
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  version: '0'
119
120
  requirements:
120
121
  - wiringPi >= 2.46
121
- rubygems_version: 3.0.1
122
+ rubygems_version: 3.0.3
122
123
  signing_key:
123
124
  specification_version: 4
124
125
  summary: FFI bindings for wiringPi