CalebFenton/dex-oracle

View on GitHub
dex-oracle.gemspec

Summary

Maintainability
Test Coverage
# -*- encoding: utf-8 -*-
$LOAD_PATH.push('lib')
require 'dex-oracle/version'

Gem::Specification.new do |s|
  s.name     = 'dex-oracle'
  s.version  = DexOracle::VERSION.dup
  s.date     = '2018-12-13'
  s.license = 'MIT'
  s.summary  = 'Pattern based Dalvik deobfuscator'
  s.email    = 'calebjfenton@gmail.com'
  s.homepage = 'https://github.com/CalebFenton/dex-oracle'
  s.authors  = ['Caleb Fenton']
  s.description = <<-EOF
A pattern based Dalvik deobfuscator which uses limited execution to improve semantic analysis.
EOF

  dependencies = [
    [:runtime, 'rubyzip', '~> 1.1', '>= 1.1.0'],
    [:development, 'rspec', '~> 3.4', '>= 3.4.0'],
    [:development, 'rspec-its', '~> 1.2', '>= 1.2.0'],
    [:development, 'rspec-mocks', '~> 3.4', '>= 3.4.0'],
  ]

  exclude_files = Dir['driver/{build,bin}/**/*'] + Dir['sandbox/**/*'] + Dir['coverage/**/*'] + Dir['docker/**/*'] + %w(driver/build driver/bin sandbox coverage docker .dockerignore)
  s.files         = Dir['**/*'] - exclude_files
  s.test_files    = Dir['test/**/*'] + Dir['spec/**/*']
  s.executables   = Dir['bin/*'].map { |f| File.basename(f) }
  s.require_paths = %w(lib res)

  ## Make sure you can build the gem on older versions of RubyGems too:
  s.rubygems_version = '2.2'
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
  s.specification_version = 3 if s.respond_to? :specification_version

  dependencies.each do |type, name, pversion, version|
    if s.respond_to?("add_#{type}_dependency")
      s.send("add_#{type}_dependency", name, pversion, version)
    else
      s.add_dependency(name, pversion, version)
    end
  end
end