has_default 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .DS_Store
2
+ .swp
3
+ *.log
4
+ *.sqlite3
5
+ pkg/*
6
+ coverage/*
7
+ doc/*
8
+ benchmarks/*
data/README.markdown CHANGED
@@ -6,13 +6,13 @@ Specify a "default" instance that is to be returned for an ActiveRecord model wh
6
6
 
7
7
  Install the has_default gem
8
8
 
9
- gem install bradgessler-has_default
9
+ gem install has_default --source http://gemcutter.org
10
10
 
11
11
  Then configure in rails
12
12
 
13
- config.gem 'bradgessler-has_default',
13
+ config.gem 'has_default',
14
14
  :lib => 'has_default',
15
- :source => 'http://gems.github.com'
15
+ :source => 'http://gemcutter.org'
16
16
 
17
17
  For whatever model you need to set a default for, run the a similar migration
18
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -0,0 +1,49 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{has_default}
8
+ s.version = "0.6.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Brad Gessler"]
12
+ s.date = %q{2009-10-06}
13
+ s.description = %q{}
14
+ s.email = %q{brad@conden.se}
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "MIT-LICENSE",
21
+ "README.markdown",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "has_default.gemspec",
25
+ "init.rb",
26
+ "lib/has_default.rb",
27
+ "rails/init.rb",
28
+ "spec/default.rb",
29
+ "tasks/acts_as_default_tasks.rake"
30
+ ]
31
+ s.homepage = %q{http://github.com/bradgessler/has_default}
32
+ s.rdoc_options = ["--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.3.5}
35
+ s.summary = %q{Specify a default instance to be returned for an ActiveRecord model}
36
+ s.test_files = [
37
+ "spec/default.rb"
38
+ ]
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ else
46
+ end
47
+ else
48
+ end
49
+ end
data/init.rb CHANGED
@@ -1,3 +1 @@
1
- require File.dirname(__FILE__) + '/lib/has_default'
2
-
3
- ActiveRecord::Base.send :include, HasDefault::ActiveRecord
1
+ require File.dirname(__FILE__) + "/rails/init.rb"
data/rails/init.rb ADDED
@@ -0,0 +1,3 @@
1
+ require File.dirname(__FILE__) + '/../lib/has_default'
2
+
3
+ ActiveRecord::Base.send :include, HasDefault::ActiveRecord
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_default
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -22,12 +22,16 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - README.markdown
24
24
  files:
25
+ - .gitignore
25
26
  - MIT-LICENSE
26
27
  - README.markdown
27
28
  - Rakefile
28
29
  - VERSION
30
+ - has_default.gemspec
29
31
  - init.rb
30
32
  - lib/has_default.rb
33
+ - rails/init.rb
34
+ - spec/default.rb
31
35
  - tasks/acts_as_default_tasks.rake
32
36
  has_rdoc: true
33
37
  homepage: http://github.com/bradgessler/has_default