Cominch/lsi-rails-prototype — pull request #1 by awayanyway (2014-05-22 17:35:29+00:00)
Title: Jdx integ

hi,
merged with upstream this afternoon.
main changes :
- jdx plotting rendered as partial in show
- added app configuration option for jdx file processing in application.rb ( here set true for detect_parameters only)
Additionaly I am logging a few things when detect_parameters encounters jdx files.
For me I get thing like this:

*******************************************************************************************************
env=localserver
*******************************************************************************************************

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
inspect BEFORE caching

inspect :/datasets/8/TW_48.dx
class :AttachmentUploader
file :#
url :/datasets/8/TW_48.dx
default_url :
cached? :
path :/home/pi/workspace/lsi-rails-prototype/tmp/storage/datasets/8/TW_48.dx
current_path :/home/pi/workspace/lsi-rails-prototype/tmp/storage/datasets/8/TW_48.dx
cache_name :
cache_dir :/home/pi/workspace/lsi-rails-prototype/tmp/upload
is FALSE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

now cached

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
inspect AFTER caching

inspect :/datasets/8/TW_48.dx
class :AttachmentUploader
file :#
url :/datasets/8/TW_48.dx
default_url :
cached? :1400770075-7651-8315
path :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770075-7651-8315/TW_48.dx
current_path :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770075-7651-8315/TW_48.dx
cache_name :1400770075-7651-8315/TW_48.dx
cache_dir :/home/pi/workspace/lsi-rails-prototype/tmp/upload
is TRUE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

*************************
env=fakes3
**************************

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
inspect BEFORE caching

inspect :http://dial-a-device.s3.amazonaws.com:10453/datasets/8/blckpkt1.jdx?AWSAccessKeyId=123&Signature=%2B1g%2Bsq45OMpEoRL6GotCcbUV6mk%3D&Expires=1400770879
class :AttachmentUploader
file :#
url :http://dial-a-device.s3.amazonaws.com:10453/datasets/8/blckpkt1.jdx?AWSAccessKeyId=123&Signature=%2B1g%2Bsq45OMpEoRL6GotCcbUV6mk%3D&Expires=1400770879
default_url :
cached? :
path :datasets/8/blckpkt1.jdx
current_path :datasets/8/blckpkt1.jdx
cache_name :
cache_dir :/home/pi/workspace/lsi-rails-prototype/tmp/upload
is FALSE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

now cached

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
inspect AFTER caching

inspect :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770279-7919-6661/blckpkt1.jdx
class :AttachmentUploader
file :#
url :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770279-7919-6661/blckpkt1.jdx
default_url :
cached? :1400770279-7919-6661
path :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770279-7919-6661/blckpkt1.jdx
current_path :/home/pi/workspace/lsi-rails-prototype/tmp/upload/1400770279-7919-6661/blckpkt1.jdx
cache_name :1400770279-7919-6661/blckpkt1.jdx
cache_dir :/home/pi/workspace/lsi-rails-prototype/tmp/upload
is TRUE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Cheers