dropio 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/dropio.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dropio}
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jake Good"]
data/lib/dropio.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dropio
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
 
4
4
  class MissingResourceError < Exception; end
5
5
  class AuthorizationError < Exception; end
@@ -98,10 +98,18 @@ describe Drop do
98
98
  @asset = stub(Asset)
99
99
  @asset.should_receive(:drop=).once
100
100
  @client.should_receive(:handle).with(:asset,{}).and_return(@asset)
101
- @api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt",@mydrop.default_token, nil).and_return({})
101
+ @api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt", nil, nil, nil, @mydrop.default_token).and_return({})
102
102
  @mydrop.add_file("/mypath/myfile.txt").should == @asset
103
103
  end
104
104
 
105
+ it "should add files from a path with pingback url and convertsion target" do
106
+ @asset = stub(Asset)
107
+ @asset.should_receive(:drop=).once
108
+ @client.should_receive(:handle).with(:asset,{}).and_return(@asset)
109
+ @api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt", 'H264_HIGH_RES', 'http://drop.io/test/pinged', nil, @mydrop.default_token).and_return({})
110
+ @mydrop.add_file("/mypath/myfile.txt", 'H264_HIGH_RES', 'http://drop.io/test/pinged').should == @asset
111
+ end
112
+
105
113
  it "should create notes from title and contents" do
106
114
  @asset = stub(Asset)
107
115
  @asset.should_receive(:drop=).once
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Good