standalone_migrations 5.2.7 → 7.1.0

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
- SHA1:
3
- metadata.gz: 1986b7008c08a82adc6dbd07e8731ad127014200
4
- data.tar.gz: 22956c9490c328faad68aa63c47081aa7b146aa5
2
+ SHA256:
3
+ metadata.gz: 3ec58e76bbbbb54d329a8ad29a190f7eca110c4fa6e6f689f81a39d43181b13f
4
+ data.tar.gz: 05dcd77d0e4acf20775d1064e14c2e21f722257e975a47978791d799bc492676
5
5
  SHA512:
6
- metadata.gz: d6b4fbf516b740a3486bba884cb352db9a7eef4600158b28f8750559153235edc126315623f23f01256edc4c041d87ea6ec27a7b450a6582445e1a8593ea8231
7
- data.tar.gz: af3bc755672e629d99df9a092089696dceb8dd3e654be182c57169031e20be2c31a10485ee67cb345df66e651d3f9c94e41fdf86a552785b4103a15a28900c22
6
+ metadata.gz: efc177c076ddfcdadfa636aa30c04f6b8a28d01a274aace88825bd271c2b8f6f0ec2f240a5e935c7cfa02b503aef3982f695515488f62a3074fc26d1873ca6d4
7
+ data.tar.gz: cd471c8b0a6cf6c9d2d806820391c92bfdc98f6096b2f85218b22729f1d4a4c4ff0046b5b95a065bfd8755041c1c8fa76446da8c597283d99c8f49f4f0652111
data/.travis.yml CHANGED
@@ -1,9 +1,29 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.5.9
4
+ - 2.6.9
5
+ - 2.7.5
6
+ - 3.0.3
4
7
  env:
5
- - AR="~> 4.2.0" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
6
- - AR="~> 5.0.0" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
7
- - AR=">= 5.1.0.rc2,< 5.2" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
8
- - AR=">= 5.2.0.rc2,< 5.3" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
8
+ - AR="~> 4.2.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
9
+ - AR="~> 5.0.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
10
+ - AR=">= 5.1.0.rc2,< 5.2" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
11
+ - AR=">= 5.2.0.rc2,< 5.3,!= 5.2.3,!=5.2.3.rc1" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
12
+ - AR="~> 6.0.0" SQL="~>1.4" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
13
+ - AR="~> 6.1.0" SQL="~>1.4" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
14
+ - AR="~> 7.0.0" SQL="~>1.4" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
15
+ jobs:
16
+ exclude:
17
+ - rvm: 2.6.9
18
+ env: AR="~> 4.2.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
19
+ - rvm: 2.7.5
20
+ env: AR="~> 4.2.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
21
+ - rvm: 3.0.3
22
+ env: AR="~> 4.2.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
23
+ - rvm: 2.7.5
24
+ env: AR="~> 5.0.0" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
25
+ - rvm: 2.7.5
26
+ env: AR=">= 5.1.0.rc2,< 5.2" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
27
+ - rvm: 2.7.5
28
+ env: AR=">= 5.2.0.rc2,< 5.3,!= 5.2.3,!=5.2.3.rc1" SQL="~>1.3.6" NOKOGIRI_USE_SYSTEM_LIBRARIES=1
9
29
  script: bundle exec rake specs:travis
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rake', '>= 10.0'
4
- gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 4.2.7", "< 5.3.0"]
5
- gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 4.2.7", "< 5.3.0"]
4
+ gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!=5.2.3.rc1"]
5
+ gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!=5.2.3.rc1"]
6
6
 
7
7
  group :dev do
8
- gem 'sqlite3', '~> 1.3.6'
8
+ gem 'sqlite3', ENV['SQL'] ? ENV['SQL'].split(",") : ['~> 1.4']
9
9
  gem 'rspec', '>= 2.99.0'
10
10
  gem 'jeweler'
11
11
  end
data/README.markdown CHANGED
@@ -4,6 +4,8 @@ Rails migrations in non-Rails (and non Ruby) projects.
4
4
 
5
5
  WHAT'S NEW
6
6
  ==========
7
+ In the 6.x release we've added support for Rails 6 migrations thanks to [Marco Adkins](https://github.com/marcoadkins).
8
+
7
9
  In the 5.x release we have moved to using Rails 5 migrations instead of maintaining our own migration related code. Just about anything you can do with Rails 5 migrations you can now do with [Standalone Migrations](https://github.com/thuss/standalone-migrations) too!
8
10
 
9
11
  CONTRIBUTE
@@ -265,3 +267,7 @@ Contributors
265
267
  - [Jonathan Rochkind](https://github.com/jrochkind)
266
268
  - [Michael Mikhailov](https://github.com/yohanson)
267
269
  - [Benjamin Dobell](https://github.com/Benjamin-Dobell)
270
+ - [Hassan Mahmoud](https://github.com/HassanTC)
271
+ - [Marco Adkins](https://github.com/marcoadkins)
272
+ - [Mithun James](https://github.com/drtechie)
273
+ - [Sarah Ridge](https://github.com/smridge)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.7
1
+ 7.1.0
@@ -3,7 +3,7 @@ module StandaloneMigrations
3
3
  class << self
4
4
  def configure(options = {})
5
5
  Deprecations.new.call
6
- configurator = Configurator.new options
6
+ Configurator.new options
7
7
  end
8
8
 
9
9
  def load_tasks(options = {})
@@ -87,6 +87,7 @@ end
87
87
  end
88
88
 
89
89
  before do
90
+ StandaloneMigrations::Configurator.instance_variable_set(:@env_config, nil)
90
91
  `rm -rf spec/tmp` if File.exist?('spec/tmp')
91
92
  `mkdir spec/tmp`
92
93
  write_rakefile
@@ -98,6 +99,9 @@ development:
98
99
  test:
99
100
  adapter: sqlite3
100
101
  database: db/test.sql
102
+ production:
103
+ adapter: sqlite3
104
+ database: db/production.sql
101
105
  TXT
102
106
  end
103
107
 
@@ -121,7 +125,7 @@ test:
121
125
 
122
126
  describe 'callbacks' do
123
127
  it 'runs the callbacks' do
124
- expect(StandaloneMigrations::Tasks).to receive(:configure)
128
+ expect(StandaloneMigrations::Tasks).to receive(:configure).and_call_original
125
129
 
126
130
  connection_established = false
127
131
  expect(ActiveRecord::Base).to receive(:establish_connection) do
@@ -2,17 +2,17 @@
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.7 ruby lib
5
+ # stub: standalone_migrations 7.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "standalone_migrations"
9
- s.version = "5.2.7"
8
+ s.name = "standalone_migrations".freeze
9
+ s.version = "7.1.0"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Todd Huss", "Michael Grosser"]
14
- s.date = "2019-02-08"
15
- s.email = "thuss@gabrito.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Todd Huss".freeze, "Michael Grosser".freeze]
14
+ s.date = "2022-03-16"
15
+ s.email = "thuss@gabrito.com".freeze
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.markdown"
@@ -49,27 +49,23 @@ Gem::Specification.new do |s|
49
49
  "vendor/migration_helpers/init.rb",
50
50
  "vendor/migration_helpers/lib/migration_helper.rb"
51
51
  ]
52
- s.homepage = "http://github.com/thuss/standalone-migrations"
53
- s.licenses = ["MIT"]
54
- s.rubygems_version = "2.4.8"
55
- s.summary = "A thin wrapper to use Rails Migrations in non Rails projects"
52
+ s.homepage = "http://github.com/thuss/standalone-migrations".freeze
53
+ s.licenses = ["MIT".freeze]
54
+ s.rubygems_version = "3.1.4".freeze
55
+ s.summary = "A thin wrapper to use Rails Migrations in non Rails projects".freeze
56
56
 
57
57
  if s.respond_to? :specification_version then
58
58
  s.specification_version = 4
59
+ end
59
60
 
60
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
61
- s.add_runtime_dependency(%q<rake>, [">= 10.0"])
62
- s.add_runtime_dependency(%q<activerecord>, ["< 5.3.0", ">= 4.2.7"])
63
- s.add_runtime_dependency(%q<railties>, ["< 5.3.0", ">= 4.2.7"])
64
- else
65
- s.add_dependency(%q<rake>, [">= 10.0"])
66
- s.add_dependency(%q<activerecord>, ["< 5.3.0", ">= 4.2.7"])
67
- s.add_dependency(%q<railties>, ["< 5.3.0", ">= 4.2.7"])
68
- end
61
+ if s.respond_to? :add_runtime_dependency then
62
+ s.add_runtime_dependency(%q<rake>.freeze, [">= 10.0"])
63
+ s.add_runtime_dependency(%q<activerecord>.freeze, [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!= 5.2.3.rc1"])
64
+ s.add_runtime_dependency(%q<railties>.freeze, [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!= 5.2.3.rc1"])
69
65
  else
70
- s.add_dependency(%q<rake>, [">= 10.0"])
71
- s.add_dependency(%q<activerecord>, ["< 5.3.0", ">= 4.2.7"])
72
- s.add_dependency(%q<railties>, ["< 5.3.0", ">= 4.2.7"])
66
+ s.add_dependency(%q<rake>.freeze, [">= 10.0"])
67
+ s.add_dependency(%q<activerecord>.freeze, [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!= 5.2.3.rc1"])
68
+ s.add_dependency(%q<railties>.freeze, [">= 4.2.7", "< 7.1.0", "!= 5.2.3", "!= 5.2.3.rc1"])
73
69
  end
74
70
  end
75
71
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standalone_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.7
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Huss
8
8
  - Michael Grosser
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-08 00:00:00.000000000 Z
12
+ date: 2022-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -29,43 +29,67 @@ dependencies:
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "<"
33
- - !ruby/object:Gem::Version
34
- version: 5.3.0
35
32
  - - ">="
36
33
  - !ruby/object:Gem::Version
37
34
  version: 4.2.7
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: 7.1.0
38
+ - - "!="
39
+ - !ruby/object:Gem::Version
40
+ version: 5.2.3
41
+ - - "!="
42
+ - !ruby/object:Gem::Version
43
+ version: 5.2.3.rc1
38
44
  type: :runtime
39
45
  prerelease: false
40
46
  version_requirements: !ruby/object:Gem::Requirement
41
47
  requirements:
42
- - - "<"
43
- - !ruby/object:Gem::Version
44
- version: 5.3.0
45
48
  - - ">="
46
49
  - !ruby/object:Gem::Version
47
50
  version: 4.2.7
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: 7.1.0
54
+ - - "!="
55
+ - !ruby/object:Gem::Version
56
+ version: 5.2.3
57
+ - - "!="
58
+ - !ruby/object:Gem::Version
59
+ version: 5.2.3.rc1
48
60
  - !ruby/object:Gem::Dependency
49
61
  name: railties
50
62
  requirement: !ruby/object:Gem::Requirement
51
63
  requirements:
52
- - - "<"
53
- - !ruby/object:Gem::Version
54
- version: 5.3.0
55
64
  - - ">="
56
65
  - !ruby/object:Gem::Version
57
66
  version: 4.2.7
67
+ - - "<"
68
+ - !ruby/object:Gem::Version
69
+ version: 7.1.0
70
+ - - "!="
71
+ - !ruby/object:Gem::Version
72
+ version: 5.2.3
73
+ - - "!="
74
+ - !ruby/object:Gem::Version
75
+ version: 5.2.3.rc1
58
76
  type: :runtime
59
77
  prerelease: false
60
78
  version_requirements: !ruby/object:Gem::Requirement
61
79
  requirements:
62
- - - "<"
63
- - !ruby/object:Gem::Version
64
- version: 5.3.0
65
80
  - - ">="
66
81
  - !ruby/object:Gem::Version
67
82
  version: 4.2.7
68
- description:
83
+ - - "<"
84
+ - !ruby/object:Gem::Version
85
+ version: 7.1.0
86
+ - - "!="
87
+ - !ruby/object:Gem::Version
88
+ version: 5.2.3
89
+ - - "!="
90
+ - !ruby/object:Gem::Version
91
+ version: 5.2.3.rc1
92
+ description:
69
93
  email: thuss@gabrito.com
70
94
  executables: []
71
95
  extensions: []
@@ -107,7 +131,7 @@ homepage: http://github.com/thuss/standalone-migrations
107
131
  licenses:
108
132
  - MIT
109
133
  metadata: {}
110
- post_install_message:
134
+ post_install_message:
111
135
  rdoc_options: []
112
136
  require_paths:
113
137
  - lib
@@ -122,9 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
146
  - !ruby/object:Gem::Version
123
147
  version: '0'
124
148
  requirements: []
125
- rubyforge_project:
126
- rubygems_version: 2.4.8
127
- signing_key:
149
+ rubygems_version: 3.1.4
150
+ signing_key:
128
151
  specification_version: 4
129
152
  summary: A thin wrapper to use Rails Migrations in non Rails projects
130
153
  test_files: []