<commit_before>#require 'bundler'
#require 'bundler/cli'
#require 'ruby-debug'
#Debugger.start
#if Debugger.respond_to?(:settings)
#  Debugger.settings[:autoeval] = true
#  Debugger.settings[:autolist] = 1
#end

module Itkin

  class ConfigGenerator < Rails::Generators::Base

    source_root File.expand_path('../templates', __FILE__)

    class_option :git, :type => :boolean, :default => true, :desc => "Use git a VCS"

    def add_gems
      gem 'ruby-debug'
      gem "jquery-rails", :git => "git://github.com/itkin/jquery-rails.git"
      gem "compass"
      gem "haml"
#      ::Bundler.definition(true)
#      ::Bundler::CLI.new.install
      invoke "jquery:install",[], :ui => true, :force => true
    end
    def init_git
      if options.git?
        git 'init'
      end
    end
    def add_plugins
      plugin "dynamic_form", :git => "git://github.com/rails/dynamic_form.git", :submodule => options.git?
      plugin "exception_notification", :git =>  "git://github.com/sickill/exception_notification.git", :submodule => options.git?
      plugin "labelled_form_for", :git => "git://github.com/itkin/labelled_form_for.git", :submodule => options.git?
      plugin "javascript_stuff", :git => "git://github.com/itkin/javascript_stuff.git", :submodule => options.git?

      plugin "constants_in_db",  :git => "git://github.com/itkin/constants_in_db.git", :submodule => options.git?

      if yes? "Install social icon ?"
        plugin "social_icons", :git => "git://github.com/itkin/social_icons.git", :submodule => options.git?
      end

      git 'submodule init' if options.git?
    end

    def run_plugin_generators
      require 'vendor/plugins/javascript_stuff/lib/generators/javascript_stuff/javascript_stuff_generator'
      invoke 'javascript_stuff'
    end

    def instructions
      say <<-END

  # Run bundle install

  # Run : compass init rails . --using blueprint/semantic

  # Don't forget to add javascript defaults file in : config.action_view.javascript_expansions




      END
    end

  end

end<commit_msg>added will paginate as default gem and removed javascript_stuff plug<commit_after>#require 'bundler'
#require 'bundler/cli'
#require 'ruby-debug'
#Debugger.start
#if Debugger.respond_to?(:settings)
#  Debugger.settings[:autoeval] = true
#  Debugger.settings[:autolist] = 1
#end

module Itkin

  class ConfigGenerator < Rails::Generators::Base

    source_root File.expand_path('../templates', __FILE__)

    class_option :git, :type => :boolean, :default => true, :desc => "Use git a VCS"

    def add_gems
      gem 'ruby-debug'
      gem "jquery-rails", :git => "git://github.com/itkin/jquery-rails.git"
      gem "compass"
      gem "haml"
      gem "will_paginate"
#      ::Bundler.definition(true)
#      ::Bundler::CLI.new.install
      invoke "jquery:install",[], :ui => true, :force => true
    end
    def init_git
      if options.git?
        git 'init'
      end
    end
    def add_plugins
      plugin "dynamic_form", :git => "git://github.com/rails/dynamic_form.git", :submodule => options.git?
      plugin "exception_notification", :git =>  "git://github.com/sickill/exception_notification.git", :submodule => options.git?
      plugin "labelled_form_for", :git => "git://github.com/itkin/labelled_form_for.git", :submodule => options.git?

      plugin "constants_in_db",  :git => "git://github.com/itkin/constants_in_db.git", :submodule => options.git?

      if yes? "Install social icon ?"
        plugin "social_icons", :git => "git://github.com/itkin/social_icons.git", :submodule => options.git?
      end

      git 'submodule init' if options.git?
    end

    def instructions
      say <<-END

  # Run bundle install

  # Run : compass init rails . --using blueprint/semantic

  # Don't forget to add javascript defaults file in : config.action_view.javascript_expansions




      END
    end

  end

end
{'fraction_non_alphanumeric': 0.1364105208870552, 'fraction_numerical': 0.0005157297576070139, 'mean_word_length': 3.239344262295082, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3099450', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1223, 'n_words': 287}