Skip to content

Commit ad68460

Browse files
committed
added more details to gemspec
Signed-off-by: Akash Manohar J <[email protected]>
1 parent d3c258a commit ad68460

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ source "http://rubygems.org"
22

33
# Specify your gem's dependencies in arduino.gemspec
44
gemspec
5-
gem "serialport"

Gemfile.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
arduino (0.1)
4+
arduino (0.3.1)
5+
serialport (>= 1.0.4)
56

67
GEM
78
remote: http://rubygems.org/
@@ -13,4 +14,4 @@ PLATFORMS
1314

1415
DEPENDENCIES
1516
arduino!
16-
serialport
17+
serialport (>= 1.0.4)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ The output pins must be set explicitly.
4848
require "arduino"
4949

5050
#specify the port Baudrate is optional and set to 115200 by default
51-
myBoard = Arduino.new("/dev/ttyUSB1")
51+
board = Arduino.new("/dev/ttyUSB1")
5252

5353
#declare output pins
54-
myBoard.output(13)
54+
board.output(13)
5555

5656
#perform operations
5757
10.times do
58-
myBoard.setHigh(13)
58+
board.setHigh(13)
5959
sleep(1)
60-
myBoard.setLow(13)
60+
board.setLow(13)
6161
sleep(1)
6262
end
6363

arduino.gemspec

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,33 @@ require "arduino/version"
44

55
Gem::Specification.new do |s|
66
s.name = "arduino"
7-
s.version = Arduino::VERSION
7+
s.version = "0.3.1"
8+
s.date = %q{2010-01-01}
89
s.platform = Gem::Platform::RUBY
910
s.authors = ["Akash Manohar"]
1011
s.email = ["[email protected]"]
11-
s.homepage = ""
12+
s.homepage = "http://akash.im/arduino-ruby"
1213
s.summary = %q{Arduino Prototyping API for Ruby}
1314
s.description = %q{A ruby library to talk to Arduino without having to burn programs repeatedly to the board}
14-
15+
s.post_install_message = %q{
16+
=========================================
17+
Thank you for installing the arduino gem
18+
-----------------------------------------
19+
20+
Load the arduino.pde program from http://ln.akash.im/arduino.pde to your board before using this library
21+
22+
Source: https://github.com/SingAlong/arduino/
23+
24+
--
25+
SingAlong
26+
(http://akash.im)
27+
=========================================
28+
}
1529
s.rubyforge_project = "arduino"
1630

1731
s.files = `git ls-files`.split("\n")
1832
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
1933
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
2034
s.require_paths = ["lib"]
35+
s.add_runtime_dependency(%q<serialport>, [">= 1.0.4"])
2136
end

lib/arduino/version.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)