[#340543] 64-bit Ruby for OS X ? — Greg Willits <lists@...>

Has anyone built a 64-bit Ruby for Leopard. I've googled my brains out,

15 messages 2009/07/01
[#340599] Re: 64-bit Ruby for OS X ? — Eric Hodel <drbrain@...7.net> 2009/07/01

On Jun 30, 2009, at 18:36, Greg Willits wrote:

[#340699] file.seek and unused bytes — Greg Willits <lists@...>

Ruby 1.8.6

40 messages 2009/07/03
[#340763] Re: file.seek and unused bytes — Gary Wright <gwtmp01@...> 2009/07/05

[#340764] Re: file.seek and unused bytes — Greg Willits <lists@...> 2009/07/05

Gary Wright wrote:

[#340766] Re: file.seek and unused bytes — Brian Candler <b.candler@...> 2009/07/05

Greg Willits wrote:

[#340767] Re: file.seek and unused bytes — Greg Willits <lists@...> 2009/07/05

Brian Candler wrote:

[#340769] Re: file.seek and unused bytes — Brian Candler <b.candler@...> 2009/07/05

Greg Willits wrote:

[#340771] Re: file.seek and unused bytes — Greg Willits <lists@...> 2009/07/05

Brian Candler wrote:

[#340787] Re: file.seek and unused bytes — Robert Klemme <shortcutter@...> 2009/07/06

On 06.07.2009 00:13, Greg Willits wrote:

[#340792] Re: file.seek and unused bytes — Greg Willits <lists@...> 2009/07/06

Robert Klemme wrote:

[#340794] Re: file.seek and unused bytes — Brian Candler <b.candler@...> 2009/07/06

Greg Willits wrote:

[#340803] Re: file.seek and unused bytes — Greg Willits <lists@...> 2009/07/06

Eeek. Opened a can of worms!

[#340743] to_proc and Proc/block conversion with & — Russ McBride <russ@...>

16 messages 2009/07/05

[#340827] Help with rdoc - generate documentation for Ruby 1.9.1 Standard Library? — Bjoern <bjoerngt@...>

Hi,

15 messages 2009/07/06

[#340868] Ruby 1.8 - character encoding — Thomas Thomassen <thomas@...>

I write Ruby plugins for Google Sketchup.

23 messages 2009/07/07
[#340878] Re: Ruby 1.8 - character encoding — Gregory Brown <gregory.t.brown@...> 2009/07/07

On Tue, Jul 7, 2009 at 8:28 AM, Thomas Thomassen<thomas@thomthom.net> wrote=

[#341133] which project should I work on? — Roger Pack <rogerpack2005@...>

I was wondering on any feedback on which of the following pet projects

37 messages 2009/07/10

[#341174] Math cube root — Zangief Ief <z4n9ief@...>

Hi,

22 messages 2009/07/11

[#341177] one line sorting

Hi.

22 messages 2009/07/11

[#341178] Ruby Versions site; shell access to historical and current Rubies — "David A. Black" <dblack@...>

Hi all --

17 messages 2009/07/11
[#341188] Re: [ANN] Ruby Versions site; shell access to historical and current Rubies — Caleb Clausen <vikkous@...> 2009/07/11

On 7/11/09, David A. Black <dblack@rubypal.com> wrote:

[#341191] Re: [ANN] Ruby Versions site; shell access to historical and current Rubies — James Gray <james@...> 2009/07/11

On Jul 11, 2009, at 11:10 AM, Caleb Clausen wrote:

[#341200] Re: [ANN] Ruby Versions site; shell access to historical and current Rubies — Caleb Clausen <vikkous@...> 2009/07/11

On 7/11/09, James Gray <james@grayproductions.net> wrote:

[#341203] Re: [ANN] Ruby Versions site; shell access to historical and current Rubies — James Gray <james@...> 2009/07/11

On Jul 11, 2009, at 2:18 PM, Caleb Clausen wrote:

[#341376] a regex that does not contain comma — Sijo Kg <sijo@...>

Hi

21 messages 2009/07/14

[#341379] Twelve rules of Ruby — Panu Kinnari <panu.kinnari@...>

Scott Adams of Dilbert fame talked about learning twelve concepts of

32 messages 2009/07/14
[#341408] Re: Twelve rules of Ruby — "David A. Black" <dblack@...> 2009/07/14

Hi --

[#341412] Re: Twelve rules of Ruby — "David A. Black" <dblack@...> 2009/07/14

Not sure why they wrapped weirdly (at least on my screen), but here's

[#341423] Re: Twelve rules of Ruby — Garry Freemyer <garryfre@...> 2009/07/14

I would think that the twelve rules should be in the form of what things are, not what they are not.

[#341424] Re: Twelve rules of Ruby — "David A. Black" <dblack@...> 2009/07/14

Hi --

[#341427] Re: Twelve rules of Ruby — Marc Heiler <shevegen@...> 2009/07/14

> Objects don't "have" methods

[#341384] can't install ruby-prof 0.7.0 or superior on windows — "DG" <nospam@...>

I found windows users of 0.7.3 here but I still can't instal

10 messages 2009/07/14

[#341553] bluecloth 2.0.5 — ged@...

23 messages 2009/07/16

[#341620] regexp exclusion search - find matches NOT ending with a string? — BrendanC <brencam@...>

I have the following text in a file:

10 messages 2009/07/17

[#341692] removing array duplicates where a subset is unique — Chuck Remes <cremes.devlist@...>

I need to remove duplicates from an array of arrays. I can't use

24 messages 2009/07/17
[#341694] Re: [Q] removing array duplicates where a subset is unique — "David A. Black" <dblack@...> 2009/07/17

Hi --

[#341697] Re: [Q] removing array duplicates where a subset is unique — Chuck Remes <cremes.devlist@...> 2009/07/17

[#341699] Re: [Q] removing array duplicates where a subset is unique — "David A. Black" <dblack@...> 2009/07/18

Hi --

[#341709] Re: [Q] removing array duplicates where a subset is unique — Chuck Remes <cremes.devlist@...> 2009/07/18

[#341784] Re: removing array duplicates where a subset is unique — 7stud -- <bbxx789_05ss@...> 2009/07/19

Chuck Remes wrote:

[#341722] Problems with gems and Ruby 1.8.7 — Henrique Testa <hgtesta@...>

Hi all,

20 messages 2009/07/18

[#341814] Do you program in any other language except for ruby? — Milan Dobrota <elitecoding@...>

And what are they? :)

28 messages 2009/07/20

[#341837] ruby IDE's — Sunil Kumar <sunil.muki@...>

Hi This is sunil..

60 messages 2009/07/20
[#341839] Re: ruby IDE's — Tom Cloyd <tomcloyd@...> 2009/07/20

Sunil Kumar wrote:

[#341841] Re: ruby IDE's — Wesley Chen <cjq.999@...> 2009/07/20

I don't agree the guy Tom.

[#341901] Re: ruby IDE's — marc <gmane@...> 2009/07/20

James Britt wrote:

[#341918] Re: ruby IDE's — Tom Cloyd <tomcloyd@...> 2009/07/20

marc wrote:

[#342011] Re: ruby IDE's — Robert Dober <robert.dober@...> 2009/07/21

On 7/20/09, Tom Cloyd <tomcloyd@comcast.net> wrote:

[#342017] Re: ruby IDE's — Garry Freemyer <garryfre@...> 2009/07/21

I have Netbeans 6.7 on the Mac Os X platform and its quite an ordeal to get it to install gems without putting it in the wrong directory because it executes installation that requires installation using sudo and does not prompt for the password, so stuff gets installed in the wrong directory.

[#342097] Re: ruby IDE's — Hassan Schroeder <hassan.schroeder@...> 2009/07/22

On Tue, Jul 21, 2009 at 9:09 AM, Garry Freemyer<garryfre@pacbell.net> wrote:

[#342109] Re: ruby IDE's — Garry Freemyer <garryfre@...> 2009/07/22

Well, take the last two lines J2SE 5.0 J2SE 1.4.2

[#342114] Re: ruby IDE's — Hassan Schroeder <hassan.schroeder@...> 2009/07/22

On Tue, Jul 21, 2009 at 7:35 PM, Garry Freemyer<garryfre@pacbell.net> wrote:

[#342116] Re: ruby IDE's — Garry Freemyer <garryfre@...> 2009/07/22

I am surprised to see sarcasm in this mailing list, or maybe I am just disappointed.

[#342117] Re: ruby IDE's — Hassan Schroeder <hassan.schroeder@...> 2009/07/22

On Tue, Jul 21, 2009 at 8:32 PM, Garry Freemyer<garryfre@pacbell.net> wrote:

[#342118] Re: ruby IDE's — Garry Freemyer <garryfre@...> 2009/07/22

I know what ruby is. I don't know what programs are included in the nebulous mass of programs that come under J2SE heading.

[#342119] Re: ruby IDE's — Hassan Schroeder <hassan.schroeder@...> 2009/07/22

On Tue, Jul 21, 2009 at 8:50 PM, Garry Freemyer<garryfre@pacbell.net> wrote:

[#341906] including newlines in a .sub — Alan Munn <amunn@...>

Hi, I'm new to ruby, and am having trouble with the following (\n is

12 messages 2009/07/20

[#341950] Byte窶都tream parsing in Ruby — Elliott Cable <me@...>

So, I’ve a problem. I’m using ncurses (or possibly not, might just

14 messages 2009/07/21
[#341979] Re: Byte窶都tream parsing in Ruby — Brian Candler <b.candler@...> 2009/07/21

Elliott Cable wrote:

[#342062] Re: Byte窶都tream parsing in Ruby — Elliott Cable <me@...> 2009/07/21

Brian Candler wrote:

[#341968] Mean method — "Älphä Blüë" <jdezenzio@...>

I'm working on a lot of math in my projects so I thought I would convert

19 messages 2009/07/21

[#341969] Ruby/Oracle connectivity — Dheeraj Gambhir <checktestingthings@...>

Hi All,

19 messages 2009/07/21

[#342013] String spliting and inclusion — Stuart Clarke <stuart.clarke1986@...>

Hi all,

17 messages 2009/07/21

[#342113] Best gem to parse Ruby with? — Tony Arcieri <tony@...>

I've been considering rewriting my require_all gem:

14 messages 2009/07/22
[#342115] Re: Best gem to parse Ruby with? — Caleb Clausen <vikkous@...> 2009/07/22

On 7/21/09, Tony Arcieri <tony@medioh.com> wrote:

[#342185] Instantiating classes / sharing data between classes — Trevoke <trevoke@...>

I think this is what I want to do (maybe I'm thinking about it wrong):

12 messages 2009/07/22

[#342287] splitting............. — Hunt Hunt <aksn18july@...>

Hi Friends,

14 messages 2009/07/23

[#342347] Watching a website for periodic outages — Glen Holcomb <damnbigman@...>

I'm needing to monitor a web application for periodic outages and log the

14 messages 2009/07/23

[#342453] using until — Lloyd Linklater <lloyd@2live4.com>

I am writing a little thing to find all the prime numbers to a million.

17 messages 2009/07/24

[#342573] What is the power function — Prateek Agarwal <prateek.agwl@...>

I am new to Ruby and am still learning some of the basic stuff.

17 messages 2009/07/27

[#342618] Posting an XML document to a protected API — Maruthy Mentireddi <maruthymukund@...>

I am working on the FrontEnd of a website and need to make a RESTful

10 messages 2009/07/28

[#342646] Good way to not forget to install gems on a server? — Max Williams <toastkid.williams@...>

I just broke my wife's website (my current side project) because i was

12 messages 2009/07/28

[#342725] previous value in array block — Jason Lillywhite <jason.lillywhite@...>

Is this a good way to use a previous value in an array block?

20 messages 2009/07/29
[#342731] Re: previous value in array block — Harry Kakueki <list.push@...> 2009/07/29

>

[#342734] Re: previous value in array block — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2009/07/29

On Wed, Jul 29, 2009 at 8:18 AM, Harry Kakueki<list.push@gmail.com> wrote:

[#342737] Re: previous value in array block — Xavier Noria <fxn@...> 2009/07/29

each_cons seems natural here:

[#342781] java.text api parallel in Ruby — Venkat Akkineni <venkatram.akkineni@...>

Hi

13 messages 2009/07/29
[#342810] Re: java.text api parallel in Ruby — Robert Klemme <shortcutter@...> 2009/07/30

On 30.07.2009 00:32, Venkat Akkineni wrote:

[#342806] How Come Ruby is Text-Oriented? — Mike Stephens <rubfor@...>

I've just been re-reading Byte August 1981 - an edition dedicated to

46 messages 2009/07/30

[#342865] how to stop the subclass from overriding a method. — Venkat Akkineni <venkatram.akkineni@...>

Hi

12 messages 2009/07/30

[#342952] Ruby-net-ldap fail — Bruno Sousa <brgsousa@...>

Hi,

12 messages 2009/07/31

ANN: Sequel 3.2.0 Released

From: Jeremy Evans <code@...>
Date: 2009-07-02 16:30:27 UTC
List: ruby-talk #340657
Sequel is a lightweight database access toolkit for Ruby.

* Sequel provides thread safety, connection pooling and a concise DSL
  for constructing database queries and table schemas.
* Sequel also includes a lightweight but comprehensive ORM layer for
  mapping records to Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
  statements, bound variables, stored procedures, master/slave
  configurations, and database sharding.
* Sequel makes it easy to deal with multiple records without having
  to break your teeth on SQL.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
  DB2, DBI, Firebird, Informix, JDBC, MySQL, ODBC, OpenBase, Oracle,
  PostgreSQL and SQLite3.

Sequel 3.2.0 has been released and should be available on the gem
mirrors.  The 3.2.0 release adds numerous improvements:

New Features
------------

* Common table expressions (CTEs) are now supported.  CTEs use the
  SQL WITH clause, and specify inline views that queries can use.
  They also support a recursive mode, where the CTE can recursively
  query its own output, allowing you do do things like load all
  branches for a given node in a plain tree structure.

  The standard with takes an alias and a dataset:

    DB[:vw].with(:vw, DB[:table].filter{col < 1})
    # WITH vw AS (SELECT * FROM table WHERE col < 1)
    # SELECT * FROM vw

  The recursive with takes an alias, a nonrecursive dataset, and a
  recursive dataset:

    DB[:vw].with_recursive(:vw,
      DB[:tree].filter(:id=>1),
      DB[:tree].join(:vw, :id=>:parent_id).
                select(:vw__id, :vw__parent_id))
    # WITH RECURSIVE vw AS (SELECT * FROM tree
    #     WHERE (id = 1)
    #     UNION ALL
    #     SELECT vw.id, vw.parent_id
    #     FROM tree
    #     INNER JOIN vw ON (vw.id = tree.parent_id))
    # SELECT * FROM vw

  CTEs are supported by Microsoft SQL Server 2005+, DB2 7+,
  Firebird 2.1+, Oracle 9+, and PostgreSQL 8.4+.

* SQL window functions are now supported, and a DSL has been added to
  ease their creation.  Window functions act similarly to aggregate
  functions but operate on sliding ranges of rows.

  In virtual row blocks (blocks passed to filter, select, order, etc.)
  you can now provide a block to method calls to change the default
  behavior to create functions that weren't possible previously.  The
  blocks aren't called, but their presence serves as a flag.

  What function is created depends on the arguments to the method:

  * If there are no arguments, an SQL::Function is created with the
    name of method used, and no arguments.  Previously, it was not
    possible to create functions without arguments using the virtual
    row block DSL.  Example:

      DB.dataset.select{version{}} # SELECT version()

  * If the first argument is :*, an SQL::Function is created with a
    single wildcard argument (*).  This is mostly useful for count:

      DB[:t].select{count(:*){}} # SELECT count(*) FROM t

  * If the first argument is :distinct, an SQL::Function is created
    with the keyword DISTINCT prefacing all remaining arguments. This
    is useful for aggregate functions such as count:

      DB[:t].select{count(:distinct, col1){}}
      # SELECT count(DISTINCT col1) FROM t

  * If the first argument is :over, the second argument, if provided,
    should be a hash of options to pass to SQL::Window.  The options
    hash can also contain :*=>true to use a wildcard argument as the
    function argument, or :args=>... to specify an array of arguments
    to use as the function arguments.

      DB[:t].select{rank(:over){}} # SELECT rank() OVER ()
      DB[:t].select{count(:over, :*=>true){}} # SELECT count(*) OVER ()
      DB[:t].select{sum(:over, :args=>col1,
                    :partition=>col2, :order=>col3){}}
      # SELECT sum(col1) OVER (PARTITION BY col2 ORDER BY col3)

  PostgreSQL also supports named windows.  Named windows can be
  specified by Dataset#window, and window functions can reference
  them using the :window option.

* Schema information for columns now includes a :ruby_default entry
  which contains a ruby object that represents the default given by
  the database (which is stored in :default).  Not all :default
  entries can be parsed into a :ruby_default, but if the
  schema_dumper extension previously supported it, it should work.

* Methods to create compound datasets (union, intersect, except), now
  take an options hash instead of a true/false flag.  The previous
  API is still supported, but switching to specifying the ALL setting
  using :all=>true is recommended.

  Additionally, you can now set :from_self=>false to not wrap the
  returned dataset in a "SELECT * FROM (...)".

* Dataset#ungraphed was added that removes the graphing information
  from the dataset.  This allows you to use Dataset#graph for the
  automatic aliasing, or #eager_graph for the automatic aliasing and
  joining, and then remove the graphing information so that the
  resulting objects will not be split into subhashes or associations.

* There were some introspection methods added to Dataset to describe
  which capabilities that dataset does or does not support:

    supports_cte?
    supports_distinct_on?
    supports_intersect_except?
    supports_intersect_except_all?
    supports_window_functions?

  In addition to being available for the user to use, these are also
  used internally, so attempting to use a CTE on a dataset that
  doesn't support it will raise an Error.

* Dataset#qualify was added, which is like qualify_to with a default
  of first_source.

  Additionally, qualify now affects PlaceholderLiteralStrings.  It
  doesn't scan the string (as Sequel never attempts to parse SQL),
  but if you provide the column as a symbol placeholder argument, it
  will qualify it.

* You can now specify the table and column Sequel::Migrator will use
  to record the current schema version.  The new Migrator.run method
  must be used to use these new options.

* The JDBC adapter now accepts :user and :password options, instead
  of requiring them to be specified in the connection string and
  handled by the JDBC driver.  This should allow connections to
  Oracle using the Thin JDBC driver.

* You can now specify the max_connections, pool_timeout, and
  single_threaded settings directly in the connection string:

    postgres:///database?single_threaded=t
    postgres:///database?max_connections=10&pool_timeout=20

* Dataset#on_duplicate_key_update now affects Dataset#insert when
  using MySQL.

* You can now specify the :opclass option when creating PostgreSQL
  indexes.  Currently, this only supports a single operator class
  for all columns.  If you need different operator classes per
  column, please post on sequel-talk.

* Model#autoincrementing_primary_key was added and can be used if
  the autoincrementing key isn't the same as the primary key.  The
  only likely use for this is on MySQL MyISAM tables with composite
  primary keys where only one of the composite parts is
  autoincrementing.

* You can now use database column values as search patterns and
  specify the text to search as a String or Regexp:

    String.send(:include, Sequel::SQL::StringMethods)
    Regexp.send(:include, Sequel::SQL::StringMethods)

    'a'.like(:x)  # ('a' LIKE x)
    /a/.like(:x)  # ('a' ~ x)
    /a/i.like(:x) # ('a' ~* x)
    /a/.like(:x, 'b') # (('a' ~ x) OR ('a' ~ 'b'))

* The Dataset#dataset_alias private method was added.  It can be
  overridden if you have tables named t0, t1, etc and want to make
  sure the default dataset aliases that Sequel uses do not clash
  with existing table names.

* Sequel now raises an Error if you call Sequel.connect with
  something that is not a Hash or String.

* bin/sequel now accepts a -N option to not test the database
  connection.

* An opening_databases.rdoc file was added to the documentation
  directory, which should be a good introduction for new users about
  how to set up your Database connection.

Other Improvements
------------------

* MySQL native adapter SELECT is much faster than before, up to 75%
  faster.

* JDBC SELECT is about 10% faster than before.  It's still much
  slower than the native adapters, due to conversion issues.

* bin/sequel now works with a YAML file on ruby 1.9.

* MySQL foreign key table constraints have been fixed.

* Database#indexes now works on PostgreSQL if the schema used is a
  Symbol.  It also works on PostgreSQL versions all the way back to
  7.4.

* Graphing of datasets with dataset sources has been fixed.

* Changing a columns name, type, or NULL status on MySQL now
  supports a much wider selection of column defaults.

* The stored procedure code is now thread-safe.  Sequel is
  thread-safe in general, but due to a bug the previous stored
  procedure code was not thread-safe.

* The ODBC adapter now drops statements automatically instead of
  requiring the user to do so manually, making it more similar
  to other adapters.

* The single_table_inheritance plugin no longer overwrites the STI
  field if the field already has a value.  This allows you to use
  create in the generic class to insert a value that will be
  returned as a subclass:

    Person.create(:kind => "Manager")

* When altering colums on MySQL, :unsigned, :elements, :size and other
  options given are no longer ignored.

* The PostgreSQL shared adapter's explain and analyze methods have
  been fixed, they had been broken in 3.0.

* Parsing of the server's version is more robust on PostgreSQL.
  It should now work correctly for 8.4 and 8.4rc1 type versions.

Backwards Compatibility
-----------------------

* Dataset#table_exists? has been removed, since it never worked
  perfectly.  Use Database#table_exists? instead.

* Model.grep now calls Dataset#grep instead of Enumerable#grep.
  If you are using Model.grep, you need to modify your application.

* The MSSQL shared adapter previously used the :with option for
  storing the NOLOCK setting of the query.  That option has been
  renamed to :table_options, since :with is now used for CTEs.
  This should not have an effect unless you where using the option
  manually.

* Previously, providing a block to a method calls in virtual row
  blocks did not change behavior, where now it causes a different
  code path to be used.  In both cases, the block is not evaluated,
  but that may change in a future version.

* Dataset#to_table_reference protected method was removed, as it was
  no longer used.

* The pool_timeout setting is now converted to an Integer, so if you
  used to pass in a Float, it no longer works the same way.

* Most files in adapters/utils have been removed, in favor of
  integrating the code directly into Database and Dataset.  If you
  were previously checking for the UnsupportedIntersectExcept or
  related modules, use the Dataset introspection methods instead
  (e.g. supports_intersect_except?).

* If you were using the ODBC adapter and manually dropping returned
  statements, you should note that now statements are dropped
  automatically, and the execute method doesn't return a statement
  object.

* The MySQL adapter on_duplicate_key_update_sql is now a private
  method.

* If you were modifying the :from dataset option directly, note that
  Sequel now expects this option to be preprocessed.  See the new
  implementation of Dataset#from for an idea of the changes
  required.

* Dataset#simple_select_all? now returns false instead of true for a
  dataset that selects from another dataset.

Thanks,
Jeremy

* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Bug tracking}[http://code.google.com/p/ruby-sequel/issues/list]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
-- 
Posted via http://www.ruby-forum.com/.

In This Thread

Prev Next