schema_plus_core 0.5.0 → 0.5.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 +4 -3
- data/lib/schema_plus/core/sql_struct.rb +1 -1
- data/lib/schema_plus/core/version.rb +1 -1
- data/spec/sql_struct_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3806c727340fbe9c4e3d221bbe8b8e4108ff778
|
4
|
+
data.tar.gz: 5cb2449c108f65e9dd358503962595d345b99751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5468384823546f1aac60cd719418f7e788dc18f2f50f1c5d9a69b79b93b118cdad1db8208c9c512557b9751a64fb6803a960c0b935caf9cf2f8f60f9828e2a4
|
7
|
+
data.tar.gz: 057827181ff824af179a4e8581e24eda5b62982e75583b56e01e18355fef78338ffd7a8ac5a0af559b8adcb8a50ab0ced69e8158cc94bb458a42a3ef106f8049
|
data/README.md
CHANGED
@@ -450,10 +450,11 @@ SchemaPlus::Core provides a state object and of callbacks to various phases of t
|
|
450
450
|
|
451
451
|
## History
|
452
452
|
|
453
|
+
* 0.5.1 Bug fix: Don't choke on a quoted newline in a `CREATE TABLE` statement ([#3](https://github.com/SchemaPlus/schema_plus_core/pull/3)). Thanks to [@mikeauclair](https://github.com/mikeauclair)
|
453
454
|
* 0.5.0 Added `Migration::DropTable`
|
454
|
-
* 0.4.0
|
455
|
-
* 0.3.1 Pass along (undocumented) return values from association declarations
|
456
|
-
* 0.3.0 Added `Model::Association::Declaration`
|
455
|
+
* 0.4.0 Added `implements_reference` to `Migration::Column` stack env
|
456
|
+
* 0.3.1 Pass along (undocumented) return values from association declarations ([#2](https://github.com/SchemaPlus/schema_plus_core/pull/2)). Thanks to [@lowjoel](https://github.com/lowjoel)
|
457
|
+
* 0.3.0 Added `Model::Association::Declaration` ([#1](https://github.com/SchemaPlus/schema_plus_core/pull/1)). Thanks to [@lowjoel](https://github.com/lowjoel).
|
457
458
|
* 0.2.1 Added `Migration::CreateTable` and `Schema::Define`; removed dependency on (defunct) `schema_monkey_rails` gem. [Oops, this should have been a minor version bump]
|
458
459
|
* 0.2.0 Added `Migration::DropTable`
|
459
460
|
* 0.1.0 Initial release
|
data/spec/sql_struct_spec.rb
CHANGED
@@ -24,6 +24,12 @@ describe SchemaPlus::Core::SqlStruct do
|
|
24
24
|
Then { expect(struct.options).to be_blank }
|
25
25
|
end
|
26
26
|
|
27
|
+
context "a table with quoted newline" do
|
28
|
+
Given(:sql) { %q<CREATE TABLE "things" ("id" serial primary key, "name" character varying DEFAULT 'hey\nhey')>}
|
29
|
+
Then { expect(struct.command).to eq "CREATE TABLE" }
|
30
|
+
Then { expect(struct.name).to eq "things" }
|
31
|
+
end
|
32
|
+
|
27
33
|
end
|
28
34
|
|
29
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_plus_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|