<commit_before>gem 'rack-cors', require: 'rack/cors'
gem 'rspec-rails'
gem 'spring-commands-rspec'
gem 'database_cleaner'
gem 'simplecov', '~> 0.7.1', require: false
gem 'kramdown',  '~> 1.3'
gem 'pdfkit', '~> 0.5'
gem 'wkhtmltopdf-binary', '~> 0.9'
gem 'execjs'
gem 'coderay'

unless ENV['TRAVIS']
  if RUBY_VERSION > '2.0.0'
    gem 'pry-byebug', group: [:development, :test]
  else
    gem 'pry-debugger', group: [:development, :test]
  end
  gem 'pry-stack_explorer', group: [:development, :test]
end

gem 'unicorn', group: :production
gem 'therubyracer', group: :production

append_to_file 'Gemfile' do
  gem = if ENV['TRAVIS']
    "gem 'lurker', github: 'razum2um/lurker', branch: 'master'"
  else
    origin = `git config --get remote.origin.url`.scan(/github\.com.(.*).git/).flatten.first rescue 'razum2um/master'
    branch = `git rev-parse --abbrev-ref HEAD` rescue 'master'
    "gem 'lurker', github: '#{origin}', branch: '#{branch}'"
  end
<commit_msg>typo in app generator<commit_after>gem 'rack-cors', require: 'rack/cors'
gem 'rspec-rails'
gem 'spring-commands-rspec'
gem 'database_cleaner'
gem 'simplecov', '~> 0.7.1', require: false
gem 'kramdown',  '~> 1.3'
gem 'pdfkit', '~> 0.5'
gem 'wkhtmltopdf-binary', '~> 0.9'
gem 'execjs'
gem 'coderay'

unless ENV['TRAVIS']
  if RUBY_VERSION > '2.0.0'
    gem 'pry-byebug', group: [:development, :test]
  else
    gem 'pry-debugger', group: [:development, :test]
  end
  gem 'pry-stack_explorer', group: [:development, :test]
end

gem 'unicorn', group: :production
gem 'therubyracer', group: :production

append_to_file 'Gemfile' do
  gem = if ENV['TRAVIS']
    "gem 'lurker', github: 'razum2um/lurker', branch: 'master'"
  else
    origin = `git config --get remote.origin.url`.scan(/github\.com.(.*).git/).flatten.first rescue 'razum2um/lurker'
    branch = `git rev-parse --abbrev-ref HEAD` rescue 'master'
    "gem 'lurker', github: '#{origin}', branch: '#{branch}'"
  end

{'fraction_non_alphanumeric': 0.18698347107438015, 'fraction_numerical': 0.014462809917355372, 'mean_word_length': 4.350828729281768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2097250', 'n_tokens_mistral': 801, 'n_tokens_neox': 768, 'n_words': 189}