secondbase 2.1.3 → 2.1.4

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: 52e65c2097a0ed5b421a91648ff01ad217357b47
4
- data.tar.gz: 2802624f4a57b8158925176a6e6302fbdaee7cff
3
+ metadata.gz: a3c0154843d09220b2d1fb0e823d46f5f8cbd600
4
+ data.tar.gz: e41e248774443c45da704427bac5e025980df2af
5
5
  SHA512:
6
- metadata.gz: 22ab6d7bdded6031bdc9c5319005512c30e5a839287c954a5a2b53537b796fdb81e4c880a49efaa0067d53274357316d0cad2f87be4c576e75c00fa29497a90c
7
- data.tar.gz: 56102fe742b18eaeba5aefeeb929ad892b14472646bc7530a99e215d5af8bc5b1b6a5fe368c850a7f5866d38f059cf4c97dfd7b8878bb8e97eb202b946baec10
6
+ metadata.gz: 06eb76f4c0f728e4976c126a4be35533fd2a26f10e13c348e9e2549681f3ac9b8766574f2a089289d312b53a5b05283751f050b2cd4825ad79ad6677e79776a5
7
+ data.tar.gz: 32fec882c3c3f9e67bbf29bd22550954dcd0b889dab6579cb1f56bc14e234e57fb5262cdcfb538b73f48b62d23cd516c5f836c7212edde6939068717fb0fd4d7
@@ -8,6 +8,7 @@ gemfile:
8
8
  - gemfiles/rails41.gemfile
9
9
  - gemfiles/rails42.gemfile
10
10
  - gemfiles/rails50.gemfile
11
+ - gemfiles/rails51.gemfile
11
12
  install:
12
13
  - gem install bundler
13
14
  - bundle --version
data/Appraisals CHANGED
@@ -17,3 +17,8 @@ appraise 'rails50' do
17
17
  gem 'rails', '~> 5.0.0'
18
18
  gem 'mysql2'
19
19
  end
20
+
21
+ appraise 'rails51' do
22
+ gem 'rails', '~> 5.1.0'
23
+ gem 'mysql2'
24
+ end
@@ -2,6 +2,11 @@
2
2
 
3
3
  Please follow the format set down in http://keepachangelog.com
4
4
 
5
+ ## v2.1.4
6
+
7
+ * Rails v5.1 support.
8
+
9
+
5
10
  ## v2.1.3
6
11
 
7
12
  #### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.1.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+ gem "mysql2"
7
+
8
+ gemspec :path => "../"
@@ -13,7 +13,7 @@ module SecondBase
13
13
  autoload :Base
14
14
 
15
15
  def self.config(env = nil)
16
- config = ActiveRecord::Base.configurations[Railtie.config_key]
16
+ config = Rails.application.config.database_configuration[Railtie.config_key]
17
17
  config ? config[env || Rails.env] : nil
18
18
  end
19
19
 
@@ -10,7 +10,7 @@ module SecondBase
10
10
  return
11
11
  end
12
12
  original_config = ActiveRecord::Tasks::DatabaseTasks.current_config
13
- original_configurations = ActiveRecord::Base.configurations
13
+ original_configurations = Rails.application.config.database_configuration
14
14
  original_migrations_path = ActiveRecord::Tasks::DatabaseTasks.migrations_paths
15
15
  original_db_dir = ActiveRecord::Tasks::DatabaseTasks.db_dir
16
16
  ActiveRecord::Tasks::DatabaseTasks.current_config = config
@@ -176,7 +176,20 @@ class DbTaskTest < SecondBase::TestCase
176
176
  assert_connection_tables SecondBase::Base, ['comments']
177
177
  end
178
178
 
179
+ def test_db_test_load_schema_via_env
180
+ run_db :create
181
+ assert_dummy_databases
182
+ run_db 'test:purge'
183
+ Dir.chdir(dummy_root) { `env SCHEMA_FORMAT=ruby rake db:migrate` }
184
+ Dir.chdir(dummy_root) { `rake db:test:load_schema` }
185
+ establish_connection
186
+ assert_connection_tables ActiveRecord::Base, ['users', 'posts']
187
+ assert_connection_tables SecondBase::Base, ['comments']
188
+ end
189
+
179
190
  def test_db_test_schema_cache_dump
191
+ # this is a bug in rails >5.1.1
192
+ return if Rails::VERSION::STRING.start_with?("5.1")
180
193
  run_db :create
181
194
  run_db :migrate
182
195
  assert_dummy_databases
@@ -1,2 +1,2 @@
1
- require File.expand_path '../init', __FILE__
1
+ require_relative 'config/init'
2
2
  Dummy::Application.load_tasks
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- APP_PATH = File.expand_path('../../init', __FILE__)
3
+ APP_PATH = File.expand_path('../../config/init', __FILE__)
4
4
  require APP_PATH
5
5
  require 'rails/commands'
@@ -1,5 +1,5 @@
1
1
  ENV['RAILS_ENV'] ||= 'test'
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
3
  require 'bundler/setup'
4
4
  require 'rails/all'
5
5
  Bundler.require(:default, Rails.env)
@@ -8,7 +8,7 @@ module Dummy
8
8
  class Application < ::Rails::Application
9
9
 
10
10
  # Basic Engine
11
- config.root = File.join __FILE__, '..'
11
+ config.root = File.join __FILE__, '..', '..'
12
12
  config.cache_store = :memory_store
13
13
  config.assets.enabled = false
14
14
  config.secret_token = '012345678901234567890123456789'
@@ -31,7 +31,7 @@ module Dummy
31
31
  # Keep pending test:prepare via pending migrations from running.
32
32
  config.active_record.maintain_test_schema = false if ActiveRecord::Base.respond_to?(:maintain_test_schema)
33
33
 
34
- config.active_record.schema_format = ENV['SCHEMA_FORMAT'] ? :sql : :ruby
34
+ config.active_record.schema_format = (ENV['SCHEMA_FORMAT'] || :ruby).to_sym
35
35
 
36
36
  if ENV['WITH_SECONDBASE_TASKS'].present?
37
37
  config.second_base.run_with_db_tasks = ENV['WITH_SECONDBASE_TASKS'] == 'true'
@@ -0,0 +1,262 @@
1
+ --- !ruby/object:ActiveRecord::ConnectionAdapters::SchemaCache
2
+ columns:
3
+ schema_migrations:
4
+ - &1 !ruby/object:ActiveRecord::ConnectionAdapters::Column
5
+ name: version
6
+ table_name: schema_migrations
7
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
8
+ sql_type: varchar
9
+ type: :string
10
+ limit:
11
+ precision:
12
+ scale:
13
+ 'null': false
14
+ default:
15
+ default_function:
16
+ collation:
17
+ comment:
18
+ ar_internal_metadata:
19
+ - &2 !ruby/object:ActiveRecord::ConnectionAdapters::Column
20
+ name: key
21
+ table_name: ar_internal_metadata
22
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
23
+ sql_type: varchar
24
+ type: :string
25
+ limit:
26
+ precision:
27
+ scale:
28
+ 'null': false
29
+ default:
30
+ default_function:
31
+ collation:
32
+ comment:
33
+ - &3 !ruby/object:ActiveRecord::ConnectionAdapters::Column
34
+ name: value
35
+ table_name: ar_internal_metadata
36
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
37
+ sql_type: varchar
38
+ type: :string
39
+ limit:
40
+ precision:
41
+ scale:
42
+ 'null': true
43
+ default:
44
+ default_function:
45
+ collation:
46
+ comment:
47
+ - &4 !ruby/object:ActiveRecord::ConnectionAdapters::Column
48
+ name: created_at
49
+ table_name: ar_internal_metadata
50
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
51
+ sql_type: datetime
52
+ type: :datetime
53
+ limit:
54
+ precision:
55
+ scale:
56
+ 'null': false
57
+ default:
58
+ default_function:
59
+ collation:
60
+ comment:
61
+ - &5 !ruby/object:ActiveRecord::ConnectionAdapters::Column
62
+ name: updated_at
63
+ table_name: ar_internal_metadata
64
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
65
+ sql_type: datetime
66
+ type: :datetime
67
+ limit:
68
+ precision:
69
+ scale:
70
+ 'null': false
71
+ default:
72
+ default_function:
73
+ collation:
74
+ comment:
75
+ users:
76
+ - &6 !ruby/object:ActiveRecord::ConnectionAdapters::Column
77
+ name: id
78
+ table_name: users
79
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
80
+ sql_type: INTEGER
81
+ type: :integer
82
+ limit:
83
+ precision:
84
+ scale:
85
+ 'null': false
86
+ default:
87
+ default_function:
88
+ collation:
89
+ comment:
90
+ - &7 !ruby/object:ActiveRecord::ConnectionAdapters::Column
91
+ name: name
92
+ table_name: users
93
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
94
+ sql_type: varchar
95
+ type: :string
96
+ limit:
97
+ precision:
98
+ scale:
99
+ 'null': true
100
+ default:
101
+ default_function:
102
+ collation:
103
+ comment:
104
+ - &8 !ruby/object:ActiveRecord::ConnectionAdapters::Column
105
+ name: email
106
+ table_name: users
107
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
108
+ sql_type: varchar
109
+ type: :string
110
+ limit:
111
+ precision:
112
+ scale:
113
+ 'null': true
114
+ default:
115
+ default_function:
116
+ collation:
117
+ comment:
118
+ - &9 !ruby/object:ActiveRecord::ConnectionAdapters::Column
119
+ name: created_at
120
+ table_name: users
121
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
122
+ sql_type: datetime
123
+ type: :datetime
124
+ limit:
125
+ precision:
126
+ scale:
127
+ 'null': false
128
+ default:
129
+ default_function:
130
+ collation:
131
+ comment:
132
+ - &10 !ruby/object:ActiveRecord::ConnectionAdapters::Column
133
+ name: updated_at
134
+ table_name: users
135
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
136
+ sql_type: datetime
137
+ type: :datetime
138
+ limit:
139
+ precision:
140
+ scale:
141
+ 'null': false
142
+ default:
143
+ default_function:
144
+ collation:
145
+ comment:
146
+ posts:
147
+ - &11 !ruby/object:ActiveRecord::ConnectionAdapters::Column
148
+ name: id
149
+ table_name: posts
150
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
151
+ sql_type: INTEGER
152
+ type: :integer
153
+ limit:
154
+ precision:
155
+ scale:
156
+ 'null': false
157
+ default:
158
+ default_function:
159
+ collation:
160
+ comment:
161
+ - &12 !ruby/object:ActiveRecord::ConnectionAdapters::Column
162
+ name: title
163
+ table_name: posts
164
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
165
+ sql_type: text
166
+ type: :text
167
+ limit:
168
+ precision:
169
+ scale:
170
+ 'null': true
171
+ default:
172
+ default_function:
173
+ collation:
174
+ comment:
175
+ - &13 !ruby/object:ActiveRecord::ConnectionAdapters::Column
176
+ name: body
177
+ table_name: posts
178
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
179
+ sql_type: text
180
+ type: :text
181
+ limit:
182
+ precision:
183
+ scale:
184
+ 'null': true
185
+ default:
186
+ default_function:
187
+ collation:
188
+ comment:
189
+ - &14 !ruby/object:ActiveRecord::ConnectionAdapters::Column
190
+ name: user_id
191
+ table_name: posts
192
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
193
+ sql_type: integer
194
+ type: :integer
195
+ limit:
196
+ precision:
197
+ scale:
198
+ 'null': true
199
+ default:
200
+ default_function:
201
+ collation:
202
+ comment:
203
+ - &15 !ruby/object:ActiveRecord::ConnectionAdapters::Column
204
+ name: created_at
205
+ table_name: posts
206
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
207
+ sql_type: datetime
208
+ type: :datetime
209
+ limit:
210
+ precision:
211
+ scale:
212
+ 'null': false
213
+ default:
214
+ default_function:
215
+ collation:
216
+ comment:
217
+ - &16 !ruby/object:ActiveRecord::ConnectionAdapters::Column
218
+ name: updated_at
219
+ table_name: posts
220
+ sql_type_metadata: !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
221
+ sql_type: datetime
222
+ type: :datetime
223
+ limit:
224
+ precision:
225
+ scale:
226
+ 'null': false
227
+ default:
228
+ default_function:
229
+ collation:
230
+ comment:
231
+ columns_hash:
232
+ schema_migrations:
233
+ version: *1
234
+ ar_internal_metadata:
235
+ key: *2
236
+ value: *3
237
+ created_at: *4
238
+ updated_at: *5
239
+ users:
240
+ id: *6
241
+ name: *7
242
+ email: *8
243
+ created_at: *9
244
+ updated_at: *10
245
+ posts:
246
+ id: *11
247
+ title: *12
248
+ body: *13
249
+ user_id: *14
250
+ created_at: *15
251
+ updated_at: *16
252
+ primary_keys:
253
+ schema_migrations: version
254
+ ar_internal_metadata: key
255
+ users: id
256
+ posts: id
257
+ data_sources:
258
+ schema_migrations: true
259
+ ar_internal_metadata: true
260
+ users: true
261
+ posts: true
262
+ version: 20141214142700
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:ActiveRecord::ConnectionAdapters::SchemaCache
2
+ columns:
3
+ ar_internal_metadata:
4
+ - &11 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
5
+ name: key
6
+ table_name: ar_internal_metadata
7
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
8
+ :__v2__:
9
+ - :@type_metadata
10
+ - :@extra
11
+ ? - &1 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
12
+ sql_type: varchar(255)
13
+ type: :string
14
+ limit: 255
15
+ precision:
16
+ scale:
17
+ - ''
18
+ : *1
19
+ 'null': false
20
+ default:
21
+ default_function:
22
+ collation: utf8_general_ci
23
+ comment:
24
+ - &12 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
25
+ name: value
26
+ table_name: ar_internal_metadata
27
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
28
+ :__v2__:
29
+ - :@type_metadata
30
+ - :@extra
31
+ ? - &2 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
32
+ sql_type: varchar(255)
33
+ type: :string
34
+ limit: 255
35
+ precision:
36
+ scale:
37
+ - ''
38
+ : *2
39
+ 'null': true
40
+ default:
41
+ default_function:
42
+ collation: utf8_general_ci
43
+ comment:
44
+ - &13 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
45
+ name: created_at
46
+ table_name: ar_internal_metadata
47
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
48
+ :__v2__:
49
+ - :@type_metadata
50
+ - :@extra
51
+ ? - &3 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
52
+ sql_type: datetime
53
+ type: :datetime
54
+ limit:
55
+ precision: 0
56
+ scale:
57
+ - ''
58
+ : *3
59
+ 'null': false
60
+ default:
61
+ default_function:
62
+ collation:
63
+ comment:
64
+ - &14 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
65
+ name: updated_at
66
+ table_name: ar_internal_metadata
67
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
68
+ :__v2__:
69
+ - :@type_metadata
70
+ - :@extra
71
+ ? - &4 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
72
+ sql_type: datetime
73
+ type: :datetime
74
+ limit:
75
+ precision: 0
76
+ scale:
77
+ - ''
78
+ : *4
79
+ 'null': false
80
+ default:
81
+ default_function:
82
+ collation:
83
+ comment:
84
+ comments:
85
+ - &15 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
86
+ name: id
87
+ table_name: comments
88
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
89
+ :__v2__:
90
+ - :@type_metadata
91
+ - :@extra
92
+ ? - &5 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
93
+ sql_type: int(11)
94
+ type: :integer
95
+ limit: 4
96
+ precision:
97
+ scale:
98
+ - auto_increment
99
+ : *5
100
+ 'null': false
101
+ default:
102
+ default_function:
103
+ collation:
104
+ comment:
105
+ - &16 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
106
+ name: body
107
+ table_name: comments
108
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
109
+ :__v2__:
110
+ - :@type_metadata
111
+ - :@extra
112
+ ? - &6 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
113
+ sql_type: text
114
+ type: :text
115
+ limit: 65535
116
+ precision:
117
+ scale:
118
+ - ''
119
+ : *6
120
+ 'null': true
121
+ default:
122
+ default_function:
123
+ collation: utf8_general_ci
124
+ comment:
125
+ - &17 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
126
+ name: user_id
127
+ table_name: comments
128
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
129
+ :__v2__:
130
+ - :@type_metadata
131
+ - :@extra
132
+ ? - &7 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
133
+ sql_type: int(11)
134
+ type: :integer
135
+ limit: 4
136
+ precision:
137
+ scale:
138
+ - ''
139
+ : *7
140
+ 'null': true
141
+ default:
142
+ default_function:
143
+ collation:
144
+ comment:
145
+ - &18 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
146
+ name: created_at
147
+ table_name: comments
148
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
149
+ :__v2__:
150
+ - :@type_metadata
151
+ - :@extra
152
+ ? - &8 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
153
+ sql_type: datetime
154
+ type: :datetime
155
+ limit:
156
+ precision: 0
157
+ scale:
158
+ - ''
159
+ : *8
160
+ 'null': false
161
+ default:
162
+ default_function:
163
+ collation:
164
+ comment:
165
+ - &19 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
166
+ name: updated_at
167
+ table_name: comments
168
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
169
+ :__v2__:
170
+ - :@type_metadata
171
+ - :@extra
172
+ ? - &9 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
173
+ sql_type: datetime
174
+ type: :datetime
175
+ limit:
176
+ precision: 0
177
+ scale:
178
+ - ''
179
+ : *9
180
+ 'null': false
181
+ default:
182
+ default_function:
183
+ collation:
184
+ comment:
185
+ schema_migrations:
186
+ - &20 !ruby/object:ActiveRecord::ConnectionAdapters::MySQL::Column
187
+ name: version
188
+ table_name: schema_migrations
189
+ sql_type_metadata: !ruby/marshalable:ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata
190
+ :__v2__:
191
+ - :@type_metadata
192
+ - :@extra
193
+ ? - &10 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
194
+ sql_type: varchar(255)
195
+ type: :string
196
+ limit: 255
197
+ precision:
198
+ scale:
199
+ - ''
200
+ : *10
201
+ 'null': false
202
+ default:
203
+ default_function:
204
+ collation: utf8_general_ci
205
+ comment:
206
+ columns_hash:
207
+ ar_internal_metadata:
208
+ key: *11
209
+ value: *12
210
+ created_at: *13
211
+ updated_at: *14
212
+ comments:
213
+ id: *15
214
+ body: *16
215
+ user_id: *17
216
+ created_at: *18
217
+ updated_at: *19
218
+ schema_migrations:
219
+ version: *20
220
+ primary_keys:
221
+ ar_internal_metadata: key
222
+ comments: id
223
+ schema_migrations: version
224
+ data_sources:
225
+ ar_internal_metadata: true
226
+ comments: true
227
+ schema_migrations: true
228
+ version: 20151202075826
@@ -31,7 +31,7 @@ module Dummy
31
31
  # Keep pending test:prepare via pending migrations from running.
32
32
  config.active_record.maintain_test_schema = false if ActiveRecord::Base.respond_to?(:maintain_test_schema)
33
33
 
34
- config.active_record.schema_format = ENV['SCHEMA_FORMAT'] ? :sql : :ruby
34
+ config.active_record.schema_format = (ENV['SCHEMA_FORMAT'] || :ruby).to_sym
35
35
 
36
36
  if ENV['WITH_SECONDBASE_TASKS'].present?
37
37
  config.second_base.run_with_db_tasks = ENV['WITH_SECONDBASE_TASKS'] == 'true'
@@ -9,7 +9,7 @@ require 'active_support/testing/autorun'
9
9
  if Rails.version.to_i == 4
10
10
  require 'dummy_apps/rails_four/init'
11
11
  else
12
- require 'dummy_apps/rails_five/init'
12
+ require 'dummy_apps/rails_five/config/init'
13
13
  end
14
14
 
15
15
  require 'rails/test_help'
@@ -11,7 +11,7 @@ module SecondBase
11
11
  Rails.version.to(2)
12
12
  end
13
13
 
14
- ['4.0', '4.1', '4.2', '5.0'].each do |v|
14
+ ['4.0', '4.1', '4.2', '5.0', '5.1'].each do |v|
15
15
 
16
16
  vm = v.sub '.', ''
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secondbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karle Durante
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-03 00:00:00.000000000 Z
13
+ date: 2017-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -120,6 +120,7 @@ files:
120
120
  - gemfiles/rails41.gemfile
121
121
  - gemfiles/rails42.gemfile
122
122
  - gemfiles/rails50.gemfile
123
+ - gemfiles/rails51.gemfile
123
124
  - lib/rails/second_base/generators/migration_generator.rb
124
125
  - lib/second_base.rb
125
126
  - lib/second_base/base.rb
@@ -149,11 +150,13 @@ files:
149
150
  - test/dummy_apps/rails_five/app/models/user.rb
150
151
  - test/dummy_apps/rails_five/bin/rails
151
152
  - test/dummy_apps/rails_five/config/database.yml
153
+ - test/dummy_apps/rails_five/config/init.rb
152
154
  - test/dummy_apps/rails_five/config/routes.rb
153
155
  - test/dummy_apps/rails_five/db/migrate/20141209165002_create_users.rb
154
156
  - test/dummy_apps/rails_five/db/migrate/20141214142700_create_posts.rb
157
+ - test/dummy_apps/rails_five/db/schema_cache.yml
155
158
  - test/dummy_apps/rails_five/db/secondbase/migrate/20151202075826_create_comments.rb
156
- - test/dummy_apps/rails_five/init.rb
159
+ - test/dummy_apps/rails_five/db/secondbase/schema_cache.yml
157
160
  - test/dummy_apps/rails_five/log/.keep
158
161
  - test/dummy_apps/rails_five/tmp/.keep
159
162
  - test/dummy_apps/rails_four/Rakefile
@@ -197,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
200
  version: '0'
198
201
  requirements: []
199
202
  rubyforge_project:
200
- rubygems_version: 2.6.8
203
+ rubygems_version: 2.6.4
201
204
  signing_key:
202
205
  specification_version: 4
203
206
  summary: Seamless second database integration for Rails.
@@ -218,11 +221,13 @@ test_files:
218
221
  - test/dummy_apps/rails_five/app/models/user.rb
219
222
  - test/dummy_apps/rails_five/bin/rails
220
223
  - test/dummy_apps/rails_five/config/database.yml
224
+ - test/dummy_apps/rails_five/config/init.rb
221
225
  - test/dummy_apps/rails_five/config/routes.rb
222
226
  - test/dummy_apps/rails_five/db/migrate/20141209165002_create_users.rb
223
227
  - test/dummy_apps/rails_five/db/migrate/20141214142700_create_posts.rb
228
+ - test/dummy_apps/rails_five/db/schema_cache.yml
224
229
  - test/dummy_apps/rails_five/db/secondbase/migrate/20151202075826_create_comments.rb
225
- - test/dummy_apps/rails_five/init.rb
230
+ - test/dummy_apps/rails_five/db/secondbase/schema_cache.yml
226
231
  - test/dummy_apps/rails_five/log/.keep
227
232
  - test/dummy_apps/rails_five/tmp/.keep
228
233
  - test/dummy_apps/rails_four/Rakefile
@@ -245,4 +250,3 @@ test_files:
245
250
  - test/test_helpers/dummy_app_helpers.rb
246
251
  - test/test_helpers/rails_version_helpers.rb
247
252
  - test/test_helpers/stream_helpers.rb
248
- has_rdoc: