portatext 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63784633a089b44c9a5255016f19fbfb06d94df7
4
- data.tar.gz: eb24e9015bb78a150231c53e0e2d0a718e1523ef
3
+ metadata.gz: b7c82160b11de2827d5bccc4835691d44fa9e9d8
4
+ data.tar.gz: 0d4b68d998de02293a647bcd707d5dfe1bd7b480
5
5
  SHA512:
6
- metadata.gz: f209e1bf0c09563c528a817556e7a307826f24df441ac308a3e6a127aa3a960f5bf58c4c75a9c3a4da0c9be31eb7e043f0b42f58cdeace5bd845a11452e233aa
7
- data.tar.gz: aa504008c39ded3ea3cde9783d80bdf37f1802417fe2be4ce405dfefc6dfc043bb47599f17a71c3bfe80857228ae8fb7c362b69e23c2afc09291ebac7048f66c
6
+ metadata.gz: 181407ed94036b34b7ba4bafff4978fa4002ec59a0042db9fa1ea5d0ae5f1790ca241a661618a6f8991eb5a73e4ea219ef19010630dd4f270db52c5dc37f9031
7
+ data.tar.gz: ae42ed80017c0c7ba6e854610568a2adee120c2809d2a1db40f06f4ddda3bda42df7115ee7a8307816245889991d67efa3e6b3da40f9134777c7a75daef7a064
@@ -28,7 +28,13 @@ module PortaText
28
28
  set :accept_file, file
29
29
  end
30
30
 
31
- def with_number(number)
31
+ def with_number(number, variables = nil)
32
+ unless variables.nil?
33
+ variables = variables.reduce([]) do |acc, v|
34
+ acc << { key: v[0], value: v[1] }
35
+ end
36
+ set :variables, variables
37
+ end
32
38
  set :number, number
33
39
  end
34
40
 
data/portatext.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'portatext'
3
- s.version = '1.4.0'
3
+ s.version = '1.4.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.4.0
4
+ version: 1.4.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-23 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov