Skip to content

Commit 305b965

Browse files
committed
Updated trunk with new directory structure.
1 parent 904b036 commit 305b965

213 files changed

Lines changed: 20205 additions & 53 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

TODO

Lines changed: 0 additions & 46 deletions
This file was deleted.

CHANGELOG renamed to core/CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
=== 0.5 (2007-12-26)
2+
3+
* Removed model code into separate sub-project. Rearranged trunk into core, model and model_plugins.
4+
15
=== 0.4.5 (2007-12-25)
26

37
* Added rdoc for new alter_table functionality (#109).
File renamed without changes.
File renamed without changes.
File renamed without changes.

Rakefile renamed to core/Rakefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ include FileUtils
99
# Configuration
1010
##############################################################################
1111
NAME = "sequel"
12-
VERS = "0.4.5"
12+
VERS = "0.5"
1313
CLEAN.include ["**/.*.sw?", "pkg/*", ".config", "doc/*", "coverage/*"]
1414
RDOC_OPTS = [
1515
"--quiet",
16-
"--title", "Sequel: Concise ORM for Ruby",
16+
"--title", "Sequel: Database access for Ruby",
1717
"--opname", "index.html",
1818
"--line-numbers",
1919
"--main", "README",
@@ -29,7 +29,7 @@ Rake::RDocTask.new do |rdoc|
2929
rdoc.rdoc_dir = "doc/rdoc"
3030
rdoc.options += RDOC_OPTS
3131
rdoc.main = "README"
32-
rdoc.title = "Sequel: Lightweight ORM library for Ruby"
32+
rdoc.title = "Sequel: Database access for Ruby"
3333
rdoc.rdoc_files.add ["README", "COPYING", "lib/sequel.rb", "lib/**/*.rb"]
3434
end
3535

@@ -49,17 +49,14 @@ spec = Gem::Specification.new do |s|
4949
s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
5050
s.rdoc_options += RDOC_OPTS +
5151
["--exclude", "^(examples|extras)\/", "--exclude", "lib/sequel.rb"]
52-
s.summary = "Lightweight ORM library for Ruby"
52+
s.summary = "Database access for Ruby"
5353
s.description = s.summary
5454
s.author = "Sharon Rosner"
5555
s.email = "ciconia@gmail.com"
5656
s.homepage = "http://sequel.rubyforge.org"
5757
s.executables = ["sequel"]
5858
s.required_ruby_version = ">= 1.8.4"
5959

60-
# Instead of requiring this, how about we simply use it if it's available
61-
# by rescuing LoadError where we require it in model/validations.rb?
62-
# s.add_dependency("validatable")
6360
case RUBY_PLATFORM
6461
when /mswin/
6562
s.platform = Gem::Platform::CURRENT

core/TODO

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
* Database introspection. schema extraction and database dumping and copying.
2+
3+
* Add Dataset#update_or_create:
4+
5+
DB[:items].filter(:name => 'abc').update_or_create(:price => 100)
6+
7+
# equivalent to:
8+
9+
if (DB[:items].filter(:name => 'abc').update(:price => 100) < 1)
10+
DB[:items] << {:name => 'abc', :price => 100}
11+
12+
MySQL also supports a REPLACE INTO syntax which does the same:
13+
14+
REPLACE INTO items SET price = 100 WHERE name = 'abc'
15+
16+
* Adapters:
17+
18+
frontbase, interbase (http://ruby-dbi.rubyforge.org/)
19+
openbase (http://ruby-openbase.rubyforge.org)
File renamed without changes.

0 commit comments

Comments
 (0)