rakins 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rakin.rb +11 -10
  2. metadata +1 -1
@@ -26,19 +26,20 @@ class Rakin
26
26
  first_arg = ARGV[0]
27
27
  second_arg = ARGV[1]
28
28
 
29
- if !first_arg.nil? && first_arg=='install'
29
+ case first_arg
30
+ when nil
31
+ puts Rakin.talks_back
32
+ when 'install'
30
33
  puts Rakin.speaks "INSTALLIN' #{second_arg}, YO."
31
- puts `gem install #{second_arg}`
32
- elsif !first_arg.nil? && first_arg=='help'
34
+ system "gem", "install", second_arg
35
+ when 'help'
33
36
  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
+ when 'origin'
38
+ system "open", "http://www.youtube.com/watch?v=QHQ7bt5LBj8"
39
+ else
37
40
  puts Rakin.speaks "EXECIN' #{first_arg}, YO."
38
- puts `bundle exec #{first_arg} #{second_arg}`
39
- elsif first_arg.nil?
40
- puts Rakin.talks_back
41
+ system "bundle", "exec", *ARGV
41
42
  end
42
43
  end
43
44
 
44
- end
45
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: