sendyr 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sendyr/client.rb +8 -10
- data/lib/sendyr/version.rb +1 -1
- metadata +2 -2
data/lib/sendyr/client.rb
CHANGED
@@ -137,16 +137,14 @@ module Sendyr
|
|
137
137
|
value.nil? ? false : value
|
138
138
|
end
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
word
|
149
|
-
end
|
140
|
+
def underscore(word)
|
141
|
+
word.gsub(/::/, '/').
|
142
|
+
gsub(/\s/, '_').
|
143
|
+
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
144
|
+
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
145
|
+
tr("-", "_").
|
146
|
+
downcase
|
147
|
+
end
|
150
148
|
|
151
149
|
def noop
|
152
150
|
:noop
|
data/lib/sendyr/version.rb
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: sendyr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Carl Mercier
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|