outreach_gem 1.0.0 → 1.0.1
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/helpers/helpers.rb +4 -7
- data/lib/outreach_gem.rb +6 -0
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4741f07b9a43e2738016c30794bf00f138d0b15a227990e3974711e538a7784d
|
|
4
|
+
data.tar.gz: f8ba8de10cd74e6e7f88b5ebc1b4630bd60cca1a73533cc4e0892a58f303d0c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f26ca9d162f4f17ef38c871fcb45c5393e7afb9d22041c0782f55db25e1045b0bb39b8ff05e03fffedfd0e6cd4c9df8ab1ea80366c899b24ffd9ff9eb52e843c
|
|
7
|
+
data.tar.gz: 1e2ed2c4e069cf21380ec927d16b66a3bf210b743e083b010c72e78f39cb28126b68ad7e6bfe58786fe9d0909f07ece6d9d99843957a556bb0157d4f45d472db
|
data/lib/helpers/helpers.rb
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
class Helpers
|
|
2
2
|
|
|
3
|
-
def
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
def getLastCharacter(string)
|
|
3
|
+
def self.getLastCharacter(string)
|
|
7
4
|
raise TypeError unless string.is_a? String
|
|
8
5
|
return string[-1]
|
|
9
6
|
end
|
|
10
7
|
|
|
11
|
-
def removeLastCharacterIf(string, character)
|
|
8
|
+
def self.removeLastCharacterIf(string, character)
|
|
12
9
|
raise TypeError unless character.is_a? String
|
|
13
10
|
|
|
14
11
|
string = string.chomp(character)
|
|
15
12
|
return string
|
|
16
13
|
end
|
|
17
14
|
|
|
18
|
-
def removeMultipleLastCharacterIf(string, characters)
|
|
15
|
+
def self.removeMultipleLastCharacterIf(string, characters)
|
|
19
16
|
raise TypeError unless characters.is_a? Array
|
|
20
17
|
|
|
21
18
|
characters.each { |i|
|
|
@@ -25,7 +22,7 @@ class Helpers
|
|
|
25
22
|
return string
|
|
26
23
|
end
|
|
27
24
|
|
|
28
|
-
def replaceAllCharacter(string, pattern, replacement)
|
|
25
|
+
def self.replaceAllCharacter(string, pattern, replacement)
|
|
29
26
|
raise TypeError unless string.is_a? String
|
|
30
27
|
raise TypeError unless pattern.is_a? String
|
|
31
28
|
raise TypeError unless replacement.is_a? String
|
data/lib/outreach_gem.rb
ADDED
metadata
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
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.1
|
|
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-
|
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
|
-
email:
|
|
14
|
+
email: patrique.legault@uottawa.ca
|
|
15
15
|
executables: []
|
|
16
16
|
extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/helpers/helpers.rb
|
|
20
|
+
- lib/outreach_gem.rb
|
|
20
21
|
- lib/rest-client/restfulclient.rb
|
|
21
22
|
- lib/rest-client/resttype.rb
|
|
22
23
|
homepage: https://github.com/AES-Outreach/Outreach-Ruby-Gems
|
|
23
|
-
licenses:
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
24
26
|
metadata:
|
|
25
27
|
allowed_push_host: https://rubygems.org
|
|
26
28
|
post_install_message:
|
|
@@ -38,9 +40,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
38
40
|
- !ruby/object:Gem::Version
|
|
39
41
|
version: '0'
|
|
40
42
|
requirements: []
|
|
41
|
-
|
|
42
|
-
rubygems_version: 2.7.6.2
|
|
43
|
+
rubygems_version: 3.0.3
|
|
43
44
|
signing_key:
|
|
44
45
|
specification_version: 4
|
|
45
|
-
summary: outreach_gem is
|
|
46
|
+
summary: outreach_gem is a utility used at Outreach in order to manage deployments
|
|
47
|
+
and builds
|
|
46
48
|
test_files: []
|