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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9596dca337705a799dda4d6536bd2c35b9a218eec53feed0c003168da8d7a3b4
4
- data.tar.gz: 44213fdd53bf4e2d4f7392036ebd43a99918654a1e2bba9c9687e958e8abf7d5
3
+ metadata.gz: b8e930dd05e6074689110df5bff385366e8c0d08b413b2b8e969caf8d5ff1c27
4
+ data.tar.gz: 713fbc8b1a8c40c1dc306edf483144231ec9ea5cb9953ddc2a0cbc2a9fca277c
5
5
  SHA512:
6
- metadata.gz: 659f23915b0a111a20bf61b4c6ee406e068b88f0a3132a12478ca224b9fa4dae1e56a85559fcb83805747e81e3b709fb37623b8585370fa1bd83e6a0bb507a11
7
- data.tar.gz: 26a20a7c75f94cb2d75e51d4c8a7a0bf7074a86bd965b19eee1205a1754c54e04bb20f9bccff4391e1bdd0dde86a265f7b6252e290c4dbd56a5004e262e7d176
6
+ metadata.gz: 4369d405afa137fc1e6be6d115d17bc4ee9e61654d60e25374bc857b2abeb130e1ba7540678bb3c4c8d8189cafd4ace65b4236827bf2458ae2a6f760c4e5105c
7
+ data.tar.gz: 5e7f1fe493a271dfe245da09e16e5f649e25aa01c0807e6153048b41aec4bced318a1f9f1fcb44847148ce63f5e903234838c2df08b4bbe496294458a7e5194f
@@ -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
- method_name[char_i - space_i] = method_name[char_i - space_i].capitalize
67
- space_i += 1
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
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  GEM_NAME = 'skeleton-ui'
4
4
  end
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.10
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-16 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler