rpi_workshop 0.0.1 → 0.0.2

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.
@@ -9,6 +9,11 @@ class Button
9
9
  end
10
10
 
11
11
  def status
12
- return `gpio -g read #{@gpio}`
12
+ status = `gpio -g read #{@gpio}`
13
+ if status.to_i == 0
14
+ return "down"
15
+ else
16
+ return "up"
17
+ end
13
18
  end
14
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rpi_workshop"
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marcus Schappi"]
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pi_piper", "--main", "README.md"]
15
15
  s.require_paths = ["lib"]
16
16
  s.rubyforge_project = "rpi_workshop"
17
- s.rubygems_version = "0.0.1"
17
+ s.rubygems_version = "0.0.2"
18
18
  s.summary = "Ultra Basic Raspberry Pi GPIO Library"
19
19
 
20
20
  if s.respond_to? :specification_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpi_workshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: