sequel-rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.1.4
2
+ * Merged in changes to rake tasks and timestamp migrations
3
+
1
4
  == 0.1.3
2
5
  * update sequel dependency, configuration change
3
6
 
data/Rakefile CHANGED
@@ -14,11 +14,11 @@ begin
14
14
  gem.homepage = 'http://github.com/brasten/sequel-rails'
15
15
  gem.authors = [ 'Brasten Sager (brasten)' ]
16
16
 
17
- gem.add_dependency 'sequel', '~> 3.11'
17
+ gem.add_dependency 'sequel', '~> 3.13'
18
18
 
19
- gem.add_dependency 'activesupport', '~> 3.0.0.beta3'
20
- gem.add_dependency 'actionpack', '~> 3.0.0.beta3'
21
- gem.add_dependency 'railties', '~> 3.0.0.beta3'
19
+ gem.add_dependency 'activesupport', '~> 3.0.0.rc'
20
+ gem.add_dependency 'actionpack', '~> 3.0.0.rc'
21
+ gem.add_dependency 'railties', '~> 3.0.0.rc'
22
22
 
23
23
  # gem.add_development_dependency 'yard', '~> 0.5'
24
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -26,7 +26,8 @@ module Sequel
26
26
  # Implement the required interface for Rails::Generators::Migration.
27
27
  #
28
28
  def self.next_migration_number(dirname) #:nodoc:
29
- "%.3d" % (current_migration_number(dirname) + 1)
29
+ next_migration_number = current_migration_number(dirname) + 1
30
+ [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
30
31
  end
31
32
 
32
33
  end
@@ -27,4 +27,4 @@ module Rails
27
27
 
28
28
  end
29
29
  end
30
- end
30
+ end
@@ -21,9 +21,10 @@ module Rails
21
21
 
22
22
  class Railtie < Rails::Railtie
23
23
 
24
- log_subscriber :sequel, ::Sequel::Railties::LogSubscriber.new
24
+ ::Sequel::Railties::LogSubscriber.attach_to :sequel
25
25
 
26
26
  config.generators.orm :sequel, :migration => true
27
+ config.rails_fancy_pants_logging = true
27
28
 
28
29
  rake_tasks do
29
30
  load 'sequel-rails/railties/database.rake'
@@ -31,6 +32,8 @@ module Rails
31
32
 
32
33
  initializer 'sequel.configuration' do |app|
33
34
  configure_sequel(app)
35
+
36
+ Rails::Sequel.setup(Rails.env)
34
37
  end
35
38
 
36
39
  initializer 'sequel.logger' do |app|
@@ -51,15 +54,15 @@ module Rails
51
54
  # for the cascaded adapter wrappers that need to be declared before setup.
52
55
 
53
56
  config.after_initialize do |app|
54
- setup_sequel(app)
55
- end
56
-
57
+ ::Sequel::Model.plugin :active_model
58
+ ::Sequel::Model.plugin :validation_helpers
57
59
 
60
+ ::Sequel::Model.raise_on_save_failure = false
61
+ end
58
62
 
59
63
 
60
64
  # Support overwriting crucial steps in subclasses
61
65
 
62
-
63
66
  def configure_sequel(app)
64
67
  app.config.sequel = Rails::Sequel::Configuration.for(
65
68
  Rails.root, app.config.database_configuration
@@ -79,32 +82,6 @@ module Rails
79
82
  app.config.sequel.logger=logger
80
83
  end
81
84
 
82
- module Setup
83
-
84
- def setup_sequel(app)
85
- # preload_lib(app)
86
- # preload_models(app)
87
- Rails::Sequel.setup(Rails.env)
88
- end
89
-
90
- # def preload_lib(app)
91
- # app.config.paths.lib.each do |path|
92
- # Dir.glob("#{path}/**/*.rb").sort.each do |file|
93
- # require_dependency file unless file.match(/#{path}\/generators\/*/)
94
- # end
95
- # end
96
- # end
97
- #
98
- # def preload_models(app)
99
- # app.config.paths.app.models.each do |path|
100
- # Dir.glob("#{path}/**/*.rb").sort.each { |file| require_dependency file }
101
- # end
102
- # end
103
-
104
- end
105
-
106
- extend Setup
107
-
108
85
  end
109
86
 
110
87
  end
@@ -1,112 +1,142 @@
1
- require 'sequel-rails/setup'
2
- require 'sequel-rails/storage'
3
-
1
+ # TODO: DRY these up
4
2
  namespace :db do
5
-
6
- task :load_models => :environment do
7
- FileList["app/models/**/*.rb"].each { |model| load model }
8
- end
9
-
10
- desc 'Create the database, load the schema, and initialize with the seed data'
11
- task :setup => [ 'db:create', 'db:migrate', 'db:seed' ]
12
-
13
- namespace :test do
14
- task :prepare do
15
- Rails.env = "test"
16
- Rake::Task["db:setup"].invoke
3
+ namespace :schema do
4
+ desc "Create a db/schema.rb file that can be portably used against any DB supported by Sequel"
5
+ task :dump do
6
+ Sequel.extension :schema_dumper
7
+ db = Sequel.connect(Rails.configuration.database_configuration[Rails.env])
8
+ File.open(ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb", "w") do |file|
9
+ file.write(db.dump_schema_migration)
10
+ end
11
+ Rake::Task["db:schema:dump"].reenable
12
+ end
13
+
14
+ desc "Load a schema.rb file into the database"
15
+ task :load do
16
+ file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
17
+ if File.exists?(file)
18
+ load(file)
19
+ else
20
+ abort %{#{file} doesn't exist yet. Run "rake db:migrate" to create it then try again. If you do not intend to use a database, you should instead alter #{Rails.root}/config/boot.rb to limit the frameworks that will be loaded}
21
+ end
17
22
  end
18
23
  end
19
24
 
20
25
  namespace :create do
21
26
  desc 'Create all the local databases defined in config/database.yml'
22
- task :all => :environment do
23
- Rails::Sequel.storage.create_all
27
+ task :all, :needs => :environment do
28
+ require 'sequel-rails/storage'
29
+ Rails::Sequel::Storage.create_all
24
30
  end
25
31
  end
26
32
 
27
- desc "Create the database(s) defined in config/database.yml for the current Rails.env - also creates the test database(s) if Rails.env.development?"
28
- task :create => :environment do
29
- Rails::Sequel.storage.create_environment(Rails::Sequel.configuration.environments[Rails.env])
30
- if Rails.env.development? && Rails::Sequel.configuration.environments['test']
31
- Rails::Sequel.storage.create_environment(Rails::Sequel.configuration.environments['test'])
33
+ desc "Create the database defined in config/database.yml for the current Rails.env - also creates the test database if Rails.env.development?"
34
+ task :create, :env, :needs => :environment do |t, args|
35
+ args.with_defaults(:env => Rails.env)
36
+
37
+ require 'sequel-rails/storage'
38
+ Rails::Sequel::Storage.new(args.env).create
39
+
40
+ if Rails.env.development? && Rails.configuration.database_configuration['test']
41
+ Rails::Sequel::Storage.new('test').create
32
42
  end
33
43
  end
34
-
44
+
35
45
  namespace :drop do
36
- desc 'Drop all the local databases defined in config/database.yml'
37
- task :all => :environment do
38
- Rails::Sequel.storage.drop_all
46
+ desc 'Drops all the local databases defined in config/database.yml'
47
+ task :all, :needs => :environment do
48
+ require 'sequel-rails/storage'
49
+ Rails::Sequel::Storage.drop_all
39
50
  end
40
51
  end
41
-
42
- desc "Drops the database(s) for the current Rails.env - also drops the test database(s) if Rails.env.development?"
43
- task :drop => :environment do
44
- Rails::Sequel.storage.drop_environment(Rails::Sequel.configuration.environments[Rails.env])
45
- if Rails.env.development? && Rails::Sequel.configuration.environments['test']
46
- Rails::Sequel.storage.drop_environment(Rails::Sequel.configuration.environments['test'])
52
+
53
+ desc "Create the database defined in config/database.yml for the current Rails.env - also creates the test database if Rails.env.development?"
54
+ task :drop, :env, :needs => :environment do |t, args|
55
+ args.with_defaults(:env => Rails.env)
56
+
57
+ require 'sequel-rails/storage'
58
+ Rails::Sequel::Storage.new(args.env).drop
59
+
60
+ if Rails.env.development? && Rails.configuration.database_configuration['test']
61
+ Rails::Sequel::Storage.new('test').drop
47
62
  end
48
63
  end
49
64
 
50
- desc 'Load the seed data from db/seeds.rb'
51
- task :seed => :environment do
52
- seed_file = File.join(Rails.root, 'db', 'seeds.rb')
53
- load(seed_file) if File.exist?(seed_file)
54
- end
55
-
56
65
  namespace :migrate do
57
66
  task :load => :environment do
58
- # FileList['db/migrate/*.rb'].each do |migration|
59
- # load migration
60
- # end
61
- end
62
-
63
- desc 'Migrate up using migrations'
64
- task :up, :version, :needs => :load do |t, args|
65
67
  require 'sequel-rails/migrations'
66
- ::Rails::Sequel::Migrations.migrate_up!(args[:version])
67
68
  end
68
69
 
69
- desc 'Migrate down using migrations'
70
- task :down, :version, :needs => :load do |t, args|
71
- require 'sequel-rails/migrations'
72
- ::Rails::Sequel::Migrations.migrate_down!(args[:version])
70
+ desc 'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x. Target specific version with VERSION=x.'
71
+ task :redo => :load do
72
+ if ENV["VERSION"]
73
+ Rake::Task["db:migrate:down"].invoke
74
+ Rake::Task["db:migrate:up"].invoke
75
+ else
76
+ Rake::Task["db:rollback"].invoke
77
+ Rake::Task["db:migrate"].invoke
78
+ end
73
79
  end
74
- end
75
80
 
76
- ##
77
- # TODO: deal with this at some point
78
- #
79
- # namespace :schema do
80
- # desc 'Create a db/schema.rb file that can be portably used against any DB supported by Sequel'
81
- # task :dump => :environment do
82
- # File.open(ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb", "w") do |file|
83
- # file.puts(::Sequel::Model.db.schema())
84
- # end
85
- # end
86
- #
87
- # desc 'Load a schema.rb file into the database'
88
- # task :load => :environment do
89
- #
90
- # end
91
- # end
92
81
 
93
- desc 'Migrate the database to the latest version'
94
- task :migrate => 'db:migrate:up'
82
+ desc 'Resets your database using your migrations for the current environment'
83
+ task :reset => ["db:drop", "db:create", "db:migrate"]
95
84
 
96
- namespace :sessions do
97
- desc "Creates the sessions table for SequelStore"
98
- task :create => :environment do
99
- require 'sequel-rails/session_store'
100
- Rails::Sequel::SessionStore::Session.auto_migrate!
101
- puts "Created '#{::Rails::Sequel.configuration.environments[Rails.env]['database']}.sessions'"
85
+ desc 'Runs the "up" for a given migration VERSION.'
86
+ task :up => :load do
87
+ version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
88
+ raise "VERSION is required" unless version
89
+ Rails::Sequel::Migrations.migrate_up!(version)
90
+ Rake::Task["db:schema:dump"].invoke if Rails.env != 'test'
102
91
  end
103
92
 
104
- desc "Clear the sessions table for SequelStore"
105
- task :clear => :environment do
106
- require 'sequel-rails/session_store'
107
- Rails::Sequel::SessionStore::Session.delete()
108
- puts "Deleted entries from '#{::Rails::Sequel.configuration.environments[Rails.env]['database']}.sessions'"
93
+ desc 'Runs the "down" for a given migration VERSION.'
94
+ task :down => :load do
95
+ version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
96
+ raise "VERSION is required" unless version
97
+ Rails::Sequel::Migrations.migrate_down!(version)
98
+ Rake::Task["db:schema:dump"].invoke if Rails.env != 'test'
109
99
  end
110
100
  end
101
+
102
+ desc 'Migrate the database to the latest version'
103
+ task :migrate => :'migrate:load' do
104
+ Rails::Sequel::Migrations.migrate_up!(ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
105
+ Rake::Task["db:schema:dump"].invoke if Rails.env != 'test'
106
+ end
111
107
 
108
+ desc 'Rolls the schema back to the previous version. Specify the number of steps with STEP=n'
109
+ task :rollback => :'migrate:load' do
110
+ step = ENV['STEP'] ? ENV['STEP'].to_i : 1
111
+ Sequel::Migrator.rollback('db/migrate/', step)
112
+ Rake::Task["db:schema:dump"].invoke if Rails.env != 'test'
113
+ end
114
+
115
+ desc 'Pushes the schema to the next version. Specify the number of steps with STEP=n'
116
+ task :forward => :'migrate:load' do
117
+ step = ENV['STEP'] ? ENV['STEP'].to_i : 1
118
+ Sequel::Migrator.forward('db/migrate/', step)
119
+ Rake::Task["db:schema:dump"].invoke if Rails.env != 'test'
120
+ end
121
+
122
+ desc 'Load the seed data from db/seeds.rb'
123
+ task :seed => :environment do
124
+ seed_file = File.join(Rails.root, 'db', 'seeds.rb')
125
+ load(seed_file) if File.exist?(seed_file)
126
+ end
127
+
128
+ desc 'Create the database, load the schema, and initialize with the seed data'
129
+ task :setup => [ 'db:create', 'db:migrate', 'db:seed' ]
130
+
131
+ desc 'Drops and recreates the database from db/schema.rb for the current environment and loads the seeds.'
132
+ task :reset => [ 'db:drop', 'db:setup' ]
133
+
134
+ namespace :test do
135
+ task :prepare do
136
+ Rails.env = 'test'
137
+ Rake::Task['db:reset'].invoke()
138
+ end
139
+ end
112
140
  end
141
+
142
+ task 'test:prepare' => 'db:test:prepare'
@@ -1,7 +1,7 @@
1
1
  module Sequel
2
2
  module Railties
3
3
 
4
- class LogSubscriber < Rails::LogSubscriber
4
+ class LogSubscriber < ActiveSupport::LogSubscriber
5
5
 
6
6
  def sql(event)
7
7
  name = '%s (%.1fms)' % [event.payload[:name], event.duration]
@@ -25,6 +25,8 @@ module Rails
25
25
  end
26
26
 
27
27
  def self.new(config)
28
+ config = Rails::Sequel.configuration.environments[config.to_s] unless config.kind_of?(Hash)
29
+
28
30
  klass = lookup_class(config['adapter'])
29
31
  if klass.equal?(self)
30
32
  super(config)
@@ -161,13 +163,46 @@ module Rails
161
163
  end
162
164
 
163
165
  class Jdbc < Storage
166
+
167
+ def _is_mysql?
168
+ database.match(/^jdbc:mysql/)
169
+ end
170
+
171
+ def _root_url
172
+ database.scan /^jdbc:mysql:\/\/\w*:?\d*/
173
+ end
174
+
175
+ def db_name
176
+ database.scan(/^jdbc:mysql:\/\/\w+:?\d*\/(\w+)/).flatten.first
177
+ end
178
+
179
+ def _params
180
+ database.scan /\?.*$/
181
+ end
182
+
164
183
  def _create
165
- raise NotImplementedError
184
+ if _is_mysql?
185
+ ::Sequel.connect("#{_root_url}#{_params}") do |db|
186
+ db.execute("CREATE DATABASE `#{db_name}` DEFAULT CHARACTER SET #{charset} DEFAULT COLLATE #{collation}")
187
+ end
188
+ end
166
189
  end
167
190
 
168
191
  def _drop
169
- raise NotImplementedError
192
+ if _is_mysql?
193
+ ::Sequel.connect("#{_root_url}#{_params}") do |db|
194
+ db.execute("DROP DATABASE IF EXISTS `#{db_name}`")
195
+ end
196
+ end
197
+ end
198
+
199
+ private
200
+
201
+ def collation
202
+ @collation ||= config['collation'] || ENV['COLLATION'] || 'utf8_unicode_ci'
170
203
  end
204
+
205
+
171
206
  end
172
207
 
173
208
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel-rails}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brasten Sager (brasten)"]
12
- s.date = %q{2010-07-19}
12
+ s.date = %q{2010-08-05}
13
13
  s.description = %q{Integrate Sequel with Rails 3}
14
14
  s.email = %q{brasten@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.homepage = %q{http://github.com/brasten/sequel-rails}
62
62
  s.rdoc_options = ["--charset=UTF-8"]
63
63
  s.require_paths = ["lib"]
64
- s.rubygems_version = %q{1.3.6.1}
64
+ s.rubygems_version = %q{1.3.6}
65
65
  s.summary = %q{Use Sequel with Rails 3}
66
66
  s.test_files = [
67
67
  "spec/setup_spec.rb",
@@ -72,22 +72,22 @@ Gem::Specification.new do |s|
72
72
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
73
73
  s.specification_version = 3
74
74
 
75
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
- s.add_runtime_dependency(%q<sequel>, ["~> 3.11"])
77
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
78
- s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
79
- s.add_runtime_dependency(%q<railties>, ["~> 3.0.0.beta3"])
75
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
76
+ s.add_runtime_dependency(%q<sequel>, ["~> 3.13"])
77
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
78
+ s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
79
+ s.add_runtime_dependency(%q<railties>, ["~> 3.0.0.rc"])
80
80
  else
81
- s.add_dependency(%q<sequel>, ["~> 3.11"])
82
- s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
83
- s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
84
- s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
81
+ s.add_dependency(%q<sequel>, ["~> 3.13"])
82
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
83
+ s.add_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
84
+ s.add_dependency(%q<railties>, ["~> 3.0.0.rc"])
85
85
  end
86
86
  else
87
- s.add_dependency(%q<sequel>, ["~> 3.11"])
88
- s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
89
- s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
90
- s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
87
+ s.add_dependency(%q<sequel>, ["~> 3.13"])
88
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
89
+ s.add_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
90
+ s.add_dependency(%q<railties>, ["~> 3.0.0.rc"])
91
91
  end
92
92
  end
93
93
 
metadata CHANGED
@@ -3,82 +3,78 @@ name: sequel-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
6
+ - 0
7
+ - 1
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
- - Brasten Sager (brasten)
12
+ - Brasten Sager (brasten)
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-19 00:00:00 -07:00
17
+ date: 2010-08-05 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: sequel
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 11
31
- version: "3.11"
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: activesupport
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ~>
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 3
44
- - 0
45
- - 0
46
- - beta3
47
- version: 3.0.0.beta3
48
- type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: actionpack
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 0
61
- - 0
62
- - beta3
63
- version: 3.0.0.beta3
64
- type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: railties
68
- prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 3
76
- - 0
77
- - 0
78
- - beta3
79
- version: 3.0.0.beta3
80
- type: :runtime
81
- version_requirements: *id004
20
+ - !ruby/object:Gem::Dependency
21
+ name: sequel
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 13
30
+ version: "3.13"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: activesupport
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 3
42
+ - 0
43
+ - 0
44
+ - rc
45
+ version: 3.0.0.rc
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: actionpack
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 3
57
+ - 0
58
+ - 0
59
+ - rc
60
+ version: 3.0.0.rc
61
+ type: :runtime
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: railties
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 3
72
+ - 0
73
+ - 0
74
+ - rc
75
+ version: 3.0.0.rc
76
+ type: :runtime
77
+ version_requirements: *id004
82
78
  description: Integrate Sequel with Rails 3
83
79
  email: brasten@gmail.com
84
80
  executables: []
@@ -86,81 +82,79 @@ executables: []
86
82
  extensions: []
87
83
 
88
84
  extra_rdoc_files:
89
- - LICENSE
90
- - README.rdoc
85
+ - LICENSE
86
+ - README.rdoc
91
87
  files:
92
- - .document
93
- - .gitignore
94
- - CHANGELOG
95
- - Gemfile
96
- - LICENSE
97
- - README.rdoc
98
- - Rakefile
99
- - VERSION
100
- - autotest/discover.rb
101
- - lib/generators/sequel.rb
102
- - lib/generators/sequel/migration/migration_generator.rb
103
- - lib/generators/sequel/migration/templates/migration.rb
104
- - lib/generators/sequel/model/model_generator.rb
105
- - lib/generators/sequel/model/templates/model.rb
106
- - lib/generators/sequel/observer/observer_generator.rb
107
- - lib/generators/sequel/observer/templates/observer.rb
108
- - lib/sequel-rails.rb
109
- - lib/sequel-rails/configuration.rb
110
- - lib/sequel-rails/migrations.rb
111
- - lib/sequel-rails/railtie.rb
112
- - lib/sequel-rails/railties/benchmarking_mixin.rb
113
- - lib/sequel-rails/railties/controller_runtime.rb
114
- - lib/sequel-rails/railties/database.rake
115
- - lib/sequel-rails/railties/i18n_support.rb
116
- - lib/sequel-rails/railties/log_subscriber.rb
117
- - lib/sequel-rails/runtime.rb
118
- - lib/sequel-rails/session_store.rb
119
- - lib/sequel-rails/setup.rb
120
- - lib/sequel-rails/storage.rb
121
- - sequel-rails.gemspec
122
- - spec/rcov.opts
123
- - spec/setup_spec.rb
124
- - spec/spec.opts
125
- - spec/spec_helper.rb
126
- - tasks/ci.rake
127
- - tasks/clean.rake
128
- - tasks/metrics.rake
129
- - tasks/spec.rake
130
- - tasks/yard.rake
131
- - tasks/yardstick.rake
88
+ - .document
89
+ - .gitignore
90
+ - CHANGELOG
91
+ - Gemfile
92
+ - LICENSE
93
+ - README.rdoc
94
+ - Rakefile
95
+ - VERSION
96
+ - autotest/discover.rb
97
+ - lib/generators/sequel.rb
98
+ - lib/generators/sequel/migration/migration_generator.rb
99
+ - lib/generators/sequel/migration/templates/migration.rb
100
+ - lib/generators/sequel/model/model_generator.rb
101
+ - lib/generators/sequel/model/templates/model.rb
102
+ - lib/generators/sequel/observer/observer_generator.rb
103
+ - lib/generators/sequel/observer/templates/observer.rb
104
+ - lib/sequel-rails.rb
105
+ - lib/sequel-rails/configuration.rb
106
+ - lib/sequel-rails/migrations.rb
107
+ - lib/sequel-rails/railtie.rb
108
+ - lib/sequel-rails/railties/benchmarking_mixin.rb
109
+ - lib/sequel-rails/railties/controller_runtime.rb
110
+ - lib/sequel-rails/railties/database.rake
111
+ - lib/sequel-rails/railties/i18n_support.rb
112
+ - lib/sequel-rails/railties/log_subscriber.rb
113
+ - lib/sequel-rails/runtime.rb
114
+ - lib/sequel-rails/session_store.rb
115
+ - lib/sequel-rails/setup.rb
116
+ - lib/sequel-rails/storage.rb
117
+ - sequel-rails.gemspec
118
+ - spec/rcov.opts
119
+ - spec/setup_spec.rb
120
+ - spec/spec.opts
121
+ - spec/spec_helper.rb
122
+ - tasks/ci.rake
123
+ - tasks/clean.rake
124
+ - tasks/metrics.rake
125
+ - tasks/spec.rake
126
+ - tasks/yard.rake
127
+ - tasks/yardstick.rake
132
128
  has_rdoc: true
133
129
  homepage: http://github.com/brasten/sequel-rails
134
130
  licenses: []
135
131
 
136
132
  post_install_message:
137
133
  rdoc_options:
138
- - --charset=UTF-8
134
+ - --charset=UTF-8
139
135
  require_paths:
140
- - lib
136
+ - lib
141
137
  required_ruby_version: !ruby/object:Gem::Requirement
142
- none: false
143
138
  requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- segments:
147
- - 0
148
- version: "0"
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ segments:
142
+ - 0
143
+ version: "0"
149
144
  required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
145
  requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- segments:
155
- - 0
156
- version: "0"
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ segments:
149
+ - 0
150
+ version: "0"
157
151
  requirements: []
158
152
 
159
153
  rubyforge_project:
160
- rubygems_version: 1.3.6.1
154
+ rubygems_version: 1.3.6
161
155
  signing_key:
162
156
  specification_version: 3
163
157
  summary: Use Sequel with Rails 3
164
158
  test_files:
165
- - spec/setup_spec.rb
166
- - spec/spec_helper.rb
159
+ - spec/setup_spec.rb
160
+ - spec/spec_helper.rb