russ / lacquer Goto Github PK
View Code? Open in Web Editor NEWRails drop in for Varnish support.
License: MIT License
Rails drop in for Varnish support.
License: MIT License
not load such kind of file which is basically static files in cahce.rb file
this issue is raised in rails 6
NameError (uninitialized constant ActiveSupport::Notifications):
vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:469:in `load_missing_constant'
vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing_with_dependencies
' vendor/bundle/ruby/1.9.1/gems/lacquer-0.5.6/lib/lacquer/varnish.rb:17:in `block in purge'
vendor/bundle/ruby/1.9.1/gems/lacquer-0.5.6/lib/lacquer/varnish.rb:16:in `each'
vendor/bundle/ruby/1.9.1/gems/lacquer-0.5.6/lib/lacquer/varnish.rb:16:in `all?'
vendor/bundle/ruby/1.9.1/gems/lacquer-0.5.6/lib/lacquer/varnish.rb:16:in `purge'
vendor/bundle/ruby/1.9.1/gems/radiant-lacquer-extension-1.0.0/lib/lacquer/resource_controller_extension.rb:29:in `purge_all_p
ages'
Probably introduced by c447853
Hi, first of all thanks for this great piece of software, we have been using lacquer for some years now and it works really good.
Now we are upgrading our application from ruby 1.8.7 to 2.1 (yes, is hell) and I found that with the newer versions of the gem send_command is failing.
I traced the error to lib/lacquer/varnish.rb line 50. And seems to be related with this commit fe5ff85
Removing the "\n" is making my telnets to fail at authenticating with varnish, so send_command is returning "ERROR"
Adding the removed "\n" seems to fix the error.
Again, I'm not sure if this is a lacquer problem or something changed inside OpenSSL::Digest library (Also OpenSSL::Digest::Digest.new seems to be deprecated on ruby 2.1 and is printing a deprecation warning).
I will try to test this with ruby 1.9 and see If I can replicate the error, but other than that I haven't done much more search. I just thought I should let you know about this problem.
Best regards
Is this something that will come?
I run through an issue after requiring require 'lacquer/capistrano'
.
Here's the trace to the issue
cap staging deploy --trace
cap aborted!
NoMethodError: undefined method `instance' for Capistrano::Configuration:Class
/home/pamio/.rvm/gems/ruby-2.1.1/gems/lacquer-0.5.6/lib/lacquer/capistrano.rb:3:in `<top (required)>'
/home/pamio/dev/rails_apps/remote/khojguru/Capfile:15:in `require'
/home/pamio/dev/rails_apps/remote/khojguru/Capfile:15:in `<top (required)>'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/capistrano-3.3.5/lib/capistrano/application.rb:15:in `run'
/home/pamio/.rvm/gems/ruby-2.1.1/gems/capistrano-3.3.5/bin/cap:3:in `<top (required)>'
/home/pamio/.rvm/gems/ruby-2.1.1/bin/cap:23:in `load'
/home/pamio/.rvm/gems/ruby-2.1.1/bin/cap:23:in `<main>'
/home/pamio/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/home/pamio/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Im on ruby 2.1.1 & rails 4.2.1. Any pointers on this ?
Thanks
I've updated to the latest gem release, and when I set the backend to delayed job, the varnish purge will not execute with this last_error:
Job failed to load: undefined class/module Lacquer::DelayedJobJob
Any clue? Is there somewhere I need to require the file that defines the DelayedJobJob class?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.