rad 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -1
- data/Rakefile +1 -1
- data/lib/rad/arduino_sketch.rb +9 -10
- data/lib/rad/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +3 -11
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -79,7 +79,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
79
79
|
|
80
80
|
# == Optional
|
81
81
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
82
|
-
p.extra_deps = [ ['Ruby2C', '>= 1.0.0
|
82
|
+
# p.extra_deps = [ ['Ruby2C', '>= 1.0.0'] ]
|
83
83
|
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
84
84
|
end
|
85
85
|
|
data/lib/rad/arduino_sketch.rb
CHANGED
@@ -7,8 +7,15 @@ class ArduinoSketch
|
|
7
7
|
@declarations = []
|
8
8
|
@pin_modes = {:output => [], :input => []}
|
9
9
|
@accessors = []
|
10
|
-
@signatures = []
|
11
|
-
@helper_methods =
|
10
|
+
@signatures = ["void blink();"]
|
11
|
+
@helper_methods = <<-CODE
|
12
|
+
void blink(int pin, int ms){
|
13
|
+
digitalWrite(pin, 1);
|
14
|
+
delay(ms);
|
15
|
+
digitalWrite(pin, 0);
|
16
|
+
delay(ms);
|
17
|
+
}
|
18
|
+
CODE
|
12
19
|
end
|
13
20
|
|
14
21
|
def output_pin(num, opts={})
|
@@ -42,14 +49,6 @@ class ArduinoSketch
|
|
42
49
|
end
|
43
50
|
|
44
51
|
def add(st)
|
45
|
-
@helper_methods = <<-CODE
|
46
|
-
void blink(int pin, int ms){
|
47
|
-
digitalWrite(pin, 1);
|
48
|
-
delay(ms);
|
49
|
-
digitalWrite(pin, 0);
|
50
|
-
delay(ms);
|
51
|
-
}
|
52
|
-
CODE
|
53
52
|
@helper_methods << "\n#{st}\n"
|
54
53
|
end
|
55
54
|
|
data/lib/rad/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>RAD</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rad"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/rad" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/rad" class="numbers">0.0.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘Ruby Arduino Development’</h1>
|
39
39
|
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rad
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.3
|
7
7
|
date: 2007-07-23 00:00:00 -07:00
|
8
8
|
summary: A framework for programming the Arduino physcial computing platform using Ruby. RAD converts Ruby scripts written using a set of Rails-like conventions and helpers into C source code which can be compiled and run on the Arduino microcontroller.
|
9
9
|
require_paths:
|
@@ -72,13 +72,5 @@ extensions: []
|
|
72
72
|
|
73
73
|
requirements: []
|
74
74
|
|
75
|
-
dependencies:
|
76
|
-
|
77
|
-
name: Ruby2C
|
78
|
-
version_requirement:
|
79
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 1.0.0.5
|
84
|
-
version:
|
75
|
+
dependencies: []
|
76
|
+
|