rubylabs 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rubylabs.rb +7 -0
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
data/lib/rubylabs.rb CHANGED
@@ -38,6 +38,13 @@ module RubyLabs
38
38
 
39
39
  def hello
40
40
  "Hello, you have successfully installed RubyLabs!"
41
+ begin
42
+ Canvas.init(200, 200, "RubyLabs::Hello")
43
+ Canvas::Text.new("Hello from RubyLabs!",40,90)
44
+ rescue Exception => e
45
+ puts e
46
+ puts "Did you install Tk, the software module used to display graphics? See your Lab Manual for installtion instructions..."
47
+ end
41
48
  end
42
49
 
43
50
  # Return the larger of +a+ and +b+ (determined by calling <tt>a < b</tt>).
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubylabs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - conery
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-14 00:00:00 Z
18
+ date: 2012-01-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rubygems-test