rgitflow 0.2.1.pre.alpha.pre.32 → 0.2.2
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.
- checksums.yaml +8 -8
- data/lib/rgitflow/tasks/feature/finish.rb +10 -2
- data/lib/rgitflow/tasks/hotfix/finish.rb +11 -2
- data/lib/rgitflow/tasks/release/finish.rb +20 -1
- data/lib/rgitflow/tasks/scm/status.rb +4 -34
- data/lib/rgitflow/tasks/scm/tag.rb +4 -41
- data/lib/rgitflow/tasks/scm/task.rb +52 -0
- data/lib/rgitflow/version.rb +1 -1
- data/rgitflow.gemspec +0 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTAwYTU2NmNhNDAxMmI3ZTA0NzgxYWY5Y2Y3MjYxZWIxMTc4NzYyNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Njg5Y2NjN2I5ODU2NDA1MTZlYjUwM2FmODI5YTFhNzVkZThmYTMxNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWFjNGVlY2ExM2UyOGIxYWU3ZThiYzIxZDY4MDJlMTNkYmQyZWI0YTI5ODI3
|
10
|
+
YzEyZGQ5NTEwYjEyNDExOTM0MGI5ZDZmYWE5Y2JkMDY1OTFhYzAyYzE3NzJj
|
11
|
+
ZTJlM2M3ODk0MWM3ODI2MmYzYWEyYWUzMTM5NmQwZTg2YmU4MTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzVhMzY5YzZkYWIzYzQyODdmYzMxNzUzNTk3NmFlNTQyYmZjNGNmMmNkZjVk
|
14
|
+
MzJkZWJhZTQ2ZmU5MjkwMmMxNDE3MmIzYjI3ZDUwNWJiODRjZTlhMDRlN2Mw
|
15
|
+
ZjA0ZGNlMjY3Nzg0NmQyMDExY2Y2MGU3MDVjODhkYjI1NDQ1OGU=
|
@@ -20,12 +20,20 @@ module RGitFlow
|
|
20
20
|
abort
|
21
21
|
end
|
22
22
|
|
23
|
+
msg = %Q("merging #{branch} into #{RGitFlow::Config.options[:develop]}")
|
24
|
+
|
23
25
|
@git.branch(RGitFlow::Config.options[:develop]).checkout
|
24
|
-
@git.merge branch
|
26
|
+
@git.merge branch
|
27
|
+
|
28
|
+
begin
|
29
|
+
@git.commit_all msg
|
30
|
+
rescue
|
31
|
+
status 'develop branch is up-to-date'
|
32
|
+
end
|
25
33
|
|
26
34
|
@git.push
|
27
35
|
if @git.is_remote_branch? branch
|
28
|
-
@git.push('origin', branch, {:delete => true})
|
36
|
+
@git.push('origin', branch, { :delete => true })
|
29
37
|
end
|
30
38
|
|
31
39
|
@git.branch(branch).delete
|
@@ -20,12 +20,21 @@ module RGitFlow
|
|
20
20
|
abort
|
21
21
|
end
|
22
22
|
|
23
|
+
msg = %Q("merging #{branch} into #{RGitFlow::Config
|
24
|
+
.options[:master]}")
|
25
|
+
|
23
26
|
@git.branch(RGitFlow::Config.options[:master]).checkout
|
24
|
-
@git.merge branch
|
27
|
+
@git.merge branch
|
28
|
+
|
29
|
+
begin
|
30
|
+
@git.commit_all msg
|
31
|
+
rescue
|
32
|
+
status 'master branch is up-to-date'
|
33
|
+
end
|
25
34
|
|
26
35
|
@git.push
|
27
36
|
if @git.is_remote_branch? branch
|
28
|
-
@git.push('origin', branch, {:delete => true})
|
37
|
+
@git.push('origin', branch, { :delete => true })
|
29
38
|
end
|
30
39
|
|
31
40
|
@git.branch(branch).delete
|
@@ -22,10 +22,29 @@ module RGitFlow
|
|
22
22
|
abort
|
23
23
|
end
|
24
24
|
|
25
|
+
msg = %Q(merging #{branch} into #{RGitFlow::Config.options[:develop]})
|
26
|
+
|
27
|
+
@git.branch(RGitFlow::Config.options[:develop]).checkout
|
28
|
+
@git.merge branch
|
29
|
+
|
30
|
+
begin
|
31
|
+
@git.commit_all msg
|
32
|
+
rescue
|
33
|
+
status 'develop branch is up-to-date'
|
34
|
+
end
|
35
|
+
|
36
|
+
@git.push
|
37
|
+
|
25
38
|
msg = %Q(merging #{branch} into #{RGitFlow::Config.options[:master]})
|
26
39
|
|
27
40
|
@git.branch(RGitFlow::Config.options[:master]).checkout
|
28
|
-
@git.merge branch
|
41
|
+
@git.merge branch
|
42
|
+
|
43
|
+
begin
|
44
|
+
@git.commit_all msg
|
45
|
+
rescue
|
46
|
+
status 'master branch is up-to-date'
|
47
|
+
end
|
29
48
|
|
30
49
|
invoke 'rgitflow:scm:tag'
|
31
50
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require 'rgitflow/tasks/task'
|
1
|
+
require 'rgitflow/tasks/scm/task'
|
2
2
|
|
3
3
|
module RGitFlow
|
4
4
|
module Tasks
|
5
5
|
class SCM
|
6
|
-
class Status < RGitFlow::Tasks::Task
|
6
|
+
class Status < RGitFlow::Tasks::SCM::Task
|
7
7
|
def initialize(git)
|
8
|
-
super(git, 'status', 'Check the status of the repository'
|
8
|
+
super(git, 'status', 'Check the status of the repository')
|
9
9
|
end
|
10
10
|
|
11
11
|
protected
|
@@ -17,38 +17,8 @@ module RGitFlow
|
|
17
17
|
print_status
|
18
18
|
|
19
19
|
abort
|
20
|
-
else
|
21
|
-
status 'There are no uncommitted changes in the repository.'
|
22
20
|
end
|
23
|
-
|
24
|
-
|
25
|
-
def dirty?
|
26
|
-
@git.diff.size > 0
|
27
|
-
end
|
28
|
-
|
29
|
-
def print_status
|
30
|
-
added = []
|
31
|
-
modified = []
|
32
|
-
deleted = []
|
33
|
-
|
34
|
-
@git.diff.each { |f|
|
35
|
-
if f.type == 'new'
|
36
|
-
added << f
|
37
|
-
elsif f.type == 'modified'
|
38
|
-
modified << f
|
39
|
-
elsif f.type == 'deleted'
|
40
|
-
deleted << f
|
41
|
-
end
|
42
|
-
}
|
43
|
-
|
44
|
-
debug 'added'
|
45
|
-
added.each { |f| debug " #{ANSI::Constants::GREEN}#{ANSI::Constants::BRIGHT}#{f.path}#{ANSI::Constants::CLEAR}" }
|
46
|
-
|
47
|
-
debug 'modified'
|
48
|
-
modified.each { |f| debug " #{ANSI::Constants::YELLOW}#{ANSI::Constants::BRIGHT}#{f.path}#{ANSI::Constants::CLEAR}" }
|
49
|
-
|
50
|
-
debug 'deleted'
|
51
|
-
deleted.each { |f| debug " #{ANSI::Constants::RED}#{ANSI::Constants::BRIGHT}#{f.path}#{ANSI::Constants::CLEAR}" }
|
21
|
+
status 'There are no uncommitted changes in the repository.'
|
52
22
|
end
|
53
23
|
end
|
54
24
|
end
|
@@ -1,12 +1,11 @@
|
|
1
|
-
require 'rgitflow/tasks/task'
|
1
|
+
require 'rgitflow/tasks/scm/task'
|
2
2
|
|
3
3
|
module RGitFlow
|
4
4
|
module Tasks
|
5
5
|
class SCM
|
6
|
-
class Tag < RGitFlow::Tasks::Task
|
6
|
+
class Tag < RGitFlow::Tasks::SCM::Task
|
7
7
|
def initialize(git)
|
8
|
-
super(git, 'tag', 'Tags the repository'
|
9
|
-
['rgitflow', 'scm'])
|
8
|
+
super(git, 'tag', 'Tags the repository')
|
10
9
|
end
|
11
10
|
|
12
11
|
protected
|
@@ -19,9 +18,8 @@ module RGitFlow
|
|
19
18
|
print_status
|
20
19
|
|
21
20
|
abort
|
22
|
-
else
|
23
|
-
status 'There are no uncommitted changes in the repository.'
|
24
21
|
end
|
22
|
+
status 'There are no uncommitted changes in the repository.'
|
25
23
|
tag = ENV['TAG'] || ("#{RGitFlow::Config.options[:tag]}" %
|
26
24
|
RGitFlow::VERSION.to_s)
|
27
25
|
unless @git.tags.select { |t| t.name == tag }.length == 0
|
@@ -34,41 +32,6 @@ module RGitFlow
|
|
34
32
|
|
35
33
|
status 'Successfully created tag!'
|
36
34
|
end
|
37
|
-
|
38
|
-
def dirty?
|
39
|
-
@git.diff.size > 0
|
40
|
-
end
|
41
|
-
|
42
|
-
def print_status
|
43
|
-
added = []
|
44
|
-
modified = []
|
45
|
-
deleted = []
|
46
|
-
|
47
|
-
@git.diff.each { |f|
|
48
|
-
if f.type == 'new'
|
49
|
-
added << f
|
50
|
-
elsif f.type == 'modified'
|
51
|
-
modified << f
|
52
|
-
elsif f.type == 'deleted'
|
53
|
-
deleted << f
|
54
|
-
end
|
55
|
-
}
|
56
|
-
|
57
|
-
debug 'added'
|
58
|
-
msg = %Q(#{ANSI::Constants::GREEN}#{ANSI::Constants::BRIGHT}
|
59
|
-
#{f.path}#{ANSI::Constants::CLEAR})
|
60
|
-
added.each { |f| debug " #{msg}" }
|
61
|
-
|
62
|
-
debug 'modified'
|
63
|
-
msg = %Q(#{ANSI::Constants::YELLOW}#{ANSI::Constants::BRIGHT}
|
64
|
-
#{f.path}#{ANSI::Constants::CLEAR})
|
65
|
-
modified.each { |f| debug " #{msg}" }
|
66
|
-
|
67
|
-
debug 'deleted'
|
68
|
-
msg = %Q(#{ANSI::Constants::RED}#{ANSI::Constants::BRIGHT}
|
69
|
-
#{f.path}#{ANSI::Constants::CLEAR})
|
70
|
-
deleted.each { |f| debug " #{msg}" }
|
71
|
-
end
|
72
35
|
end
|
73
36
|
end
|
74
37
|
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rgitflow/tasks/task'
|
2
|
+
|
3
|
+
module RGitFlow
|
4
|
+
module Tasks
|
5
|
+
class SCM
|
6
|
+
class Task < RGitFlow::Tasks::Task
|
7
|
+
def initialize(git, name, description, namespaces=['rgitflow', 'scm'],
|
8
|
+
dependencies=[])
|
9
|
+
super(git, name, description, namespaces, dependencies)
|
10
|
+
end
|
11
|
+
|
12
|
+
def dirty?
|
13
|
+
@git.diff.size > 0
|
14
|
+
end
|
15
|
+
|
16
|
+
def print_status
|
17
|
+
added = []
|
18
|
+
modified = []
|
19
|
+
deleted = []
|
20
|
+
|
21
|
+
@git.diff.each { |f|
|
22
|
+
if f.type == 'new'
|
23
|
+
added << f
|
24
|
+
elsif f.type == 'modified'
|
25
|
+
modified << f
|
26
|
+
elsif f.type == 'deleted'
|
27
|
+
deleted << f
|
28
|
+
end
|
29
|
+
}
|
30
|
+
|
31
|
+
debug 'added'
|
32
|
+
added.each { |f|
|
33
|
+
debug " #{ANSI::Constants::GREEN}#{ANSI::Constants::BRIGHT}"\
|
34
|
+
"#{f.path}#{ANSI::Constants::CLEAR}"
|
35
|
+
}
|
36
|
+
|
37
|
+
debug 'modified'
|
38
|
+
modified.each { |f|
|
39
|
+
debug " #{ANSI::Constants::YELLOW}#{ANSI::Constants::BRIGHT}"\
|
40
|
+
"#{f.path}#{ANSI::Constants::CLEAR}"
|
41
|
+
}
|
42
|
+
|
43
|
+
debug 'deleted'
|
44
|
+
deleted.each { |f|
|
45
|
+
debug " #{ANSI::Constants::RED}#{ANSI::Constants::BRIGHT}"\
|
46
|
+
"#{f.path}#{ANSI::Constants::CLEAR}"
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/rgitflow/version.rb
CHANGED
data/rgitflow.gemspec
CHANGED
@@ -6,7 +6,6 @@ require 'rgitflow/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "rgitflow"
|
8
8
|
spec.version = RGitFlow::VERSION
|
9
|
-
spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if !ENV['TRAVIS_BRANCH'].nil? and ENV['TRAVIS_BRANCH'] != 'master'
|
10
9
|
spec.authors = ["Richard Harrah"]
|
11
10
|
spec.email = ["topplethenunnery@gmail.com"]
|
12
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgitflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Harrah
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/rgitflow/tasks/release/tasks.rb
|
184
184
|
- lib/rgitflow/tasks/scm/status.rb
|
185
185
|
- lib/rgitflow/tasks/scm/tag.rb
|
186
|
+
- lib/rgitflow/tasks/scm/task.rb
|
186
187
|
- lib/rgitflow/tasks/scm/tasks.rb
|
187
188
|
- lib/rgitflow/tasks/task.rb
|
188
189
|
- lib/rgitflow/version.rb
|
@@ -204,9 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
205
|
version: '0'
|
205
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
207
|
requirements:
|
207
|
-
- - ! '
|
208
|
+
- - ! '>='
|
208
209
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
210
|
+
version: '0'
|
210
211
|
requirements: []
|
211
212
|
rubyforge_project:
|
212
213
|
rubygems_version: 2.4.5
|