tml 5.7.7 → 5.7.8

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: 8b9103c519573b8c2e5521a0c6726684354acd63be39c97f1f55f2bc88505aa3
4
- data.tar.gz: 1775589ab5765b5c4769de3b1c12b5b4cec2aba287f77069970e2f92d7523c3c
3
+ metadata.gz: 29fa2c2d665ac3e5366de6dc1639b945cc51aa45e0873483fa3e7c6a694a0e30
4
+ data.tar.gz: e63756f1db0045a11446845c4a86891be04d10e74705db122b279a8f7cf650cf
5
5
  SHA512:
6
- metadata.gz: ab9924e386768e595b72062a577c06f3b26dc5cfed4bde4c29b13997fb8f90d2c113d53685250035cc0759080f3c271993e1b6b7a03c1ae1599bbda6facdb95f
7
- data.tar.gz: c1b3aedb8700b9e7442fa371bb54b0b4cda8f0c1f521f682a0cf42e929d7350ab28ae2991ae7dede16e1add417bfabaa06ff2b96224730f9e857a075df33b3f4
6
+ metadata.gz: 3c4ced6dbc494a6efe3f4c8a704f29a4974cd6721edbab5990f03c438c1ad39911078ff58939e0b479fd5bed242b297a17e169066bb85903633661bcbe7c2083
7
+ data.tar.gz: 9f0976e774dba0bf947b2c7286f5bb8a97a495781f60372bb3de3347e92ebe9beb8eff5e20b53e29f0667298407ca00c4a4dd3bdf76079289dc507042e512d28
@@ -129,7 +129,8 @@ class Tml::Api::Client < Tml::Base
129
129
 
130
130
  def get_cdn_path(key, opts = {})
131
131
  base_path = URI(application.cdn_host).path
132
- base_path += '/' unless base_path.last == '/'
132
+ # Remove usage of String#last for clients who do not use ActiveSupport
133
+ base_path += '/' unless base_path.size > 0 && base_path[-1..-1] == '/'
133
134
 
134
135
  adjusted_path = "#{base_path}#{application.key}/"
135
136
 
@@ -31,7 +31,7 @@
31
31
  #++
32
32
 
33
33
  module Tml
34
- VERSION = '5.7.7'
34
+ VERSION = '5.7.8'
35
35
 
36
36
  def self.full_version
37
37
  "tml-ruby v#{Tml::VERSION} (Faraday v#{Faraday::VERSION})"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.7
4
+ version: 5.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-11 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday