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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 300d82ceef76dd2152b3ca2089efb0ec3b4a29db
4
- data.tar.gz: 77df65fc04157d1b0e5836c1cd6b9161cdc0cbef
3
+ metadata.gz: 542210b3e3163a1f4b72b8360d15cd9e8537057d
4
+ data.tar.gz: 5553542dad98e36e4e17c1687894f38039ebb10d
5
5
  SHA512:
6
- metadata.gz: 07d179a439857c0dda4c6af8f9316f340b2a8da835e8e629a9173dc8622b76450dce2779f82137e40a2019e173e94ec4afa8a51e41bb5cdac3ef191f0ba88402
7
- data.tar.gz: 1889f0b178f9bd7808060061fc7b022d6b2b2d6dea0db9f763bebd79d6ed21764b0f6d39bbfddab9952cba97d00c1f4190cd5e45b568faf07a9182cddb3e76d2
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
- .const_get('Command')
23
- .const_get('Api')
24
- .const_get(method.join(''))
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
- .const_get('HTTP')
40
- .const_get(method)
41
- .new uri
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
@@ -42,5 +42,5 @@ require_relative 'portatext/command/api/variables'
42
42
  # Copyright:: Copyright (c) 2015 PortaText
43
43
  # License:: Apache-2.0
44
44
  module PortaText
45
- DEFAULT_ENDPOINT = 'https://rest.portatext.com'
45
+ DEFAULT_ENDPOINT = 'https://rest.portatext.com'.freeze
46
46
  end
data/portatext.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'portatext'
3
- s.version = '1.1.3'
3
+ s.version = '1.1.4'
4
4
  s.summary = 'Official PortaText API ruby client'
5
5
  s.description = 'This is the official PortaText API ruby client'
6
6
  s.authors = ['PortaText']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portatext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PortaText