Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Vanity generator not found #362

@jedeleh

Description

@jedeleh

When I attempt to run the basic vanity generator, I get the following error:

Could not find generator 'vanity'. Maybe you meant 'vanity', 'task' or 'mailer'
Run `rails generate --help` for more options.

(of course, that error message brings up all kinds of existentialistic questions, Shroedinger's Cat and a nice vacation in Copenhagen)

I've tried a large number of variations of the command, including but not limited to:

rails generate vanity
rails generate Vanity:vanity
rails generate vanity:vanity
rails generate Vanity

Nothing seems to work. In reading the compatibility information in the README, I noticed that ruby 2.5.5 isn't mentioned as having been tested, and neither has Rails 5.2.3. I'm wondering if there's an issue in this or if my local setup is somehow compromised.

My next step was to clone vanity and run the specs. I got 12 failures, each ones being exactly like this one:

  1. NotificationType#compute_display_time when the rollup_schedule is valid natural language expression returns the next occurence on the schedule after the given date
    Failure/Error:
    expect(notification_type.compute_display_time(occurred_at)).to eq(
    Time.zone.parse("2019-04-26 09:15")
    )

    expected: 2019-04-26 09:15:00.000000000 -0500
    got: 2019-04-26 09:15:00.000000000 -0400

    (compared using ==)

    Diff:
    @@ -1,2 +1,2 @@
    -Fri, 26 Apr 2019 09:15:00 CDT -05:00
    +2019-04-26 09:15:00 -0400

    ./spec/models/notification_type_spec.rb:89:in `block (4 levels) in <top (required)>'

That set of failures might be on me--I'm using my laptop far from home this week and the output suggests a timezone issue.

Anyway, I guess it would be good to know if vanity is compatible with Ruby 2.5.5 & Rails 5.2.x. If it isn't, is that compatibility in the works?

Please note that I posted a related question on Stackoverflow: https://stackoverflow.com/questions/57185533/vanity-gem-strange-rails-generate-vanity-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions