Arman Mirk
2013-Mar-09 01:54 UTC
Is it possible to make attachment_fu upload to use :file_system for storage during tests?
I''m using Attachment_fu for a model that has 3 attachment fields with s3 for storage. Unit testing this model is very slow. This made me think if there is a way to switch between storage types during testing and development/production? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists
2013-Mar-09 04:19 UTC
Re: Is it possible to make attachment_fu upload to use :file_system for storage during tests?
On Fri, Mar 8, 2013 at 7:54 PM, Arman Mirk <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m using Attachment_fu for a model that has 3 attachment fields with s3 > for storage. > > Unit testing this model is very slow. This made me think if there is a > way to switch between storage types during testing and > development/production?Or just mock them. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Roman Mirk
2013-Mar-09 04:24 UTC
Re: Is it possible to make attachment_fu to use :file_system for storage during tests?
Could you please be more specific or provide an example if possible? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists
2013-Mar-09 05:09 UTC
Re: Re: Is it possible to make attachment_fu to use :file_system for storage during tests?
On Fri, Mar 8, 2013 at 10:24 PM, Roman Mirk <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Could you please be more specific or provide an example if possible?Read up on rspec mocks in the RSpec book, and there are several examples around the net. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2013-Mar-09 10:45 UTC
Re: Is it possible to make attachment_fu upload to use :file_system for storage during tests?
On Saturday, March 9, 2013 1:54:38 AM UTC, Ruby-Forum.com User wrote:> > I''m using Attachment_fu for a model that has 3 attachment fields with s3 > for storage. > > Unit testing this model is very slow. This made me think if there is a > way to switch between storage types during testing and > development/production? >Attachment_fu is a little old school, but there''s no reason you couldn''t do something like has_attachment :storage => (Rails.env.production? ? :s3 : :file_system) to use s3 for production and filesystem for everything else Fred> > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qZvSDiIWLg0J. For more options, visit https://groups.google.com/groups/opt_out.
vina zhang
2013-Mar-09 15:13 UTC
Re: Is it possible to make attachment_fu to use :file_system for storage during tests?
There are some MTS converters that can convert your media (HDR-TD10 MTS video) in mp4 file as I read in previous posts, but you will definitely loose a lot of details doing it. This Mac MTS Converter can encode 3D MTS to MP4, if you don''t mind. For lossless merging of Sony HDR-TD10 MTS clips, I find the Media Magician for Mac a best solution. Using the software, you can merge m2ts/mts files (2D or 3D) together without losing quality. Overall, this is a best solution to easily re-mux m2ts/mts files produced by Sony HDR-TD10 or other similar camcoders in order to stream them smoothly over Wi-Fi to PS3 in full HD quality -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.