molo 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{molo}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joel Moss", "Todd Huss", "Michael Grosser"]
@@ -5,8 +5,8 @@ Molo provides Rails database migrations for non-Rails and non-Ruby projects. By
5
5
 
6
6
  The following tasks are provided:
7
7
 
8
- rake db:data:dump # Dump contents of database to db/data.extension (defaults to yaml)
9
- rake db:data:dump_dir # Dump contents of database to db/data/tablename.extension (defaults to yaml)
8
+ rake db:data:dump # Dump contents of database to db/data.extension (defaults to yaml; ignore tables with 'except' or ignore all those woth 'only')
9
+ rake db:data:dump_dir # Dump contents of database to db/data/tablename.extension (defaults to yaml; ignore tables with 'except' or ignore all those woth 'only')
10
10
  rake db:data:load # Load contents of db/data.extension (defaults to yaml) into database
11
11
  rake db:data:load_dir # Load contents of db/data/* into database
12
12
  rake db:dump # Dump schema and data to db/schema.rb and db/data.yml
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -1,9 +1,13 @@
1
1
  module RailsSqlViews
2
2
  module ConnectionAdapters
3
3
  module Mysql2Adapter
4
+ REQUIRED_METHODS = [:supports_views?]
5
+
4
6
  def self.included(base)
5
- if base.private_method_defined?(:supports_views?)
6
- base.send(:public, :supports_views?)
7
+ base.class_eval do
8
+ def self.method_added(method)
9
+ public(method) if REQUIRED_METHODS.include?(method) && !self.public_method_defined?(method)
10
+ end
7
11
  end
8
12
  end
9
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joel Moss