awkward_turtle 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/awkward_turtle +10 -0
  2. data/lib/awkward_turtle.rb +35 -0
  3. metadata +68 -0
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ require 'awkward_turtle'
5
+ rescue LoadError
6
+ require 'rubygems'
7
+ require 'awkward_turtle'
8
+ end
9
+ AwkwardTurtle.animate
10
+
@@ -0,0 +1,35 @@
1
+ class AwkwardTurtle
2
+ @t1 = %q{
3
+ _
4
+ / \
5
+ _ .""". _
6
+ /` /`_\ /_`\ `\
7
+ "`|_> _ <_|`"
8
+ /\_-'-_/\
9
+ /_/ `)` \_\
10
+ "" ""
11
+ }
12
+ @t2 = %q{
13
+ _
14
+ / \
15
+ _ .""". _
16
+ |/`_\ /_`\|
17
+ "|_> _ <_|"
18
+ /\_-'-_/\
19
+ \_\`)`/_/
20
+ "" ""
21
+ }
22
+
23
+ def self.animate
24
+ interrupted = false
25
+ trap("INT") {interrupted = true}
26
+ loop do
27
+ [ @t1, @t2].each do |t|
28
+ exit if interrupted
29
+ system "clear"
30
+ puts t
31
+ sleep 1
32
+ end
33
+ end
34
+ end
35
+ end
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: awkward_turtle
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ version: 0.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Matthew Swain
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-05-22 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: An animated awkward turtle for your terminal
23
+ email: mswain@gmail.com
24
+ executables:
25
+ - awkward_turtle
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/awkward_turtle.rb
32
+ - bin/awkward_turtle
33
+ has_rdoc: true
34
+ homepage: http://rubygems.org/gems/awkward_turtle
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options: []
39
+
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 3
48
+ segments:
49
+ - 0
50
+ version: "0"
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.5.0
64
+ signing_key:
65
+ specification_version: 3
66
+ summary: Awkward Turtle!
67
+ test_files: []
68
+