Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
darrinholst committed Dec 17, 2009
1 parent 3e29891 commit d31f4e1
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 83 deletions.
16 changes: 10 additions & 6 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
== 2.3.5 2009-12-16

* Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]

== 2.3.2 2009-07-16

* explicitly load associations.rb due to some getting an unitialized constant error
Expand Down Expand Up @@ -46,7 +50,7 @@

== 1.0.4 2008-07-15

* support for oracle_enhanced adapter [thx Raimonds Simanovskis]
* support for oracle_enhanced adapter [thx Raimonds Simanovskis]

== 1.0.3 2008-07-13

Expand Down Expand Up @@ -116,7 +120,7 @@
== 0.8.4 / 2007-5-3

* 1 bugfix
* Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
* Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.

== 0.8.3 / 2007-5-3

Expand Down Expand Up @@ -154,11 +158,11 @@
== 0.1.4
* it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class

== 0.0.1
== 0.0.1
* Initial version
* set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
* find(*ids) supports the passing of
* id sets: Foo.find(2,1),
* lists of id sets: Foo.find([2,1], [7,3], [8,12]),
* find(*ids) supports the passing of
* id sets: Foo.find(2,1),
* lists of id sets: Foo.find([2,1], [7,3], [8,12]),
* and even stringified versions of the above:
* Foo.find '2,1' or Foo.find '2,1;7,3'
130 changes: 65 additions & 65 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
require 'fileutils'
require 'hoe'
include FileUtils
require File.join(File.dirname(__FILE__), 'lib', 'composite_primary_keys', 'version')

AUTHOR = "Dr Nic Williams"
EMAIL = "drnicwilliams@gmail.com"
DESCRIPTION = "Composite key support for ActiveRecords"
GEM_NAME = "composite_primary_keys" # what ppl will type to install your gem
if File.exists?("~/.rubyforge/user-config.yml")
# TODO this should prob go in a local/ file
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
RUBYFORGE_USERNAME = config["username"]
end
RUBYFORGE_PROJECT = "compositekeys"
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"

REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
VERS = ENV['VERSION'] || (CompositePrimaryKeys::VERSION::STRING + (REV ? ".#{REV}" : ""))
CLEAN.include ['**/.*.sw?', '*.gem', '.config','debug.log','*.db','logfile','log/**/*','**/.DS_Store', '.project']
RDOC_OPTS = ['--quiet', '--title', "newgem documentation",
"--opname", "index.html",
"--line-numbers",
"--main", "README",
"--inline-source"]

class Hoe
def extra_deps
@extra_deps.reject { |x| Array(x).first == 'hoe' }
end
end

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
hoe = Hoe.new(GEM_NAME, VERS) do |p|
p.author = AUTHOR
p.description = DESCRIPTION
p.email = EMAIL
p.summary = DESCRIPTION
p.url = HOMEPATH
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
p.test_globs = ["test/**/test*.rb"]
p.clean_globs |= CLEAN #An array of file patterns to delete on clean.

# == Optional
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.extra_deps = [['activerecord', '>= 2.3.2']] #An array of rubygem dependencies.
#p.spec_extras - A hash of extra values to set in the gemspec.
end

CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
PATH = RUBYFORGE_PROJECT
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')

PROJECT_ROOT = File.expand_path(".")

require 'loader'
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
require 'fileutils'
require 'hoe'
include FileUtils
require File.join(File.dirname(__FILE__), 'lib', 'composite_primary_keys', 'version')

AUTHOR = "Dr Nic Williams"
EMAIL = "drnicwilliams@gmail.com"
DESCRIPTION = "Composite key support for ActiveRecords"
GEM_NAME = "composite_primary_keys" # what ppl will type to install your gem
if File.exists?("~/.rubyforge/user-config.yml")
# TODO this should prob go in a local/ file
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
RUBYFORGE_USERNAME = config["username"]
end
RUBYFORGE_PROJECT = "compositekeys"
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"

REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
VERS = ENV['VERSION'] || (CompositePrimaryKeys::VERSION::STRING + (REV ? ".#{REV}" : ""))
CLEAN.include ['**/.*.sw?', '*.gem', '.config','debug.log','*.db','logfile','log/**/*','**/.DS_Store', '.project']
RDOC_OPTS = ['--quiet', '--title', "newgem documentation",
"--opname", "index.html",
"--line-numbers",
"--main", "README",
"--inline-source"]

class Hoe
def extra_deps
@extra_deps.reject { |x| Array(x).first == 'hoe' }
end
end

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
hoe = Hoe.new(GEM_NAME, VERS) do |p|
p.author = AUTHOR
p.description = DESCRIPTION
p.email = EMAIL
p.summary = DESCRIPTION
p.url = HOMEPATH
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
p.test_globs = ["test/**/test*.rb"]
p.clean_globs |= CLEAN #An array of file patterns to delete on clean.

# == Optional
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.extra_deps = [['activerecord', '>= 2.3.5']] #An array of rubygem dependencies.
#p.spec_extras - A hash of extra values to set in the gemspec.
end

CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
PATH = RUBYFORGE_PROJECT
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')

PROJECT_ROOT = File.expand_path(".")

require 'loader'
16 changes: 8 additions & 8 deletions lib/composite_primary_keys/version.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module CompositePrimaryKeys
module VERSION #:nodoc:
MAJOR = 2
MINOR = 3
TINY = 2
STRING = [MAJOR, MINOR, TINY].join('.')
end
end
module CompositePrimaryKeys
module VERSION #:nodoc:
MAJOR = 2
MINOR = 3
TINY = 5
STRING = [MAJOR, MINOR, TINY].join('.')
end
end
4 changes: 2 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<h1>Composite Primary Keys</h1>
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/compositekeys"; return false'>
Get Version
<a href="http://rubyforge.org/projects/compositekeys" class="numbers">2.3.2</a>
<a href="http://rubyforge.org/projects/compositekeys" class="numbers">2.3.5</a>
</div>
<h1>&#8594; Ruby on Rails</h1>
<h1>&#8594; ActiveRecords</h1>
Expand Down Expand Up @@ -179,7 +179,7 @@ <h2>Licence</h2>
<h2>Contact</h2>
<p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
<p class="coda">
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 16th July 2009<br>
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 16th December 2009<br>
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/version-raw.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Announcement JS file
var version = "2.3.2";
var version = "2.3.5";
MagicAnnouncement.show('compositekeys', version);
2 changes: 1 addition & 1 deletion website/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Version JS file
var version = "2.3.2";
var version = "2.3.5";

document.write(" - " + version);

0 comments on commit d31f4e1

Please # to comment.