Ripple file attachments
Does Ripple provide file attachement functionality similar to paperclip or attachement_fu? I'd like to be able to attach binary data to a Ripple Document object that is being stored in a different bucket. Ariel Valentin e-mail: ar...@arielvalentin.com website: http://blog.arielvalentin.com skype: ariel.s.valentin twitter: arielvalentin linkedin: http://www.linkedin.com/profile/view?id=8996534 --- *simplicity *communication *feedback *courage *respect ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Ripple TestServer Fails Running Tests
We've have run into a few challenges using Ripple::TestServer and was wondering if someone here may be able to shed a little light. We experienced intermittent failures when trying to run integration tests saying that the test server could not find open pipes. We aren't certain why this is happening and have posted a few comments to this issue: https://github.com/basho/ripple/issues/278 Is there something we are doing incorrectly in our configuration? Here is a sample stack trace that we see: 1) Error: test_foo: RuntimeError: Could not find or open pipes for Riak console in /tmp/riak_test_server/pipe.[ Broken pipe - Broken pipe ] /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/console.rb:72:in initialize' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/console.rb:22:in open' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/control.rb:71:in attach' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/test_server.rb:69:in maybe_attach' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/test_server.rb:40:in start' /vendor/cache/ripple-676cf259590a/lib/ripple/test_server.rb:14:insetup' /test/test_helper.rb:11:in _callback_before_43' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:443:in _run__589859293__setup__2084328715__callbacks' org/jruby/RubyBasicObject.java:1659:in __send__' org/jruby/RubyKernel.java:2086:insend' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in __run_callback' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:390:in _run_setup_callbacks' org/jruby/RubyBasicObject.java:1659:in __send__' org/jruby/RubyKernel.java:2086:insend' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in run_callbacks' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in run' Thanks, Ariel Valentin e-mail: ar...@arielvalentin.com website: http://blog.arielvalentin.com skype: ariel.s.valentin twitter: arielvalentin linkedin: http://www.linkedin.com/profile/view?id=8996534 --- *simplicity *communication *feedback *courage *respect ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Ripple file attachments
Thanks for the reply. I recently learned about carrierwave, which does not have a dependency on activerecord. I think am going to give that a try. I don't like the idea of having embedded documents in this case but rather a reference to a value in a separate bucket. I will RTFM when I get a chance but is 4MB a magic number? What happens when an entry exceeds that size? Thanks, Ariel --- Sent from my mobile device. Please excuse any errors. On Jan 7, 2013, at 10:04 PM, Mark Phillips wrote: > Hi Ariel, > > On Tue, Dec 18, 2012 at 7:23 PM, Ariel Valentin > wrote: >> Does Ripple provide file attachement functionality similar to paperclip or >> attachement_fu? >> >> I'd like to be able to attach binary data to a Ripple Document object that >> is being stored in a different bucket. >> > > It looks like you can add any property to Ripple::Document [0]. Though > it doesn't seem to be documented (as far as I can tell), this could > certainly be a binary blob. (Just make sure said blob isn't much > bigger than 4MB or so.) > > Also, since you mentioned it, someone released a Paperclip module for > Riak [1] about a month back. > > Hope that helps. > > Mark > twitter.com/pharkmillups > > [0] http://basho.github.com/ripple/#Document_Model_Examples > [1] https://github.com/xinuc/paperclip-riak > >> Ariel Valentin >> e-mail: ar...@arielvalentin.com >> website: http://blog.arielvalentin.com >> skype: ariel.s.valentin >> twitter: arielvalentin >> linkedin: http://www.linkedin.com/profile/view?id=8996534 >> --- >> *simplicity *communication >> *feedback *courage *respect >> >> >> ___ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com