Skip to content

Instantly share code, notes, and snippets.

View Azolo's full-sized avatar

Justin Baker Azolo

  • Fort Worth, Texas
View GitHub Profile
@Azolo
Azolo / configure.log
Created March 1, 2012 21:48
Error output trying to build rubinius with rubyinstaller devkit mingw64-32-4.5.4
[2012-03-01 15:43:18] Configuring Rubinius...
[2012-03-01 15:43:18] Configuring LLVM...
[2012-03-01 15:43:18] Checking for existing LLVM library tree:
[2012-03-01 15:43:19] found!
[2012-03-01 15:43:19]
[2012-03-01 15:43:19] Checking sizeof(short):
[2012-03-01 15:43:19] ---
#include <stddef.h>
int main() { return sizeof(short); }
@Azolo
Azolo / RDoc::Options
Created March 11, 2012 00:06
Error while generating Ruby 1.9.3 stdlib RDoc files in a Windows console
#<RDoc::Options:0x3b1fac8 @dry_run=false, @exclude=["./lib/rdoc"], @files=["sandbox/ruby_1_9/lib", "sandbox/ru
by_1_9/ext"], @force_output=false, @force_update=true, @generator=RDoc::Generator::Darkfish, @generator_name="
darkfish", @generator_options=[RDoc::Generator::Darkfish], @generators={"darkfish"=>RDoc::Generator::Darkfish,
"chm"=>RDoc::Generator::CHM, "ri"=>RDoc::Generator::RI}, @hyperlink_all=false, @line_numbers=false, @main_pag
e=nil, @markup="rdoc", @coverage_report=false, @op_dir="C:/Users/Justin/Projects/Ruby/rubyinstaller/sandbox/do
c_test/ruby19/ruby19-stdlib", @pipe=false, @rdoc_include=[], @show_hash=false, @static_path=[], @stylesheet_ur
l=nil, @tab_width=8, @template=nil, @template_dir=nil, @title="Ruby 1.9.3-p125 Standard Library API Reference"
, @update_output_dir=true, @verbosity=1, @visibility=:protected, @webcvs=nil, @write_options=false, @encoding=
#<Encoding:Windows-1252>, @charset="Windows-1252">
@Azolo
Azolo / cp_r_failure.rb
Created March 16, 2012 02:49
The closest thing I could figure out to the reason SDoc is failing on Windows
require 'fileutils'
Dir.mkdir 'src' unless Dir.exist?('src')
Dir.mkdir 'dest' unless Dir.exist?('dest')
FileUtils.cp_r 'src/.', 'dest', :preserve => true
puts "run 'explorer dest' and try again"
PS C:\Users\Justin\Projects\Ruby\test> gem i rdiscount json --no-ri --no-rdoc
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
ERROR: Error installing json:
pre-install hook at C:/SDK/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.
rb:2 failed for json-1.6.6
1 gem installed
@Azolo
Azolo / console
Created April 14, 2012 15:19
Why require causes Gem.pre_install to fail
irb(main):001:0> require 'devkit'
Temporarily enhancing PATH to include DevKit...
=> true
irb(main):002:0> require 'devkit'
=> false
@Azolo
Azolo / Ruby18 & RDoc 2.5.11
Created May 10, 2012 02:33
RubyInstaller Doc build times
Created c:\Users\Justin\Projects\Ruby\rubyinstaller\sandbox\doc\ruby18\ruby18-stdlib\ruby18-stdlib.chm, 3,206,539 bytes
Compression decreased file by 18,384,861 bytes.
Files: 469
Classes: 1192 ( 841 undocumented)
Constants: 1168 ( 1015 undocumented)
Modules: 264 ( 168 undocumented)
Methods: 6962 ( 4490 undocumented)
32.05% documented
@Azolo
Azolo / gist:2772739
Created May 23, 2012 01:34
File.realpath on Windows!
irb(main):063:0> File.realpath "./projects/Ruby/rubyinstaller/recipes/../readme.txt"
=> "C:/Users/Justin/projects/Ruby/rubyinstaller/readme.txt"
@Azolo
Azolo / Travis-CI-Windows.md
Created May 24, 2012 17:46
Travis-CI on Windows stuff

Travis CI on Windows (Box Building)

Why not use Vagrant?

  • Bare Box takes 20 minutes to Build
  • While licensing itself is not an issue, [activation is][1]
    • Boxes would require maintiance every 30 days and rebuilding every 120 days
  • No easy remote commands
    • ssh is through cygwin and cygwin doesn't present a clean environment
  • winrm is a [HUGE PAIN][2] if you're not on an Active Directory Domain
@Azolo
Azolo / Error
Created June 26, 2012 23:08
Eventmachine error: Issue #333
PS C:\Users\Justin\Projects\Ruby\test\rackapp> ruby .\app.rb -s webrick
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
C:/SDK/Ruby193-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 126: The specified module could
not be found. - C:/SDK/Ruby193-p194/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.rc.2-x86-mingw32/lib/1.9/rubyeventmac
hine.so (LoadError)
from C:/SDK/Ruby193-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/SDK/Ruby193-p194/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.rc.2-x86-mingw32/lib/rubyeventmachine.rb:2:
in `<top (required)>'
from C:/SDK/Ruby193-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/SDK/Ruby193-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
@Azolo
Azolo / openssl.rb
Created June 27, 2012 15:09
RubyInstaller - How to add tasks for the knapsack packages
# Additional tasks for the knapsack openssl package
namespace(:dependencies) do
namespace(:openssl) do
task :activate => [:patch]
task :patch => [:extract] do
# All the stuff that we need to do!
end
end