ridgepole 0.9.0.beta → 0.9.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +19 -1
  3. data/.simplecov +6 -0
  4. data/README.md +4 -26
  5. data/bin/ridgepole +0 -2
  6. data/lib/ridgepole/diff.rb +7 -11
  7. data/lib/ridgepole/dsl_parser/table_definition.rb +1 -1
  8. data/lib/ridgepole/version.rb +1 -1
  9. data/ridgepole.gemspec +2 -1
  10. data/spec/erb_helper.rb +1 -5
  11. data/spec/mysql/bigint_pk/int_pk_spec.rb +1 -1
  12. data/spec/mysql/collation/collation_spec.rb +14 -14
  13. data/spec/mysql/comment/comment_spec.rb +9 -9
  14. data/spec/mysql/diff/diff2_spec.rb +5 -5
  15. data/spec/mysql/diff/diff_spec.rb +3 -3
  16. data/spec/mysql/dump/dump_class_method_spec.rb +12 -12
  17. data/spec/mysql/dump/dump_some_tables_spec.rb +4 -4
  18. data/spec/mysql/dump/dump_spec.rb +12 -12
  19. data/spec/mysql/dump/dump_unknown_column_type_spec.rb +2 -2
  20. data/spec/mysql/dump/dump_without_table_options_spec.rb +1 -1
  21. data/spec/mysql/fk/migrate_change_fk2_spec.rb +2 -2
  22. data/spec/mysql/fk/migrate_change_fk_spec.rb +20 -20
  23. data/spec/mysql/fk/migrate_create_fk_spec.rb +18 -18
  24. data/spec/mysql/fk/migrate_drop_fk_spec.rb +26 -26
  25. data/spec/mysql/fk/migrate_fk_with_column_spec.rb +16 -16
  26. data/spec/mysql/fk/migrate_ignore_fk_spec.rb +6 -6
  27. data/spec/mysql/migrate/migrate_add_column_order_spec.rb +2 -2
  28. data/spec/mysql/migrate/migrate_add_column_spec.rb +18 -18
  29. data/spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb +21 -21
  30. data/spec/mysql/migrate/migrate_add_column_with_script_spec.rb +18 -18
  31. data/spec/mysql/migrate/migrate_change_column2_spec.rb +5 -5
  32. data/spec/mysql/migrate/migrate_change_column3_spec.rb +10 -10
  33. data/spec/mysql/migrate/migrate_change_column5_spec.rb +3 -3
  34. data/spec/mysql/migrate/migrate_change_column6_spec.rb +7 -7
  35. data/spec/mysql/migrate/migrate_change_column_default_spec.rb +2 -14
  36. data/spec/mysql/migrate/migrate_change_column_spec.rb +21 -21
  37. data/spec/mysql/migrate/migrate_change_index2_spec.rb +5 -5
  38. data/spec/mysql/migrate/migrate_change_index3_spec.rb +7 -7
  39. data/spec/mysql/migrate/migrate_change_index4_spec.rb +6 -6
  40. data/spec/mysql/migrate/migrate_change_index5_spec.rb +4 -4
  41. data/spec/mysql/migrate/migrate_change_index6_spec.rb +27 -27
  42. data/spec/mysql/migrate/migrate_change_index7_spec.rb +4 -4
  43. data/spec/mysql/migrate/migrate_change_index8_spec.rb +4 -4
  44. data/spec/mysql/migrate/migrate_change_index_spec.rb +27 -27
  45. data/spec/mysql/migrate/migrate_check_relation_column_type_spec.rb +1 -1
  46. data/spec/mysql/migrate/migrate_create_index2_spec.rb +24 -24
  47. data/spec/mysql/migrate/migrate_create_index_spec.rb +18 -18
  48. data/spec/mysql/migrate/migrate_create_table_spec.rb +16 -16
  49. data/spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb +4 -4
  50. data/spec/mysql/migrate/migrate_create_table_with_index_spec.rb +4 -4
  51. data/spec/mysql/migrate/migrate_create_table_with_script_spec.rb +16 -16
  52. data/spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb +18 -18
  53. data/spec/mysql/migrate/migrate_drop_column_and_index_spec.rb +16 -16
  54. data/spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb +1 -1
  55. data/spec/mysql/migrate/migrate_drop_column_spec.rb +18 -18
  56. data/spec/mysql/migrate/migrate_drop_index_spec.rb +15 -15
  57. data/spec/mysql/migrate/migrate_drop_table_spec.rb +16 -16
  58. data/spec/mysql/migrate/migrate_empty_spec.rb +9 -9
  59. data/spec/mysql/migrate/migrate_execute_spec.rb +32 -32
  60. data/spec/mysql/migrate/migrate_ignore_column_spec.rb +4 -4
  61. data/spec/mysql/migrate/migrate_ignore_index_spec.rb +5 -5
  62. data/spec/mysql/migrate/migrate_log_file_spec.rb +16 -16
  63. data/spec/mysql/migrate/migrate_merge_mode_spec.rb +18 -18
  64. data/spec/mysql/migrate/migrate_noop_spec.rb +12 -12
  65. data/spec/mysql/migrate/migrate_primary_key_spec.rb +1 -1
  66. data/spec/mysql/migrate/migrate_rename_column_spec.rb +18 -18
  67. data/spec/mysql/migrate/migrate_rename_table_spec.rb +22 -22
  68. data/spec/mysql/migrate/migrate_same_spec.rb +12 -12
  69. data/spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb +2 -2
  70. data/spec/mysql/migrate/migrate_skip_drop_table_spec.rb +18 -18
  71. data/spec/mysql/migrate/migrate_skip_rename_column_spec.rb +18 -18
  72. data/spec/mysql/migrate/migrate_skip_rename_table_spec.rb +18 -18
  73. data/spec/mysql/migrate/migrate_with_pre_post_query_spec.rb +18 -18
  74. data/spec/mysql/text_blob_types/text_blob_types_spec.rb +1 -1
  75. data/spec/mysql/~default_name_fk/migrate_change_fk_spec.rb +6 -6
  76. data/spec/mysql/~default_name_fk/migrate_create_fk_spec.rb +9 -9
  77. data/spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb +8 -8
  78. data/spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb +5 -5
  79. data/spec/mysql57/json/add_json_column_spec.rb +2 -2
  80. data/spec/mysql57/json/change_json_column_spec.rb +6 -6
  81. data/spec/mysql57/json/drop_json_column_spec.rb +2 -2
  82. data/spec/mysql57/virtual/add_virtual_column_spec.rb +1 -1
  83. data/spec/mysql57/virtual/change_virtual_column_spec.rb +1 -1
  84. data/spec/mysql57/virtual/drop_virtual_column_spec.rb +1 -1
  85. data/spec/postgresql/dump/dump_spec.rb +12 -12
  86. data/spec/postgresql/fk/migrate_change_fk_spec.rb +6 -6
  87. data/spec/postgresql/fk/migrate_create_fk_spec.rb +5 -5
  88. data/spec/postgresql/fk/migrate_drop_fk_spec.rb +8 -8
  89. data/spec/postgresql/migrate/migrate_add_column_spec.rb +16 -16
  90. data/spec/postgresql/migrate/migrate_add_expression_index_spec.rb +1 -1
  91. data/spec/postgresql/migrate/migrate_change_column_spec.rb +16 -16
  92. data/spec/postgresql/migrate/migrate_change_index_spec.rb +18 -18
  93. data/spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb +1 -1
  94. data/spec/postgresql/migrate/migrate_create_table_spec.rb +14 -14
  95. data/spec/postgresql/migrate/migrate_drop_column_spec.rb +18 -18
  96. data/spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb +17 -17
  97. data/spec/postgresql/migrate/migrate_drop_expression_index_spec.rb +3 -3
  98. data/spec/postgresql/migrate/migrate_drop_index_spec.rb +15 -15
  99. data/spec/postgresql/migrate/migrate_drop_table_spec.rb +16 -16
  100. data/spec/postgresql/migrate/migrate_primary_key2_spec.rb +1 -1
  101. data/spec/postgresql/migrate/migrate_primary_key_spec.rb +1 -1
  102. data/spec/postgresql/migrate/migrate_references_spec.rb +6 -6
  103. data/spec/postgresql/migrate/migrate_rename_column_spec.rb +18 -18
  104. data/spec/postgresql/migrate/migrate_rename_table_spec.rb +20 -20
  105. data/spec/postgresql/migrate/migrate_same_spec.rb +12 -12
  106. data/spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb +3 -3
  107. data/spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb +4 -4
  108. data/spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb +4 -4
  109. data/spec/processing_for_ci.rb +13 -0
  110. data/spec/spec_helper.rb +1 -1
  111. metadata +33 -31
  112. data/omnibus-ridgepole/.gitignore +0 -10
  113. data/omnibus-ridgepole/Dockerfile.centos +0 -25
  114. data/omnibus-ridgepole/Dockerfile.ubuntu +0 -21
  115. data/omnibus-ridgepole/Gemfile +0 -24
  116. data/omnibus-ridgepole/README.md +0 -15
  117. data/omnibus-ridgepole/Rakefile +0 -38
  118. data/omnibus-ridgepole/config/projects/ridgepole.rb +0 -27
  119. data/omnibus-ridgepole/config/software/ridgepole.rb +0 -13
  120. data/omnibus-ridgepole/omnibus.rb +0 -54
  121. data/omnibus-ridgepole/package-scripts/ridgepole/postinst +0 -1
  122. data/omnibus-ridgepole/package-scripts/ridgepole/postrm +0 -1
  123. data/spec/mysql/bigint_pk/bigint_pk_spec.rb +0 -47
  124. data/spec/processing_for_travis.rb +0 -11
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ if ENV['CI']
4
+ require 'simplecov'
5
+ require 'simplecov-lcov'
6
+
7
+ SimpleCov::Formatter::LcovFormatter.config do |c|
8
+ c.report_with_single_file = true
9
+ c.single_report_path = 'coverage/lcov.info'
10
+ end
11
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([SimpleCov::Formatter::LcovFormatter])
12
+ SimpleCov.start
13
+ end
@@ -7,7 +7,7 @@ require 'spec_condition'
7
7
  require 'cli_helper'
8
8
  require 'hide_pending_formatter'
9
9
 
10
- require 'processing_for_travis'
10
+ require 'processing_for_ci'
11
11
 
12
12
  require 'ridgepole'
13
13
  require 'ridgepole/cli/config'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.beta
4
+ version: 0.9.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-03 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- - !ruby/object:Gem::Dependency
76
- name: coveralls
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: erbh
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -254,6 +240,34 @@ dependencies:
254
240
  - - ">="
255
241
  - !ruby/object:Gem::Version
256
242
  version: 2.1.0
243
+ - !ruby/object:Gem::Dependency
244
+ name: simplecov
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ - !ruby/object:Gem::Dependency
258
+ name: simplecov-lcov
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
257
271
  description: Ridgepole is a tool to manage DB schema. It defines DB schema using Rails
258
272
  DSL, and updates DB schema according to DSL.
259
273
  email:
@@ -267,6 +281,7 @@ files:
267
281
  - ".gitignore"
268
282
  - ".rspec"
269
283
  - ".rubocop.yml"
284
+ - ".simplecov"
270
285
  - Appraisals
271
286
  - Gemfile
272
287
  - LICENSE.txt
@@ -300,17 +315,6 @@ files:
300
315
  - lib/ridgepole/schema_dumper_ext.rb
301
316
  - lib/ridgepole/schema_statements_ext.rb
302
317
  - lib/ridgepole/version.rb
303
- - omnibus-ridgepole/.gitignore
304
- - omnibus-ridgepole/Dockerfile.centos
305
- - omnibus-ridgepole/Dockerfile.ubuntu
306
- - omnibus-ridgepole/Gemfile
307
- - omnibus-ridgepole/README.md
308
- - omnibus-ridgepole/Rakefile
309
- - omnibus-ridgepole/config/projects/ridgepole.rb
310
- - omnibus-ridgepole/config/software/ridgepole.rb
311
- - omnibus-ridgepole/omnibus.rb
312
- - omnibus-ridgepole/package-scripts/ridgepole/postinst
313
- - omnibus-ridgepole/package-scripts/ridgepole/postrm
314
318
  - ridgepole.gemspec
315
319
  - spec/cli_helper.rb
316
320
  - spec/dsl_parser/context_spec.rb
@@ -318,7 +322,6 @@ files:
318
322
  - spec/fixtures/for_require_relative_spec.rb
319
323
  - spec/hide_pending_formatter.rb
320
324
  - spec/mysql/_migrate/migrate_change_table_option_spec.rb
321
- - spec/mysql/bigint_pk/bigint_pk_spec.rb
322
325
  - spec/mysql/bigint_pk/int_pk_spec.rb
323
326
  - spec/mysql/cli/config_spec.rb
324
327
  - spec/mysql/cli/ridgepole_spec.rb
@@ -446,7 +449,7 @@ files:
446
449
  - spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
447
450
  - spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
448
451
  - spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
449
- - spec/processing_for_travis.rb
452
+ - spec/processing_for_ci.rb
450
453
  - spec/spec_condition.rb
451
454
  - spec/spec_const.rb
452
455
  - spec/spec_helper.rb
@@ -480,7 +483,6 @@ test_files:
480
483
  - spec/fixtures/for_require_relative_spec.rb
481
484
  - spec/hide_pending_formatter.rb
482
485
  - spec/mysql/_migrate/migrate_change_table_option_spec.rb
483
- - spec/mysql/bigint_pk/bigint_pk_spec.rb
484
486
  - spec/mysql/bigint_pk/int_pk_spec.rb
485
487
  - spec/mysql/cli/config_spec.rb
486
488
  - spec/mysql/cli/ridgepole_spec.rb
@@ -608,7 +610,7 @@ test_files:
608
610
  - spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
609
611
  - spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
610
612
  - spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
611
- - spec/processing_for_travis.rb
613
+ - spec/processing_for_ci.rb
612
614
  - spec/spec_condition.rb
613
615
  - spec/spec_const.rb
614
616
  - spec/spec_helper.rb
@@ -1,10 +0,0 @@
1
- *.gem
2
- .bundle
3
- .kitchen/
4
- .kitchen.local.yml
5
- vendor/bundle
6
- pkg/*
7
- .vagrant
8
- bin/*
9
- files/**/cache/
10
- vendor/cookbooks
@@ -1,25 +0,0 @@
1
- FROM centos:7
2
-
3
- RUN yum install -y centos-release-scl && \
4
- yum-config-manager --enable rhel-server-rhscl-7-rpms && \
5
- yum install -y \
6
- rh-ruby25-dev \
7
- rh-ruby25-ruby-devel \
8
- make \
9
- gcc \
10
- gcc-c++ \
11
- git \
12
- rpm-build
13
-
14
- RUN scl enable rh-ruby25 -- \
15
- gem install --no-document \
16
- bundler \
17
- omnibus
18
-
19
- COPY Gemfile /
20
- RUN scl enable rh-ruby25 -- \
21
- bundle install
22
-
23
- WORKDIR /omnibus-ridgepole
24
-
25
- ENTRYPOINT ["/usr/bin/scl", "enable", "rh-ruby25", "--"]
@@ -1,21 +0,0 @@
1
- FROM ubuntu:xenial
2
-
3
- RUN apt-get update && \
4
- apt-get install -y software-properties-common
5
-
6
- RUN apt-add-repository -y ppa:brightbox/ruby-ng && \
7
- apt-get update && \
8
- apt-get install -y \
9
- ruby2.5 \
10
- ruby2.5-dev \
11
- build-essential \
12
- git
13
-
14
- RUN gem install --no-document \
15
- bundler \
16
- omnibus
17
-
18
- COPY Gemfile /
19
- RUN bundle install
20
-
21
- WORKDIR /omnibus-ridgepole
@@ -1,24 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Install omnibus
4
- gem 'omnibus', '~> 6.0'
5
- gem 'omnibus-software', git: 'https://github.com/chef/omnibus-software.git'
6
-
7
- gem 'rake'
8
-
9
- # Use Chef's software definitions. It is recommended that you write your own
10
- # software definitions, but you can clone/fork Chef's to get you started.
11
- # gem 'omnibus-software', github: 'chef/omnibus-software'
12
-
13
- # This development group is installed by default when you run `bundle install`,
14
- # but if you are using Omnibus in a CI-based infrastructure, you do not need
15
- # the Test Kitchen-based build lab. You can skip these unnecessary dependencies
16
- # by running `bundle install --without development` to speed up build times.
17
- group :development do
18
- # Use Berkshelf for resolving cookbook dependencies
19
- gem 'berkshelf', '~> 3.3'
20
-
21
- # Use Test Kitchen with Vagrant for converging the build environment
22
- gem 'test-kitchen', '~> 1.4'
23
- gem 'kitchen-vagrant', '~> 0.18'
24
- end
@@ -1,15 +0,0 @@
1
- omnibus-ridgepole
2
- -----------------
3
-
4
- ## Installation
5
-
6
- ```sh
7
- bundle install
8
- bundle exec rake docker:image:build
9
- ```
10
-
11
- ## Build omnibus-ridgepole
12
-
13
- ```sh
14
- bundle exec rake omnibus:build
15
- ```
@@ -1,38 +0,0 @@
1
- DOCKER_IMAGE_UBUNTU = 'omnibus-ridgepole-ubuntu'
2
- DOCKER_IMAGE_CENTOS = 'omnibus-ridgepole-chentos'
3
-
4
- namespace :docker do
5
- namespace :image do
6
- task build: ['build:ubuntu', 'build:centos']
7
-
8
- namespace :build do
9
- task :ubuntu do
10
- sh 'docker', 'build', '-t', DOCKER_IMAGE_UBUNTU, '-f', 'Dockerfile.ubuntu', '.'
11
- end
12
-
13
- task :centos do
14
- sh 'docker', 'build', '-t', DOCKER_IMAGE_CENTOS, '-f', 'Dockerfile.centos', '.'
15
- end
16
- end
17
- end
18
-
19
- namespace :omnibus do
20
- task :build do
21
- sh 'omnibus', 'build', 'ridgepole'
22
- end
23
- end
24
- end
25
-
26
- namespace :omnibus do
27
- task build: ['docker:image:build', 'build:ubuntu', 'build:centos']
28
-
29
- namespace :build do
30
- task :ubuntu do
31
- sh 'docker', 'run', '-v', "#{pwd}:/omnibus-ridgepole", DOCKER_IMAGE_UBUNTU, 'bundle', 'exec', 'rake docker:omnibus:build'
32
- end
33
-
34
- task :centos do
35
- sh 'docker', 'run', '-v', "#{pwd}:/omnibus-ridgepole", DOCKER_IMAGE_CENTOS, 'bundle', 'exec', 'rake docker:omnibus:build'
36
- end
37
- end
38
- end
@@ -1,27 +0,0 @@
1
- require 'json'
2
- require 'open-uri'
3
-
4
- name 'ridgepole'
5
- maintainer 'winebarrel <sugawara@winebarrel.jp>'
6
- homepage 'https://github.com/winebarrel/ridgepole'
7
-
8
- # Defaults to C:/ridgepole on Windows
9
- # and /opt/ridgepole on all other platforms
10
- install_dir "#{default_root}/#{name}"
11
-
12
- build_version JSON.parse(open('https://rubygems.org/api/v1/gems/ridgepole.json', &:read)).fetch('version')
13
- build_iteration 1
14
-
15
- dependency 'preparation'
16
-
17
- # ridgepole dependencies/components
18
- override :ruby, version: '2.5.1'
19
- dependency 'ruby'
20
- dependency 'rubygems'
21
- dependency 'ridgepole'
22
-
23
- # Version manifest file
24
- dependency 'version-manifest'
25
-
26
- exclude '**/.git'
27
- exclude '**/bundler/git'
@@ -1,13 +0,0 @@
1
- require 'json'
2
- require 'open-uri'
3
-
4
- name 'ridgepole'
5
-
6
- default_version JSON.parse(open('https://rubygems.org/api/v1/gems/ridgepole.json', &:read)).fetch('version')
7
-
8
- license 'MIT'
9
- skip_transitive_dependency_licensing true
10
-
11
- build do
12
- gem 'install ridgepole -N'
13
- end
@@ -1,54 +0,0 @@
1
- #
2
- # This file is used to configure the ridgepole project. It contains
3
- # some minimal configuration examples for working with Omnibus. For a full list
4
- # of configurable options, please see the documentation for +omnibus/config.rb+.
5
- #
6
-
7
- # Build internally
8
- # ------------------------------
9
- # By default, Omnibus uses system folders (like +/var+ and +/opt+) to build and
10
- # cache components. If you would to build everything internally, you can
11
- # uncomment the following options. This will prevent the need for root
12
- # permissions in most cases.
13
- #
14
- # Uncomment this line to change the default base directory to "local"
15
- # -------------------------------------------------------------------
16
- # base_dir './local'
17
- #
18
- # Alternatively you can tune the individual values
19
- # ------------------------------------------------
20
- # cache_dir './local/omnibus/cache'
21
- # git_cache_dir './local/omnibus/cache/git_cache'
22
- # source_dir './local/omnibus/src'
23
- # build_dir './local/omnibus/build'
24
- # package_dir './local/omnibus/pkg'
25
- # package_tmp './local/omnibus/pkg-tmp'
26
-
27
- # Disable git caching
28
- # ------------------------------
29
- # use_git_caching false
30
-
31
- # Enable S3 asset caching
32
- # ------------------------------
33
- # use_s3_caching true
34
- # s3_access_key ENV['AWS_ACCESS_KEY_ID']
35
- # s3_secret_key ENV['AWS_SECRET_ACCESS_KEY']
36
- # s3_profile ENV['AWS_S3_PROFILE']
37
- # s3_bucket ENV['AWS_S3_BUCKET']
38
-
39
- # Customize compiler bits
40
- # ------------------------------
41
- # solaris_compiler 'gcc'
42
- # build_retries 5
43
- # fetcher_read_timeout 120
44
- # fetcher_retries 5
45
-
46
- # Load additional software
47
- # ------------------------------
48
- # software_gems ['omnibus-software', 'my-company-software']
49
- # local_software_dirs ['/path/to/local/software']
50
-
51
- # Windows architecture defaults
52
- # ------------------------------
53
- windows_arch %w{x86 x64}.include?((ENV['OMNIBUS_WINDOWS_ARCH'] || '').downcase) ?
54
- ENV['OMNIBUS_WINDOWS_ARCH'].downcase.to_sym : :x86
@@ -1 +0,0 @@
1
- ln -sf /opt/ridgepole/embedded/bin/ridgepole /usr/bin
@@ -1 +0,0 @@
1
- rm -f /usr/bin/ridgepole
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- describe 'Ridgepole::Client (with bigint pk)', condition: 5.0 do
4
- let(:id_primary_key_create_table) do
5
- <<-RUBY
6
- create_table "books", id: :primary_key, limit: 8, force: :cascade do |t|
7
- t.string "title", null: false
8
- t.integer "author_id", null: false
9
- t.datetime "created_at"
10
- t.datetime "updated_at"
11
- end
12
- RUBY
13
- end
14
-
15
- let(:id_bigint_create_table) do
16
- <<-RUBY
17
- create_table "books", id: :bigint, force: :cascade do |t|
18
- t.string "title", null: false
19
- t.integer "author_id", null: false
20
- t.datetime "created_at"
21
- t.datetime "updated_at"
22
- end
23
- RUBY
24
- end
25
-
26
- context 'when with limit:8' do
27
- subject { client }
28
-
29
- before { subject.diff(id_primary_key_create_table).migrate }
30
-
31
- it {
32
- expect(show_create_table(:books)).to include '`id` bigint(20) NOT NULL AUTO_INCREMENT'
33
- expect(subject.dump).to match_fuzzy id_bigint_create_table
34
- }
35
- end
36
-
37
- context 'when with id:bigint' do
38
- subject { client }
39
-
40
- before { subject.diff(id_bigint_create_table).migrate }
41
-
42
- it {
43
- expect(show_create_table(:books)).to include '`id` bigint(20) NOT NULL AUTO_INCREMENT'
44
- expect(subject.dump).to match_fuzzy id_bigint_create_table
45
- }
46
- end
47
- end