activerecord-mysql-awesome 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee402a651d9ecc1a16babc8b27eb4705582e708a
4
- data.tar.gz: 42cc9907cfb8218eb57cd65dde847b69e38239d2
3
+ metadata.gz: f1acaa010a9b8247e4da71e4db46c785d41b08ac
4
+ data.tar.gz: 91cba5093474fa74a80f6dc11f6297a290488bfc
5
5
  SHA512:
6
- metadata.gz: 83ab3a39c7d2ff57a82e00ee4af84c19c58ab42f22d016ed5a942367ff50a8c3d15e1f86af9c766049b1c2be25cdc00a47e8c15775d66a525c59b7d81521750c
7
- data.tar.gz: b416da5f23016c73607f6b142c77cc2a5218bacd41c58aa41864c568a1a15058b2dd0ce03b6863da2a6c02b38dc360c87677bbc813a9afa3b0df8f5b2639c599
6
+ metadata.gz: 14c3110d365ad43ef7f21a24620bbd1ea79e59d89439c425be74a3bdc646b7e3657dbbbc2c3d070c814eb96e63d433f4cec96c1b379fa64ee8e85f96e739b2a8
7
+ data.tar.gz: 12725c84a1d598c87435a2b68ff6056d831b4648e3e91ef5d10f3f441386c8b274c7965c27d1ada86afd4ca239890e1d8dba523c004603a097663b128de83816
@@ -273,6 +273,8 @@ module ActiveRecord
273
273
  def table_options(table_name)
274
274
  create_table_info = select_one("SHOW CREATE TABLE #{quote_table_name(table_name)}")["Create Table"]
275
275
 
276
+ return unless create_table_info
277
+
276
278
  # strip create_definitions and partition_options
277
279
  raw_table_options = create_table_info.sub(/\A.*\n\) /m, '').sub(/\n\/\*!.*\*\/\n\z/m, '').strip
278
280
 
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Mysql
3
3
  module Awesome
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.8"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql-awesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryuta Kamizono
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler