mcrt 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mcrt.rb +4 -4
- data/mcrt.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c237534da1768b9ac1a58779b3894da7d00daf2c
|
4
|
+
data.tar.gz: cb368c543e801220b3d7d5a7df3a028ae474a18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4af0be75cc3e7bddbbb5731c29c94b23fb9e0da3282202a9a328af9b950be5ec960c5c9f1d0c77fbde9dcc301e19d22b7d9cf4729e5bb2958ae8b0a6fba7e074
|
7
|
+
data.tar.gz: 64cff328c52d1bd4d39650357ef756b64b87aa2b02c9205aeca0de59e0ed90391d85a6f4b4427268b4afb4cd6d940a4193d29868bfedcfefccefbabbda6d3619
|
data/lib/mcrt.rb
CHANGED
@@ -12,17 +12,17 @@ class MavenCentralReleaseTool
|
|
12
12
|
profile_name = options[:profile_name] || (raise ':profile_name not specified when defining tasks')
|
13
13
|
username = options[:username] || (raise ':username name not specified when defining tasks')
|
14
14
|
password = options[:password] || ENV['MAVEN_CENTRAL_PASSWORD'] || (raise "Unable to locate environment variable with name 'MAVEN_CENTRAL_PASSWORD'")
|
15
|
-
|
15
|
+
MavenCentralReleaseTool.buildr_release(project, profile_name, username, password)
|
16
16
|
end
|
17
17
|
|
18
18
|
desc 'Publish release to maven central iff current HEAD is a tag'
|
19
19
|
task 'mcrt:publish_if_tagged' do
|
20
|
-
tag =
|
20
|
+
tag = MavenCentralReleaseTool.get_head_tag_if_any
|
21
21
|
if tag.nil?
|
22
22
|
puts 'Current HEAD is not a tag. Skipping publish step.'
|
23
23
|
else
|
24
24
|
puts "Current HEAD is a tag: #{tag}"
|
25
|
-
if
|
25
|
+
if MavenCentralReleaseTool.is_tag_on_candidate_branches?(tag, candidate_branches)
|
26
26
|
task('mcrt:publish').invoke
|
27
27
|
end
|
28
28
|
end
|
@@ -72,7 +72,7 @@ class MavenCentralReleaseTool
|
|
72
72
|
|
73
73
|
project.task(':upload').invoke
|
74
74
|
|
75
|
-
r =
|
75
|
+
r = MavenCentralReleaseTool.new
|
76
76
|
r.username = username
|
77
77
|
r.password = password
|
78
78
|
r.user_agent = "Buildr-#{Buildr::VERSION}"
|
data/mcrt.gemspec
CHANGED