schema_auto_foreign_keys 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e31cbb38abb0adf0d7efe55e643338002bd7a179
4
- data.tar.gz: 15c2c0d8fbc9f60266a1416f6d1f4a82c14a7e54
3
+ metadata.gz: 4341d0ec0137c4eee6b3f89abfa752536f3af622
4
+ data.tar.gz: 3cdd82f4202e857413b00f29fbf5de7c234801fb
5
5
  SHA512:
6
- metadata.gz: 4d4ae51e777fb3800db8deed920116819781717cb77d4f6acb0bcb298353797d5a95bb0d039ba775dd094b92a465da83e9fd8dbe055c6f26dd915543f2b6c11d
7
- data.tar.gz: 829aa18217d078649951ac39c4f7b7d985cf497fcb445b30915953c714dd9ae3fa6215ee584caa0bc6dbf568f62ba0fb37e1870193226e29fb9f4932407c1f38
6
+ metadata.gz: 7fb530f92d3392f2591792926a4baf5b74238a8d18362da8a5283c07315fc0e10a9e3f684812e6c95e16ef588a2cd1a005e7009c359de5cae705afe816e891a8
7
+ data.tar.gz: b0b2514869d54c7d93a79f9a932ecedd19c3abc133c7fdaa2e34636e2dc25b6ea49eedde79bfbba16954eed052b56df3735fe96d0dc3393bc0ad6caabe227bbd
@@ -5,14 +5,14 @@
5
5
  ---
6
6
  sudo: false
7
7
  rvm:
8
- - 2.1.5
8
+ - 2.3.1
9
9
  gemfile:
10
- - gemfiles/activerecord-4.2.0/Gemfile.mysql2
11
- - gemfiles/activerecord-4.2.0/Gemfile.postgresql
12
- - gemfiles/activerecord-4.2.0/Gemfile.sqlite3
13
- - gemfiles/activerecord-4.2.1/Gemfile.mysql2
14
- - gemfiles/activerecord-4.2.1/Gemfile.postgresql
15
- - gemfiles/activerecord-4.2.1/Gemfile.sqlite3
10
+ - gemfiles/activerecord-4.2/Gemfile.mysql2
11
+ - gemfiles/activerecord-4.2/Gemfile.postgresql
12
+ - gemfiles/activerecord-4.2/Gemfile.sqlite3
13
+ - gemfiles/activerecord-5.0/Gemfile.mysql2
14
+ - gemfiles/activerecord-5.0/Gemfile.postgresql
15
+ - gemfiles/activerecord-5.0/Gemfile.sqlite3
16
16
  env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
17
17
  addons:
18
18
  postgresql: '9.4'
data/README.md CHANGED
@@ -88,8 +88,8 @@ SchemaAutoForeignKeys is tested on:
88
88
 
89
89
  <!-- SCHEMA_DEV: MATRIX - begin -->
90
90
  <!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
91
- * ruby **2.1.5** with activerecord **4.2.0**, using **mysql2**, **sqlite3** or **postgresql**
92
- * ruby **2.1.5** with activerecord **4.2.1**, using **mysql2**, **sqlite3** or **postgresql**
91
+ * ruby **2.3.1** with activerecord **4.2**, using **mysql2**, **sqlite3** or **postgresql**
92
+ * ruby **2.3.1** with activerecord **5.0**, using **mysql2**, **sqlite3** or **postgresql**
93
93
 
94
94
  <!-- SCHEMA_DEV: MATRIX - end -->
95
95
 
@@ -103,6 +103,7 @@ SQlite3 doesn't support renaming the auto-index whtn the table name changes.
103
103
 
104
104
  ## History
105
105
 
106
+ * 0.1.3 - AR5 (Rails 5) Support
106
107
  * 0.1.2 - Missing require
107
108
  * 0.1.1 - Explicit gem dependencies
108
109
  * 0.1.0 - Initial release, extracted from schema_plus 2.0.0.pre*
@@ -1,3 +1,3 @@
1
1
  eval File.read File.expand_path('../../Gemfile.base', __FILE__)
2
2
 
3
- gem "activerecord", "4.2.0"
3
+ gem "activerecord", "~> 4.2.6"
@@ -2,7 +2,7 @@ require "pathname"
2
2
  eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)
3
3
 
4
4
  platform :ruby do
5
- gem 'mysql2', '~> 0.3.13'
5
+ gem "mysql2", '>= 0.3.18', '< 0.5'
6
6
  end
7
7
 
8
8
  platform :jruby do
@@ -1,3 +1,3 @@
1
1
  eval File.read File.expand_path('../../Gemfile.base', __FILE__)
2
2
 
3
- gem "activerecord", "4.2.1"
3
+ gem "activerecord", "~> 5.0.0"
@@ -2,7 +2,7 @@ require "pathname"
2
2
  eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)
3
3
 
4
4
  platform :ruby do
5
- gem 'mysql2', '~> 0.3.13'
5
+ gem "mysql2"
6
6
  end
7
7
 
8
8
  platform :jruby do
@@ -1,3 +1,3 @@
1
1
  module SchemaAutoForeignKeys
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  ruby:
2
- - 2.1.5
2
+ - 2.3.1
3
3
  activerecord:
4
- - 4.2.0
5
- - 4.2.1
4
+ - 4.2
5
+ - 5.0
6
6
  db:
7
7
  - mysql2
8
8
  - sqlite3
@@ -215,7 +215,7 @@ describe ActiveRecord::Migration do
215
215
  end
216
216
  expect(Comment).to reference(:users, :id).on(:user_id)
217
217
  expect(Comment).to have_index.on(:user_id)
218
- migration = Class.new ::ActiveRecord::Migration do
218
+ migration = Class.new ::ActiveRecord::Migration.latest_version do
219
219
  define_method(:change) {
220
220
  change_table("comments", :bulk => bulk) do |t|
221
221
  t.integer :user_id
@@ -30,11 +30,11 @@ describe ActiveRecord::Schema do
30
30
 
31
31
  it "creates only explicity added indexes" do
32
32
  expected = SchemaDev::Rspec::Helpers.mysql? ? 2 : 1
33
- expect(connection.tables.collect { |table| connection.indexes(table) }.flatten.size).to eq(expected)
33
+ expect(connection.user_tables_only.collect { |table| connection.indexes(table) }.flatten.size).to eq(expected)
34
34
  end
35
35
 
36
36
  it "should create only explicity added foriegn keys" do
37
- expect(connection.tables.collect { |table| connection.foreign_keys(table) }.flatten.size).to eq(2)
37
+ expect(connection.user_tables_only.collect { |table| connection.foreign_keys(table) }.flatten.size).to eq(2)
38
38
  end
39
39
 
40
40
  end
@@ -42,7 +42,7 @@ end
42
42
 
43
43
  def define_schema(&block)
44
44
  ActiveRecord::Schema.define do
45
- connection.tables.each do |table|
45
+ connection.tables_only.each do |table|
46
46
  drop_table table, force: :cascade
47
47
  end
48
48
  instance_eval &block
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_auto_foreign_keys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronen barzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: schema_plus_foreign_keys
@@ -151,14 +151,14 @@ files:
151
151
  - README.md
152
152
  - Rakefile
153
153
  - gemfiles/Gemfile.base
154
- - gemfiles/activerecord-4.2.0/Gemfile.base
155
- - gemfiles/activerecord-4.2.0/Gemfile.mysql2
156
- - gemfiles/activerecord-4.2.0/Gemfile.postgresql
157
- - gemfiles/activerecord-4.2.0/Gemfile.sqlite3
158
- - gemfiles/activerecord-4.2.1/Gemfile.base
159
- - gemfiles/activerecord-4.2.1/Gemfile.mysql2
160
- - gemfiles/activerecord-4.2.1/Gemfile.postgresql
161
- - gemfiles/activerecord-4.2.1/Gemfile.sqlite3
154
+ - gemfiles/activerecord-4.2/Gemfile.base
155
+ - gemfiles/activerecord-4.2/Gemfile.mysql2
156
+ - gemfiles/activerecord-4.2/Gemfile.postgresql
157
+ - gemfiles/activerecord-4.2/Gemfile.sqlite3
158
+ - gemfiles/activerecord-5.0/Gemfile.base
159
+ - gemfiles/activerecord-5.0/Gemfile.mysql2
160
+ - gemfiles/activerecord-5.0/Gemfile.postgresql
161
+ - gemfiles/activerecord-5.0/Gemfile.sqlite3
162
162
  - lib/schema_auto_foreign_keys.rb
163
163
  - lib/schema_auto_foreign_keys/active_record/connection_adapters/sqlite3_adapter.rb
164
164
  - lib/schema_auto_foreign_keys/middleware/migration.rb
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.2.2
195
+ rubygems_version: 2.5.1
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Automatically define foreign key constraints in ActiveRecord