schema_dev 3.12.0 → 3.12.1
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 +4 -4
- data/README.md +2 -1
- data/lib/schema_dev/travis.rb +1 -1
- data/lib/schema_dev/version.rb +1 -1
- data/spec/travis_spec.rb +28 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362bd5d5931c122827ecda97c7355d4df0d61e63b77f8f86acdb55d964b4f674
|
4
|
+
data.tar.gz: 24c7a1ebedfe28d0095a4884a0e183613319b3d56cda0940326d4fb82584bfcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcaee40f224178a31816f74e5d35f8fee96b968026b8ad84c6131301cbd36c08bac6378143e52ba3371d77d9a81ded844ee0660c1df63193bce90c7fe539b5d0
|
7
|
+
data.tar.gz: 134ad4046ed2aebb0fac48094a5fa2a40808c8ddb7d77cd961ee89a89334b6fbc6aacf988a7b919a63bf8bc92aa9ed5b86c6e9fa7892453fa1ca56850db9af41
|
data/README.md
CHANGED
@@ -137,7 +137,8 @@ Which defines the rake task `create_databases` and also a task for travis-ci
|
|
137
137
|
|
138
138
|
Release notes for schema_dev versions:
|
139
139
|
|
140
|
-
* **3.12.
|
140
|
+
* **3.12.1** - fix simple case when only one postgresql version
|
141
|
+
* **3.12.0** - support testing against multiple postgresql versions
|
141
142
|
* **3.11.2** - require tmpdir for access to mktmpdir
|
142
143
|
* **3.11.1** - Lock pg version for older AR versions
|
143
144
|
* **3.11.0** - Add support for AR 5.2
|
data/lib/schema_dev/travis.rb
CHANGED
@@ -49,7 +49,7 @@ module SchemaDev
|
|
49
49
|
# only PG and only 1 DB do it globally
|
50
50
|
template = template_for_db(:postgresql, versions.first)
|
51
51
|
env << template['env']
|
52
|
-
addons.merge(template['addons'])
|
52
|
+
addons.merge!(template['addons'])
|
53
53
|
else
|
54
54
|
# we only have one DB so we can greatly simplify our include matrix
|
55
55
|
include.concat versions.map {|version|
|
data/lib/schema_dev/version.rb
CHANGED
data/spec/travis_spec.rb
CHANGED
@@ -50,6 +50,34 @@ ENDTRAVIS
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
context 'when only using postgresql and not overriding the version' do
|
54
|
+
it "creates travis file using the default PG version" do
|
55
|
+
config = get_config(ruby: %W[2.4.0],
|
56
|
+
activerecord: %W[4.1],
|
57
|
+
db: %W[postgresql])
|
58
|
+
in_tmpdir do
|
59
|
+
SchemaDev::Travis.update(config)
|
60
|
+
expect(Pathname.new(".travis.yml").read).to eq <<ENDTRAVIS
|
61
|
+
# This file was auto-generated by the schema_dev tool, based on the data in
|
62
|
+
# ./schema_dev.yml
|
63
|
+
# Please do not edit this file; any changes will be overwritten next time
|
64
|
+
# schema_dev gets run.
|
65
|
+
---
|
66
|
+
rvm:
|
67
|
+
- 2.4.0
|
68
|
+
gemfile:
|
69
|
+
- gemfiles/activerecord-4.1/Gemfile.postgresql
|
70
|
+
env: POSTGRESQL_DB_USER=postgres
|
71
|
+
addons:
|
72
|
+
postgresql: '9.4'
|
73
|
+
before_script: bundle exec rake create_databases
|
74
|
+
after_script: bundle exec rake drop_databases
|
75
|
+
script: bundle exec rake travis
|
76
|
+
ENDTRAVIS
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
53
81
|
context 'when specifying a single postgresql version' do
|
54
82
|
it "creates travis file using that as the PG version" do
|
55
83
|
config = get_config(ruby: %W[2.4.0],
|