portatext 1.3.0 → 1.3.1

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: 7f2c8cd4973b3761b12c241ba3b8eadcffc237de
4
- data.tar.gz: 4cc5661245d4eb5fb0e6e315827836c7e6b76c3d
3
+ metadata.gz: f4530e6e0b70946a596e4b650e83c9c597b40dfb
4
+ data.tar.gz: 4f69cd974ba5f399512fb7fb30d6c0bd04cfb760
5
5
  SHA512:
6
- metadata.gz: 9bbaba0093ac893fe77b02a425cc3bd30f49a3fe98680173fb33123496b244a54fbe7fbfcc60b7710d755ad475c95a52baf3de23602cf4581f0bf00f5ad7c766
7
- data.tar.gz: a1914f407a2dc11f6378ecf4c97dfca0096c3387d80c01ece4e4e1f8711f0fddb3f2e426dc8301dadcadd6748754c7309cf67d54f067f7a2259c18dce83ecd90
6
+ metadata.gz: 9bcccdfe7f69a44c127b10a35d4b846fefc04b12a2b76cd5366f0c07d697774bda0a9799cbcd79e5068d3956180f7275efa646629170ae4cf07bd77e7a469123
7
+ data.tar.gz: c0285d43c333f95f0ecd8ae4e6361d8b17ca2b93cc53719c1303e1ae66700e83951cbae2bc80efacbaf10671861f252c4ec422f0bd0d4209a4f6aa6284155c73
@@ -30,10 +30,10 @@ module PortaText
30
30
  end
31
31
 
32
32
  def endpoint(_method)
33
- raise 'DID number cant be null' if @args[:id].nil?
34
33
  id = @args[:id]
35
34
  @args.delete :id
36
- "dids/#{id}"
35
+ return "dids/#{id}" unless id.nil?
36
+ 'dids'
37
37
  end
38
38
  end
39
39
  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.3.0'
3
+ s.version = '1.3.1'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portatext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PortaText
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov