Skip to content

Commit

Permalink
Fix sqlite problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakatz committed Apr 2, 2019
1 parent 126e409 commit 332a8ec
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .rbenv-gemsets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data-migrate
-global
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.1
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
language: ruby
rvm:
- 2.2.9
- 2.3.7
- 2.4.4
- 2.5.1
- 2.5.5
- 2.6.2
script: bundle exec rspec
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
matrix:
exclude:
- rvm: 2.5.5
gemfile: gemfiles/rails_4.2.gemfile
7 changes: 4 additions & 3 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ appraise 'rails-4.2' do
gem 'rails', '4.2.8'
# Nokogiri 1.7+ requires Ruby 2.1+
gem 'nokogiri', '1.6.8.1'
gem "bundler" , "< 2.0"
end

appraise 'rails-5.0' do
gem 'rails', '5.0.3'
gem 'rails', '5.0.7.2'
end

appraise 'rails-5.1' do
gem 'rails', '5.1'
gem 'rails', '5.1.7'
end

appraise 'rails-5.2' do
gem 'rails', '~> 5.2.0'
gem 'rails', '~> 5.2.3'
end
19 changes: 15 additions & 4 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
Changelog
=========
# Changelog

## 5.3.3

Ruby 2.2 and 2.3 are no longer actively validated with tests since they are both EOL

## 5.3.2

Fix capistrano migration tasks to only skip migrations if there are no changes in the db/data and db/migrate folders

## 5.3.1

Change database task to use data_migrations_path_configuration

## 5.3.0
Add support to configure data migration path

Add support to configure data migration path

## 5.1.0

Fixes to `db:schema:load:with_data` + `db:structure:load:with_data` definition, thanks to [craineum](https://github.com/craineum)

## 5.0.0
Expand All @@ -37,11 +44,15 @@ Deprecated support for rails 4.0
Improvements to timestamped migrations, thanks to [Pierre-Michard](https://github.com/Pierre-Michard)

## 3.4.0

`rake data:migrate:status` to return result in chronological order

## 3.3.1

Regression fix, thanks to [subakva](https://github.com/subakva)

## 3.3.0

The concept of schema:dump to data migrations, thanks to
[tobyndockerill](https://github.com/tobyndockerill)

Expand All @@ -50,8 +61,8 @@ The concept of schema:dump to data migrations, thanks to
data_migrate table into rails schema dump, thanks to
[jturkel](https://github.com/jturkel)


## 3.2.0

- Add support for Rails 5.1
- No longer testing EOL rubies

Expand Down
6 changes: 6 additions & 0 deletions Gemfile.rails4.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source "http://rubygems.org"

# Specify your gem's dependencies in data_migrate.gemspec
gemspec
gem 'rails', '~> 4.2.8'
gem 'bundler', '< 2.0, >= 1.3.0'
2 changes: 1 addition & 1 deletion Gemfile.rails5.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source "http://rubygems.org"

# Specify your gem's dependencies in data_migrate.gemspec
gemspec
gem 'rails', '~> 5.1'
gem 'rails', '~> 5.1.7'
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Data Migrate
====
# Data Migrate

- [![Version](http://img.shields.io/gem/v/data_migrate.svg?style=flat-square)](https://rubygems.org/gems/data_migrate)
- [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://opensource.org/licenses/MIT)
- [![Travis](https://img.shields.io/travis/ilyakatz/data-migrate.svg)](https://travis-ci.org/ilyakatz/data-migrate)
- [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)


Run data migrations alongside schema migrations.

Data migrations are stored in `db/data`. They act like schema
Expand Down
2 changes: 1 addition & 1 deletion data_migrate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec-core"
s.add_development_dependency "pry"
s.add_development_dependency "rb-readline"
s.add_development_dependency "sqlite3"
s.add_development_dependency "sqlite3", "~> 1.3.6"
s.add_development_dependency "timecop"
s.add_development_dependency "rubocop"
s.add_development_dependency "overcommit"
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails_4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

source "http://rubygems.org"

gem "rails", "4.2.8"
gem "rails", "4.2.11.1"
gem "nokogiri", "1.6.8.1"
gem "bundler" , "< 2.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "http://rubygems.org"

gem "rails", "5.0.3"
gem "rails", "5.0.7.2"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "http://rubygems.org"

gem "rails", "5.1"
gem "rails", "5.1.7"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "http://rubygems.org"

gem "rails", "~> 5.2.0"
gem "rails", "~> 5.2.3"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/data_migrate/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DataMigrate
VERSION = "5.3.2".freeze
VERSION = "5.3.3".freeze
end
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'rspec'
require 'rails'
require 'sqlite3'
require 'data_migrate'
require 'pry'
require 'timecop'
Expand Down

0 comments on commit 332a8ec

Please sign in to comment.