rotor 0.0.3 → 0.0.4

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: 1906971c4bb3629adc95a98a5be89b2b05b55c83
4
- data.tar.gz: 19eb74217aa1feeec9a156601a08b49059cbbfa4
3
+ metadata.gz: a09b04547cb01901db87f7bb24b577c7f04dbd22
4
+ data.tar.gz: 2681e960065e601a800fbb08ec35c8b3a30dad90
5
5
  SHA512:
6
- metadata.gz: 297f962ff35a0560bd30f0d980659ab4d53c5c3c6b44a1e79618157964e3bc5b777176261b91fa6be81bf45c96c67f7d74a623f37153ee72a9f65e9b5eb65f06
7
- data.tar.gz: 12250ba3362b71e851d3a059f791f27da034e61041e85ebdd21eefbf946c09e39539ca39013f0d4ad820b2ec05236975cb634c5675288af68ebb6c026b623f46
6
+ metadata.gz: c4b577946cc3941814a45d79acc8e8c8feb029680e2013c57893263cdc5960e11cda4139ef634be9a13bbbcc99a23d370c0f83826e45def733a2fc32c3e3482b
7
+ data.tar.gz: 4499b3265c9ed51e1faeec4870b9533c39a1e9b33dfa1eb772fb519bdc18e973935579beba974a415d704d6c21b256deb28e71491e2cb65da516c4610c8b7182
data/lib/rotor/motor.rb CHANGED
@@ -1,7 +1,8 @@
1
+ require 'wiringpi'
1
2
  module Rotor
2
3
  class Stepper
3
4
  def initialize(coil_A_1_pin, coil_A_2_pin, coil_B_1_pin, coil_B_2_pin, enable_pin)
4
- @io = ::WiringPi::GPIO.new(WPI_MODE_GPIO)
5
+ @io = WiringPi::GPIO.new(WPI_MODE_GPIO)
5
6
  @coil_A_1_pin = coil_A_1_pin
6
7
  @coil_A_2_pin = coil_A_2_pin
7
8
  @coil_B_1_pin = coil_B_1_pin
data/lib/rotor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rotor
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/rotor.gemspec CHANGED
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
- spec.add_dependency "wiringpi", '~> 0'
24
+ spec.add_dependency "wiringpi"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kobaltz
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: wiringpi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Ruby Gem for controlling Bipolar and Unipolar Stepper Motors