mobi_check_in 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mobi_check_in/version.rb +1 -1
- data/lib/mobi_check_in.rb +2 -15
- metadata +1 -1
data/lib/mobi_check_in.rb
CHANGED
@@ -24,7 +24,6 @@ module MobiCheckIn
|
|
24
24
|
begin
|
25
25
|
$stdout.write "Story number (NA) [#{story_number}]: "
|
26
26
|
input = $stdin.gets.strip
|
27
|
-
input = "MOBI-#{input}" if input =~ /^\d*$/
|
28
27
|
story_number = input unless input.empty?
|
29
28
|
end until !story_number.empty?
|
30
29
|
|
@@ -35,6 +34,7 @@ module MobiCheckIn
|
|
35
34
|
if story_number.delete("/").downcase == "na"
|
36
35
|
commit_message = ""
|
37
36
|
else
|
37
|
+
story_numbe = "MOBI-#{story_number}" if story_number =~ /^\d*$/
|
38
38
|
commit_message = "#{story_number} - #{pair_names} - "
|
39
39
|
end
|
40
40
|
|
@@ -61,20 +61,7 @@ module MobiCheckIn
|
|
61
61
|
puts Git.local_commits
|
62
62
|
puts "*******"
|
63
63
|
puts "Shoving..."
|
64
|
-
|
65
|
-
end
|
66
|
-
|
67
|
-
def self.push_command
|
68
|
-
if File::exists? '.mobi_check_in.yml'
|
69
|
-
config_file = File.read('.mobi_check_in.yml')
|
70
|
-
push command = YAML::load(config_file)["push_command"]
|
71
|
-
return system(push_command) if push_command
|
72
|
-
end
|
73
|
-
standard_push
|
74
|
-
end
|
75
|
-
|
76
|
-
def self.standard_push
|
77
|
-
system("git push")
|
64
|
+
system("git sc")
|
78
65
|
end
|
79
66
|
|
80
67
|
def self.push_and_test
|