Sha256: 12d1279dc6625aab3bb6399aa02d8c8e044b2693136d775a7f6db52d1aeeeb2e

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Pry
        def self.prepended(base)
          base.class_option :pry,
            type: :boolean,
            default: true,
            desc: 'Include Pry debugging gems'
        end

        def finish_template
          return super unless options[:pry]
          gem_group :development, :test do
            gem 'pry-rails'
            gem 'pry-byebug'
            gem 'pry-stack_explorer'
            gem 'better_errors'
            gem 'binding_of_caller'
          end
          super
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/plugins/pry.rb
stationed-0.5.0 lib/stationed/generators/plugins/pry.rb
stationed-0.4.0 lib/stationed/generators/plugins/pry.rb
stationed-0.3.0 lib/stationed/generators/plugins/pry.rb
stationed-0.2.0 lib/stationed/generators/plugins/pry.rb
stationed-0.1.0 lib/stationed/generators/plugins/pry.rb