<commit_before>require 'rubygems/package_task'
require './lib/given/version'

if ! defined?(Gem)
  puts "Package Target requires RubyGEMs"
else
  PKG_FILES = FileList[
    '[A-Z]*',
    'lib/*.rb',
    'lib/**/*.rb',
    'rakelib/**/*',
    'test/**/*.rb',
    'spec/**/*.rb',
    'examples/**/*',
    'doc/**/*',
  ]
  PKG_FILES.exclude('TAGS')
  GIVEN_CORE_FILES = FileList[*PKG_FILES].
    exclude("lib/given/minispec/**/*").
    exclude("lib/given/rspec/**/*").
    exclude("lib/*-given.rb").
    exclude("lib/rspec/**/*").
    exclude("lib/mini*/**/*").
    exclude("spec/**/*").
    exclude("examples/**/*")
  RSPEC_GIVEN_FILES = FileList[*PKG_FILES].
    exclude("lib/mini*/**/*").
    exclude("lib/mini*-given.rb").
    exclude("lib/given/**/*")
  MINISPEC_GIVEN_FILES = FileList[*PKG_FILES].
    exclude("spec/**/*").
    exclude("lib/rspec-given.rb").
    exclude("lib/rspec*/**/*").
    exclude("lib/given/**/*")

  RSPEC_GIVEN_SPEC = Gem::Specification.new do |s|
    s.name = 'rspec-given'
    s.version = Given::VERSION
    s.summary = "Given/When/Then Specification Extensions for RSpec."
    s.description = <<EOF
Given is an RSpec extension that allows the use of Given/When/Then
terminology when defining specifications.
EOF
    s.files = RSPEC_GIVEN_FILES.to_a
    s.require_path = 'lib'                         # Use these for libraries.<commit_msg>Fixed missing files from gemspec.<commit_after>require 'rubygems/package_task'
require './lib/given/version'

if ! defined?(Gem)
  puts "Package Target requires RubyGEMs"
else
  PKG_FILES = FileList[
    '[A-Z]*',
    'lib/*.rb',
    'lib/**/*.rb',
    'rakelib/**/*',
    'test/**/*.rb',
    'spec/**/*.rb',
    'examples/**/*',
    'doc/**/*',
  ]
  PKG_FILES.exclude('TAGS')
  GIVEN_CORE_FILES = FileList[*PKG_FILES].
    exclude("lib/*-given.rb").
    exclude("lib/rspec/**/*").
    exclude("lib/mini*/**/*").
    exclude("spec/**/*").
    exclude("examples/**/*")
  RSPEC_GIVEN_FILES = FileList[*PKG_FILES].
    exclude("lib/mini*/**/*").
    exclude("lib/mini*-given.rb").
    exclude("lib/given/**/*")
  MINISPEC_GIVEN_FILES = FileList[*PKG_FILES].
    exclude("spec/**/*").
    exclude("lib/rspec-given.rb").
    exclude("lib/rspec*/**/*").
    exclude("lib/given/**/*")

  RSPEC_GIVEN_SPEC = Gem::Specification.new do |s|
    s.name = 'rspec-given'
    s.version = Given::VERSION
    s.summary = "Given/When/Then Specification Extensions for RSpec."
    s.description = <<EOF
Given is an RSpec extension that allows the use of Given/When/Then
terminology when defining specifications.
EOF
    s.files = RSPEC_GIVEN_FILES.to_a
    s.require_path = 'lib'                         # Use these for libraries.
{'fraction_non_alphanumeric': 0.2070123088399851, 'fraction_numerical': 0.0, 'mean_word_length': 2.967455621301775, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '2089732', 'n_tokens_mistral': 1014, 'n_tokens_neox': 947, 'n_words': 167}