gitscape 1.6.2 → 1.6.3
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/bin/gitscape +1 -9
- data/lib/gitscape/base.rb +6 -0
- data/lib/gitscape/version.rb +1 -1
- metadata +49 -36
data/bin/gitscape
CHANGED
@@ -48,17 +48,9 @@ op = OptionParser.new do |op|
|
|
48
48
|
options[:update_env] = bool
|
49
49
|
end
|
50
50
|
|
51
|
-
op.on '-e
|
51
|
+
op.on '-e', '--env-depth=ENV', [:staging, :qa, :live], 'The level of environments to push changes to' do |depth|
|
52
52
|
options[:env_depth] = depth
|
53
53
|
end
|
54
|
-
|
55
|
-
op.on '--qa', 'Sets the environment depth for the command to qa. This is equivalent to "--env-depth=qa".' do
|
56
|
-
options[:env_depth] = :qa
|
57
|
-
end
|
58
|
-
|
59
|
-
op.on '--live', 'Sets the environment depth for the command to live. This is equivalent to "--env-depth=live".' do
|
60
|
-
options[:env_depth] = :live
|
61
|
-
end
|
62
54
|
end
|
63
55
|
|
64
56
|
op.parse!(ARGV)
|
data/lib/gitscape/base.rb
CHANGED
@@ -78,6 +78,9 @@ class Gitscape::Base
|
|
78
78
|
# option defaults
|
79
79
|
options[:push] = false if options[:push].nil?
|
80
80
|
|
81
|
+
# Check that the working copy is clean
|
82
|
+
exit 1 unless git_working_copy_is_clean
|
83
|
+
|
81
84
|
puts `git checkout live`
|
82
85
|
puts `git pull origin`
|
83
86
|
|
@@ -99,6 +102,9 @@ class Gitscape::Base
|
|
99
102
|
options[:push] = true if options[:push].nil?
|
100
103
|
options[:update_env] = false if options[:update_env].nil?
|
101
104
|
|
105
|
+
# Check that the working copy is clean
|
106
|
+
exit 1 unless git_working_copy_is_clean
|
107
|
+
|
102
108
|
usage_string = "expected usage: hotfix_finish [<hotfix_branch>]
|
103
109
|
hotfix_branch: the name of the hotfix branch to finish.
|
104
110
|
if ommitted, you must currently be on a hotfix branch"
|
data/lib/gitscape/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,47 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitscape
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 6
|
8
|
+
- 3
|
9
|
+
version: 1.6.3
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Jon Botelho
|
9
13
|
- Xavier Matos
|
10
14
|
autorequire:
|
11
15
|
bindir: bin
|
12
16
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
17
|
+
|
18
|
+
date: 2013-05-10 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: git
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.2.5
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
26
|
-
|
27
|
-
requirements:
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
28
26
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 5
|
30
32
|
version: 1.2.5
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
31
35
|
description: Various Git utilities for cherry-pick/rebase workflows.
|
32
|
-
email:
|
36
|
+
email:
|
33
37
|
- gitscape@eachscape.com
|
34
|
-
executables:
|
38
|
+
executables:
|
35
39
|
- gitscape
|
36
40
|
extensions: []
|
41
|
+
|
37
42
|
extra_rdoc_files: []
|
38
|
-
|
43
|
+
|
44
|
+
files:
|
39
45
|
- .gitignore
|
40
46
|
- Gemfile
|
41
47
|
- README.md
|
@@ -45,28 +51,35 @@ files:
|
|
45
51
|
- lib/gitscape.rb
|
46
52
|
- lib/gitscape/base.rb
|
47
53
|
- lib/gitscape/version.rb
|
54
|
+
has_rdoc: true
|
48
55
|
homepage: https://github.com/eachscape/gitscape
|
49
56
|
licenses: []
|
57
|
+
|
50
58
|
post_install_message:
|
51
59
|
rdoc_options: []
|
52
|
-
|
60
|
+
|
61
|
+
require_paths:
|
53
62
|
- lib
|
54
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
66
77
|
requirements: []
|
78
|
+
|
67
79
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.3.6
|
69
81
|
signing_key:
|
70
82
|
specification_version: 3
|
71
83
|
summary: Various Git utilities for cherry-pick/rebase workflows.
|
72
84
|
test_files: []
|
85
|
+
|