schema_dev 3.12.0 → 3.12.1

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: 46d7acb89a59d88b2f5c520b28a261f5fdb5f34efb8fccecc3df5d9882272dce
4
- data.tar.gz: ec2e26f410f1cd95e6f320fe99d3c95ea88cfdbbb8c90fc61957774cce1bc6be
3
+ metadata.gz: 362bd5d5931c122827ecda97c7355d4df0d61e63b77f8f86acdb55d964b4f674
4
+ data.tar.gz: 24c7a1ebedfe28d0095a4884a0e183613319b3d56cda0940326d4fb82584bfcc
5
5
  SHA512:
6
- metadata.gz: e2ad20c8bd112f6b2583625c10a126d3dd2b33b15bdb4b3d0be943c207cd8ff975b2db1145f0fc8e502bdc17c08c9ee22638931086eb6db1d1f386d58e9bafc9
7
- data.tar.gz: 6d418e6261c8d0fb4ab4f0bc42661bb38a6c4fb6a669cd4991bc354c24c11bc8e72f7180aad90e1a8ca60b800f1b835fa241157f33d8021cc3b6e452654afe85
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.0** - support testing against multiple posrgresql versions
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
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module SchemaDev
2
- VERSION = "3.12.0"
2
+ VERSION = "3.12.1"
3
3
  end
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],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.0
4
+ version: 3.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronen barzel