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.
- checksums.yaml +4 -4
- data/lib/release/release-ruby.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd12e16d762213bb1194dacb26c1ca9929f351bffb286fae9636a211f2662954
|
|
4
|
+
data.tar.gz: 5cb1c1ab7b17eb61033714fd2c163ccf26ef9c7c5704e8da333ec7848fd30e9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50859de733c2ed8f9cb46eba01b467ecb6c250f35cdeaa7d8bd571624fc397a61af548d955c6b0f361cb9dadff289e6783996789dd65edb1908dfa372c99ee8f
|
|
7
|
+
data.tar.gz: c9417f1da849e8179b711caf71052b3688a74de8605893168c90eceb28adec990bc9bf33161cc06cfaa07380311d2b62ed9fa3f014fac1aff84ee53605239072
|
data/lib/release/release-ruby.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2019-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: patrique.legault@uottawa.ca
|