rails_apps_composer icon indicating copy to clipboard operation
rails_apps_composer copied to clipboard

Issues with recipe name collisions

Open vfonic opened this issue 8 years ago • 1 comments

I wanted to slightly modify extras recipe so I created a local recipe and changed the matter so it belongs to new category:


__END__

name: extras
description: "Various extras."
author: vfonic

requires: [gems]
run_after: [gems, init]
category: dvelp

Now on the prompt, I see this:

Available Recipes: admin admin apps learn_rails, rails_bootstrap, rails_devise, rails_devise_pundit, rails_devise_roles, rails_foundation, rails_mailinglist_activejob, rails_omniauth, rails_signup_download, rails_stripe_checkout, rails_stripe_coupons, rails_stripe_membership_saas collections core configuration email, gems, git, railsapps, readme, setup development deployment, email_dev dvelp extras example example frontend frontend initialize init mvc devise, omniauth, pages, roles other analytics, extras, locale testing tests Which recipe would you like to add? (blank to finish)

I'd like to be able to add dvelp/extras, without other/extras. At the moment it seems like every recipe must have unique name. There's no namespacing (per category or organization).

The reason for using the same name is that I want to know which of my recipes is a fork of original recipe from this repo.

I think the fix could be done somewhere in these lines: https://github.com/RailsApps/rails_apps_composer/blob/master/lib/rails_wizard/command.rb#L97

vfonic avatar Oct 25 '15 12:10 vfonic