constant_table_saver 5.2.1 → 6.0.0

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: c134fa69e000c07e356e932c19eb25e6ffee51cccc52918f7002111420ae0308
4
- data.tar.gz: 7a0ad173328737c1e7389b1344ec7ba34078ff65d670c0f4916a3f349d46b8a9
3
+ metadata.gz: 6e78104699209fe095295ffd69d23cebca7de8c886dca5240813ee6c905e3bc2
4
+ data.tar.gz: 4e012a091a754f8808088396d02c5af246dcf2374bd2c0863b2022fd721e6554
5
5
  SHA512:
6
- metadata.gz: e53bac0b461c1903b0094cde22bb114d9bc1d13027f932b709cbffdcfa43fac4f9d6fc1804c6a1b8d94928916ef932d03a6ef2c489ed3ebcfc823412e4c2146e
7
- data.tar.gz: 2977ad0e79639917206c41c8553ce5aae826ef803c23d4ad17e9628dd1d6bbbd44e1c0fd23e7682dbdd171c231fa19b192b5493a4d71e73e34070a9849c833f5
6
+ metadata.gz: 5cc34704747611b3fe9b01397d1e2796c658bfb50e79b032e6544e57256111d7a71349f87a7537dcd877df607cfc8e3efcc9bc45d971ea06f4453af013ecd713
7
+ data.tar.gz: 166283c4290fd6c55e7fd884231b595b0616ac3606609de00fa09b3fa8c815210503172c3d81eda9b7f46643e33eb7a7606092f6d6183955069d3d47c20858cb
data/Dockerfile CHANGED
@@ -5,18 +5,21 @@
5
5
  # versions, or we won't be able to test out support for them.
6
6
  FROM ubuntu:16.04
7
7
 
8
- # this dockerfile builds kitchen sync on ubuntu and runs the test suite.
9
-
10
8
  RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
9
+ apt-get install -y software-properties-common && \
10
+ apt-add-repository ppa:brightbox/ruby-ng && \
11
+ DEBIAN_FRONTEND=noninteractive apt-get update && \
11
12
  DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
12
13
  DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git \
13
14
  mysql-server libmysqlclient-dev postgresql-9.5 libpq-dev libsqlite3-dev \
14
- ruby ruby-dev && \
15
+ ruby2.5 ruby2.5-dev && \
15
16
  rm -f /etc/apt/apt.conf.d/20auto-upgrades && \
16
17
  apt-get clean -y && \
17
18
  rm -rf /var/cache/apt/archives/*
18
19
 
19
- RUN gem install bundler --no-ri --no-rdoc
20
+ RUN ln -sf /usr/bin/ruby2.5 /usr/bin/ruby
21
+ RUN ln -sf /usr/bin/gem2.5 /usr/bin/gem
22
+ RUN gem install bundler -v 1.16.4 --no-ri --no-rdoc
20
23
 
21
24
  # install a version of mysql2 that the older versions of rails are compatible with
22
25
  RUN gem install mysql2 -v 0.4.10
data/Gemfile CHANGED
@@ -11,3 +11,10 @@ gemspec
11
11
  # your gem to rubygems.org.
12
12
 
13
13
  gem 'rails', ENV['RAILS_VERSION']
14
+
15
+ # see notes in the gemspec
16
+ if ENV['RAILS_VERSION'] =~ /^[45]/
17
+ gem "mysql2", "~> 0.4.10"
18
+ gem "pg", "~> 0.21.0"
19
+ gem "sqlite3", "~> 1.3.6"
20
+ end
@@ -32,8 +32,8 @@ EOF
32
32
 
33
33
  gem.add_dependency "activerecord"
34
34
  gem.add_development_dependency "rake"
35
- gem.add_development_dependency "mysql2" # you probably want 0.4.10 if testing with old versions of rails, but this gem doesn't care
36
- gem.add_development_dependency "pg" # you probably want 0.21.0 if testing with old versions of rails, but this gem doesn't care
37
- gem.add_development_dependency "sqlite3"
35
+ gem.add_development_dependency "mysql2" # you probably want 0.4.10 if testing with old versions of rails, but this gem doesn't care
36
+ gem.add_development_dependency "pg" # you probably want 0.21.0 if testing with old versions of rails, but this gem doesn't care
37
+ gem.add_development_dependency "sqlite3" # you probably want 1.3.6 if testing with old versions of rails, but this gem doesn't care
38
38
  gem.add_development_dependency "byebug"
39
39
  end
@@ -12,7 +12,7 @@ module ConstantTableSaver
12
12
 
13
13
  if ActiveRecord::VERSION::MAJOR == 4
14
14
  extend ActiveRecord4ClassMethods
15
- elsif ActiveRecord::VERSION::MINOR == 0 || ActiveRecord::VERSION::MINOR == 1
15
+ elsif ActiveRecord::VERSION::MAJOR == 5 && (ActiveRecord::VERSION::MINOR == 0 || ActiveRecord::VERSION::MINOR == 1)
16
16
  extend ActiveRecord5ClassMethods
17
17
  else
18
18
  extend ActiveRecord52ClassMethods
@@ -1,3 +1,3 @@
1
1
  module ConstantTableSaver
2
- VERSION = '5.2.1'
2
+ VERSION = '6.0.0'
3
3
  end
@@ -2,12 +2,12 @@
2
2
 
3
3
  require 'yaml'
4
4
 
5
- rails_versions = ["5.2.2rc1", "5.2.0".."5.2.1", "5.1.1".."5.1.6", "5.0.2".."5.0.6", "4.2.10"].flat_map {|spec| Array(spec).collect {|v| v.gsub /.0(\d)/, '.\\1'}}
5
+ rails_versions = ["6.0.0", "5.2.0".."5.2.3", "5.1.1".."5.1.6", "5.0.2".."5.0.6", "4.2.10"].flat_map {|spec| Array(spec).collect {|v| v.gsub /.0(\d)/, '.\\1'}}
6
6
  rails_envs = YAML.load(File.read("test/database.yml")).keys
7
7
 
8
8
  rails_versions.each do |version|
9
9
  puts "*"*40
10
- system "RAILS_VERSION=#{version} bundle update rails" or exit(1)
10
+ system "RAILS_VERSION=#{version} bundle update" or exit(1)
11
11
 
12
12
  rails_envs.each do |env|
13
13
  puts "Rails #{version}, #{env}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constant_table_saver
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-02 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord