arduino 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
+ *.lock
data/Gemfile CHANGED
@@ -2,4 +2,3 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in arduino.gemspec
4
4
  gemspec
5
- gem "serialport"
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arduino (0.1)
4
+ arduino (0.3.1)
5
+ serialport (>= 1.0.4)
5
6
 
6
7
  GEM
7
8
  remote: http://rubygems.org/
@@ -13,4 +14,4 @@ PLATFORMS
13
14
 
14
15
  DEPENDENCIES
15
16
  arduino!
16
- serialport
17
+ serialport (>= 1.0.4)
data/README.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Arduino ruby gem
2
2
 
3
- Arduino is a prototyping API for Arduino in Ruby. Helps prototype Arduino programs quickly from the computer, without the need to burn to the board frequently.
3
+ This gem is a prototyping API for Arduino in Ruby. Helps prototype Arduino programs quickly from the computer, without the need to burn to the board frequently.
4
4
 
5
5
  #### Setup:
6
6
  1. Install the gem: `gem install arduino`
7
- 2. Load arduino.pde onto your Arduino dev board (just once and for all).
7
+ 2. Load [arduino.pde](https://github.com/SingAlong/arduino/raw/master/arduino.pde) onto your Arduino dev board (just once and for all).
8
8
  3. Import the arduino gem: `require "arduino"`
9
9
 
10
10
  ## Methods
11
11
 
12
- #### Initializing:
12
+ ### Initializing:
13
13
 
14
14
  #Arduino.new(port, baudrate)
15
15
  board = Arduino.new("/dev/ttyUSB1")
16
16
 
17
17
  Port is something like "/dev/ttyUSB0" on linux and COM*x* (COM1/COM2) on windows. Baudrate is optional. It is 115200 by default.
18
18
 
19
- #### Setting output pins
19
+ ### Setting output pins
20
20
 
21
21
  The output pins must be set explicitly.
22
22
 
@@ -43,25 +43,25 @@ The output pins must be set explicitly.
43
43
 
44
44
  ## Usage example
45
45
 
46
- # This is the blink program.
46
+ # This is the blink program.
47
47
 
48
- require "arduino"
48
+ require "arduino"
49
49
 
50
- #specify the port Baudrate is optional and set to 115200 by default
51
- myBoard = Arduino.new("/dev/ttyUSB1")
50
+ #specify the port Baudrate is optional and set to 115200 by default
51
+ board = Arduino.new("/dev/ttyUSB1")
52
52
 
53
- #declare output pins
54
- myBoard.output(13)
53
+ #declare output pins
54
+ board.output(13)
55
55
 
56
- #perform operations
57
- 10.times do
58
- myBoard.setHigh(13)
59
- sleep(1)
60
- myBoard.setLow(13)
61
- sleep(1)
62
- end
56
+ #perform operations
57
+ 10.times do
58
+ board.setHigh(13)
59
+ sleep(1)
60
+ board.setLow(13)
61
+ sleep(1)
62
+ end
63
63
 
64
- # Developed for the love of programming by
64
+ # Developed for the love of creating stuff by
65
65
  > &copy; 2010 Akash Manohar <akash@akash.im>
66
66
  > under the MIT License
67
67
 
@@ -1,21 +1,35 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "arduino/version"
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = "arduino"
7
- s.version = Arduino::VERSION
6
+ s.version = "0.3.1"
7
+ s.date = %q{2010-01-01}
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Akash Manohar"]
10
10
  s.email = ["akash@akash.im"]
11
- s.homepage = ""
11
+ s.homepage = "http://akash.im/arduino-ruby"
12
12
  s.summary = %q{Arduino Prototyping API for Ruby}
13
13
  s.description = %q{A ruby library to talk to Arduino without having to burn programs repeatedly to the board}
14
+ s.post_install_message = %q{
15
+ ==============================================
16
+ Thank you for installing the arduino gem
17
+ ----------------------------------------------
18
+
19
+ Load the arduino.pde program from http://ln.akash.im/arduino.pde to your board before using this library
20
+
21
+ Source: https://github.com/SingAlong/arduino/
14
22
 
23
+ --
24
+ SingAlong
25
+ (http://akash.im)
26
+ ==============================================
27
+ }
15
28
  s.rubyforge_project = "arduino"
16
29
 
17
30
  s.files = `git ls-files`.split("\n")
18
31
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
32
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
33
  s.require_paths = ["lib"]
34
+ s.add_runtime_dependency(%q<serialport>, [">= 1.0.4"])
21
35
  end
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- version: "0.3"
8
+ - 1
9
+ version: 0.3.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Akash Manohar
@@ -13,10 +14,24 @@ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
16
 
16
- date: 2011-01-01 00:00:00 +05:30
17
+ date: 2010-01-01 00:00:00 +05:30
17
18
  default_executable:
18
- dependencies: []
19
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: serialport
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 0
31
+ - 4
32
+ version: 1.0.4
33
+ type: :runtime
34
+ version_requirements: *id001
20
35
  description: A ruby library to talk to Arduino without having to burn programs repeatedly to the board
21
36
  email:
22
37
  - akash@akash.im
@@ -37,12 +52,23 @@ files:
37
52
  - arduino.pde
38
53
  - example_blink.rb
39
54
  - lib/arduino.rb
40
- - lib/arduino/version.rb
41
55
  has_rdoc: true
42
- homepage: ""
56
+ homepage: http://akash.im/arduino-ruby
43
57
  licenses: []
44
58
 
45
- post_install_message:
59
+ post_install_message: "\n\
60
+ ==============================================\n\
61
+ Thank you for installing the arduino gem\n\
62
+ ----------------------------------------------\n\
63
+ \t\n\
64
+ Load the arduino.pde program from http://ln.akash.im/arduino.pde to your board before using this library\n\
65
+ \t\n\
66
+ Source: https://github.com/SingAlong/arduino/\n\n\
67
+ --\n\
68
+ SingAlong\n\
69
+ (http://akash.im)\n\
70
+ ==============================================\n\
71
+ \t"
46
72
  rdoc_options: []
47
73
 
48
74
  require_paths:
@@ -1,3 +0,0 @@
1
- module Arduino
2
- VERSION = "0.3"
3
- end