portatext 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/portatext/client/base_client.rb +3 -3
- data/lib/portatext/client/http_client.rb +3 -3
- data/lib/portatext.rb +1 -1
- data/portatext.gemspec +1 -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: 542210b3e3163a1f4b72b8360d15cd9e8537057d
|
4
|
+
data.tar.gz: 5553542dad98e36e4e17c1687894f38039ebb10d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce33bf3f72667bcc67654a8d05c05a931b876e7faef12cde017f0ae80b76702c1184d79a374c174ead54ae06626d8919ec3502e52df0862eb868ea3a8fa42471
|
7
|
+
data.tar.gz: 1f9beab07c6c2660a0802ff2a828ad8fcdb61816e37b3ef11a19e21286bce37a98d1941114851098faaabcb51d515c2f58e174c4a924e7ce7612f4c791fe0176
|
@@ -19,9 +19,9 @@ module PortaText
|
|
19
19
|
def method_missing(method, *_arguments, &_block)
|
20
20
|
method = method.to_s.split('_').map(&:capitalize)
|
21
21
|
class_name = Object.const_get('PortaText')
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
.const_get('Command')
|
23
|
+
.const_get('Api')
|
24
|
+
.const_get(method.join(''))
|
25
25
|
command = class_name.new
|
26
26
|
command.client = self
|
27
27
|
command
|
@@ -36,9 +36,9 @@ module PortaText
|
|
36
36
|
def create_request(uri, method, body)
|
37
37
|
method = method.to_s.capitalize
|
38
38
|
request = Object.const_get('Net')
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
.const_get('HTTP')
|
40
|
+
.const_get(method)
|
41
|
+
.new uri
|
42
42
|
data = /^file:(.*)$/.match(body)
|
43
43
|
if data.nil?
|
44
44
|
request.body = body
|
data/lib/portatext.rb
CHANGED
data/portatext.gemspec
CHANGED