go_easy_btn 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/go_easy_btn.rb +2 -0
  2. metadata +50 -38
data/lib/go_easy_btn.rb CHANGED
@@ -7,6 +7,7 @@ class BigAssButton
7
7
 
8
8
  def initialize(options = {})
9
9
  raise 'not found serial port has been' unless File.exists? options[:dev]
10
+ raise ':cmd must be something!' if options[:cmd].nil? || options[:cmd] == ''
10
11
  @cmd = options[:cmd]
11
12
  @device = options[:dev]
12
13
  @port = options[:port] || 115200
@@ -16,6 +17,7 @@ class BigAssButton
16
17
 
17
18
  def make_it_easy
18
19
  puts "Making It Easy\n\n"
20
+
19
21
  SerialPort.open @device, @port do |port|
20
22
  begin
21
23
  while data = port.readline
metadata CHANGED
@@ -1,67 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: go_easy_btn
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Josh Nussbaum, Diego Salazar
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-11-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-11-29 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: serialport
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
30
32
  description: Hook up easy button via USB serial port and trigger shell commands
31
- email:
33
+ email:
32
34
  - joshnuss@gmail.com
33
35
  - diego@pixelheadstudio.com
34
- executables:
36
+ executables:
35
37
  - go_easy_btn
36
38
  extensions: []
39
+
37
40
  extra_rdoc_files: []
38
- files:
41
+
42
+ files:
39
43
  - lib/go_easy_btn.rb
40
44
  - lib/alerter.rb
41
45
  - bin/go_easy_btn
46
+ has_rdoc: true
42
47
  homepage: https://github.com/joshnuss/easy-button
43
48
  licenses: []
49
+
44
50
  post_install_message:
45
51
  rdoc_options: []
46
- require_paths:
52
+
53
+ require_paths:
47
54
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 1
61
+ - 8
62
+ - 7
53
63
  version: 1.8.7
54
- required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
70
+ version: "0"
60
71
  requirements: []
72
+
61
73
  rubyforge_project:
62
- rubygems_version: 1.8.24
74
+ rubygems_version: 1.3.6
63
75
  signing_key:
64
76
  specification_version: 3
65
77
  summary: Make things Easy!
66
78
  test_files: []
67
- has_rdoc: false
79
+