standalone_migrations 5.2.3 → 5.2.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: 219a7433481076edbe318711aa0c867f957876fa
4
- data.tar.gz: 4b0dee79a2d43daa7b49829438e04b5670767fe7
3
+ metadata.gz: ef32d8cc8a1c46698b257c1d27f1899f13f43a8e
4
+ data.tar.gz: c164b0d1f01acc762aa62fb8e9a23a4618513e70
5
5
  SHA512:
6
- metadata.gz: 155dfb9ca6c264fc2b23c72f7d9aaada1097640eb7206cc01b3b1ca4cde2aa09d6631ef03b0cd4e4c85442ea720cbffb7fb6a06ec9429ba6cdb52dcd69afc86d
7
- data.tar.gz: 1a3eab8e50448b2ac611b1af4224905929f3825321d9116344d1dad269eb8250468745637bfa8c41d7aa385ecec890ccde18f34db1cdc640d6493af45c85c0ca
6
+ metadata.gz: b6e12e99716ffe2b141dc78c44b087b76ff86266503711b5fba1273f1de8b11b160ab1e60ea770b230e766411175e290992ee0b0469fae3ffe760dfde03d54d2
7
+ data.tar.gz: 5a3222f1a7079c7d5d6009a2c761c993d488e460f518400c60de838dedb9b0cc5eded6aea4f27a0bc0afa041821190243bdb7b358c974412a5a8e90f45f9641b
@@ -8,7 +8,7 @@ In the 5.x release we have moved to using Rails 5 migrations instead of maintain
8
8
 
9
9
  CONTRIBUTE
10
10
  ==========
11
- [Standalone Migrations](https://github.com/thuss/standalone-migrations) relies on the contributions of the open-source community! To submit a fix or an enhancement fork the repository, checkout the *develop* branch, make your changes, add your name to the *Contributors* section in README.markdown, and send us a pull request! If you're active and do good work we'll add you as a collaborator!
11
+ [Standalone Migrations](https://github.com/thuss/standalone-migrations) relies on the contributions of the open-source community! To submit a fix or an enhancement fork the repository, make your changes, add your name to the *Contributors* section in README.markdown, and send us a pull request! If you're active and do good work we'll add you as a collaborator!
12
12
 
13
13
  USAGE
14
14
  =====
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.3
1
+ 5.2.4
@@ -33,14 +33,14 @@ module StandaloneMigrations
33
33
  end
34
34
 
35
35
  def initialize(options = {})
36
+ default_schema = ENV['SCHEMA'] || ActiveRecord::Tasks::DatabaseTasks.schema_file(ActiveRecord::Base.schema_format)
36
37
  defaults = {
37
38
  :config => "db/config.yml",
38
39
  :migrate_dir => "db/migrate",
39
40
  :seeds => "db/seeds.rb",
40
- :schema => "db/schema.rb"
41
+ :schema => default_schema
41
42
  }
42
43
  @options = load_from_file(defaults.dup) || defaults.merge(options)
43
- ENV['SCHEMA'] = ENV['SCHEMA'] || File.expand_path(schema)
44
44
 
45
45
  Rails.application.config.root = Pathname.pwd
46
46
  Rails.application.config.paths["config/database"] = config
@@ -105,7 +105,7 @@ module StandaloneMigrations
105
105
  end
106
106
 
107
107
  it "use db/schema.rb" do
108
- expect(configurator.schema).to eq("db/schema.rb")
108
+ expect(configurator.schema).to end_with("/db/schema.rb")
109
109
  end
110
110
 
111
111
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: standalone_migrations 5.2.3 ruby lib
5
+ # stub: standalone_migrations 5.2.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "standalone_migrations"
9
- s.version = "5.2.3"
9
+ s.version = "5.2.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Todd Huss", "Michael Grosser"]
14
- s.date = "2017-06-10"
14
+ s.date = "2018-03-19"
15
15
  s.email = "thuss@gabrito.com"
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standalone_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 5.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Huss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-10 00:00:00.000000000 Z
12
+ date: 2018-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake