merb_sequel 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require "rake/gempackagetask"
3
3
 
4
4
  PLUGIN = "merb_sequel"
5
5
  NAME = "merb_sequel"
6
- VERSION = "0.9.2"
6
+ VERSION = "0.9.3"
7
7
  AUTHOR = "Wayne E. Seguin, Lance Carlson"
8
8
  EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
9
9
  HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/"
@@ -24,9 +24,8 @@ specification = Gem::Specification.new do |spec|
24
24
  spec.extra_rdoc_files = ["README", "LICENSE", 'TODO']
25
25
  # Dependencies
26
26
  #spec.add_dependency("merb", ">= 0.9")
27
- spec.add_dependency("merb-core", ">= 0.9.2") # This will probably only be temporary until there is an official merb gem greater than 0.9
28
- spec.add_dependency("sequel", ">= 1.0.0")
29
- spec.add_dependency("sequel_model", ">= 0.3.3")
27
+ spec.add_dependency("merb-core", ">= 0.9.3") # This will probably only be temporary until there is an official merb gem greater than 0.9
28
+ spec.add_dependency("sequel", ">= 1.4.0")
30
29
  spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
31
30
  end
32
31
 
@@ -33,7 +33,6 @@ module Merb
33
33
  def connect
34
34
 
35
35
  require "sequel"
36
- require "sequel_model"
37
36
 
38
37
  if File.exists?(config_file)
39
38
  Merb.logger.info!("Connecting to the '#{config[:database]}' database on '#{config[:host]}' using '#{config[:adapter]}' ...")
@@ -11,7 +11,7 @@ namespace :sequel do
11
11
 
12
12
  desc "Perform migration using migrations in schema/migrations"
13
13
  task :migrate => :merb_start do
14
- Sequel::Migrator.apply(Merb::Orms::Sequel.connect, "schema/migrations", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
14
+ Sequel::Migrator.apply(Sequel::Model.db, "schema/migrations", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
15
15
  end
16
16
 
17
17
  end
@@ -10,7 +10,7 @@ class AddSessionsTable < Sequel::Migration
10
10
  end
11
11
 
12
12
  def down
13
- execute "DROP TABLE sessions"
13
+ drop_table :sessions
14
14
  end
15
15
 
16
16
  end
@@ -17,9 +17,7 @@ class <%= model_class_name %>Migration < Sequel::Migration
17
17
  end
18
18
 
19
19
  def down
20
- <% if table_name -%>
21
- execute "DROP TABLE <%= table_name %>"
22
- <% end -%>
20
+ <% "drop_table :#{table_name}" if table_name -%>
23
21
  end
24
22
 
25
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin, Lance Carlson
@@ -9,7 +9,7 @@ autorequire: merb_sequel
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-24 00:00:00 -05:00
12
+ date: 2008-05-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.9.2
22
+ version: 0.9.3
23
23
  version:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: sequel
@@ -28,16 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 1.0.0
32
- version:
33
- - !ruby/object:Gem::Dependency
34
- name: sequel_model
35
- version_requirement:
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 0.3.3
31
+ version: 1.4.0
41
32
  version:
42
33
  description: Merb plugin that provides support for Sequel and Sequel::Model
43
34
  email: wayneeseguin@gmail.com, lancecarlson@gmail.com