abak-flow 0.1.5 → 0.1.6

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -32,6 +32,13 @@ module Abak::Flow
32
32
  exit
33
33
  end
34
34
 
35
+ # Проверим, что у нас настроен origin
36
+ if repository.remote_by_name('origin').nil?
37
+ say 'Необходимо настроить репозиторий origin (форк) для текущего пользователя'
38
+ say '=> git remote add origin https://Developer@github.com/abak-press/sample.git'
39
+ exit
40
+ end
41
+
35
42
  # Проверим, что у нас настроен upstream
36
43
  if repository.remote_by_name('upstream').nil?
37
44
  say 'Необходимо настроить репозиторий upstream (главный) для текущего пользователя'
@@ -55,7 +62,7 @@ module Abak::Flow
55
62
  # Запушим текущую ветку на origin
56
63
  # @TODO Может быть лучше достать дерективу конфига origin?
57
64
  say "=> Обновляю ветку #{current_branch} на origin"
58
- Hub::Runner.execute('push', repository.main_project.remote.name, current_branch)
65
+ Hub::Runner.execute('push', 'origin', current_branch)
59
66
 
60
67
  # Запостим pull request на upstream
61
68
  command_options = ['pull-request', title, '-b', base, '-h', head]
@@ -76,10 +83,17 @@ module Abak::Flow
76
83
  repository = Hub::Commands.send :local_repo
77
84
  current_branch = repository.current_branch.short_name
78
85
 
86
+ # Проверим, что у нас настроен origin
87
+ if repository.remote_by_name('origin').nil?
88
+ say 'Необходимо настроить репозиторий origin (форк) для текущего пользователя'
89
+ say '=> git remote add origin https://Developer@github.com/abak-press/sample.git'
90
+ exit
91
+ end
92
+
79
93
  # Запушим текущую ветку на origin
80
94
  branch = options.branch || current_branch
81
95
  say "=> Обновляю ветку #{branch} на origin"
82
- Hub::Runner.execute('push', repository.main_project.remote.name, branch)
96
+ Hub::Runner.execute('push', 'origin', branch)
83
97
  end
84
98
  end
85
99
 
@@ -96,7 +110,7 @@ module Abak::Flow
96
110
  end
97
111
 
98
112
  unless task =~ /^\w+\-\d{1,}$/
99
- say '=> Вы приняли верное решение :)' && exit if agree("Лучше всего завести задачу с именем примерно такого формата PC-001, может попробуем заного? [y/n]:")
113
+ say '=> Вы приняли верное решение :)' && exit if agree("Лучше всего завести задачу с именем примерно такого формата PC-001, может попробуем заново? [y/n]:")
100
114
  end
101
115
 
102
116
  Hub::Runner.execute('flow', 'feature', 'start', task)
@@ -116,7 +130,7 @@ module Abak::Flow
116
130
  end
117
131
 
118
132
  unless task =~ /^\w+\-\d{1,}$/
119
- say '=> Вы приняли верное решение :)' && exit if agree("Лучше всего завести задачу с именем примерно такого формата PC-001, может попробуем заного? [y/n]:")
133
+ say '=> Вы приняли верное решение :)' && exit if agree("Лучше всего завести задачу с именем примерно такого формата PC-001, может попробуем заново? [y/n]:")
120
134
  end
121
135
 
122
136
  Hub::Runner.execute('flow', 'hotfix', 'start', task)
@@ -1,5 +1,5 @@
1
1
  module Abak
2
2
  module Flow
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abak-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-15 00:00:00.000000000Z
12
+ date: 2012-02-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hub
16
- requirement: &70349107820800 !ruby/object:Gem::Requirement
16
+ requirement: &70149328956080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70349107820800
24
+ version_requirements: *70149328956080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: commander
27
- requirement: &70349114957400 !ruby/object:Gem::Requirement
27
+ requirement: &70149328955660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70349114957400
35
+ version_requirements: *70149328955660
36
36
  description: Простой набор правил и комманд, заточеных для работы в git-flow с использование
37
37
  в качестве удаленного репозитория github
38
38
  email: