ruby-devise-two-factor ftbfs on Xenial
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Ubuntu CVE Tracker |
Invalid
|
Undecided
|
Unassigned | ||
| ruby-devise-two-factor (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
The Xenial version of the ruby-devise-
Index: ruby-devise-
=======
--- ruby-devise-
+++ ruby-devise-
@@ -2,10 +2,13 @@ require 'spec_helper'
require 'active_model'
class TwoFactorAuthen
+ extend ::ActiveModel:
include ::ActiveModel:
extend ::Devise::Models
- devise :two_factor_
+ define_
+
+ devise :two_factor_
attr_accessor :consumed_timestep
@@ -13,6 +16,11 @@ class TwoFactorAuthen
# noop for testing
true
end
+
+ def after_update
+ # noop for testing
+ true
+ end
end
describe ::Devise:
Index: ruby-devise-
=======
--- ruby-devise-
+++ ruby-devise-
@@ -1,13 +1,21 @@
require 'spec_helper'
class TwoFactorBackup
+ extend ::ActiveModel:
include ::ActiveModel:
extend ::Devise::Models
+ define_
+
devise :two_factor_
attr_accessor :otp_backup_codes
+
+ def after_update
+ # noop for testing
+ true
+ end
end
describe ::Devise:
~~~
However, if you do and you attempt to load it into irb, this failure occurs:
julia-phoebe@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
distro-info libexpat1-dev libpython3-dev libpython3.5-dev python-pip-whl
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
ruby-
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 0 B/11.2 kB of archives.
After this operation, 47.1 kB of additional disk space will be used.
Selecting previously unselected package ruby-devise-
(Reading database ... 233841 files and directories currently installed.)
Preparing to unpack .../ruby-
Unpacking ruby-devise-
Setting up ruby-devise-
julia-phoebe@
irb(main):001:0> require 'devise-two-factor'
LoadError: cannot load such file -- active_
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/share/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/share/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/share/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from /usr/lib/
from (irb):1
from /usr/bin/irb:11:in `<main>'
irb(main):002:0>
| Changed in ubuntu-cve-tracker: | |
| status: | New → Invalid |
