outreach_gem 1.0.67 → 1.0.71

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 +13 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f72dc1dff996479f5a0a725ea651a48102a58c16bbbb6377e9e509a54404d73
4
- data.tar.gz: 252281ca2bccdb707471f400392e4944d0f6dddccb0a6d3f87b29fdf407d0008
3
+ metadata.gz: cd12e16d762213bb1194dacb26c1ca9929f351bffb286fae9636a211f2662954
4
+ data.tar.gz: 5cb1c1ab7b17eb61033714fd2c163ccf26ef9c7c5704e8da333ec7848fd30e9e
5
5
  SHA512:
6
- metadata.gz: 7894c74041e00d3367661de5f5e63aafef6406f66c287610c8b453ce8457866f181182685ac4d27d264ab137677d23641d6b929c11fdff21b524a87cb8bacd82
7
- data.tar.gz: 03aaca9b98badd37c8d56320ad7a9846a622c48a4433ea31684d8081fc69a0589b9080697503ca4917e632f293cad7a7de8503750a7c141814adfa514b74fd93
6
+ metadata.gz: 50859de733c2ed8f9cb46eba01b467ecb6c250f35cdeaa7d8bd571624fc397a61af548d955c6b0f361cb9dadff289e6783996789dd65edb1908dfa372c99ee8f
7
+ data.tar.gz: c9417f1da849e8179b711caf71052b3688a74de8605893168c90eceb28adec990bc9bf33161cc06cfaa07380311d2b62ed9fa3f014fac1aff84ee53605239072
@@ -110,4 +110,17 @@ class Release
110
110
  new_contents = file.sub(from, to)
111
111
  return new_contents
112
112
  end
113
+
114
+ # http://icfun.blogspot.com/2008/07/ruby-use-variable-inside-regex.html
115
+ # This function will change the contents of a file.
116
+ # The function takes the text `from` and converts it `to`
117
+ # It then returns the file as a response
118
+ # @param file [File] A file to be changed
119
+ # @param from [Regex] A regex value to apply to the system
120
+ # @param to [String] The String value to change the from value too
121
+ # @result new_contents [File] The changed file
122
+ def self.changeVersionNumberGsub(file, from, to)
123
+ new_contents = file.gsub(from, to)
124
+ return new_contents
125
+ end
113
126
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outreach_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.67
4
+ version: 1.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrique Legault
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-07-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: patrique.legault@uottawa.ca