streamable-api 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/streamable.rb +5 -2
- data/lib/streamable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b93237f34c7cd21a2653144f6670b08584a0982
|
4
|
+
data.tar.gz: 58a80d42ea4c6564c3af2167b07ba86831ed35ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace5925171b15b2104886da8f172d0d618033cfefb758c48dc1c92c53378ec035155cbab9d092e3ce1b9af1c1a34cee73bf87cf3dec013e2f376228f8dbf6683
|
7
|
+
data.tar.gz: a6378c5c6557e10e1600a55537af04515fa626210e2c5e359f3f6a304378b4143d628feea727da56f142063c137ad403f554f438111e69ff3e929287578edd71
|
data/lib/streamable.rb
CHANGED
@@ -9,11 +9,14 @@ module Streamable
|
|
9
9
|
|
10
10
|
STREAMABLE_URL = "http://streamable.com"
|
11
11
|
|
12
|
-
def initialize(username, password)
|
12
|
+
def initialize(username: username, password: password)
|
13
13
|
@streamable = Faraday.new(url: "https://api.streamable.com") do |builder|
|
14
14
|
builder.request(:multipart)
|
15
15
|
builder.adapter(:net_http)
|
16
|
-
|
16
|
+
|
17
|
+
if username && password
|
18
|
+
builder.basic_auth(username, password)
|
19
|
+
end
|
17
20
|
end
|
18
21
|
end
|
19
22
|
|
data/lib/streamable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: streamable-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Atanasian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|