diff --git a/Gemfile.lock b/Gemfile.lock index e594fad..51ebdcb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - calendar (0.0.1) + orbit_calendar (0.0.1) rails (~> 3.2.16) GEM @@ -91,5 +91,5 @@ PLATFORMS ruby DEPENDENCIES - calendar! jquery-rails + orbit_calendar! diff --git a/lib/generators/calendar/templates/initializer.rb b/lib/generators/calendar/templates/initializer.rb deleted file mode 100644 index 486f10e..0000000 --- a/lib/generators/calendar/templates/initializer.rb +++ /dev/null @@ -1,49 +0,0 @@ -module CalendarNew - OrbitApp.registration "CalendarNew",:type=> 'ModuleApp' do - module_label 'calendar.calendar' - base_url File.expand_path File.dirname(__FILE__) - # personal_plugin :enable => true,:path=>"panel/calendar/plugin/profile",:i18n=>'admin.calendar' - - version "0.1" - organization "Rulingcom" - author "RD dep" - intro "I am intro" - update_info 'some update_info' - - authorizable - categorizable - taggable - - front_end do - app_page 'events' do - frontend_i18n "calendar_new.frontend.events" - end - end - - side_bar do - head_label_i18n 'calendar.calendar',:icon_class=>"icons-calendar" - available_for [:admin,:guest,:manager,:sub_manager] - active_for_controllers ({:private=>['events','event_categories'],:public=>['panel/calendar_new/back_end/tags']}) - - - head_link_path "panel_calendar_new_back_end_events_path" - - # context_link 'calendar.categories', - # :link_path=>"admin_module_app_categories_path(get_module_app)" , - # :priority=>2, - # :active_for_category => 'CalendarNew', - # :available_for => [:manager] - context_link 'tags', - :link_path=>"admin_module_tags_path(module_app_id: get_module_app)" , - :priority=>4, - :active_for_tag => 'CalendarNew', - :available_for => [:manager] - - context_link 'calendar.categories', - :link_path=>"panel_calendar_new_back_end_event_categories_path" , - :priority=>3, - :active_for_category => 'CalendarNew', - :available_for => [:manager] - end - end -end diff --git a/lib/generators/install/USAGE b/lib/generators/install/USAGE new file mode 100644 index 0000000..c9fb09f --- /dev/null +++ b/lib/generators/install/USAGE @@ -0,0 +1,8 @@ +Description: + Explain the generator + +Example: + rails generate install Thing + + This will create: + what/will/it/create diff --git a/lib/generators/calendar/install_generator.rb b/lib/generators/install/install_generator.rb similarity index 68% rename from lib/generators/calendar/install_generator.rb rename to lib/generators/install/install_generator.rb index 299227f..8b2ef54 100644 --- a/lib/generators/calendar/install_generator.rb +++ b/lib/generators/install/install_generator.rb @@ -1,5 +1,4 @@ -class InstallGenerator < ::Rails::Generators::Base - include Rails::Generators::Migration +class InstallGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) desc "Installs Calendar Module for R4"