Sha256: c39064877485e14adb1d5d47e6dbcee7d40fd799fff94d16914229d86e4e2c84

Contents?: true

Size: 1.58 KB

Versions: 38

Compression:

Stored size: 1.58 KB

Contents

# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'pwn/version'

Gem::Specification.new do |spec|
  # Switch back when RVM has stable 3.1.2 (i.e. not just preview / p20)
  # spec.required_ruby_version = ">= #{File.read('.ruby-version')}"
  required_minor_ruby_version = File.read('.ruby-version').split('.')[0..1].join('.')
  spec.required_ruby_version = ">= #{required_minor_ruby_version}"
  spec.name = 'pwn'
  spec.version = PWN::VERSION
  spec.authors = ['0day Inc.']
  spec.email = ['request.pentest@0dayinc.com']
  spec.summary = 'Automated Security Testing for CI/CD Pipelines & Beyond'
  spec.description = 'https://github.com/0dayinc/pwn/README.md'
  spec.homepage = 'https://github.com/0dayinc/pwn'
  spec.license = 'MIT'
  spec.metadata['rubygems_mfa_required'] = 'true'

  spec.files = `git ls-files -z`.split("\x0")
  spec.executables = spec.files.grep(%r{^bin/}) do |f|
    File.basename(f)
  end

  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ['lib']

  dev_dependency_arr = %i[
    bundler
    rake
    rdoc
    rspec
  ]

  File.readlines('./Gemfile').each do |line|
    columns = line.chomp.split
    next unless columns.first == 'gem'

    gem_name = columns[1].delete("'").delete(',')
    gem_version = columns.last.delete("'")

    if dev_dependency_arr.include?(gem_name.to_sym)
      spec.add_development_dependency(
        gem_name,
        gem_version
      )
    else
      spec.add_runtime_dependency(
        gem_name,
        gem_version
      )
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
pwn-0.4.460 pwn.gemspec
pwn-0.4.459 pwn.gemspec
pwn-0.4.458 pwn.gemspec
pwn-0.4.456 pwn.gemspec
pwn-0.4.454 pwn.gemspec
pwn-0.4.453 pwn.gemspec
pwn-0.4.452 pwn.gemspec
pwn-0.4.451 pwn.gemspec
pwn-0.4.450 pwn.gemspec
pwn-0.4.449 pwn.gemspec
pwn-0.4.448 pwn.gemspec
pwn-0.4.447 pwn.gemspec
pwn-0.4.446 pwn.gemspec
pwn-0.4.445 pwn.gemspec
pwn-0.4.444 pwn.gemspec
pwn-0.4.443 pwn.gemspec
pwn-0.4.442 pwn.gemspec
pwn-0.4.439 pwn.gemspec
pwn-0.4.438 pwn.gemspec
pwn-0.4.437 pwn.gemspec