outreach_gem 1.0.62 → 1.0.64
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 +4 -4
- data/lib/release/release-ruby.rb +22 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 583dff6caf5e5700c26a3766da985bd101e81dfe13ebae98bf93924a91d37d9a
|
|
4
|
+
data.tar.gz: a447fcad60f655a2a10ea121edad7c6b9082f85a0a55e19e1a0a8d11a7455907
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4a529882416d94d0bd19ce7e219d2a633109ca9572967c594d4d0dd33ffa3f7fac5a104c74c0758dfc241a61853861ba5b41313342710c275cfc69f7c7a1a7b
|
|
7
|
+
data.tar.gz: 9a956842d3b53f63689e8c1aad159b766071124e2f36edac565a9645116c68199c2ef00cf7c7626963ca33f53d014777f13e4f8449142e705f121c758122656e
|
data/lib/release/release-ruby.rb
CHANGED
|
@@ -30,46 +30,68 @@ class Release
|
|
|
30
30
|
}
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Remove the word -SNAPSHOT from a string
|
|
34
|
+
# @param version [String] remove the word SNAPSHOT from the version string
|
|
35
|
+
# @return [String] String without the word -SNAPSHOT
|
|
33
36
|
def self.removeSnapshot(version)
|
|
34
37
|
return version.sub('-SNAPSHOT', '')
|
|
35
38
|
end
|
|
36
39
|
|
|
40
|
+
# Get the maven version of a project, must have maven 3.x or higher installed
|
|
41
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
42
|
+
# @param newVersion [String] Change the maven project version to the newVersion
|
|
37
43
|
def self.mavenVersion(projectLocation, newVersion)
|
|
38
44
|
Dir.chdir(projectLocation){
|
|
39
45
|
`mvn versions:set -DnewVersion=#{newVersion} -DgenerateBackupPoms=false`
|
|
40
46
|
}
|
|
41
47
|
end
|
|
42
48
|
|
|
49
|
+
# Perform a merge operation between two branches
|
|
50
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
51
|
+
# @param branch [String] The branch you would like to merge into your project
|
|
43
52
|
def self.gitMerge(projectLocation, branch)
|
|
44
53
|
Dir.chdir(projectLocation) {
|
|
45
54
|
`git merge #{branch}`
|
|
46
55
|
}
|
|
47
56
|
end
|
|
48
57
|
|
|
58
|
+
# Perform a checkout operation on a repository
|
|
59
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
60
|
+
# @param branch [String] The branch you would like to checkout
|
|
49
61
|
def self.gitCheckout(projectLocation, branch)
|
|
50
62
|
Dir.chdir(projectLocation) {
|
|
51
63
|
`git checkout #{branch}`
|
|
52
64
|
}
|
|
53
65
|
end
|
|
54
66
|
|
|
67
|
+
# Perform a add . operation on a repository
|
|
68
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
55
69
|
def self.gitAddAll(projectLocation)
|
|
56
70
|
Dir.chdir(projectLocation) {
|
|
57
71
|
`git add .`
|
|
58
72
|
}
|
|
59
73
|
end
|
|
60
74
|
|
|
75
|
+
# Perform a commit operation on a repository
|
|
76
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
77
|
+
# @param commitMessage [String] The message to add to the Git commit
|
|
61
78
|
def self.gitCommit(projectLocation, commitMessage)
|
|
62
79
|
Dir.chdir(projectLocation) {
|
|
63
80
|
`git commit -m "#{commitMessage}"`
|
|
64
81
|
}
|
|
65
82
|
end
|
|
66
83
|
|
|
84
|
+
# Perform a push operation on a repository
|
|
85
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
67
86
|
def self.gitPush(projectLocation)
|
|
68
87
|
Dir.chdir(projectLocation) {
|
|
69
88
|
`git push origin`
|
|
70
89
|
}
|
|
71
90
|
end
|
|
72
91
|
|
|
92
|
+
# Perform a tag operation on a repository
|
|
93
|
+
# @param projectLocation [String] Change directories to the projectLocation location
|
|
94
|
+
# @param tagName [String] The name of the tag to apply
|
|
73
95
|
def self.gitTag(projectLocation, tagName)
|
|
74
96
|
Dir.chdir(projectLocation) {
|
|
75
97
|
`git tag #{tagName}`
|