Sha256: 8cb320a1e7929d0ad4f3e6e09db9d8d05b8e4d92a507d9bacfb38881e29d3243
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # Add Groupdate to rails application class Groupdate < AddOn required_gem gem.version('groupdate', '6.1.0', 'The simplest way to group temporal data') # NOTE: in the examples, the Groupdate gem is used in conjunction with Chartkick. def apply say 'Setting up Groupdate' # template('groupdate_template.rb', 'target/groupdate.rb', force: true) # template('app/javascript/stylesheets/components.scss') # create_file('target/groupdate.rb', 'put your content here') # directory 'app/template', 'app/target', force: true # empty_directory 'app/target' # inject_into_file('app/application.js', "some content") # rails_command('tailwindcss:install') end def before_bundle say 'Setting up Groupdate - before bundle install' end def after_bundle say 'Setting up Groupdate - after bundle install' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems