declare_schema 0.5.0.pre.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/declare_schema/version.rb +1 -1
- data/spec/lib/declare_schema/generator_spec.rb +22 -9
- 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: 59ff5d6d1a71b80a0541e2430f77665914d0c354ec92f31db8bbf22630fa5bef
|
4
|
+
data.tar.gz: dcaedebe325290c8c625c099b4d3cd6e2a87694f1d3cfec68811618f635715c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a62a4236edd68e1429d4949b6745f34ed186acc24935bb027d1108b59372c0b681abc514963730c8e9e092769aa4a614a286c8815aa704a8dc24378e6cbe4ee
|
7
|
+
data.tar.gz: f8a9b7e40ffe14aa35e0a33d66c4e7dd820535ceacbc488bf159b386e28f5edf0d69896ff2e96a2c521e41e59c36fb9d7f47a6d1b6089a3625d8664a41be5b95
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [0.5.0] -
|
7
|
+
## [0.5.0] - 2020-12-21
|
8
8
|
### Added
|
9
9
|
- Added support for configuring the character set and collation for MySQL databases
|
10
10
|
at the global, table, and field level
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -93,8 +93,8 @@ turn all tables into `utf8mb4` supporting tables:
|
|
93
93
|
```ruby
|
94
94
|
# frozen_string_literal: true
|
95
95
|
|
96
|
-
Generators::DeclareSchema::Migrator.default_charset = "utf8mb4"
|
97
|
-
Generators::DeclareSchema::Migrator.default_collation = "utf8mb4_general"
|
96
|
+
Generators::DeclareSchema::Migration::Migrator.default_charset = "utf8mb4"
|
97
|
+
Generators::DeclareSchema::Migration::Migrator.default_collation = "utf8mb4_general"
|
98
98
|
```
|
99
99
|
|
100
100
|
### Table Configuration
|
@@ -27,15 +27,28 @@ RSpec.describe 'DeclareSchema Migration Generator' do
|
|
27
27
|
end
|
28
28
|
EOS
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
30
|
+
case Rails::VERSION::MAJOR
|
31
|
+
when 4, 5
|
32
|
+
expect_test_definition_to_eq('alpha/beta', <<~EOS)
|
33
|
+
require 'test_helper'
|
34
|
+
|
35
|
+
class Alpha::BetaTest < ActiveSupport::TestCase
|
36
|
+
# test "the truth" do
|
37
|
+
# assert true
|
38
|
+
# end
|
39
|
+
end
|
40
|
+
EOS
|
41
|
+
else
|
42
|
+
expect_test_definition_to_eq('alpha/beta', <<~EOS)
|
43
|
+
require "test_helper"
|
44
|
+
|
45
|
+
class Alpha::BetaTest < ActiveSupport::TestCase
|
46
|
+
# test "the truth" do
|
47
|
+
# assert true
|
48
|
+
# end
|
49
|
+
end
|
50
|
+
EOS
|
51
|
+
end
|
39
52
|
|
40
53
|
case Rails::VERSION::MAJOR
|
41
54
|
when 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: declare_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca Development adapted from hobo_fields by Tom Locke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|