Sha256: 3207bfc8277a148517eaefbb81b7ca776c28f011cdcf14d09ab23671c28c8d49

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module RSpec
      # Builds RSpec binstub for project skeleton.
      class Binstub < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_rspec

          builder.call(settings.merge(template_path: "%project_name%/bin/rspec.erb"))
                 .render
                 .permit 0o755

          true
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubysmith-8.1.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-8.0.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.9.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.8.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.7.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.6.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.5.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.4.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.3.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.2.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.1.0 lib/rubysmith/builders/rspec/binstub.rb
rubysmith-7.0.0 lib/rubysmith/builders/rspec/binstub.rb