abak-flow 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,13 +12,15 @@ module Abak::Flow
12
12
  end
13
13
 
14
14
  def run(args, options)
15
+ process(args, options)
16
+ say ANSI.green { I18n.t("commands.checkup.success") }
17
+ end
18
+
19
+ def process(args, options)
15
20
  Visitor.new(@configuration, @repository,
16
21
  command: "checkup", call: :ready?, inspect: :errors)
17
22
  .on_fail(exit: 1)
18
-
19
- say ANSI.green { I18n.t("commands.checkup.success") }
20
23
  end
21
-
22
- end
23
- end
24
- end
24
+ end # class Checkup
25
+ end # module Commands
26
+ end # module Abak::Flow
@@ -5,6 +5,8 @@ require "commander/command"
5
5
  module Abak::Flow
6
6
  module Commands
7
7
  class Compare
8
+ # TODO : Быть может стоит сделать include ANSI
9
+
8
10
  def initialize
9
11
  manager = Manager.instance
10
12
 
@@ -14,7 +16,8 @@ module Abak::Flow
14
16
  end
15
17
 
16
18
  def run(args, options)
17
- Checkup.new.run(Array.new, ::Commander::Command::Options.new)
19
+ Checkup.new.process(
20
+ Array.new, ::Commander::Command::Options.new)
18
21
 
19
22
  current = @git.current_branch
20
23
  head = Branch.new(options.head || current)
@@ -15,12 +15,12 @@ module Abak::Flow
15
15
  cmd.action Commands::Checkup, :run
16
16
  end # command :checkup
17
17
 
18
- command :compare do |c|
19
- c.syntax = "git request compare"
20
- c.description = "Сравнить свою ветку с веткой upstream репозитория"
18
+ command :compare do |cmd|
19
+ cmd.syntax = "git request compare"
20
+ cmd.description = "Сравнить свою ветку с веткой upstream репозитория"
21
21
 
22
- c.option "--base STRING", String, "Имя ветки с которой нужно сравнить"
23
- c.option "--head STRING", String, "Имя ветки которую нужно сравнить"
22
+ cmd.option "--base STRING", String, "Имя ветки с которой нужно сравнить"
23
+ cmd.option "--head STRING", String, "Имя ветки которую нужно сравнить"
24
24
 
25
25
  cmd.action Commands::Compare, :run
26
26
  end # command :compare
@@ -1,5 +1,5 @@
1
1
  module Abak
2
2
  module Flow
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: abak-flow
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.7
5
+ version: 1.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Strech (aka Sergey Fedorov)
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-23 00:00:00.000000000 Z
12
+ date: 2014-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit