deploy_rubygem 0.60.5 → 0.60.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/deploy_rubygem/project.rb +0 -38
- data/lib/deploy_rubygem/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 333a7e12ad09ad46287654e3a183f5e936cfab06e18a022eb94e66f7d5fbbc6f
|
4
|
+
data.tar.gz: eb9866f85236652c2e1b1ecab159bbbac6dc46fd5ef603f9e768863c726a3aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '081d60caddc42d51026155a0f3237f10d778b75df42da69dbce12b01059754e42f971212bfc0766e56730c40f9c9542943b2ddd8fa0b515f9eb65b9b1e092264'
|
7
|
+
data.tar.gz: 7c6787e8345c15fe16884acaf22315222c319cb2fd43196ba727e1d497b31e5be297f5bc0dcd3e62d3c1f205b7c93b540c7998f2a16c48c926edcac1f3674dca
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -18,39 +18,6 @@ module DeployRubygem
|
|
18
18
|
@compliance_profile = Inspec.new(project_options[:compliance_profile])
|
19
19
|
end
|
20
20
|
|
21
|
-
# Wrapping GVB to fetch project version
|
22
|
-
class DeployVersion
|
23
|
-
attr_reader :path
|
24
|
-
|
25
|
-
def initialize(git_path)
|
26
|
-
@path = git_path
|
27
|
-
end
|
28
|
-
|
29
|
-
def execute_in_folder
|
30
|
-
current_folder = Dir.pwd
|
31
|
-
Dir.chdir path
|
32
|
-
get_gvb = yield if block_given?
|
33
|
-
Dir.chdir current_folder
|
34
|
-
get_gvb
|
35
|
-
end
|
36
|
-
|
37
|
-
def method_missing(method_name)
|
38
|
-
execute_in_folder { GVB.send(method_name) }
|
39
|
-
end
|
40
|
-
|
41
|
-
def respond_to_missing?(method_name)
|
42
|
-
GVB.methods.include?(method_name)
|
43
|
-
end
|
44
|
-
|
45
|
-
def patch_bump
|
46
|
-
execute_in_folder { system('git version-bump patch') }
|
47
|
-
end
|
48
|
-
|
49
|
-
def short_version
|
50
|
-
Gem::Version.new("#{major_version}.#{minor_version}.#{patch_version}")
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
21
|
def project_name
|
55
22
|
project_options[__method__]
|
56
23
|
end
|
@@ -112,10 +79,5 @@ module DeployRubygem
|
|
112
79
|
system("git commit -m 'Self validated for version #{GVB.version}'") || return
|
113
80
|
system('git push') || abort("Cannot push #{project_name} #{GVB.version}")
|
114
81
|
end
|
115
|
-
|
116
|
-
def gvb_version
|
117
|
-
@gvb_version ||= DeployVersion.new(path)
|
118
|
-
@gvb_version
|
119
|
-
end
|
120
82
|
end
|
121
83
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|