Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zilkey committed Apr 26, 2010
1 parent ced95df commit 63f6c4e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2010-04-25
- When ActiveRecord model belongs_to an ActiveHash and the associated id is nil, returns nil instead of raising RecordNotFound (Jeremy Weiskotten)
- Merged Nakajima's "add" alias for "create" - gotta save those ASCII characters :)

2010-03-01
- Removed "extend"-related deprecations - they didn't play well with rails class loading

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ A quick example would be:
country.name # => "Mexico"
country.name? # => true

You can also use _create_:

class Country < ActiveHash::Base
create :id => 1, :name => "US"
create :id => 2, :name => "Canada"
end

If you are Pat Nakajima, you probably prefer _add_:

class Country < ActiveHash::Base
add :id => 1, :name => "US"
add :id => 2, :name => "Canada"
end

## Auto-Defined fields

ActiveHash will auto-define all fields for you when you load the hash. For example, if you have the following class:
Expand Down
18 changes: 3 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,13 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "jeremyw-active_hash"
gem.name = "active_hash"
gem.summary = %Q{An ActiveRecord-like model that uses a hash or file as a datasource}
gem.email = "jeff@zilkey.com"
gem.homepage = "http://github.com/jeremyw/active_hash"
gem.homepage = "http://github.com/zilkey/active_hash"
gem.authors = ["Jeff Dean", "Mike Dalessio", "Corey Innis", "Peter Jaros", "Brandon Keene", "Brian Takita", "Pat Nakajima", "John Pignata", "Jeremy Weiskotten"]
gem.add_dependency('activesupport', [">= 2.2.2"])
gem.post_install_message = %q{NOTE: Breaking change! Please change any extend statements to include statements:
extend ActiveHash::Associations
extend ActiveHash::Enum
becomes
include ActiveHash::Associations
include ActiveHash::Enum
Sorry for the inconvenience.
}
gem.post_install_message = ""
end
Jeweler::GemcutterTasks.new
rescue LoadError
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.9
0.8.0
24 changes: 6 additions & 18 deletions active_hash.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{active_hash}
s.version = "0.7.9"
s.version = "0.8.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jeff Dean", "Mike Dalessio", "Corey Innis", "Peter Jaros", "Brandon Keene", "Brian Takita", "Pat Nakajima", "John Pignata"]
s.date = %q{2010-03-01}
s.authors = ["Jeff Dean", "Mike Dalessio", "Corey Innis", "Peter Jaros", "Brandon Keene", "Brian Takita", "Pat Nakajima", "John Pignata", "Jeremy Weiskotten"]
s.date = %q{2010-04-25}
s.email = %q{jeff@zilkey.com}
s.extra_rdoc_files = [
"LICENSE",
Expand All @@ -19,12 +19,12 @@ Gem::Specification.new do |s|
".document",
".gitignore",
"CHANGELOG",
"Gemfile",
"LICENSE",
"README.md",
"Rakefile",
"VERSION",
"active_hash.gemspec",
"geminstaller.yml",
"lib/active_file/base.rb",
"lib/active_hash.rb",
"lib/active_hash/base.rb",
Expand All @@ -44,22 +44,10 @@ Gem::Specification.new do |s|
"spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/zilkey/active_hash}
s.post_install_message = %q{NOTE: Breaking change! Please change any extend statements to include statements:
extend ActiveHash::Associations
extend ActiveHash::Enum
becomes
include ActiveHash::Associations
include ActiveHash::Enum
Sorry for the inconvenience.
}
s.post_install_message = %q{}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.rubygems_version = %q{1.3.6}
s.summary = %q{An ActiveRecord-like model that uses a hash or file as a datasource}
s.test_files = [
"spec/active_file/base_spec.rb",
Expand Down

0 comments on commit 63f6c4e

Please sign in to comment.