[#358392] Increase significant digits in Float — Jason Lillywhite <jason.lillywhite@...>

If I want to increase my significant digits beyond 15 in a result of a

12 messages 2010/03/02

[#358431] A gem for handling temporary file(s)? — Albert Schlef <albertschlef@...>

I'm writing a program that needs to generate two or three temporary

21 messages 2010/03/03
[#358432] Re: A gem for handling temporary file(s)? — Paul Harrington <xenogenesis@...> 2010/03/03

Albert Schlef wrote:

[#358443] Re: A gem for handling temporary file(s)? — Albert Schlef <albertschlef@...> 2010/03/03

Paul Harrington wrote:

[#358486] Re: A gem for handling temporary file(s)? — Caleb Clausen <vikkous@...> 2010/03/03

On 3/2/10, Albert Schlef <albertschlef@gmail.com> wrote:

[#358485] Test::Unit::Omission - Unable to omit tests — Champak Ch <champaka@...>

I am trying to omit some tests while using the test unit framework. My

12 messages 2010/03/03

[#358551] Shared hosting recommendation? — Rafael Vega <email.rafa@...>

Hello!

10 messages 2010/03/04

[#358559] Limit number of concurrent running threads in pool — Joe Martin <jm202@...>

Hi

14 messages 2010/03/04

[#358576] A good portable text editor/IDE for Ruby? — Reiichi Tyrael <xxreiichixx@...>

I am searching for a good portable text editor or IDE for Ruby to use on

19 messages 2010/03/05

[#358586] Base-64 encoding--Just for the fun of it! — "Aaron D. Gifford" <astounding@...>

Yes, there's always:

10 messages 2010/03/05

[#358611] On what of these books is better to start to study Ruby? — Vlad Gerasimov <refermaker@...>

I have 3 books:

12 messages 2010/03/05

[#358634] Conditional keys in hash - out of the box? — "Sven S." <svoop@...>

Hi

12 messages 2010/03/05

[#358661] Why no TextMate for Linux? — thunk <gmkoller@...>

I spent some happy development time in "VisualAge" for Smalltalk +

42 messages 2010/03/06

[#358702] win32console 1.3.0.beta2 Released — Luis Lavena <luislavena@...>

win32console version 1.3.0.beta2 has been released!

17 messages 2010/03/07

[#358757] Shortest code — Prasanth Ravi <dare.take@...>

hi i'm a newbie in ruby and was test out some interesting problems in

18 messages 2010/03/08

[#358885] reading an UTF-8 encoded file — unbewusst.sein@... (Une B騅ue)

13 messages 2010/03/10

[#359008] Dir.glob problem — David Vlad <cluny_gisslaren@...>

In the program Im making I need to read some wma files into a variable

21 messages 2010/03/12

[#359031] Newbie Help : Object — Jerome David Sallinger <imran.nazir@...>

Hello,

14 messages 2010/03/13

[#359090] Overriding new? — Andrea Dallera <andrea@...>

Hi everybody,

19 messages 2010/03/15
[#359091] Re: Overriding new? — Chuck Remes <cremes.devlist@...> 2010/03/15

[#359093] Re: Overriding new? — Andrea Dallera <andrea@...> 2010/03/15

Hei Chuck,

[#359130] Recommended way to install Rubygems — Leslie Viljoen <leslieviljoen@...>

Hi!

64 messages 2010/03/16
[#359175] Re: Recommended way to install Rubygems — Eric Hodel <drbrain@...7.net> 2010/03/17

On Mar 16, 2010, at 03:22, Leslie Viljoen wrote:

[#359176] Re: Recommended way to install Rubygems — Lucas Nussbaum <lucas@...> 2010/03/17

(Please Cc me when replying, I don't follow ruby-talk@ closely enough to

[#359183] Re: Recommended way to install Rubygems — Nick Brown <nick@...> 2010/03/18

Lucas: Thanks for maintaining the Ruby package in Ubuntu!

[#359187] Re: Recommended way to install Rubygems — Lucas Nussbaum <lucas@...> 2010/03/18

On 18/03/10 at 13:36 +0900, Nick Brown wrote:

[#359200] Re: Recommended way to install Rubygems — Nick Brown <nick@...> 2010/03/18

Lucas Nussbaum wrote:

[#359204] Re: Recommended way to install Rubygems — Lucas Nussbaum <lucas@...> 2010/03/18

On 18/03/10 at 23:05 +0900, Nick Brown wrote:

[#359210] Re: Recommended way to install Rubygems — Rick DeNatale <rick.denatale@...> 2010/03/18

On Thu, Mar 18, 2010 at 10:21 AM, Lucas Nussbaum

[#359215] Re: Recommended way to install Rubygems — Lucas Nussbaum <lucas@...> 2010/03/18

On 18/03/10 at 23:45 +0900, Rick DeNatale wrote:

[#359230] Re: Recommended way to install Rubygems — Aldric Giacomoni <aldric@...> 2010/03/18

Lucas Nussbaum wrote:

[#359233] Re: Recommended way to install Rubygems — Lucas Nussbaum <lucas@...> 2010/03/18

On 19/03/10 at 02:49 +0900, Aldric Giacomoni wrote:

[#359171] Replace Text at Specific Positions Across Files — Shiny Hydra <slotriof@...>

Hello everyone,

12 messages 2010/03/17
[#359192] Re: Replace Text at Specific Positions Across Files — Robert Klemme <shortcutter@...> 2010/03/18

2010/3/17 Shiny Hydra <slotriof@guerrillamailblock.com>:

[#359198] Re: Replace Text at Specific Positions Across Files — Shiny Hydra <slotriof@...> 2010/03/18

> So your file has fixed width records? This is important to know,

[#359255] Grouping elements of an array — Steve Wilhelm <steve@...831.com>

I have an array of records that contain timestamps at random intervals.

24 messages 2010/03/18

[#359354] Living with a Swarm of Boids - A report from the front — thunk <gmkoller@...>

Hi,

15 messages 2010/03/20

[#359388] A plugin system using extend — Jean-denis Vauguet <jd@...>

Hi.

17 messages 2010/03/21
[#359394] Re: A plugin system using extend — Josh Cheek <josh.cheek@...> 2010/03/21

On Sat, Mar 20, 2010 at 9:46 PM, Jean-denis Vauguet <jd@vauguet.fr> wrote:

[#359398] Re: A plugin system using extend — Jean-denis Vauguet <jd@...> 2010/03/21

Thank you Josh. Actually I've already tested what you wrote and that's

[#359402] Re: A plugin system using extend — Jean-denis Vauguet <jd@...> 2010/03/21

Another idea I had is the following:

[#359410] Re: A plugin system using extend — James Edward Gray II <james@...> 2010/03/21

On Mar 21, 2010, at 2:13 AM, Jean-denis Vauguet wrote:

[#359420] Reading contents of all files from a Directory — Hawksury Gear <blackhawk_932@...>

Hello,

23 messages 2010/03/21
[#359422] Re: Reading contents of all files from a Directory — Jonathan Nielsen <jonathan@...> 2010/03/21

> I am trying to "Read Content" of all the files from a Directory. So far

[#359423] Re: Reading contents of all files from a Directory — Jonathan Nielsen <jonathan@...> 2010/03/21

> arr =3D Dir.open("K:/test").entries

[#359464] Re: Reading contents of all files from a Directory — Robert Klemme <shortcutter@...> 2010/03/22

2010/3/21 Jonathan Nielsen <jonathan@jmnet.us>:

[#360368] Re: Reading contents of all files from a Directory — Hawksury Gear <blackhawk_932@...> 2010/04/04

> If it is only for output purposes, we can actually do it in one line:

[#360370] Re: Reading contents of all files from a Directory — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2010/04/04

On Sun, Apr 4, 2010 at 3:06 PM, Hawksury Gear <blackhawk_932@hotmail.com> w=

[#360373] Re: Reading contents of all files from a Directory — Hawksury Gear <blackhawk_932@...> 2010/04/04

Thanks for replying ,when I am doing

[#360374] Re: Reading contents of all files from a Directory — Hassan Schroeder <hassan.schroeder@...> 2010/04/04

On Sun, Apr 4, 2010 at 8:16 AM, Hawksury Gear <blackhawk_932@hotmail.com> wrote:

[#360375] Re: Reading contents of all files from a Directory — Hawksury Gear <blackhawk_932@...> 2010/04/04

Hassan Schroeder wrote:

[#359662] index of string from beginning of line vs beginning of file — "Jesse B." <jessebos@...>

I am trying to write a basic script to implement "silent comments"

10 messages 2010/03/25
[#359663] Re: index of string from beginning of line vs beginning of file — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2010/03/25

On Thu, Mar 25, 2010 at 5:19 PM, Jesse B. <jessebos@aol.com> wrote:

[#359684] Ruby Summer of Code 2010 — Jeremy Kemper <jeremy@...>

Fellow Rubyists, I'm proud to announce the first annual Ruby Summer of Code.

20 messages 2010/03/26
[#359985] Re: [ANN] Ruby Summer of Code 2010 — Roger Pack <rogerpack2005@...> 2010/03/30

Jeremy Kemper wrote:

[#359697] Ruby and user documentation — Michel Demazure <michel@...>

Hi all,

20 messages 2010/03/26

[#359749] Boid writeup idea — thunk <gmkoller@...>

30 messages 2010/03/26

[#359909] return number of spaces at the beginning of a line — "Jesse B." <jessebos@...>

How would I find the number of spaces at the beginning of a line before

28 messages 2010/03/30
[#359925] Re: return number of spaces at the beginning of a line — Josh Cheek <josh.cheek@...> 2010/03/30

On Mon, Mar 29, 2010 at 8:41 PM, Jesse B. <jessebos@aol.com> wrote:

[#359941] Re: return number of spaces at the beginning of a line — Robert Klemme <shortcutter@...> 2010/03/30

2010/3/30 Josh Cheek <josh.cheek@gmail.com>:

[#359945] Re: return number of spaces at the beginning of a line — "Jesse B." <jessebos@...> 2010/03/30

This second post with the "spaces only" fix seems to meet all the needs

[#359961] Re: return number of spaces at the beginning of a line — Robert Klemme <shortcutter@...> 2010/03/30

2010/3/30 Jesse B. <jessebos@aol.com>:

[#360011] RubyDictionary - First Try — Max Schmidt <max.schmidt.privat@...>

Hello folks,

12 messages 2010/03/30
[#360035] Re: RubyDictionary - First Try — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2010/03/31

On Wed, Mar 31, 2010 at 12:40 AM, Max Schmidt

[#360033] Playing Games with "Ruids" — thunk <gmkoller@...>

46 messages 2010/03/31

ANN: Sequel 3.9.0 Released

From: Jeremy Evans <code@...>
Date: 2010-03-04 20:17:43 UTC
List: ruby-talk #358568
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.9.0 has been released and should be available on the gem
mirrors.

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

* The ConnectionPool classes were refactored from 2 separate
  classes to a 5 class hierarchy, with one main class and 4
  subclasses, one for each combination of sharding and threading.

  The primary reason for this refactoring is to make it so that
  the user doesn't have to pay a performance penalty for sharding
  if they aren't using it.  A connection pool that supports sharding
  is automatically used if the :servers option is used when setting
  up the database connection.

  In addition, the default connection pool no longer contains
  the code to schedule future disconnections of currently allocated
  connections.  The sharded connection pool must be used if that
  feature is desired.

  The unsharded connection pools are about 25-30% faster than the
  sharded versions.

* An optimistic_locking plugin was added to Sequel::Model.  This
  plugin implements a simple database-independent locking mechanism
  to ensure that concurrent updates do not override changes:

    class Person < Sequel::Model
      plugin :optimistic_locking
    end
    p1 = Person[1]
    p2 = Person[1]
    # works
    p1.update(:name=>'Jim')
    # raises Sequel::Plugins::OptimisticLocking::Error
    p2.update(:name=>'Bob')

  In order for this plugin to work, you need to make sure that the
  database table has a lock_version column (or other column you name
  via the lock_column class level accessor) that defaults to 0.

  The optimistic_locking plugin does not work with the
  class_table_inheritance plugin.

* Dataset#unused_table_alias was added, which takes a symbol and
  returns either that symbol or a new symbol which can be used as
  a table alias when joining a table to the dataset.  The symbol
  returned is guaranteed to not already be used by the dataset:

    DB[:test].unused_table_alias(:blah) # => :blah
    DB[:test].unused_table_alias(:test) # => :test_0

  The use case is when you need to join a table to a dataset, where
  the table may already be used inside the dataset, and you want
  to generate a unique alias:

    ds.join(:table.as(ds.unused_table_alias(:table)), ...)

* The Sequel::ValidationFailed exception now has an errors accessor
  which returns the Sequel::Model::Errors instance with the
  validation errors.  This can be helpful in situations where a
  generalized rescue is done where the model object reference is
  not available.

* bin/sequel now works without an argument, which is useful for
  testing SQL generation (and not much else).

* Support SELECT ... INTO in the MSSQL adapter, using Dataset#into,
  which takes a table argument.

* You can now provide your own connection pool class via the
  :pool_class option when instantiating the database.

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

* IN/NOT IN constructs with an empty array are now handled properly.

    DB[:table].filter(:id=>[]) # IN
    DB[:table].exclude(:id=>[]) # NOT IN

  Before, the IN construct would mostly work, other than some minor
  differences in NULL semantics.  However, the NOT IN construct
  would not work.  Sequel now handles the NOT IN case using an
  expression that evaluates to true.

* If using an IN/NOT IN construct with multiple columns and a dataset
  argument, where multiple column IN/NOT IN support is emulated, a
  separate query is done to get the records, which is then handled
  like an array of values.  This means that the following type of
  query now works on all tested databases:

    DB[:table1].filter([:id1, :id2]=>DB[:table2].select(:id1, :id2))

* Schemas and aliases are now handled correctly when eager graphing.

* Implicitly qualified symbols are now handled correctly in update
  statements, useful if you are updating a joined dataset and need
  to reference a column that appears in multiple tables.

* The active_model plugin has been brought up to date with
  activemodel 3.0 beta (though it doesn't work on edge).
  Additionally, the active_model plugin now requires active_model
  in order to use ActiveModel::Naming.

* In the schema_dumper extension, always include the varchar limit,
  even if it is 255 columns (the default).  This makes it so that
  PostgreSQL will use a varchar(255) column instead of a text column
  when restoring a schema dump of a varchar(255) column from another
  database.

* You can now load adapters from outside the Sequel lib directory,
  now they just need to be in a sequel/adapters directory somewhere
  in the LOAD_PATH.

* You can now load extensions from outside the Sequel lib directory
  using Sequel.extension.  External extensions need to be in a
  sequel/extensions directory somewhere in the LOAD_PATH.

* Using bound variables for limit and offset in prepared statements
  now works correctly.

* Performance of prepared statements was improved in the native
  SQLite adapter.

* The schema_dumper extension now passes the options hash from
  dump_*_migration to Database#tables.

* In the single_table_inheritance plugin, qualify the sti_key column
  with the table name, so that subclass datasets can safely be joined
  to other tables having the same column name.

* In the single_table_inheritance plugin, handle case where the
  sti_key value is nil or '' specially, so that those cases
  always return an instance of the main model class.  This fixes
  issues if constantize(nil) returns Object instead of raising
  an exception.

* No longer use Date#to_s for literalization, always use ISO8601
  format for dates.

* A couple lambdas which were instance_evaled were changed to procs
  for ruby 1.9.2 compatibility.

* MSSQL emulated offset support was simplified to only use one
  subquery, and made to work correctly on ruby 1.9.

* Emulate multiple column IN/NOT IN on H2, since it doesn't handle
  all cases correctly.

* ODBC timestamps are now handled correctly if the database_timezone
  is nil.

* ArgumentErrors raised when running queries in the ODBC adapter are
  now raised as DatabaseErrors.

* Attempting to use DISTINCT ON on SQLite now raises an error before
  sending the query to the database.

* The options hash passed to the database connection method is no
  longer modified.  However, there may be additional options
  present in Database#opts that weren't specified by the options
  hash passed to the database connection method.

* Make Dataset#add_graph_aliases handle the case where the dataset
  has not yet been graphed.

* You can now provide an SQL::Identifier as a 4th argument to
  Dataset#join_table, and unsupported arguments are caught and an
  exception is raised.

* The gem specification has been moved out of the Rakefile, so
  that the gem can now be built without rake, and works well with
  gem build and bundler.

* The Rakefile no longer assumes the current directory is in the
  $LOAD_PATH, so it should work correctly on ruby 1.9.2.

* All internal uses of require are now thread safe.

* Empty query parameter keys in connection strings are now ignored
  instead of raising an exception.

* The specs were changed so that you can run them in parallel.
  Previously there was a race condition in the migration extension
  specs.

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

* If you plan on using sharding at any point, you now must pass
  a :servers option when connecting to the database, even if it is
  an empty hash.  You can no longer just call Database#add_servers
  later.

* The connection_proc and disconnection_proc accessors were removed
  from the connection pools, so you can no longer modify the procs
  after the connection pool has been instantiated.  You must now
  provide the connection_proc as the block argument when
  instantiating the pool, and the disconnection_proc via the
  :disconnection_proc option.

* In the hash passed to Dataset#update, symbol keys with a double
  embedded underscore are now considerated as implicit qualifiers,
  instead of being used verbatim.  If you have a column that includes
  a double underscore, you now need to wrap it in an SQL::Identifier
  or use a String instead.

* The connection pools no longer convert non-StandardError based
  exceptions to RuntimeErrors.  Previously, all of the common adapters
  turned this feature off, so there is no change for most users.

* Sequel::ConnectionPool is now considered an abstract class and
  should not be instantiated directly.  Use ConnectionPool.get_pool
  to return an instance of the appropriate subclass.

* The Sequel::SingleThreadedPool constant is no longer defined.

* The private Dataset#eager_unique_table_alias method was removed,
  use the new public Dataset#unused_table_alias method instead, which
  has a slightly different API.

* The private Dataset#eager_graph_qualify_order method was removed,
  used Dataset#qualified_expression instead.

* The private Sequel::Model class methods plugin_gem_location and
  plugin_gem_location_old have been removed.

* Gems built with the rake tasks now show up in the root directory
  instead of the pkg subdirectory, and no tarball package is created.

Other News
----------

* Sequel now has an official blog at http://sequel.heroku.com.

Thanks,
Jeremy

* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {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