capture_migration_sql 1.0.2 → 1.0.4

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
  SHA256:
3
- metadata.gz: 4a1c92ddee1069bb761186f04335d088564c5ef115e799816bef7fc7ce22c776
4
- data.tar.gz: 660d8c431eb05706e813bef7c5cf7668add50cbca68bffa27062ebc64905e283
3
+ metadata.gz: '09a2f079879c03ed186a9ee307884faf19826e2f67b9424cd4848322588a3be0'
4
+ data.tar.gz: cdc45945a17614ff25f89332fd1fba71872549e190cac1f7d61cd2fedff77a84
5
5
  SHA512:
6
- metadata.gz: b2aa8f556646fafe6f85c8241360d11d98f7d4e501fa255c418aad9d37682f4aa941ad9e0347432e41b07469e473bc4ec2440d3e3d2d76caa19609391ac3ab66
7
- data.tar.gz: 8028a91312cb708dbe2ee48a02394ac56636ed40dfdcb9f8db1a4d836393d6dda681264734c5738be5d42e95dbb2aa5aeb458ba55704a96c35a58dbe56b8ca73
6
+ metadata.gz: 8dd9031cfb5a8e72f94892b6626f3ea8918d75729d4997178b32dbeb53813d6969056bb0634b5f6989bf98a78579952e832819a01ef85655259182f726f97313
7
+ data.tar.gz: 02a0bff93314e8a73dd6f8408a8c8e8f81ec93f5498aae72fdd3ddcb5306bd863c4d05d9da3e68c9af035156d29bf2f8edd4b8cf060b09cd1b3335011be73b5c
data/CHANGELOG.md CHANGED
@@ -1,11 +1,35 @@
1
- # 1.0.2
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
2
3
 
3
- * Fix data type for insterting into schema_migrations
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
6
 
5
- # 1.0.1
7
+ ## 1.0.4
6
8
 
7
- * Fix SQL for insterting into schema_migrations
9
+ ### Fixed
8
10
 
9
- # 1.0.0
11
+ - SQL files are now removed when they were created from a failed migration.
10
12
 
11
- * Initial release
13
+ ## 1.0.3
14
+
15
+ ### Changed
16
+
17
+ - SQL files will not be changed if they already exist.
18
+
19
+ ## 1.0.2
20
+
21
+ ### Changed
22
+
23
+ - Fix data type for insterting into schema_migrations
24
+
25
+ ## 1.0.1
26
+
27
+ ### Changed
28
+
29
+ - Fix SQL for insterting into schema_migrations
30
+
31
+ ## 1.0.0
32
+
33
+ ### Added
34
+
35
+ - Initial release
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # CaptureMigrationSql
1
+ # Capture Migration SQL
2
2
 
3
- [![Build Status](https://travis-ci.com/bdurand/capture_migration_sql.svg?branch=master)](https://travis-ci.com/bdurand/capture_migration_sql)
4
- [![Maintainability](https://api.codeclimate.com/v1/badges/17bbf5cb6eda022028fe/maintainability)](https://codeclimate.com/github/bdurand/capture_migration_sql/maintainability)
3
+ [![Continuous Integration](https://github.com/bdurand/capture_migration_sql/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/bdurand/capture_migration_sql/actions/workflows/continuous_integration.yml)
4
+ [![Regression Test](https://github.com/bdurand/capture_migration_sql/actions/workflows/regression_test.yml/badge.svg)](https://github.com/bdurand/capture_migration_sql/actions/workflows/regression_test.yml)
5
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)
6
+ [![Gem Version](https://badge.fury.io/rb/capture_migration_sql.svg)](https://badge.fury.io/rb/capture_migration_sql)
5
7
 
6
8
  This gem adds the ability to capture and persist the SQL statements executed by migrations. There are a couple of reasons why you may want to do this.
7
9
 
@@ -9,22 +11,6 @@ This gem adds the ability to capture and persist the SQL statements executed by
9
11
 
10
12
  2. Not everyone gets to run database migrations in production. If you have a DBA who needs to approve and run all changes for security and performance reasons, you'll probably need to give them the individual SQL changes. This gem logs all those changes for you in a consistent place so you don't have to hunt for them in your development logs or reverse engineer them from the Ruby code.
11
13
 
12
- ## Installation
13
-
14
- Add this line to your application's Gemfile:
15
-
16
- ```ruby
17
- gem 'capture_migration_sql'
18
- ```
19
-
20
- And then execute:
21
-
22
- $ bundle
23
-
24
- Or install it yourself as:
25
-
26
- $ gem install capture_migration_sql
27
-
28
14
  ## Usage
29
15
 
30
16
  Add this to a file in `config/initializers` in your Rails application:
@@ -61,6 +47,8 @@ end
61
47
 
62
48
  You should disable SQL logging in migration logic that generate queries to clean up or move data that may result in different results per environment. For instance a block of code that selects rows from an existing table and munges the data for an update would result in different queries for each developer that ran the migration if they had different data in their local database.
63
49
 
50
+ Also note that SQL files will only be generated if they do not exist. This is to prevent updates to files after they have been generated by developers bootstrapping their system. SQL files are deleted when you migrate down so that they can be regenerated when migrating up.
51
+
64
52
  Finally, if you application uses multiple databases, you can specify which database connection to use for schema statements within a block. You can also specify an optional label that will be added as a comment in the SQL file.
65
53
 
66
54
  ```ruby
@@ -73,10 +61,30 @@ end
73
61
 
74
62
  You can either pass in a database connection object or a class that extends from `ActiveRecord::Base`
75
63
 
64
+ ## Installation
65
+
66
+ Add this line to your application's Gemfile:
67
+
68
+ ```ruby
69
+ gem "capture_migration_sql"
70
+ ```
71
+
72
+ And then execute:
73
+ ```bash
74
+ $ bundle
75
+ ```
76
+
77
+ Or install it yourself as:
78
+ ```bash
79
+ $ gem install capture_migration_sql
80
+ ```
81
+
76
82
  ## Contributing
77
83
 
78
84
  Bug reports and pull requests are welcome on GitHub at https://github.com/bdurand/capture_migration_sql.
79
85
 
86
+ Please use the [standardrb](https://github.com/testdouble/standard) syntax and lint your code with `standardrb --fix` before submitting.
87
+
80
88
  ## License
81
89
 
82
90
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.4
@@ -1,33 +1,35 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path("../lib", __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require "capture_migration_sql/version"
6
-
7
3
  Gem::Specification.new do |spec|
8
- spec.name = "capture_migration_sql"
9
- spec.version = CaptureMigrationSql::VERSION
10
- spec.authors = ["Brian Durand"]
11
- spec.email = ["bbdurand@gmail.com"]
4
+ spec.name = "capture_migration_sql"
5
+ spec.version = File.read(File.expand_path("VERSION", __dir__)).strip
6
+ spec.authors = ["Brian Durand"]
7
+ spec.email = ["bbdurand@gmail.com"]
12
8
 
13
- spec.summary = %q{Capture the SQL that is executed when running ActiveRecord migrations so that it can be run in in other environments that don't support migrations.}
14
- spec.homepage = "https://github.com/bdurand/capture_migration_sql"
15
- spec.license = "MIT"
9
+ spec.summary = "Capture the SQL that is executed when running ActiveRecord migrations so that it can be run in in other environments that don't support migrations."
10
+ spec.homepage = "https://github.com/bdurand/capture_migration_sql"
11
+ spec.license = "MIT"
16
12
 
17
13
  # Specify which files should be added to the gem when it is released.
18
14
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
+ ignore_files = %w[
16
+ .
17
+ Appraisals
18
+ Gemfile
19
+ Gemfile.lock
20
+ Rakefile
21
+ gemfiles/
22
+ spec/
23
+ ]
24
+ spec.files = Dir.chdir(__dir__) do
25
+ `git ls-files -z`.split("\x0").reject { |f| ignore_files.any? { |path| f.start_with?(path) } }
21
26
  end
22
- spec.bindir = "exe"
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+
24
28
  spec.require_paths = ["lib"]
25
29
 
26
- spec.add_development_dependency "bundler", "~> 1.16"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "rspec", "~> 3.0"
29
- spec.add_development_dependency "activerecord", ">= 4.2"
30
- spec.add_development_dependency "database_cleaner"
31
- spec.add_development_dependency "sqlite3"
32
- spec.add_development_dependency "appraisal"
30
+ spec.add_dependency "activerecord", ">= 4.2"
31
+
32
+ spec.add_development_dependency "bundler"
33
+
34
+ spec.required_ruby_version = ">= 2.5"
33
35
  end
@@ -70,23 +70,38 @@ module CaptureMigrationSql
70
70
  migration_sql_dir = CaptureMigrationSql.directory
71
71
  output_file = File.join(migration_sql_dir, "#{version}_#{name.underscore}.sql") if version && name
72
72
  if output_file && direction == :up && version.to_i >= CaptureMigrationSql.starting_with_version
73
- Dir.mkdir(migration_sql_dir) unless File.exist?(migration_sql_dir)
74
- SqlSubscriber.attach_if_necessary
75
- File.open(output_file, "w") do |f|
76
- f.write("--\n-- #{name} : #{version}\n--\n\n")
77
- save_stream = Thread.current[:capture_migration_sql_stream]
78
- begin
79
- Thread.current[:capture_migration_sql_stream] = f
80
- sql_logging(enabled: true, &block)
73
+ if File.exist?(output_file)
74
+ yield
75
+ else
76
+ Dir.mkdir(migration_sql_dir) unless File.exist?(migration_sql_dir)
77
+ SqlSubscriber.attach_if_necessary
78
+ retval = nil
79
+ success = false
80
+ File.open(output_file, "w") do |f|
81
+ retval = capture_migration_sql(f, &block)
82
+ success = true
81
83
  ensure
82
- Thread.current[:capture_migration_sql_stream] = save_stream
84
+ File.unlink(output_file) unless success
83
85
  end
84
- f.write("INSERT INTO schema_migrations (version) VALUES ('#{version.to_i}');\n")
86
+ retval
85
87
  end
86
88
  else
87
89
  File.unlink(output_file) if output_file && File.exist?(output_file)
88
90
  yield
89
91
  end
90
92
  end
93
+
94
+ def capture_migration_sql(f, &block)
95
+ f.write("--\n-- #{name} : #{version}\n--\n\n")
96
+ save_stream = Thread.current[:capture_migration_sql_stream]
97
+ begin
98
+ Thread.current[:capture_migration_sql_stream] = f
99
+ retval = sql_logging(enabled: true, &block)
100
+ ensure
101
+ Thread.current[:capture_migration_sql_stream] = save_stream
102
+ end
103
+ f.write("INSERT INTO schema_migrations (version) VALUES ('#{version.to_i}');\n")
104
+ retval
105
+ end
91
106
  end
92
107
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/subscriber'
3
+ require "active_support/subscriber"
4
4
 
5
5
  # Subscriber that is attached to ActiveRecord and will handle writing
6
6
  # migration SQL to the output stream.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CaptureMigrationSql
4
- VERSION = "1.0.2"
4
+ VERSION = File.read(File.join(__dir__, "..", "..", "VERSION"))
5
5
  end
@@ -3,7 +3,6 @@ require_relative "capture_migration_sql/sql_subscriber"
3
3
  require_relative "capture_migration_sql/version"
4
4
 
5
5
  module CaptureMigrationSql
6
-
7
6
  class << self
8
7
  # Call this method in an initializer to invoke dumping the SQL executed
9
8
  # during migrations in to a file.
metadata CHANGED
@@ -1,57 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capture_migration_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.16'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.16'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
55
13
  - !ruby/object:Gem::Dependency
56
14
  name: activerecord
57
15
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +17,7 @@ dependencies:
59
17
  - - ">="
60
18
  - !ruby/object:Gem::Version
61
19
  version: '4.2'
62
- type: :development
20
+ type: :runtime
63
21
  prerelease: false
64
22
  version_requirements: !ruby/object:Gem::Requirement
65
23
  requirements:
@@ -67,35 +25,7 @@ dependencies:
67
25
  - !ruby/object:Gem::Version
68
26
  version: '4.2'
69
27
  - !ruby/object:Gem::Dependency
70
- name: database_cleaner
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: sqlite3
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: appraisal
28
+ name: bundler
99
29
  requirement: !ruby/object:Gem::Requirement
100
30
  requirements:
101
31
  - - ">="
@@ -108,32 +38,18 @@ dependencies:
108
38
  - - ">="
109
39
  - !ruby/object:Gem::Version
110
40
  version: '0'
111
- description:
41
+ description:
112
42
  email:
113
43
  - bbdurand@gmail.com
114
44
  executables: []
115
45
  extensions: []
116
46
  extra_rdoc_files: []
117
47
  files:
118
- - ".gitignore"
119
- - ".travis.yml"
120
- - Appraisals
121
48
  - CHANGELOG.md
122
- - Gemfile
123
- - Gemfile.lock
124
49
  - MIT_LICENSE.txt
125
50
  - README.md
126
- - Rakefile
51
+ - VERSION
127
52
  - capture_migration_sql.gemspec
128
- - gemfiles/.bundle/config
129
- - gemfiles/activerecord_4.2.gemfile
130
- - gemfiles/activerecord_4.2.gemfile.lock
131
- - gemfiles/activerecord_5.0.gemfile
132
- - gemfiles/activerecord_5.0.gemfile.lock
133
- - gemfiles/activerecord_5.1.gemfile
134
- - gemfiles/activerecord_5.1.gemfile.lock
135
- - gemfiles/activerecord_5.2.gemfile
136
- - gemfiles/activerecord_5.2.gemfile.lock
137
53
  - lib/capture_migration_sql.rb
138
54
  - lib/capture_migration_sql/migration_extension.rb
139
55
  - lib/capture_migration_sql/sql_subscriber.rb
@@ -142,7 +58,7 @@ homepage: https://github.com/bdurand/capture_migration_sql
142
58
  licenses:
143
59
  - MIT
144
60
  metadata: {}
145
- post_install_message:
61
+ post_install_message:
146
62
  rdoc_options: []
147
63
  require_paths:
148
64
  - lib
@@ -150,16 +66,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
66
  requirements:
151
67
  - - ">="
152
68
  - !ruby/object:Gem::Version
153
- version: '0'
69
+ version: '2.5'
154
70
  required_rubygems_version: !ruby/object:Gem::Requirement
155
71
  requirements:
156
72
  - - ">="
157
73
  - !ruby/object:Gem::Version
158
74
  version: '0'
159
75
  requirements: []
160
- rubyforge_project:
161
- rubygems_version: 2.7.6
162
- signing_key:
76
+ rubygems_version: 3.4.12
77
+ signing_key:
163
78
  specification_version: 4
164
79
  summary: Capture the SQL that is executed when running ActiveRecord migrations so
165
80
  that it can be run in in other environments that don't support migrations.
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- .DS_Store
11
-
12
- # rspec failure tracking
13
- .rspec_status
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5
4
- - 2.3
5
-
6
- cache: bundler
7
-
8
- branches:
9
- # Only build master and release version tags
10
- only:
11
- - master
12
- - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
13
-
14
- gemfile:
15
- - Gemfile
16
- - gemfiles/activerecord_5.2.gemfile
17
- - gemfiles/activerecord_5.1.gemfile
18
- - gemfiles/activerecord_5.0.gemfile
19
- - gemfiles/activerecord_4.2.gemfile
20
-
21
- script:
22
- - bundle exec rake spec
data/Appraisals DELETED
@@ -1,7 +0,0 @@
1
- RAILS_MINOR_RELEASES = ["5.2", "5.1", "5.0", "4.2"].freeze
2
-
3
- RAILS_MINOR_RELEASES.each do |version|
4
- appraise "activerecord-#{version}" do
5
- gem "activerecord", "~> #{version}.0"
6
- end
7
- end
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in capture_migration_sql.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- capture_migration_sql (1.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (5.2.1)
10
- activesupport (= 5.2.1)
11
- activerecord (5.2.1)
12
- activemodel (= 5.2.1)
13
- activesupport (= 5.2.1)
14
- arel (>= 9.0)
15
- activesupport (5.2.1)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- appraisal (2.2.0)
21
- bundler
22
- rake
23
- thor (>= 0.14.0)
24
- arel (9.0.0)
25
- concurrent-ruby (1.0.5)
26
- database_cleaner (1.7.0)
27
- diff-lcs (1.3)
28
- i18n (1.1.1)
29
- concurrent-ruby (~> 1.0)
30
- minitest (5.11.3)
31
- rake (10.5.0)
32
- rspec (3.8.0)
33
- rspec-core (~> 3.8.0)
34
- rspec-expectations (~> 3.8.0)
35
- rspec-mocks (~> 3.8.0)
36
- rspec-core (3.8.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.2)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-mocks (3.8.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-support (3.8.0)
45
- sqlite3 (1.3.13)
46
- thor (0.20.0)
47
- thread_safe (0.3.6)
48
- tzinfo (1.2.5)
49
- thread_safe (~> 0.1)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- activerecord (>= 4.2)
56
- appraisal
57
- bundler (~> 1.16)
58
- capture_migration_sql!
59
- database_cleaner
60
- rake (~> 10.0)
61
- rspec (~> 3.0)
62
- sqlite3
63
-
64
- BUNDLED WITH
65
- 1.16.5
data/Rakefile DELETED
@@ -1,18 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :appraisals
7
-
8
- desc "run the specs using appraisal"
9
- task :appraisals do
10
- exec "bundle exec appraisal rake spec"
11
- end
12
-
13
- namespace :appraisals do
14
- desc "install all the appraisal gemspecs"
15
- task :install do
16
- exec "bundle exec appraisal install"
17
- end
18
- end
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_RETRY: "1"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 4.2.0"
6
-
7
- gemspec path: "../"
@@ -1,67 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- capture_migration_sql (1.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (4.2.10)
10
- activesupport (= 4.2.10)
11
- builder (~> 3.1)
12
- activerecord (4.2.10)
13
- activemodel (= 4.2.10)
14
- activesupport (= 4.2.10)
15
- arel (~> 6.0)
16
- activesupport (4.2.10)
17
- i18n (~> 0.7)
18
- minitest (~> 5.1)
19
- thread_safe (~> 0.3, >= 0.3.4)
20
- tzinfo (~> 1.1)
21
- appraisal (2.2.0)
22
- bundler
23
- rake
24
- thor (>= 0.14.0)
25
- arel (6.0.4)
26
- builder (3.2.3)
27
- concurrent-ruby (1.0.5)
28
- database_cleaner (1.7.0)
29
- diff-lcs (1.3)
30
- i18n (0.9.5)
31
- concurrent-ruby (~> 1.0)
32
- minitest (5.11.3)
33
- rake (10.5.0)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.1)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.0)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-support (3.8.0)
47
- sqlite3 (1.3.13)
48
- thor (0.20.0)
49
- thread_safe (0.3.6)
50
- tzinfo (1.2.5)
51
- thread_safe (~> 0.1)
52
-
53
- PLATFORMS
54
- ruby
55
-
56
- DEPENDENCIES
57
- activerecord (~> 4.2.0)
58
- appraisal
59
- bundler (~> 1.16)
60
- capture_migration_sql!
61
- database_cleaner
62
- rake (~> 10.0)
63
- rspec (~> 3.0)
64
- sqlite3
65
-
66
- BUNDLED WITH
67
- 1.16.5
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.0.0"
6
-
7
- gemspec path: "../"
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- capture_migration_sql (1.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (5.0.7)
10
- activesupport (= 5.0.7)
11
- activerecord (5.0.7)
12
- activemodel (= 5.0.7)
13
- activesupport (= 5.0.7)
14
- arel (~> 7.0)
15
- activesupport (5.0.7)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- appraisal (2.2.0)
21
- bundler
22
- rake
23
- thor (>= 0.14.0)
24
- arel (7.1.4)
25
- concurrent-ruby (1.0.5)
26
- database_cleaner (1.7.0)
27
- diff-lcs (1.3)
28
- i18n (1.1.0)
29
- concurrent-ruby (~> 1.0)
30
- minitest (5.11.3)
31
- rake (10.5.0)
32
- rspec (3.8.0)
33
- rspec-core (~> 3.8.0)
34
- rspec-expectations (~> 3.8.0)
35
- rspec-mocks (~> 3.8.0)
36
- rspec-core (3.8.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.1)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-mocks (3.8.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-support (3.8.0)
45
- sqlite3 (1.3.13)
46
- thor (0.20.0)
47
- thread_safe (0.3.6)
48
- tzinfo (1.2.5)
49
- thread_safe (~> 0.1)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- activerecord (~> 5.0.0)
56
- appraisal
57
- bundler (~> 1.16)
58
- capture_migration_sql!
59
- database_cleaner
60
- rake (~> 10.0)
61
- rspec (~> 3.0)
62
- sqlite3
63
-
64
- BUNDLED WITH
65
- 1.16.5
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.1.0"
6
-
7
- gemspec path: "../"
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- capture_migration_sql (1.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (5.1.6)
10
- activesupport (= 5.1.6)
11
- activerecord (5.1.6)
12
- activemodel (= 5.1.6)
13
- activesupport (= 5.1.6)
14
- arel (~> 8.0)
15
- activesupport (5.1.6)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- appraisal (2.2.0)
21
- bundler
22
- rake
23
- thor (>= 0.14.0)
24
- arel (8.0.0)
25
- concurrent-ruby (1.0.5)
26
- database_cleaner (1.7.0)
27
- diff-lcs (1.3)
28
- i18n (1.1.0)
29
- concurrent-ruby (~> 1.0)
30
- minitest (5.11.3)
31
- rake (10.5.0)
32
- rspec (3.8.0)
33
- rspec-core (~> 3.8.0)
34
- rspec-expectations (~> 3.8.0)
35
- rspec-mocks (~> 3.8.0)
36
- rspec-core (3.8.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.1)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-mocks (3.8.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-support (3.8.0)
45
- sqlite3 (1.3.13)
46
- thor (0.20.0)
47
- thread_safe (0.3.6)
48
- tzinfo (1.2.5)
49
- thread_safe (~> 0.1)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- activerecord (~> 5.1.0)
56
- appraisal
57
- bundler (~> 1.16)
58
- capture_migration_sql!
59
- database_cleaner
60
- rake (~> 10.0)
61
- rspec (~> 3.0)
62
- sqlite3
63
-
64
- BUNDLED WITH
65
- 1.16.5
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.2.0"
6
-
7
- gemspec path: "../"
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- capture_migration_sql (1.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (5.2.1)
10
- activesupport (= 5.2.1)
11
- activerecord (5.2.1)
12
- activemodel (= 5.2.1)
13
- activesupport (= 5.2.1)
14
- arel (>= 9.0)
15
- activesupport (5.2.1)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- appraisal (2.2.0)
21
- bundler
22
- rake
23
- thor (>= 0.14.0)
24
- arel (9.0.0)
25
- concurrent-ruby (1.0.5)
26
- database_cleaner (1.7.0)
27
- diff-lcs (1.3)
28
- i18n (1.1.0)
29
- concurrent-ruby (~> 1.0)
30
- minitest (5.11.3)
31
- rake (10.5.0)
32
- rspec (3.8.0)
33
- rspec-core (~> 3.8.0)
34
- rspec-expectations (~> 3.8.0)
35
- rspec-mocks (~> 3.8.0)
36
- rspec-core (3.8.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.1)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-mocks (3.8.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-support (3.8.0)
45
- sqlite3 (1.3.13)
46
- thor (0.20.0)
47
- thread_safe (0.3.6)
48
- tzinfo (1.2.5)
49
- thread_safe (~> 0.1)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- activerecord (~> 5.2.0)
56
- appraisal
57
- bundler (~> 1.16)
58
- capture_migration_sql!
59
- database_cleaner
60
- rake (~> 10.0)
61
- rspec (~> 3.0)
62
- sqlite3
63
-
64
- BUNDLED WITH
65
- 1.16.5