Comments (8)
This is especially important, since I wanted to test may changes in http://github.com/finnlabs/recaptcha/commit/96e237ecb60414ce27252f9a272e10951f323eab
from recaptcha.
That's interesting, there should be no problem requiring rails/version
if rubygems is loaded, and the rails gem installed. I do know that some of the tests are broken in the master branch with the introduction of using flash
instead of the session
to pass the error message back to the user.
from recaptcha.
Thanks for the hint. I digged a little deeper. It seems to be related to 1.8.7 - when using 1.8.6 the tests are run successfully.
I will try to find a workaround.
from recaptcha.
Why is the
require 'rails/version'
actually needed. The tests run fine without it. Also, I cannot find any reference to Rails::VERSION in the source of Recaptcha.
from recaptcha.
It probably referenced at some point, but got factored out of the tests. I'm planning on putting some time aside in the coming days to cleanup the tests and fix up the code in preparation for rails 3.
from recaptcha.
Okay, with your help, I figured it out
- http://github.com/finnlabs/recaptcha/commit/ebf84c4 allows me to run the tests on 1.8.7
- http://github.com/finnlabs/recaptcha/commit/98524d3 updates the tests to use flash instead of session
- http://github.com/finnlabs/recaptcha/commit/4e03219 updates an expectation to the current wording in the lib
from recaptcha.
Please also consider integrating my changes to the configuration options before starting any refactoring. http://github.com/finnlabs/recaptcha/commit/96e237ecb60414ce27252f9a272e10951f323eab
from recaptcha.
+1 for the schmidt configuration changes! Setting the ENV is currently not easy when you have multiple environments and multiple developers running under non-localhost domains.
from recaptcha.
Related Issues (20)
- recaptcha succeeds on view but verify_recaptcha fails in ruby HOT 3
- ActionView::Template::Error: undefined local variable or method `recaptcha_tags' for #<#<Class:0x000055bd2eb3da08>:0x000055bd2f577618> HOT 1
- Enterprise version HOT 5
- Rails 7 / Turbo : g-recaptcha-response is empty HOT 17
- invisible_recaptcha_tags - Redirecting to sessions page upon submission of recaptcha HOT 1
- ReferenceError: grecaptcha is not defined - reCAPTCHA verification failed, please try again. HOT 6
- Invalid API key when using Enterprise HOT 5
- Use www.recaptcha.net when www.google.com is not available? HOT 3
- invisible_recaptcha_tags doesn't work with turbo_streams
- TypeError: Cannot set properties of null at setInputWithRecaptchaResponseTokenForConnectProvider HOT 2
- Remove `json` gem explicit dependency
- No proper documentation/ methods for ENTERPRISE version. HOT 5
- Use parameter `turbo` instead or `turbolinks` HOT 3
- Gem yields 500 Internal Server Error during tests HOT 3
- Timeout related error message is unclear HOT 2
- id on textarea causes duplicate ids if recaptcha_tags is called twice on the same page
- id on textarea causes duplicate ids if recaptcha_tags is called twice on the same page HOT 3
- Contacting Jason Perry
- reCaptcha with v2 fallback not showing up when in production HOT 2
- how do you make the recaptcha visible? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recaptcha.