cartup 0.1.7 → 0.1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/CartBinaryUploader/version.rb +1 -1
- data/lib/git_helper.rb +22 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf97736e1e2ec336438ccf1d72a783814f17e5f7
|
4
|
+
data.tar.gz: 9abbec7ebac6a0e92a2fcf68532a9904b45c1ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf763ead52ba72c9f017cf28679b752b628fb4933cdb9d280ea1ccc174eec985b64e2d967b943d8e08b59a0a310c4bf1e52728a71f7531e4030701e8b4f9311b
|
7
|
+
data.tar.gz: 4aa29649794acbb58b9fe6ca523bf0acd653787ec82c76b72d477e5ca47e18b7e9a049a5086add65bb8875f5538c49584b6d5a5bfd5c09d465a18c6038b84c27
|
data/Gemfile.lock
CHANGED
data/lib/git_helper.rb
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
require 'cart_logger'
|
2
2
|
|
3
|
-
|
3
|
+
module CartBinaryUploader
|
4
|
+
class GitHelper
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
def tag_to(version)
|
7
|
+
CartLogger.log_info "Tagging version to: #{version}"
|
8
|
+
begin
|
9
|
+
cmd = "git tag -f #{version}"
|
10
|
+
exec(cmd)
|
11
|
+
CartLogger.log_info 'Version tagged'
|
12
|
+
rescue
|
13
|
+
CartLogger.log_error 'Problem to generate tag on git'
|
14
|
+
end
|
13
15
|
end
|
14
|
-
end
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
def push
|
18
|
+
CartLogger.log_info 'Pushing tag to Git '
|
19
|
+
begin
|
20
|
+
cmd = 'git push --tags'
|
21
|
+
exec( cmd )
|
22
|
+
CartLogger.log_info 'Tag pushed'
|
23
|
+
rescue
|
24
|
+
CartLogger.log_error 'Problem to push tag on git'
|
25
|
+
end
|
25
26
|
|
27
|
+
end
|
26
28
|
end
|
27
|
-
|
28
|
-
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.7
|
4
|
+
version: 0.1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Mendes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|