anjlab / yandex-disk

Ruby client for Yandex.Disk with backup gem support
MIT License
33 stars 13 forks source link

Bugfix #2

Closed ilyario closed 10 years ago

yury commented 10 years ago

Sorry, what bug are you fixing here?

ilyario commented 10 years ago

1) ilyario:yandex-disk ilyario$ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.1] ilyario:yandex-disk ilyario$ bundle install Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.1.1) Using bundler (1.3.5) Using excon (0.31.0) Using multipart-post (1.2.0) Using faraday (0.8.8) Using faraday_middleware (0.9.0) Using mini_portile (0.5.2) Using nokogiri (1.6.1) Using yandex-disk (0.0.5) from source at /Users/ilyario/Documents/programming/yandex-disk Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed. ilyario:yandex-disk ilyario$ export YANDEX_DISK_TOKEN=e5d4aaa4ec2246558b510f7fef25b7b1 ilyario:yandex-disk ilyario$ rake /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:4:in <top (required)>': uninitialized constant MiniTest (NameError) from /Users/ilyario/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /Users/ilyario/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:15:inblock in

' from /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in select' from /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib/rake/rake_test_loader.rb:4:in
' rake aborted! Command failed with status (1): [ruby -I"lib:test" -I"/Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib" "/Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/yandex_dist_test.rb" ]

Tasks: TOP => default => test (See full trace by running task with --trace)

2) ilyario:yandex-disk ilyario$ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.1] ilyario:yandex-disk ilyario$ export YANDEX_DISK_TOKEN=e5d4aaa4ec2246558b510f7fef25b7b1 ilyario:yandex-disk ilyario$ rake MiniTest::Unit.autorun is now Minitest.autorun. From /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:6:in <top (required)>' MiniTest::Unit::TestCase is now Minitest::Test. From /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:8:in<top (required)>' Run options: --seed 51679

Running:

EEEEEE

Finished in 0.046011s, 130.4036 runs/s, 0.0000 assertions/s.

1) Error: YandexDiskTest#test_put_in_nested_folder: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

2) Error: YandexDiskTest#test_initilize: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

3) Error: YandexDiskTest#test_put!: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

4) Error: YandexDiskTest#test_delete!: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

5) Error: YandexDiskTest#test_put_and_get: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

6) Error: YandexDiskTest#test_delete_and_mkdir: NoMethodError: undefined method present?' for "e5d4aaa4ec2246558b510f7fef25b7b1":String /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:17:inblock in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday/connection.rb:65:in initialize' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:innew' /Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/faraday-0.8.8/lib/faraday.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/lib/yandex/disk/client.rb:16:ininitialize' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:in new' /Users/ilyario/Documents/programming/yandex-disk/test/yandex_dist_test.rb:11:insetup'

6 runs, 0 assertions, 0 failures, 6 errors, 0 skips rake aborted! Command failed with status (1): [ruby -I"lib:test" -I"/Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib" "/Users/ilyario/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/yandex_dist_test.rb" ]

Tasks: TOP => default => test (See full trace by running task with --trace)