# frozen_string_literal: true lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'cryptum/version' Gem::Specification.new do |spec| spec.required_ruby_version = ">= #{File.read('.ruby-version')}" spec.name = 'cryptum' spec.version = Cryptum::VERSION spec.authors = ['0day Inc.'] spec.email = ['request.pentest@0dayinc.com'] spec.summary = 'Coinbase Pro High-Frequency Trading Bot' spec.description = 'Personalized High-Frequency Trading Bot' spec.homepage = 'https://github.com/0dayinc/cryptum' spec.license = 'GPL' spec.metadata['rubygems_mfa_required'] = 'true' spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } 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