Skip to content

Instantly share code, notes, and snippets.

@rkh
Created February 4, 2009 12:28

Revisions

  1. rkh revised this gist Feb 4, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fake_json.gemspec
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ spec = Gem::Specification.new do |s|
    s.name = "json"
    s.version = "1.1.3"
    s.summary = "this fakes json (which is now included in stdlib)"
    s.homepage = "http://github.com/rkh/fake-json"
    s.homepage = "http://gist.github.com/gists/58071"
    s.has_rdoc = false
    s.required_ruby_version = '>= 1.9.1'
    en
  2. rkh revised this gist Feb 4, 2009. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions install_merb.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/bash

    cd /tmp
    wget http://gist.github.com/raw/58071/0384039634f2a32fee200e1d1ceddda68d0e8264/install_datamapper.sh
    chmod +x install_datamapper.sh
    ./install_datamapper.sh
    rm install_datamapper.sh
    sudo gem1.9 install merb
  3. rkh revised this gist Feb 4, 2009. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions install_datamapper.sh
    Original file line number Diff line number Diff line change
    @@ -16,13 +16,12 @@ sudo $GEM install *.gem
    cd ..
    sudo rm -R bcrypt-ruby

    # install all dependencies except json (which is now part of the stdlib)
    sudo $GEM install dm-core dm-aggregates dm-migrations \
    dm-serializer dm-timestamps dm-validations dm-cli \
    dm-is-tree dm-observer hoe
    wget http://gist.github.com/raw/58071/1227b150850f3bdbda052b080943c29b4ad10138/fake_json.gemspec
    $GEM build fake_json.gemspec
    sudo $GEM install json-*.gem
    rm fake_json.gemspec json-*.gem

    # install datamapper without dependencies (we already got those)
    sudo $GEM install dm-types datamapper --ignore-dependencies
    sudo $GEM install datamapper

    # that's about it
    exit
  4. rkh revised this gist Feb 4, 2009. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions fake_json.gemspec
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    spec = Gem::Specification.new do |s|
    s.name = "json"
    s.version = "1.1.3"
    s.summary = "this fakes json (which is now included in stdlib)"
    s.homepage = "http://github.com/rkh/fake-json"
    s.has_rdoc = false
    s.required_ruby_version = '>= 1.9.1'
    en
  5. rkh revised this gist Feb 4, 2009. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions install_hpricot.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    which ragel || (echo "install ragel" && exit)
    cd /tmp
    git clone git://github.com/rkh/hpricot.git
    cd hpricot
    rake ragel && rake ragel_java && rake gem
    sudo gem1.9 install pkg/*.gem
    cd ..
    sudo rm -R hpricot
  6. rkh revised this gist Feb 4, 2009. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions install_eventmachine.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash

    cd /tmp
    git clone git://github.com/eventmachine/eventmachine.git
    cd eventmachine
    gem1.9 build *.gemspec
    sudo gem1.9 install *.gem
    cd ..
    sudo rm -R eventmachine
  7. rkh revised this gist Feb 4, 2009. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions compare_gems.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    gem1.8 list --local --no-versions > 1.8.txt
    gem1.9 list --local --no-versions > 1.9.txt
    diff gem1.8.txt gem1.9.txt
  8. rkh revised this gist Feb 4, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_datamapper.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # script for installing datamapper under ruby 1.9.1
    #
    # tested on Ubuntu and OpenSolaris

    # change this to your gem binary for ruby 1.9
    GEM=gem1.9
  9. rkh revised this gist Feb 4, 2009. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions install_datamapper.sh
    Original file line number Diff line number Diff line change
    @@ -3,26 +3,26 @@
    #

    # change this to your gem binary for ruby 1.9
    GEM=`which gem1.9`
    GEM=gem1.9

    # don't mess with the file system
    cd /tmp

    # bcrypt gem does not work with 1.9, we have to use the sources
    git clone git://github.com/genki/bcrypt-ruby.git
    cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo gem1.9 install *.gem
    $GEM build *.gemspec
    sudo $GEM install *.gem
    cd ..
    sudo rm -R bcrypt-ruby

    # install all dependencies except json (which is now part of the stdlib)
    sudo gem1.9 install dm-core dm-aggregates dm-migrations \
    sudo $GEM install dm-core dm-aggregates dm-migrations \
    dm-serializer dm-timestamps dm-validations dm-cli \
    dm-is-tree dm-observer hoe

    # install datamapper without dependencies (we already got those)
    sudo gem1.9 install dm-types datamapper --ignore-dependencies
    sudo $GEM install dm-types datamapper --ignore-dependencies

    # that's about it
    exit
  10. rkh renamed this gist Feb 4, 2009. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions gistfile1.sh → install_datamapper.sh
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,28 @@
    #
    #!/bin/bash
    # script for installing datamapper under ruby 1.9.1
    #

    # change this to your gem binary for ruby 1.9
    GEM=`which gem1.9`

    # don't mess with the file system
    cd /tmp

    # bcrypt gem does not work with 1.9, we have to use the sources
    git clone git://github.com/genki/bcrypt-ruby.git
    cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    sudo gem1.9 install *.gem
    cd ..
    rm -R bcrypt-ruby
    sudo rm -R bcrypt-ruby

    # install all dependencies except json (which is now part of the stdlib)
    gem1.9 install dm-core dm-aggregates dm-migrations \
    sudo gem1.9 install dm-core dm-aggregates dm-migrations \
    dm-serializer dm-timestamps dm-validations dm-cli \
    dm-is-tree dm-observer hoe

    # install datamapper without dependencies (we already got those)
    gem1.9 install dm-types datamapper --ignore-dependencies
    sudo gem1.9 install dm-types datamapper --ignore-dependencies

    # that's about it
    exit
  11. rkh revised this gist Feb 4, 2009. 1 changed file with 17 additions and 4 deletions.
    21 changes: 17 additions & 4 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,26 @@
    # installing datamapper under ruby 1.9
    #
    # script for installing datamapper under ruby 1.9.1
    #

    # don't mess with the file system
    cd /tmp

    # bcrypt gem does not work with 1.9, we have to use the sources
    git clone git://github.com/genki/bcrypt-ruby.git
    cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    cd ..
    rm -R bcrypt-ruby
    gem1.9 install dm-core dm-aggregates dm-migrations dm-serializer dm-timestamps dm-validations dm-cli dm-is-tree dm-observer hoe

    # install all dependencies except json (which is now part of the stdlib)
    gem1.9 install dm-core dm-aggregates dm-migrations \
    dm-serializer dm-timestamps dm-validations dm-cli \
    dm-is-tree dm-observer hoe

    # install datamapper without dependencies (we already got those)
    gem1.9 install dm-types datamapper --ignore-dependencies
    exit
    cd -

    # that's about it
    exit
  12. rkh revised this gist Feb 4, 2009. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,9 @@ cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    cd ..
    rm -R bcrypt-ruby
    gem1.9 install dm-core dm-aggregates dm-migrations dm-serializer dm-timestamps dm-validations dm-cli dm-is-tree dm-observer hoe
    gem1.9 install dm-types datamapper --ignore-dependencies
    exit
    exit
    cd -
  13. rkh revised this gist Feb 4, 2009. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,6 @@ cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    gem1.9 install dm-core
    gem1.9 install dm-types --ignore-dependencies
    gem1.9 install datamapper
    gem1.9 install dm-core dm-aggregates dm-migrations dm-serializer dm-timestamps dm-validations dm-cli dm-is-tree dm-observer hoe
    gem1.9 install dm-types datamapper --ignore-dependencies
    exit
  14. rkh revised this gist Feb 4, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,6 @@ gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    gem1.9 install dm-core
    gem1.9 install dm-more --ignore-dependencies
    gem1.9 install dm-types --ignore-dependencies
    gem1.9 install datamapper
    exit
  15. rkh created this gist Feb 4, 2009.
    11 changes: 11 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # installing datamapper under ruby 1.9
    cd /tmp
    git clone git://github.com/genki/bcrypt-ruby.git
    cd bcrypt-ruby
    gem1.9 build *.gemspec
    sudo -s
    gem1.9 install *.gem
    gem1.9 install dm-core
    gem1.9 install dm-more --ignore-dependencies
    gem1.9 install datamapper
    exit