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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c68a72f0e06eb235a70ac18e47caa3178974797
4
- data.tar.gz: f9e940018240f7b3558ce4a1e55699fc84e0beea
3
+ metadata.gz: 2b93237f34c7cd21a2653144f6670b08584a0982
4
+ data.tar.gz: 58a80d42ea4c6564c3af2167b07ba86831ed35ed
5
5
  SHA512:
6
- metadata.gz: 2fcf994df89f5cbc8220ddcc04a530cd7bb4423645db9d589469f19fca449a0ab0a7b2fc86bb68b60cf74f0a5f77c778174c6e77c2e43277f285e75b99d36c8c
7
- data.tar.gz: 52a7e64c573113c614c1ac4309359eb07b97812fd58aedd9ae1595dc7fc3d84d3810c8294d0ebf0cb0c129566792f52be977d18e6235525af988bb73a2c89258
6
+ metadata.gz: ace5925171b15b2104886da8f172d0d618033cfefb758c48dc1c92c53378ec035155cbab9d092e3ce1b9af1c1a34cee73bf87cf3dec013e2f376228f8dbf6683
7
+ data.tar.gz: a6378c5c6557e10e1600a55537af04515fa626210e2c5e359f3f6a304378b4143d628feea727da56f142063c137ad403f554f438111e69ff3e929287578edd71
@@ -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
- builder.basic_auth(username, password)
16
+
17
+ if username && password
18
+ builder.basic_auth(username, password)
19
+ end
17
20
  end
18
21
  end
19
22
 
@@ -1,3 +1,3 @@
1
1
  module Streamable
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.1
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-03 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday