<commit_before>#
# Cookbook Name:: passenger-gem
# Recipe:: default
#
# Copyright 2011, Cyclestreets Ltd

gem_package "passenger" do
  gem_binary "/usr/bin/gem1.9.1"
  action :install
end

#Fix the stupid path issues
link "/usr/bin/passenger-install-apache2-module" do
  to "/var/lib/gems/1.9.1/bin/passenger-install-apache2-module"
end

script "install the passenger module" do
  interpreter "bash"
  cwd "/tmp"
  code <<-EOH
    /usr/bin/passenger-install-apache2-module --auto
  EOH
  not_if "test -f /var/lib/gems/1.9.1/gems/passenger-3.0.9/ext/apache2/mod_passenger.so"
end
<commit_msg>Add some explicit dependencies that were hidden during development<commit_after>#
# Cookbook Name:: passenger-gem
# Recipe:: default
#
# Copyright 2011, Cyclestreets Ltd

["libcurl4-openssl-dev", "libssl-dev", "zlib1g-dev", "apache2-prefork-dev", "libapr1-dev", "libaprutil1-dev"].each do |p|
  package p
end

gem_package "passenger" do
  gem_binary "/usr/bin/gem1.9.1"
  action :install
end

#Fix the stupid path issues
link "/usr/bin/passenger-install-apache2-module" do
  to "/var/lib/gems/1.9.1/bin/passenger-install-apache2-module"
end

script "install the passenger module" do
  interpreter "bash"
  cwd "/tmp"
  code <<-EOH
    /usr/bin/passenger-install-apache2-module --auto
  EOH
  not_if "test -f /var/lib/gems/1.9.1/gems/passenger-3.0.9/ext/apache2/mod_passenger.so"
end

{'fraction_non_alphanumeric': 0.14119359534206696, 'fraction_numerical': 0.03275109170305677, 'mean_word_length': 3.875886524822695, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '4615064', 'n_tokens_mistral': 545, 'n_tokens_neox': 526, 'n_words': 117}