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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a978412d76ba8b0c72db34834af656872f6a4c73
4
- data.tar.gz: ed0b82c25387fc6b9a1464befd68b241b0c984ed
3
+ metadata.gz: f3806c727340fbe9c4e3d221bbe8b8e4108ff778
4
+ data.tar.gz: 5cb2449c108f65e9dd358503962595d345b99751
5
5
  SHA512:
6
- metadata.gz: bf7b398e3ba184a42f3204eb2b3739c2fd5eca7ac82a2ca85174c4335192819e64f9be7bb9f5ef3de33681279ca138f45b8640835aadc83fbb13f7b8cc9396e0
7
- data.tar.gz: d061cd05ad32e49111cc84f8ada60b6251a0f852a96a0c4e85c26e2dd0484fed08a3759160622999a946e742f83c7acd4fa117e65f0a3c0ee73ba322275d4aae
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 Add `implements_reference` to `Migration::Column` stack env
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
@@ -14,7 +14,7 @@ module SchemaPlus
14
14
  \) \s*
15
15
  (?<options> \S.*)?
16
16
  $
17
- }xi
17
+ }mxi
18
18
  self.command = m[:command]
19
19
  self.quotechar = m[:quote]
20
20
  self.name = m[:name]
@@ -1,5 +1,5 @@
1
1
  module SchemaPlus
2
2
  module Core
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -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.0
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-05-22 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord