app_archetype 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/app_archetype/version.rb +1 -1
- data/lib/core_ext/string.rb +18 -12
- 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: cd7588cabd79d1600fe22d108924c2c63ebee976846daeec841abe7a185273df
|
4
|
+
data.tar.gz: f1be9dbb4d8a13c06c964e463d0af6e928c1603776868b3fc055c6e2ac7bbdae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd50591da0153b4f89193da820dcc471e6aff6e032ca7f9504cb6478dc7abc777ccca2b3da10e59c167d8c28bc25eeeae669c82df13b61f00dd5a617094d6a25
|
7
|
+
data.tar.gz: c5ca9b24aee9cc0238bc3051173585aff37b019fa8f808dae79161342e71dfd519cf4f1edc1cdf7d92e76c79a7691bfb9a07433101249c051b92cba27114f749
|
data/Gemfile.lock
CHANGED
data/lib/core_ext/string.rb
CHANGED
@@ -7,8 +7,9 @@ class String
|
|
7
7
|
#
|
8
8
|
# @return [String]
|
9
9
|
#
|
10
|
-
def snake_case
|
11
|
-
|
10
|
+
def snake_case(str = nil)
|
11
|
+
str ||= self
|
12
|
+
helper.snake_case(str)
|
12
13
|
end
|
13
14
|
|
14
15
|
##
|
@@ -16,8 +17,9 @@ class String
|
|
16
17
|
#
|
17
18
|
# @return [String]
|
18
19
|
#
|
19
|
-
def dash_case
|
20
|
-
|
20
|
+
def dash_case(str = nil)
|
21
|
+
str ||= self
|
22
|
+
helper.dash_case(str)
|
21
23
|
end
|
22
24
|
|
23
25
|
##
|
@@ -25,8 +27,9 @@ class String
|
|
25
27
|
#
|
26
28
|
# @return [String]
|
27
29
|
#
|
28
|
-
def camel_case
|
29
|
-
|
30
|
+
def camel_case(str = nil)
|
31
|
+
str ||= self
|
32
|
+
helper.camel_case(str)
|
30
33
|
end
|
31
34
|
|
32
35
|
##
|
@@ -34,8 +37,9 @@ class String
|
|
34
37
|
#
|
35
38
|
# @return [String]
|
36
39
|
#
|
37
|
-
def pluralize
|
38
|
-
|
40
|
+
def pluralize(str = nil)
|
41
|
+
str ||= self
|
42
|
+
helper.pluralize(str)
|
39
43
|
end
|
40
44
|
|
41
45
|
##
|
@@ -43,8 +47,9 @@ class String
|
|
43
47
|
#
|
44
48
|
# @return [String]
|
45
49
|
#
|
46
|
-
def singularize
|
47
|
-
|
50
|
+
def singularize(str = nil)
|
51
|
+
str ||= self
|
52
|
+
helper.singularize(str)
|
48
53
|
end
|
49
54
|
|
50
55
|
##
|
@@ -52,8 +57,9 @@ class String
|
|
52
57
|
#
|
53
58
|
# @return [String]
|
54
59
|
#
|
55
|
-
def randomize(size = 5)
|
56
|
-
|
60
|
+
def randomize(size = 5, str = nil)
|
61
|
+
str ||= self
|
62
|
+
helper.randomize(str, size.to_s)
|
57
63
|
end
|
58
64
|
|
59
65
|
private
|