sequel-rails 0.1.2 → 0.1.3

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.3
2
+ * update sequel dependency, configuration change
3
+
1
4
  == 0.1.2
2
5
  * fixed log_subscriber bug that 0.1.1 was -supposed- to fix.
3
6
  * fixed controller_runtime bug
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ git 'git://github.com/rails/rails.git' do
12
12
 
13
13
  end
14
14
 
15
- gem 'sequel', '~> 3.10.0'
15
+ gem 'sequel', '~> 3.11.0'
16
16
 
17
17
  group :test do
18
18
  gem 'rspec'
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ 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.10'
17
+ gem.add_dependency 'sequel', '~> 3.11'
18
18
 
19
19
  gem.add_dependency 'activesupport', '~> 3.0.0.beta3'
20
20
  gem.add_dependency 'actionpack', '~> 3.0.0.beta3'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -37,13 +37,16 @@ module Rails
37
37
  def normalize_repository_config(hash)
38
38
  config = {}
39
39
  hash.each do |key, value|
40
- config[key] =
41
- if key == 'port'
40
+ config[key.to_s] =
41
+ if key.to_s == 'port'
42
42
  value.to_i
43
- elsif key == 'adapter' && value == 'sqlite3'
43
+ elsif key.to_s == 'adapter' && value == 'sqlite3'
44
44
  'sqlite'
45
- elsif key == 'database' && (hash['adapter'] == 'sqlite3' || hash['adapter'] == 'sqlite')
46
- value == ':memory:' ? value : File.expand_path(hash['database'], root)
45
+ elsif key.to_s == 'database' && (hash['adapter'] == 'sqlite3' ||
46
+ hash['adapter'] == 'sqlite' ||
47
+ hash[:adapter] == 'sqlite3' ||
48
+ hash[:adapter] == 'sqlite')
49
+ value == ':memory:' ? value : File.expand_path((hash['database'] || hash[:database]), root)
47
50
  else
48
51
  value
49
52
  end
@@ -11,7 +11,10 @@ namespace :db do
11
11
  task :setup => [ 'db:create', 'db:migrate', 'db:seed' ]
12
12
 
13
13
  namespace :test do
14
- task :prepare => ['db:setup']
14
+ task :prepare do
15
+ Rails.env = "test"
16
+ Rake::Task["db:setup"].invoke
17
+ end
15
18
  end
16
19
 
17
20
  namespace :create do
@@ -158,8 +158,18 @@ module Rails
158
158
  database
159
159
  )
160
160
  end
161
+ end
162
+
163
+ class Jdbc < Storage
164
+ def _create
165
+ raise NotImplementedError
166
+ end
161
167
 
168
+ def _drop
169
+ raise NotImplementedError
170
+ end
162
171
  end
172
+
163
173
  end
164
174
  end
165
175
  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.2"
8
+ s.version = "0.1.3"
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-06-02}
12
+ s.date = %q{2010-07-19}
13
13
  s.description = %q{Integrate Sequel with Rails 3}
14
14
  s.email = %q{brasten@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -73,18 +73,18 @@ Gem::Specification.new do |s|
73
73
  s.specification_version = 3
74
74
 
75
75
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
- s.add_runtime_dependency(%q<sequel>, ["~> 3.10"])
76
+ s.add_runtime_dependency(%q<sequel>, ["~> 3.11"])
77
77
  s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
78
78
  s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
79
79
  s.add_runtime_dependency(%q<railties>, ["~> 3.0.0.beta3"])
80
80
  else
81
- s.add_dependency(%q<sequel>, ["~> 3.10"])
81
+ s.add_dependency(%q<sequel>, ["~> 3.11"])
82
82
  s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
83
83
  s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
84
84
  s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
85
85
  end
86
86
  else
87
- s.add_dependency(%q<sequel>, ["~> 3.10"])
87
+ s.add_dependency(%q<sequel>, ["~> 3.11"])
88
88
  s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
89
89
  s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
90
90
  s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brasten Sager (brasten)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-02 00:00:00 -07:00
17
+ date: 2010-07-19 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,8 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 3
30
- - 10
31
- version: "3.10"
30
+ - 11
31
+ version: "3.11"
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency