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 +4 -4
- data/Dockerfile +7 -4
- data/Gemfile +7 -0
- data/constant_table_saver.gemspec +3 -3
- data/lib/constant_table_saver.rb +1 -1
- data/lib/constant_table_saver/version.rb +1 -1
- data/test_all.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e78104699209fe095295ffd69d23cebca7de8c886dca5240813ee6c905e3bc2
|
4
|
+
data.tar.gz: 4e012a091a754f8808088396d02c5af246dcf2374bd2c0863b2022fd721e6554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
@@ -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"
|
36
|
-
gem.add_development_dependency "pg"
|
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
|
data/lib/constant_table_saver.rb
CHANGED
@@ -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
|
data/test_all.rb
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
require 'yaml'
|
4
4
|
|
5
|
-
rails_versions = ["
|
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
|
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:
|
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:
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|