<commit_before>execute "download curl into usr/local" do
  command "mkdir -p /usr/local && cd /usr/local/ && wget http://curl.haxx.se/download/curl-7.19.7.tar.gz"
end

execute "configure, make, and install curl" do
  command "tar -xvzf curl-7.19.7.tar.gz && cd /usr/local/curl-7.19.7 && ./configure && make && make install"
end

execute 'update dynamic loader cache for curl' do
  command "echo '/usr/local/lib' >> /etc/ld.so.conf"
  not_if "grep /usr/local/lib /etc/ld.so.conf"
end

execute 'run dynamic linker' do
  command '/sbin/ldconfig'
end

execute 'add bundler line' do
  command 'cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/curl-7.19.7/'
end

execute 'rebundle' do
  command 'bundle install'
end<commit_msg>Working on curl chef script<commit_after>curl = 'curl-7.21.4'

execute 'download curl' do
  command "mkdir -p /tmp/install && wget http://curl.download.nextag.com/download/#{curl}.tar.gz"
  not_if "ls /tmp/install/#{curl}.tar.gz"
end

execute "unzip curl" do
  command "cd /tmp/install && tar -xvf #{curl}.tar.gz"
  command "cd /tmp/install/#{curl} && ./configure --with-ssl"
  command "cd /tmp/install/#{curl} && make"
  command "cd /tmp/install/#{curl} && make install"
  not_if "ls /usr/local/lib/libcurl.so.4"
end

execute 'update dynamic loader cache for curl' do
  command "echo '/usr/local/lib' >> /etc/ld.so.conf"
  not_if "grep /usr/local/lib /etc/ld.so.conf"
end

execute 'run dynamic linker' do
  command '/sbin/ldconfig'
end

#execute 'add bundler line' do
#  command "cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/#{curl}/"
#end
#
#execute 'rebundle' do
#  command 'bundle install'
#end
{'fraction_non_alphanumeric': 0.16380839739798936, 'fraction_numerical': 0.012418687167356593, 'mean_word_length': 3.5361930294906165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5509597', 'n_tokens_mistral': 655, 'n_tokens_neox': 623, 'n_words': 170}