-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak Rule ID inference to work with F7 router #260
Conversation
Framework7 doesn't like dots in the dynamic route path. Accessing the script using the url /settings/scripts/filename.rb:xx will result in a 404 because no route would match. Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
0ef6a68
to
7ef92f2
Compare
rule "log test" do | ||
on_load | ||
run do | ||
after(1.second) do | ||
executed = true | ||
expect(logger.name).to match(/^org\.openhab\.automation\.jrubyscripting\.rule\.log_spec\.rb:(?:\d+)$/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this expectation isn't met, an exception(?) is raised inside the timer. This somehow caused the whole rspec not to complete. It would time out after about 7 minutes. So I've moved it outside the timer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well that sounds like something interesting to investigate, to prevent possible hanging builds in the future ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boo. I quite liked the .rb
being part of the rule id. oh well.
rule "log test" do | ||
on_load | ||
run do | ||
after(1.second) do | ||
executed = true | ||
expect(logger.name).to match(/^org\.openhab\.automation\.jrubyscripting\.rule\.log_spec\.rb:(?:\d+)$/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well that sounds like something interesting to investigate, to prevent possible hanging builds in the future ;)
Framework7 doesn't like dots in the dynamic route path.
Accessing the script using the url /settings/scripts/filename.rb:xx will result in a 404 because no route would match.