declare_schema 0.8.0.pre.3 → 0.9.0

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.
@@ -38,9 +38,14 @@ module Generators
38
38
 
39
39
  context 'when explicitly set' do
40
40
  before { described_class.default_charset = "utf8" }
41
- after { described_class.default_charset = described_class::DEFAULT_CHARSET }
41
+ after { described_class.default_charset = "utf8mb4" }
42
42
  it { should eq("utf8") }
43
43
  end
44
+
45
+ it 'should output deprecation warning' do
46
+ expect { described_class.default_charset = "utf8mb4" }.to output(/DEPRECATION WARNING: default_charset= is deprecated/).to_stderr
47
+ expect { subject }.to output(/DEPRECATION WARNING: default_charset is deprecated/).to_stderr
48
+ end
44
49
  end
45
50
 
46
51
  describe '#default_collation' do
@@ -52,9 +57,14 @@ module Generators
52
57
 
53
58
  context 'when explicitly set' do
54
59
  before { described_class.default_collation = "utf8mb4_general_ci" }
55
- after { described_class.default_collation = described_class::DEFAULT_COLLATION }
60
+ after { described_class.default_collation = "utf8mb4_bin" }
56
61
  it { should eq("utf8mb4_general_ci") }
57
62
  end
63
+
64
+ it 'should output deprecation warning' do
65
+ expect { described_class.default_collation = "utf8mb4_bin" }.to output(/DEPRECATION WARNING: default_collation= is deprecated/).to_stderr
66
+ expect { subject }.to output(/DEPRECATION WARNING: default_collation is deprecated/).to_stderr
67
+ end
58
68
  end
59
69
 
60
70
  describe 'load_rails_models' do
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.8.0.pre.3
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development adapted from hobo_fields by Tom Locke
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-18 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -64,6 +64,7 @@ files:
64
64
  - lib/declare_schema/model/column.rb
65
65
  - lib/declare_schema/model/field_spec.rb
66
66
  - lib/declare_schema/model/foreign_key_definition.rb
67
+ - lib/declare_schema/model/habtm_model_shim.rb
67
68
  - lib/declare_schema/model/index_definition.rb
68
69
  - lib/declare_schema/model/table_options_definition.rb
69
70
  - lib/declare_schema/railtie.rb
@@ -85,9 +86,11 @@ files:
85
86
  - spec/lib/declare_schema/migration_generator_spec.rb
86
87
  - spec/lib/declare_schema/model/column_spec.rb
87
88
  - spec/lib/declare_schema/model/foreign_key_definition_spec.rb
89
+ - spec/lib/declare_schema/model/habtm_model_shim_spec.rb
88
90
  - spec/lib/declare_schema/model/index_definition_spec.rb
89
91
  - spec/lib/declare_schema/model/table_options_definition_spec.rb
90
92
  - spec/lib/declare_schema/prepare_testapp.rb
93
+ - spec/lib/declare_schema_spec.rb
91
94
  - spec/lib/generators/declare_schema/migration/migrator_spec.rb
92
95
  - spec/spec_helper.rb
93
96
  - spec/support/acceptance_spec_helpers.rb
@@ -96,7 +99,7 @@ homepage: https://github.com/Invoca/declare_schema
96
99
  licenses: []
97
100
  metadata:
98
101
  allowed_push_host: https://rubygems.org
99
- post_install_message:
102
+ post_install_message:
100
103
  rdoc_options: []
101
104
  require_paths:
102
105
  - lib
@@ -112,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
115
  version: 1.3.6
113
116
  requirements: []
114
117
  rubygems_version: 3.0.3
115
- signing_key:
118
+ signing_key:
116
119
  specification_version: 4
117
120
  summary: Database schema declaration and migration generator for Rails
118
121
  test_files: []