tacokit 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/lib/tacokit/client/cards.rb +3 -1
- data/lib/tacokit/resource.rb +1 -0
- data/lib/tacokit/version.rb +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: b75eee59cb13c98fd302c0312c10ad5f2a8cf221
|
4
|
+
data.tar.gz: 804f984972f9e6178aa00c562d4a3f1ba10e89ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 541a773ea4ed06aadab7d714323b956ed980cdef9002ad0c2099ab6d9aa33fb01277ce3d1656587a25ba6059f972bee5969e6af2fabdda154bd049d8edd0b615
|
7
|
+
data.tar.gz: 35cc4c12739a20f87c596e5e3fb218f03d94f94e388d5813c6d26a09de02234c663d6bc51206d8e3d5ec683e574986948c8ce2171c8614d1b340c81d4acb1f3d
|
data/Gemfile
CHANGED
data/lib/tacokit/client/cards.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
1
3
|
module Tacokit
|
2
4
|
class Client
|
3
5
|
# Methods for the Cards API
|
@@ -178,7 +180,7 @@ module Tacokit
|
|
178
180
|
def attach_file(card_id, url, mime_type = nil, options = {})
|
179
181
|
options = mime_type if mime_type.is_a?(Hash)
|
180
182
|
|
181
|
-
uri =
|
183
|
+
uri = URI.parse(url)
|
182
184
|
|
183
185
|
if uri.scheme =~ %r{https?}
|
184
186
|
options.update url: uri.to_s, mime_type: mime_type
|
data/lib/tacokit/resource.rb
CHANGED
data/lib/tacokit/version.rb
CHANGED