vzaar 1.2.2 → 1.2.3

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: cd706c9dfeffddadb3e72aba97a5919ce112f1b5
4
- data.tar.gz: 31b3f768cc98ce03cea3c5d2b9a45a74603a6479
3
+ metadata.gz: ee961de37f0ca79bd252a80bf63d69ab6d41994d
4
+ data.tar.gz: 275385b9a75f53c4acdc33a3736b02f1f99519b9
5
5
  SHA512:
6
- metadata.gz: f5352345e8a8536de21eb1a8ed480c2dea5433431decb1f8abb82198ef165e02ffa27c6d92df224047a4ac39823e35ca4b233ce1db198efeb601d26bacfda9c3
7
- data.tar.gz: 819a3b0655698054a67817815596df29b1a6e1229dd6b4ba5f5ef1d41035c8b35c3eb84b9b1f650835cda4342ed3bcfde8002bf9b53b4b95da7a238b0dd2408e
6
+ metadata.gz: 1f4d43afdb2e7cf9aef7947244277aa62b201ad407b5423b37b26c91787e52843b6694e3992d8ffdc2c6683cdab083a877859dec873d438b9d086ae0e71571c2
7
+ data.tar.gz: e97db4ff70332307483033259593002c06cbc0cfa8651c1c85a3afb8a5b52eb6a7df3ee1da96af297e02bff0f4a9c8e2ad2a8be7dc085afbf51af726ff30fbbd
data/Gemfile CHANGED
@@ -10,10 +10,10 @@ gem 'rake'
10
10
 
11
11
  group :development, :test do
12
12
  gem 'pry'
13
- gem 'fuubar'
13
+ gem 'fuubar', '2.0.0.rc1'
14
14
  gem 'growl'
15
15
  gem 'guard-rspec'
16
- gem 'rspec'
16
+ gem 'rspec', '3.0.0'
17
17
  gem 'vcr'
18
18
  gem 'webmock'
19
19
  end
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', :git => "git@github.com:vzaar/vzaar-api-ruby.git", :branch => 'master'
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.upload(path: "./path/to/video.mp4", title: "my video")
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")
@@ -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
- unless ENV["RUBY_ENV"] == "test"
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
@@ -1,4 +1,3 @@
1
- require "pry"
2
1
  module Vzaar
3
2
  module Request
4
3
  class LinkUpload < Base
@@ -1,3 +1,3 @@
1
1
  module Vzaar
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
@@ -12,7 +12,6 @@ require 'pry'
12
12
  Dir["./spec/support/**/*.rb"].each { |f| require f }
13
13
 
14
14
  RSpec.configure do |config|
15
- config.treat_symbols_as_metadata_keys_with_true_values = true
16
15
  config.run_all_when_everything_filtered = true
17
16
  config.filter_run :focus
18
17
 
@@ -20,7 +20,7 @@ module Vzaar
20
20
  }
21
21
  end
22
22
 
23
- its(:conn) { should == connection }
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 be_false
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 be_false
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
- its(:server) { should eq "example.com" }
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
- its(:server) { should eq "example.com" }
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
- its(:server) { should eq described_class::SERVER }
22
+ specify { expect(subject.server).to eq(described_class::SERVER) }
23
23
  end
24
24
  end
25
25
  end
@@ -34,7 +34,7 @@ describe Vzaar::Request::Base do
34
34
  end
35
35
 
36
36
  specify do
37
- expect(subject.authenticated).to be_true
37
+ expect(subject.authenticated).to be_truthy
38
38
  end
39
39
  end
40
40
  end
@@ -17,13 +17,13 @@ module Vzaar::Resource
17
17
 
18
18
  subject { described_class.new(xml) }
19
19
 
20
- its(:api_version) { should eq(version) }
21
- its(:id) { should eq(account_id) }
22
- its(:title) { should eq(title) }
23
- its(:monthly) { should eq(monthly) }
24
- its(:currency) { should eq(currency) }
25
- its(:bandwidth) { should eq(bandwidth) }
26
- its(:search_enhancer) { should eq(search_enhancer) }
27
- its(:borderless) { should eq(borderless) }
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.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-06-03 00:00:00.000000000 Z
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.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