i2c-devices 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: f2bb4b37022204715281e0f2410f0f630cc309d4
4
- data.tar.gz: 8679f5547940d54b6ac03b5b39599f3d566b9c1f
3
+ metadata.gz: 545b2f935babca05be80d95a4e6090ae7c6bc716
4
+ data.tar.gz: cf85f13b1ca3bd7ffbc256ab34fd552cc74227b9
5
5
  SHA512:
6
- metadata.gz: fd7b98970e4d83b67286638d57f2896563f5cb8de142241a7909f100e71b11700e6ebdc81736abefcf356e86e34a6c4d06d8719d214647954c011097437c0867
7
- data.tar.gz: fb036c7d5d2fce53bec00b9a264edc3d7e01be93063611d17a636c6d2f53e365ae067487384a2864c39691bfb941d57516a36c02da37d5a1da9d5aafdd63a00c
6
+ metadata.gz: b2fbfb0e4ecaccfc4659c792cc1e31ffd3fba4583f35be37343840ed0b388bf4629b43642c8258b7f1c8ccbc8ceb0269358bcfaa5ccff659d14a227fab0421db
7
+ data.tar.gz: e847ef178a80c01a434fa8a3932bfe6dfc360d9e553876371a9d66d754ca20e82be6b70fc3fa24c3d55ddd39f5e26f760c5a37e46af2e6de2dcb500fb43f9652
data/ChangeLog CHANGED
@@ -3,4 +3,5 @@
3
3
  * 0.0.1: initial release
4
4
  * 0.0.2: Update module namespaces.
5
5
  * 0.0.3: [FIX] Module structure
6
+ * 0.0.4: [FIX] Fix undefined constant
6
7
 
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ RSpec::Core::RakeTask.new(:spec)
13
13
  task :default => :spec
14
14
 
15
15
  task :release do
16
+ sh %{rspec}
16
17
  tags = `git tag`.split(/\n/)
17
18
  if tags.include? I2CDevice::VERSION
18
19
  raise "Already exist tag #{I2CDevice::VERSION}"
data/lib/i2c.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # Generic abstract class for I2C manipulation.
2
2
  class I2CDevice
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
 
5
5
  # Super class of all of this library.
6
6
  class I2CException < Exception; end
@@ -88,7 +88,7 @@ class I2CDevice::HD44780 < I2CDevice
88
88
  sleep 2.16e-3
89
89
  end
90
90
 
91
- alias clear_display clear
91
+ alias clear clear_display
92
92
 
93
93
  def return_home
94
94
  i2cset(0, 0b00000010)
@@ -5,7 +5,7 @@ Generic software I2C Driver based on /sys/class/gpio.
5
5
  THIS MODULE WORKS WITH VERY SLOW SPEED ABOUT JUST 1kHz (normaly 100kHz).
6
6
  =end
7
7
 
8
- class I2CDevice::Driver::GPIO < Base
8
+ class I2CDevice::Driver::GPIO < I2CDevice::Driver::Base
9
9
  @@DEBUG = false
10
10
 
11
11
  def self.export(pin) #:nodoc:
@@ -2,7 +2,7 @@
2
2
  require "i2c"
3
3
  require "i2c/driver"
4
4
 
5
- class I2CDevice::Driver::I2CDev < Base
5
+ class I2CDevice::Driver::I2CDev < I2CDevice::Driver::Base
6
6
  # ioctl command
7
7
  # Ref. https://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/include/linux/i2c.h
8
8
  I2C_RETRIES = 0x0701
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i2c-devices
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
  - cho45