<commit_before>$:.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'risky/version'
require 'find'
 
# Don't include resource forks in tarballs on Mac OS X.
ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
ENV['COPYFILE_DISABLE'] = 'true'
 
# Gemspec
gemspec = Gem::Specification.new do |s|
  s.rubyforge_project = 'risky'
 
  s.name = 'risky'
  s.version = Risky::VERSION
  s.author = '<NAME>'
  s.email = '<EMAIL>'
  s.homepage = 'https://github.com/aphyr/risky'
  s.platform = Gem::Platform::RUBY
  s.summary = 'A Ruby ORM for the Riak distributed database.'
 
  s.files = FileList['{lib}/**/*', 'LICENSE', 'README.markdown'].to_a
  s.executables = []
  s.require_path = 'lib'
  s.has_rdoc = true
 
  s.required_ruby_version = '>= 1.8.6'
 
  s.add_dependency('riak-client', '~> 1.0.4')
end
 
Rake::GemPackageTask.new(gemspec) do |p|
  p.need_tar_gz = true
end
 
Rake::RDocTask.new do |rd|
  rd.main = 'Risky'
  rd.title = 'Risky'
  rd.rdoc_dir = 'doc'
 
  rd.rdoc_files.include('lib/**/*.rb')
end
 
desc "install Risky"
task :install => :gem do
  sh "gem install #{File.dirname(__FILE__)}/pkg/risky-#{Risky::VERSION}.gem"
end<commit_msg>Use rake tasks from bundler<commit_after>require "bundler/gem_tasks"
{'fraction_non_alphanumeric': 0.16899224806201552, 'fraction_numerical': 0.004651162790697674, 'mean_word_length': 4.31275720164609, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '3540827', 'n_tokens_mistral': 545, 'n_tokens_neox': 508, 'n_words': 102}