vzaar 1.2.2 → 1.2.3
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 +4 -4
- data/Gemfile +2 -2
- data/README.md +2 -2
- data/lib/vzaar/request/base.rb +1 -6
- data/lib/vzaar/request/link_upload.rb +0 -1
- data/lib/vzaar/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/vzaar/api_xml_spec.rb +3 -3
- data/spec/vzaar/connection_spec.rb +3 -3
- data/spec/vzaar/request/base_spec.rb +1 -1
- data/spec/vzaar/resources/account_type_spec.rb +8 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee961de37f0ca79bd252a80bf63d69ab6d41994d
|
4
|
+
data.tar.gz: 275385b9a75f53c4acdc33a3736b02f1f99519b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f4d43afdb2e7cf9aef7947244277aa62b201ad407b5423b37b26c91787e52843b6694e3992d8ffdc2c6683cdab083a877859dec873d438b9d086ae0e71571c2
|
7
|
+
data.tar.gz: e97db4ff70332307483033259593002c06cbc0cfa8651c1c85a3afb8a5b52eb6a7df3ee1da96af297e02bff0f4a9c8e2ad2a8be7dc085afbf51af726ff30fbbd
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Note: This version is a beta release.
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
gem 'vzaar'
|
11
|
+
gem 'vzaar'
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
@@ -79,7 +79,7 @@ api.upload_video(options)
|
|
79
79
|
# options are: path, url, title, description, profile, transcoding, replace_id,
|
80
80
|
# width and bitrate
|
81
81
|
#
|
82
|
-
# api.
|
82
|
+
# api.upload_video(path: "./path/to/video.mp4", title: "my video")
|
83
83
|
#
|
84
84
|
# For link upload use url param:
|
85
85
|
# api.upload_video(url: "http://example.com/video.mp4", title: "my video")
|
data/lib/vzaar/request/base.rb
CHANGED
@@ -76,13 +76,8 @@ module Vzaar
|
|
76
76
|
format == :xml
|
77
77
|
end
|
78
78
|
|
79
|
-
# JC: vzaar_dev_login param is used only for localhost testing
|
80
79
|
def url_params
|
81
|
-
|
82
|
-
{ vzaar_dev_login: options[:l] || ENV["VZAAR_DEV_LOGIN"] }
|
83
|
-
else
|
84
|
-
{}
|
85
|
-
end
|
80
|
+
options[:params] || {}
|
86
81
|
end
|
87
82
|
|
88
83
|
def data
|
data/lib/vzaar/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/vzaar/api_xml_spec.rb
CHANGED
@@ -20,7 +20,7 @@ module Vzaar
|
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
specify { expect(subject.conn).to eq(connection) }
|
24
24
|
|
25
25
|
describe "#whoami" do
|
26
26
|
context "with valid credentials" do
|
@@ -291,7 +291,7 @@ module Vzaar
|
|
291
291
|
it "returns a signature" do
|
292
292
|
VCR.use_cassette("signature-default") do
|
293
293
|
signature = subject.signature
|
294
|
-
expect(signature.https).to
|
294
|
+
expect(signature.https).to be_falsey
|
295
295
|
end
|
296
296
|
end
|
297
297
|
end
|
@@ -308,7 +308,7 @@ module Vzaar
|
|
308
308
|
it "returns a signature" do
|
309
309
|
VCR.use_cassette("signature-with-options") do
|
310
310
|
signature = subject.signature signature_options
|
311
|
-
expect(signature.https).to
|
311
|
+
expect(signature.https).to be_falsey
|
312
312
|
end
|
313
313
|
end
|
314
314
|
end
|
@@ -9,17 +9,17 @@ module Vzaar
|
|
9
9
|
describe "#server" do
|
10
10
|
context "when server params includes http protocol" do
|
11
11
|
let(:server) { "http://example.com" }
|
12
|
-
|
12
|
+
specify { expect(subject.server).to eq("example.com") }
|
13
13
|
end
|
14
14
|
|
15
15
|
context "when server params includes https protocol" do
|
16
16
|
let(:server) { "https://example.com" }
|
17
|
-
|
17
|
+
specify { expect(subject.server).to eq("example.com") }
|
18
18
|
end
|
19
19
|
|
20
20
|
context "when server param is blank" do
|
21
21
|
let(:server) { nil }
|
22
|
-
|
22
|
+
specify { expect(subject.server).to eq(described_class::SERVER) }
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -17,13 +17,13 @@ module Vzaar::Resource
|
|
17
17
|
|
18
18
|
subject { described_class.new(xml) }
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
specify { expect(subject.api_version).to eq(version) }
|
21
|
+
specify { expect(subject.id).to eq(account_id) }
|
22
|
+
specify { expect(subject.title).to eq(title) }
|
23
|
+
specify { expect(subject.monthly).to eq(monthly) }
|
24
|
+
specify { expect(subject.currency).to eq(currency) }
|
25
|
+
specify { expect(subject.bandwidth).to eq(bandwidth) }
|
26
|
+
specify { expect(subject.search_enhancer).to eq(search_enhancer) }
|
27
|
+
specify { expect(subject.borderless).to eq(borderless) }
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vzaar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed James
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -296,7 +296,7 @@ rubyforge_project:
|
|
296
296
|
rubygems_version: 2.2.2
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
|
-
summary: vzaar-1.2.
|
299
|
+
summary: vzaar-1.2.3
|
300
300
|
test_files:
|
301
301
|
- spec/fixtures/vcr_cassettes/account_type-fail.yml
|
302
302
|
- spec/fixtures/vcr_cassettes/account_type-success.yml
|