genesis 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.0 2010-07-27
2
+
3
+ * Fixed issue with version attribute colliding with ActiveRecord's magic attribute name.
4
+
5
+
1
6
  == 1.0.0 2010-07-08
2
7
 
3
8
  * Using the ActiveRecord#[] method to access the version attribute of the current version.
@@ -7,11 +12,11 @@
7
12
  == 0.0.3 2010-01-04
8
13
 
9
14
  * Fixed a file include issue to make Genesis work with bundler gem.
10
-
15
+
11
16
 
12
17
  == 0.0.2 2009-12-15
13
18
 
14
- * Fixed bug with camelcase vs camelize causing different results (ie. methodName vs MethodName) on
19
+ * Fixed bug with camelcase vs camelize causing different results (ie. methodName vs MethodName) on
15
20
  linux systems
16
21
 
17
22
 
data/README.rdoc CHANGED
@@ -26,6 +26,12 @@ seeding tools currently available.
26
26
  db:genesis RAILS_ENV=production)
27
27
 
28
28
 
29
+ == COMPATABILITY
30
+
31
+ * Ruby 1.8
32
+ * Rails 3
33
+ * Rails 2
34
+
29
35
  == TODO
30
36
 
31
37
  * Add option to override Rails db:seed task
@@ -44,21 +50,25 @@ seeding tools currently available.
44
50
 
45
51
  Run the prepare seeding generator to create a lib/tasks/genesis.rake file:
46
52
 
47
- script/generate prepare_seeding
53
+ rails generate prepare_genesis # Rails 3
54
+ script/generate prepare_seeding # Rails 2
48
55
 
49
56
  Or to specify which environments to create:
50
57
 
51
- script/generate prepare_seeding env:[development,staging,production]
58
+ rails generate prepare_genesis [development,staging,production] # Rails 3
59
+ script/generate prepare_seeding env:[development,staging,production] # Rails 2
52
60
 
53
61
  Generate a seed file:
54
62
 
55
- script/generate genesis create_users
63
+ rails generate genesis create_users # Rails 3
64
+ script/generate genesis create_users # Rails 2
56
65
 
57
66
  This will generate a seed file for you in the db/seeds directory.
58
67
 
59
68
  Generate a seed file in a specific environment folder:
60
69
 
61
- script/generate genesis create_users production
70
+ rails generate genesis create_users production # Rails 3
71
+ script/generate genesis create_users production # Rails 2
62
72
 
63
73
  This will generate a seed file for you in the db/seeds/production directory.
64
74
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
data/genesis.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{genesis}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["C. Jason Harrelson (midas)"]
12
- s.date = %q{2010-07-08}
12
+ s.date = %q{2010-07-27}
13
13
  s.description = %q{A data seeding solution for Ruby on Rails providing seeding facilities far more advanced than the current built in Ruby on Rails solution.}
14
14
  s.email = %q{jason@lookforwardenterprises.com}
15
15
  s.extra_rdoc_files = [
data/lib/genesis.rb CHANGED
@@ -6,7 +6,7 @@ require 'genesis/seeder'
6
6
  require 'genesis/schema_seed'
7
7
 
8
8
  module Genesis
9
- VERSION = '0.0.3'
9
+ VERSION = '1.1.0'
10
10
  end
11
11
 
12
12
  ActiveRecord::Base.send :include, Genesis::ActiveRecordExtensions if defined? ActiveRecord::Base
@@ -132,7 +132,8 @@ module Genesis
132
132
  log_entry_start( class_name )
133
133
  klass.send( @method )
134
134
  if @method == :up
135
- SchemaSeed.create!( :version => version )
135
+ # SchemaSeed.create!( :version => version )
136
+ ActiveRecord::Base.connection.execute( "INSERT INTO schema_seeds(`version`) VALUES('#{version}');" )
136
137
  else
137
138
  schema_seed = SchemaSeed.find( :first, :conditions => { :version => version } )
138
139
  schema_seed.destroy unless schema_seed.nil?
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - C. Jason Harrelson (midas)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-08 00:00:00 -05:00
17
+ date: 2010-07-27 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency