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 +3 -0
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/lib/generators/sequel.rb +2 -1
- data/lib/sequel-rails/migrations.rb +1 -1
- data/lib/sequel-rails/railtie.rb +8 -31
- data/lib/sequel-rails/railties/database.rake +110 -80
- data/lib/sequel-rails/railties/log_subscriber.rb +1 -1
- data/lib/sequel-rails/storage.rb +37 -2
- data/sequel-rails.gemspec +16 -16
- metadata +121 -127
data/CHANGELOG
CHANGED
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.
|
17
|
+
gem.add_dependency 'sequel', '~> 3.13'
|
18
18
|
|
19
|
-
gem.add_dependency 'activesupport', '~> 3.0.0.
|
20
|
-
gem.add_dependency 'actionpack', '~> 3.0.0.
|
21
|
-
gem.add_dependency 'railties', '~> 3.0.0.
|
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.
|
1
|
+
0.1.4
|
data/lib/generators/sequel.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/sequel-rails/railtie.rb
CHANGED
@@ -21,9 +21,10 @@ module Rails
|
|
21
21
|
|
22
22
|
class Railtie < Rails::Railtie
|
23
23
|
|
24
|
-
|
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
|
-
|
55
|
-
|
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
|
-
|
2
|
-
require 'sequel-rails/storage'
|
3
|
-
|
1
|
+
# TODO: DRY these up
|
4
2
|
namespace :db do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
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
|
28
|
-
task :create => :environment do
|
29
|
-
|
30
|
-
|
31
|
-
|
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 '
|
37
|
-
task :all => :environment do
|
38
|
-
|
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 "
|
43
|
-
task :drop => :environment do
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
70
|
-
task :
|
71
|
-
|
72
|
-
|
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
|
-
|
94
|
-
|
82
|
+
desc 'Resets your database using your migrations for the current environment'
|
83
|
+
task :reset => ["db:drop", "db:create", "db:migrate"]
|
95
84
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
Rails::Sequel::
|
101
|
-
|
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
|
105
|
-
task :
|
106
|
-
|
107
|
-
|
108
|
-
|
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'
|
data/lib/sequel-rails/storage.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
data/sequel-rails.gemspec
CHANGED
@@ -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.
|
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-
|
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
|
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::
|
76
|
-
s.add_runtime_dependency(%q<sequel>, ["~> 3.
|
77
|
-
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.
|
78
|
-
s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.
|
79
|
-
s.add_runtime_dependency(%q<railties>, ["~> 3.0.0.
|
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.
|
82
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0.0.
|
83
|
-
s.add_dependency(%q<actionpack>, ["~> 3.0.0.
|
84
|
-
s.add_dependency(%q<railties>, ["~> 3.0.0.
|
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.
|
88
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0.0.
|
89
|
-
s.add_dependency(%q<actionpack>, ["~> 3.0.0.
|
90
|
-
s.add_dependency(%q<railties>, ["~> 3.0.0.
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
version: 0.1.
|
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-
|
17
|
+
date: 2010-08-05 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
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
|
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
|