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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/release/release-ruby.rb +22 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b2db4ddc7c1e2a1bf76bbc52eafd4a507af30f9bb5758c64809033dbaa6f3ec
4
- data.tar.gz: 657130bb74db470e8211b74a7c80d661a2bf2056a2adf658a21a0db6a0e80279
3
+ metadata.gz: 583dff6caf5e5700c26a3766da985bd101e81dfe13ebae98bf93924a91d37d9a
4
+ data.tar.gz: a447fcad60f655a2a10ea121edad7c6b9082f85a0a55e19e1a0a8d11a7455907
5
5
  SHA512:
6
- metadata.gz: '0931e9151072b9e1d05156a914225e644dc1f9d2f5d738ad61a007caccecb3ddb520a2b346b827a770b3be7de7aabd5e019b8e6bfe0b3ffbd31a11e5447879ce'
7
- data.tar.gz: 54744a18ef6b061c0cfb29e285727e4e82269fdc14d916d09f95364ad358d2606124b976fee940a7582a150b826c8805922fc6633842e8c80901c42cf2288bc5
6
+ metadata.gz: a4a529882416d94d0bd19ce7e219d2a633109ca9572967c594d4d0dd33ffa3f7fac5a104c74c0758dfc241a61853861ba5b41313342710c275cfc69f7c7a1a7b
7
+ data.tar.gz: 9a956842d3b53f63689e8c1aad159b766071124e2f36edac565a9645116c68199c2ef00cf7c7626963ca33f53d014777f13e4f8449142e705f121c758122656e
@@ -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}`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outreach_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.62
4
+ version: 1.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrique Legault