skeleton-ui 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skeleton/base.rb +11 -3
- data/lib/skeleton/version.rb +1 -1
- 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: b8e930dd05e6074689110df5bff385366e8c0d08b413b2b8e969caf8d5ff1c27
|
4
|
+
data.tar.gz: 713fbc8b1a8c40c1dc306edf483144231ec9ea5cb9953ddc2a0cbc2a9fca277c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4369d405afa137fc1e6be6d115d17bc4ee9e61654d60e25374bc857b2abeb130e1ba7540678bb3c4c8d8189cafd4ace65b4236827bf2458ae2a6f760c4e5105c
|
7
|
+
data.tar.gz: 5e7f1fe493a271dfe245da09e16e5f649e25aa01c0807e6153048b41aec4bced318a1f9f1fcb44847148ce63f5e903234838c2df08b4bbe496294458a7e5194f
|
data/lib/skeleton/base.rb
CHANGED
@@ -59,14 +59,22 @@ class Base
|
|
59
59
|
|
60
60
|
def camel_style(method_name)
|
61
61
|
space_i = 0
|
62
|
-
method_name[0] = method_name[0].downcase
|
63
62
|
method_name.each_char.with_index do |char, char_i|
|
64
63
|
if /[ -!@#$%^&*()_+|~=`{}\[\]:";'<>?,.\/]/.match(char)
|
65
64
|
method_name[char_i - space_i] = ''
|
66
|
-
|
67
|
-
|
65
|
+
unless method_name[char_i - space_i].nil?
|
66
|
+
method_name[char_i - space_i] =
|
67
|
+
method_name[char_i - space_i].capitalize
|
68
|
+
space_i += 1
|
69
|
+
end
|
68
70
|
end
|
69
71
|
end
|
72
|
+
if method_name == method_name.upcase
|
73
|
+
method_name.downcase
|
74
|
+
else
|
75
|
+
method_name[0] = method_name[0].downcase
|
76
|
+
method_name
|
77
|
+
end
|
70
78
|
end
|
71
79
|
|
72
80
|
def increment_locator_id
|
data/lib/skeleton/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skeleton-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a.alterpesotskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|