pi_piper 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 822b5150bab4929fca37ae9777209d9445cd663e
4
+ data.tar.gz: 84a0cd3979800a0ed62ce15fdeab0e9722ffa9b4
5
+ SHA512:
6
+ metadata.gz: d7b461f1e2ddae7fb25774cc66c9dcffcf9577dc8429c4020d8915fe96aa161713fa72e2db02d4a9169356b6036a982d86016721bd52e4f2c018b04a07140f1e
7
+ data.tar.gz: 96d61bf27a05ad1f305058ff283272c56651b9d33594bc64d1dcfd1a69dcb4c4897f163cba1d9ea6fc8472d114a065e515907797efffeeb4955e2eaab94e536e
data/README.md CHANGED
@@ -51,8 +51,8 @@ pin.off
51
51
  Starting with version 1.2, Pi Piper offers SPI support.
52
52
 
53
53
  ```ruby
54
- PiPiper::Spi.begin do |spi|
55
- puts spi.write [0x01, 0x80, 0x00]
54
+ PiPiper::Spi.begin do
55
+ puts write [0x01, 0x80, 0x00]
56
56
  end
57
57
  ```
58
58
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('pi_piper', '1.3.1') do |p|
5
+ Echoe.new('pi_piper', '1.3.2') do |p|
6
6
  p.description = "Event driven Raspberry Pi GPIO library"
7
7
  p.url = "http://github.com/jwhitehorn/pi_piper"
8
8
  p.author = "Jason Whitehorn"
@@ -14,7 +14,7 @@ module PiPiper
14
14
  # Options hash. Options include `:pin`, `:invert` and `:trigger`.
15
15
  #
16
16
  def watch(options, &block)
17
- Thread.new do
17
+ new_thread = Thread.new do
18
18
  pin = PiPiper::Pin.new(options)
19
19
  loop do
20
20
  pin.wait_for_change
@@ -24,7 +24,9 @@ module PiPiper
24
24
  pin.instance_exec &block
25
25
  end
26
26
  end
27
- end.abort_on_exception = true
27
+ end
28
+ new_thread.abort_on_exception = true
29
+ new_thread
28
30
  end
29
31
 
30
32
  #Defines an event block to be executed after a pin either goes high or low.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "pi_piper"
5
- s.version = "1.3.1"
5
+ s.version = "1.3.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 = ["Jason Whitehorn"]
9
- s.date = "2013-02-05"
9
+ s.date = "2013-09-04"
10
10
  s.description = "Event driven Raspberry Pi GPIO library"
11
11
  s.email = "jason.whitehorn@gmail.com"
12
12
  s.extra_rdoc_files = ["README.md", "lib/pi_piper.rb", "lib/pi_piper/bcm2835.rb", "lib/pi_piper/libbcm2835.img", "lib/pi_piper/pin.rb", "lib/pi_piper/spi.rb"]
@@ -15,11 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pi_piper", "--main", "README.md"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "pi_piper"
18
- s.rubygems_version = "1.8.23"
18
+ s.rubygems_version = "2.0.0"
19
19
  s.summary = "Event driven Raspberry Pi GPIO library"
20
20
 
21
21
  if s.respond_to? :specification_version then
22
- s.specification_version = 3
22
+ s.specification_version = 4
23
23
 
24
24
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
25
  s.add_runtime_dependency(%q<ffi>, [">= 0"])
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pi_piper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
5
- prerelease:
4
+ version: 1.3.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jason Whitehorn
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
11
+ date: 2013-09-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ffi
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Event driven Raspberry Pi GPIO library
@@ -50,6 +47,7 @@ files:
50
47
  - pi_piper.gemspec
51
48
  homepage: http://github.com/jwhitehorn/pi_piper
52
49
  licenses: []
50
+ metadata: {}
53
51
  post_install_message:
54
52
  rdoc_options:
55
53
  - --line-numbers
@@ -61,21 +59,19 @@ rdoc_options:
61
59
  require_paths:
62
60
  - lib
63
61
  required_ruby_version: !ruby/object:Gem::Requirement
64
- none: false
65
62
  requirements:
66
- - - ! '>='
63
+ - - '>='
67
64
  - !ruby/object:Gem::Version
68
65
  version: '0'
69
66
  required_rubygems_version: !ruby/object:Gem::Requirement
70
- none: false
71
67
  requirements:
72
- - - ! '>='
68
+ - - '>='
73
69
  - !ruby/object:Gem::Version
74
70
  version: '1.2'
75
71
  requirements: []
76
72
  rubyforge_project: pi_piper
77
- rubygems_version: 1.8.23
73
+ rubygems_version: 2.0.0
78
74
  signing_key:
79
- specification_version: 3
75
+ specification_version: 4
80
76
  summary: Event driven Raspberry Pi GPIO library
81
77
  test_files: []