Sha256: c48e01ce1cb0583099b5b2ef3394f98a722533f0c0c1132a64e056adc2ef6752

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

module Semmy
  module RubyGems
    extend self

    def build_and_test_install
      Shell.sub_process_output(`#{command}`)
      $?.success?
    end

    private

    def command
      "gem build -V #{Gemspec.path} 2>&1 && " \
      "gem install --local #{built_gem_path} 2>&1 && " \
      "gem uninstall #{Gemspec.gem_name} -v #{Project.version} 2>&1 && " \
      "rm #{built_gem_path}" \
    end

    def built_gem_path
      [Gemspec.gem_name, '-', Project.version, '.gem'].join
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
semmy-1.0.1 lib/semmy/ruby_gems.rb
semmy-1.0.0 lib/semmy/ruby_gems.rb
semmy-0.4.0 lib/semmy/ruby_gems.rb
semmy-0.3.0 lib/semmy/ruby_gems.rb