rakins 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rakins +43 -0
- data/lib/rakins.rb +0 -0
- metadata +47 -0
data/bin/rakins
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This is absolutely not intended to be serious software. It's a bit of daft
|
4
|
+
# silly fun between myself and @heycarsten.
|
5
|
+
# http://www.youtube.com/watch?v=QHQ7bt5LBj8
|
6
|
+
# Enjoy!
|
7
|
+
|
8
|
+
first_arg = ARGV[0]
|
9
|
+
second_arg = ARGV[1]
|
10
|
+
|
11
|
+
angry_rakin_phrases = ["GONNA RAKE THINGS UP! BRR!",
|
12
|
+
"WHY YOU GOTTA CALL UP A RAKIN FO' NUTHIN?",
|
13
|
+
"RAKINS GONNA GETCHA!",
|
14
|
+
"STEALIN YO' STUFF!"]
|
15
|
+
|
16
|
+
def make_rakin_say message
|
17
|
+
rakin = <<-EOF
|
18
|
+
,,,,
|
19
|
+
.' `/\\_/\\
|
20
|
+
' <@V@> /===#{ '=' * (message.length+2) }
|
21
|
+
<(((((((((( ) ( \\./ <== #{message} =
|
22
|
+
\\(''''''\\(\\( \\===#{ '=' * (message.length+2) }
|
23
|
+
`-"`-" " "
|
24
|
+
EOF
|
25
|
+
|
26
|
+
rakin
|
27
|
+
end
|
28
|
+
|
29
|
+
if !first_arg.nil? && first_arg=='install'
|
30
|
+
puts make_rakin_say "INSTALLIN' #{second_arg}, YO."
|
31
|
+
puts `gem install #{second_arg}`
|
32
|
+
elsif !first_arg.nil? && first_arg=='help'
|
33
|
+
puts "rakins install <gem> will install a gem, rakins <command> will bundle exec the command."
|
34
|
+
elsif !first_arg.nil? && first_arg=='origin'
|
35
|
+
`open http://www.youtube.com/watch?v=QHQ7bt5LBj8`
|
36
|
+
elsif !first_arg.nil? && second_arg.nil?
|
37
|
+
puts make_rakin_say "EXECIN' #{first_arg}, YO."
|
38
|
+
puts `bundle exec #{first_arg}`
|
39
|
+
elsif first_arg.nil?
|
40
|
+
puts make_rakin_say angry_rakin_phrases[ rand(angry_rakin_phrases.length)]
|
41
|
+
end
|
42
|
+
|
43
|
+
|
data/lib/rakins.rb
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rakins
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- John McDowall
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-14 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
14
|
+
description: Rakins! Enjoy them.
|
15
|
+
email: john@mcdowall.info
|
16
|
+
executables:
|
17
|
+
- rakins
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/rakins.rb
|
22
|
+
- bin/rakins
|
23
|
+
homepage: http://rubygems.org/gems/rakins
|
24
|
+
licenses: []
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 1.8.7
|
44
|
+
signing_key:
|
45
|
+
specification_version: 3
|
46
|
+
summary: Bring the power of Rakins to your command line!
|
47
|
+
test_files: []
|