sequel_migration_builder 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -48,7 +48,7 @@ as a hash. A sample YAML version might look like:
48
48
 
49
49
  == Requirements
50
50
 
51
- * Sequel 3.18.0 or higher
51
+ * Sequel 3.20.0 or higher
52
52
 
53
53
  == TODO
54
54
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.email = "roland.swingler@gmail.com"
11
11
  gem.homepage = "http://github.com/knaveofdiamonds/sequel_migration_builder"
12
12
  gem.authors = ["Roland Swingler"]
13
- gem.add_dependency "sequel", ">= 3.18.0"
13
+ gem.add_dependency "sequel", ">= 3.20.0"
14
14
  gem.add_development_dependency "rspec", ">= 1.2.9"
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.3.0
@@ -29,7 +29,7 @@ module Sequel
29
29
  def parse_db_schema
30
30
  @db.tables.inject({}) do |result, table_name|
31
31
  result[table_name] = {
32
- :indexes => @db.indexes(table_name),
32
+ :indexes => @db.indexes(table_name, :partial => true),
33
33
  :columns => parse_table_schema(@db.schema(table_name))
34
34
  }
35
35
  result
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel_migration_builder}
8
- s.version = "0.2.2"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roland Swingler"]
12
- s.date = %q{2011-01-14}
12
+ s.date = %q{2011-02-15}
13
13
  s.description = %q{Build Sequel Migrations based on the differences between two schemas}
14
14
  s.email = %q{roland.swingler@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -57,14 +57,14 @@ Gem::Specification.new do |s|
57
57
  s.specification_version = 3
58
58
 
59
59
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
- s.add_runtime_dependency(%q<sequel>, [">= 3.18.0"])
60
+ s.add_runtime_dependency(%q<sequel>, [">= 3.20.0"])
61
61
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
62
62
  else
63
- s.add_dependency(%q<sequel>, [">= 3.18.0"])
63
+ s.add_dependency(%q<sequel>, [">= 3.20.0"])
64
64
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
65
65
  end
66
66
  else
67
- s.add_dependency(%q<sequel>, [">= 3.18.0"])
67
+ s.add_dependency(%q<sequel>, [">= 3.20.0"])
68
68
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
69
69
  end
70
70
  end
@@ -114,7 +114,7 @@ describe "Sequel::Schema::DbSchemaParser#parse_db_schema" do
114
114
  mock_db = mock(:db)
115
115
  mock_db.should_receive(:tables).at_least(:once).and_return([:table1])
116
116
  mock_db.should_receive(:schema).with(:table1).and_return([])
117
- mock_db.should_receive(:indexes).with(:table1)
117
+ mock_db.should_receive(:indexes).with(:table1, :partial => true)
118
118
 
119
119
  @parser = Sequel::Schema::DbSchemaParser.for_db(mock_db)
120
120
  @parser.parse_db_schema.keys.should == [:table1]
@@ -124,7 +124,7 @@ END
124
124
  }
125
125
  @mock_db = mock(:database)
126
126
  @mock_db.should_receive(:tables).at_least(:once).and_return([:example_table])
127
- @mock_db.should_receive(:indexes).with(:example_table).and_return({})
127
+ @mock_db.should_receive(:indexes).with(:example_table, :partial => true).and_return({})
128
128
  @mock_db.should_receive(:schema).with(:example_table).and_return([[:foo, {:type => :integer, :db_type => "smallint(5) unsigned", :allow_null => true, :ruby_default => 10}]])
129
129
 
130
130
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roland Swingler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-14 00:00:00 +00:00
18
+ date: 2011-02-15 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 79
29
+ hash: 87
30
30
  segments:
31
31
  - 3
32
- - 18
32
+ - 20
33
33
  - 0
34
- version: 3.18.0
34
+ version: 3.20.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency