<commit_before>Feature: Gem Package
  As a source code writer I want to be able to
  package the Gem into .gem file

  Scenario: Gem can be packaged
    Given I have a "execs.rb" file with content:
    """
    #!/usr/bin/env ruby
    require 'rubygems'
    spec = Gem::Specification::load('./spec.rb')
    fail 'no executables' if spec.executables.empty?
    """
    When I run bash with
    """
    set -e
    set -o pipefail
    cd pdd
    gem build pdd.gemspec
    gem specification --ruby pdd-*.gem > ../spec.rb
    cd ..
    ruby execs.rb
    """
    Then Exit code is zero<commit_msg>#12 simplified<commit_after>Feature: Gem Package
  As a source code writer I want to be able to
  package the Gem into .gem file

  Scenario: Gem can be packaged
    Given I have a "execs.rb" file with content:
    """
    #!/usr/bin/env ruby
    require 'rubygems'
    spec = Gem::Specification::load('./spec.rb')
    fail 'no executables' if spec.executables.empty?
    """
    When I run bash with
    """
    set -e
    cd pdd
    gem build pdd.gemspec
    gem specification --ruby pdd-*.gem > ../spec.rb
    cd ..
    ruby execs.rb
    """
    Then Exit code is zero
{'fraction_non_alphanumeric': 0.10680447889750215, 'fraction_numerical': 0.0017226528854435831, 'mean_word_length': 2.264044943820225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '897580', 'n_tokens_mistral': 388, 'n_tokens_neox': 371, 'n_words': 141}