yohoushi-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/yohoushi/client.rb +5 -1
- data/spec/support/helper.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c047bef08b8a6fa97efbd17467d4771a0b2aba
|
4
|
+
data.tar.gz: faa3d7f09cc7519c581a342900c13ebf826cb5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b5bc6aad7c0a125e47f0901d55945ea3968de6b23dea603db734cc9f3fe7138d895a8dbbf5bbefa305adbe5776caeb4c665f8259becb14835af8bf79445696d
|
7
|
+
data.tar.gz: bc45269c1e2143ebeca864b49ea0a387825959f03546f0cd4051bde8d57d3b90249ad25e14a2b281ce29f1edc492ba694a44a5ed1b241c11de2b7d085127392a
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/yohoushi/client.rb
CHANGED
@@ -123,7 +123,11 @@ module Yohoushi
|
|
123
123
|
private
|
124
124
|
|
125
125
|
def escape(str)
|
126
|
-
URI.escape(str) if str
|
126
|
+
URI.escape(lstrip(str, "/")) if str
|
127
|
+
end
|
128
|
+
|
129
|
+
def lstrip(string, substring)
|
130
|
+
string.index(substring) == 0 ? string[substring.size..-1] : string
|
127
131
|
end
|
128
132
|
|
129
133
|
def handle_error(res)
|
data/spec/support/helper.rb
CHANGED