site_hook 1.0.22 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_hook/string_ext.rb +5 -5
- data/lib/site_hook/version.rb +1 -1
- 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: 86db2c8ef6522cda769025473c4705486958789da1aabef6df3df08a7a0242c4
|
4
|
+
data.tar.gz: bd598f69f4af4bf9ff105f2d5d740319039af195f480fe7541509daca8c83b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aad4121ff9eeda580fb0c0ab1a89610b20bbde75c5bc69ff55f3a7107b6e5dc8a2fa3d6cc509842f0fe7c71b0f8363175b973f8132d5a89c3ebf25f55543a12
|
7
|
+
data.tar.gz: 280b939999486e2bd6dd00062a54fd97ebfb8794b979b7a2818e80e6825cc1b677a3b72e57643a90624a81b67aeee4897e9c6fee309e35f8b617fc4b75d22bad
|
data/lib/site_hook/string_ext.rb
CHANGED
@@ -38,20 +38,20 @@ end
|
|
38
38
|
module SiteHook
|
39
39
|
module StrExt
|
40
40
|
def StrExt.mkvar(inspection)
|
41
|
-
inspection.to_s.tr('.', '_').tr(' ', '_')
|
41
|
+
inspection.dup.to_s.tr('.', '_').tr(' ', '_')
|
42
42
|
end
|
43
43
|
def StrExt.mkatvar(inspection)
|
44
44
|
inspection.dup.to_s.insert(0, '@').to_sym
|
45
45
|
end
|
46
46
|
def StrExt.mkatatvar(inspection)
|
47
|
-
inspection.to_s.insert(0, '@').insert(0, '@').to_sym
|
47
|
+
inspection.dup.to_s.insert(0, '@').insert(0, '@').to_sym
|
48
48
|
end
|
49
49
|
def StrExt.rematvar(inspection)
|
50
|
-
inspection.to_s.tr('@', '')
|
50
|
+
inspection.dup.to_s.tr('@', '')
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.mkmvar(inspection)
|
54
|
-
inspection.to_s.tr('@', '').to_sym
|
54
|
+
inspection.dup.to_s.tr('@', '').to_sym
|
55
55
|
end
|
56
56
|
end
|
57
|
-
end
|
57
|
+
end
|
data/lib/site_hook/version.rb
CHANGED