Hokkaido 0.0.6 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/Hokkaido +5 -5
- data/lib/Hokkaido.rb +3 -3
- data/lib/Hokkaido/version.rb +1 -1
- metadata +1 -1
data/bin/Hokkaido
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'commander/import'
|
3
3
|
require 'Hokkaido'
|
4
|
-
puts "Hokkaido v#{Hokkaido::VERSION} codename Northern Sea Circuit"
|
4
|
+
puts "Hokkaido v#{Hokkaido::VERSION} codename Northern Sea Circuit" #.colorize(:yellow)
|
5
5
|
|
6
6
|
program :name, "Hokkaido"
|
7
7
|
program :version, '0.0.1'
|
@@ -13,12 +13,12 @@ command :port do |c|
|
|
13
13
|
c.option '--sim', TrueClass, 'Does not edit the gem files. Good for hacking Hokkaido'
|
14
14
|
c.action do |args, options|
|
15
15
|
if Hokkaido.valid_input?(args)
|
16
|
-
puts "Init Lib:
|
17
|
-
puts "Gem name:
|
18
|
-
say "Lib folder:
|
16
|
+
puts "Init Lib: #{args[1]}"
|
17
|
+
puts "Gem name: #{args[0]}"
|
18
|
+
say "Lib folder: #{args[2]}"
|
19
19
|
port = Hokkaido::Port.new(args, options)
|
20
20
|
port.modify
|
21
|
-
say "Gem modification complete. It will now be tested."
|
21
|
+
say "Gem modification complete. It will now be tested." #.colorize(:yellow)
|
22
22
|
say Hokkaido.self_test_result(port)
|
23
23
|
else
|
24
24
|
say "I can't process that."
|
data/lib/Hokkaido.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "Hokkaido/version"
|
2
2
|
require 'gem_modifier'
|
3
|
-
require 'term/ansicolor'
|
3
|
+
#require 'term/ansicolor'
|
4
4
|
|
5
5
|
module Hokkaido
|
6
6
|
|
@@ -35,9 +35,9 @@ HEREDOC
|
|
35
35
|
|
36
36
|
def self.self_test_result(port)
|
37
37
|
if port.test
|
38
|
-
puts "The #require removal was successful.".colorize(:green)
|
38
|
+
puts "The #require removal was successful.".green #.colorize(:green)
|
39
39
|
else
|
40
|
-
puts "The #require removal has failed.".colorize(:red)
|
40
|
+
puts "The #require removal has failed.".red #.colorize(:red)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
data/lib/Hokkaido/version.rb
CHANGED