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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f0a1666491db66d69457e5f830d57f77faf585cb9a750a0eb08a7497326f20
4
- data.tar.gz: d714cd05d486cc787c4a256419b1e167297142fc0dfdc768dfe5ece279461548
3
+ metadata.gz: cd7588cabd79d1600fe22d108924c2c63ebee976846daeec841abe7a185273df
4
+ data.tar.gz: f1be9dbb4d8a13c06c964e463d0af6e928c1603776868b3fc055c6e2ac7bbdae
5
5
  SHA512:
6
- metadata.gz: 6a10f3de3742cd199a96a0598846173df71c7db0260d8a909fd33e064ee445d6679fdab94053806c6f723f3335f1f42bb9c440ddc521470e0ea89f9de1b53105
7
- data.tar.gz: ddaf7ce312ed066a51a3419a4459c478c0baa8f430789f189578ce96658cf16b3a8677c6c6b5667e874555ee769b9240430eee7000e370181616c62e57f5c2f6
6
+ metadata.gz: bd50591da0153b4f89193da820dcc471e6aff6e032ca7f9504cb6478dc7abc777ccca2b3da10e59c167d8c28bc25eeeae669c82df13b61f00dd5a617094d6a25
7
+ data.tar.gz: c5ca9b24aee9cc0238bc3051173585aff37b019fa8f808dae79161342e71dfd519cf4f1edc1cdf7d92e76c79a7691bfb9a07433101249c051b92cba27114f749
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_archetype (1.4.1)
4
+ app_archetype (1.4.2)
5
5
  cli-format
6
6
  hashie
7
7
  highline
@@ -2,5 +2,5 @@ module AppArchetype
2
2
  ##
3
3
  # AppArchetype version
4
4
  #
5
- VERSION = '1.4.1'.freeze
5
+ VERSION = '1.4.2'.freeze
6
6
  end
@@ -7,8 +7,9 @@ class String
7
7
  #
8
8
  # @return [String]
9
9
  #
10
- def snake_case
11
- helper.snake_case(self)
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
- helper.dash_case(self)
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
- helper.camel_case(self)
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
- helper.pluralize(self)
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
- helper.singularize(self)
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
- helper.randomize(self, size.to_s)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_archetype
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Bigger