Fix t/var/configs/*.json to use valid JSON syntax.
Tim Bunce [Fri, 8 May 2009 14:24:58 +0000 (14:24 +0000)]
Changes
t/var/configs/date.json
t/var/configs/fetch.json
t/var/configs/includes.json
t/var/configs/quantity.json
t/var/configs/rules.json
t/var/configs/sample.json
t/var/configs/scalar_ref.json
t/var/configs/simple.json

diff --git a/Changes b/Changes
index 4479b0f..5a60e25 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Revision history for DBIx-Class-Fixtures
 
+- Fix t/var/configs/*.json to use valid JSON syntax
+
 1.001002
 - Allow passing schema object to ->populate
 - Check that fixture population dir was created
index 2fc932c..c703c05 100644 (file)
@@ -1,13 +1,13 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'Track',
-            ids: ['9']
+        "sets": [{
+            "class": "Track",
+            "ids": ["9"]
         }],
-        datetime_relative : "2007-10-30 00:00:00"  
+        datetime_relative : "2007-10-30 "00":"00":00"  
 }
index 30d6685..7c042ea 100644 (file)
@@ -1,23 +1,23 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'Artist',
-            ids: ['1'],
-            fetch: [{
-                rel: cds,
-                quantity: all
+        "sets": [{
+            "class": "Artist",
+            "ids": ["1"],
+            "fetch": [{
+                "rel": "cds",
+                "quantity": "all"
             }]
         }, {
-            class: 'Artist',
-            ids: ['2'],
-            fetch: [{
-                rel: cds,
-                cond: { year: {'>': 2002} }
+            "class": "Artist",
+            "ids": ["2"],
+            "fetch": [{
+                "rel": "cds",
+                "cond": { "year": {">": 2002} }
             }]
         }]
-}
\ No newline at end of file
+}
index 9bc22b5..edee8a7 100644 (file)
@@ -1,15 +1,15 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'Producer',
-            quantity: 1
+        "sets": [{
+            "class": "Producer",
+            "quantity": 1
         }],
-        includes: [{
-            file: 'simple.json'
+        "includes": [{
+            "file": "simple.json"
         }]
 }
index d4f9ba4..c63ca21 100644 (file)
@@ -1,12 +1,12 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'CD',
-            quantity: 3
+        "sets": [{
+            "class": "CD",
+            "quantity": 3
         }]
 }
\ No newline at end of file
index b02a286..6d44f93 100644 (file)
@@ -1,29 +1,29 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'CD',
-            ids: ['5']
+        "sets": [{
+            "class": "CD",
+            "ids": ["5"]
         }, {
-            class: 'Artist',
-            ids: ['1'],
-            fetch: [{
-                rel: cds,
-                quantity: all
+            "class": "Artist",
+            "ids": ["1"],
+            "fetch": [{
+                "rel": "cds",
+                "quantity": "all"
             }]
         }],
-        rules: {
-            'CD': {
-                cond: [{ 'tags.tag': 'Cheesy' }],
-                join: ['tags'],
-                fetch: [{
-                    rel: tracks,
-                    cond: { position: 2 }
+        "rules": {
+            "CD": {
+                "cond": [{ "tags.tag": "Cheesy" }],
+                "join": ["tags"],
+                "fetch": [{
+                    "rel": "tracks",
+                    "cond": { "position": 2 }
                 }]
             }                    
         }
-}
\ No newline at end of file
+}
index e218d4c..6ec7527 100644 (file)
@@ -1,40 +1,40 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'User',
-            cond: { photo_count: { '<': 5 } },
-            quantity: 3,
-            datetime_relative: today,
-            fetch: [{ 
-                rel: comments,
-                cond: { comments: { '!=': 'faks' }},
-                quantity: 2
+        "sets": [{
+            "class": "User",
+            "cond": { "photo_count": { "<": 5 } },
+            "quantity": 3,
+            "datetime_relative": today,
+            "fetch": [{ 
+                "rel": comments,
+                "cond": { "comments": { "!=": "faks" }},
+                "quantity": 2
             }]
         }, {
-            class: 'User',
-            cond: { photo_count: { '>=': 5 } },
-            quantity: 3
+            "class": "User",
+            "cond": { "photo_count": { ">=": 5 } },
+            "quantity": 3
         }, {
-            class: 'Video',
-            quantity: 3
+            "class": "Video",
+            "quantity": 3
         }, {
-            class: 'FeaturedVideo',
-            quantity: 3
+            "class": "FeaturedVideo",
+            "quantity": 3
         }],
-        rules: {
-            'User': {
-                cond: { video_count: { '>=': 5 } }
+        "rules": {
+            "User": {
+                "cond": { "video_count": { ">=": 5 } }
             },
-            'Video': {
-                fetch: [{
-                    rel: user_videos,
-                    cond: { me.fk_user_id: '\= video.fk_owner_id' },
-                    join: 'video'
+            "Video": {
+                "fetch": [{
+                    "rel": user_videos,
+                    "cond": { me."fk_user_id": "\= video.fk_owner_id" },
+                    "join": "video"
                 }]
             }
         }
index a1bd2f6..80f06a1 100644 (file)
@@ -1,17 +1,17 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'Artist',
-            cond: { me.name: '\= "We Are Goth"' },
-            quantity: all,
-            fetch: [{ 
-                rel: 'cds',
-                cond: { 'me.title': '\LIKE "%with us"' }
+        "sets": [{
+            "class": "Artist",
+            "cond": { "me.name": "\\= \"We Are Goth\"" },
+            "quantity": "all",
+            "fetch": [{ 
+                "rel": "cds",
+                "cond": { "me.title": "\\LIKE \"%with us\"" }
             }]
         }]
-}
\ No newline at end of file
+}
index 7abd148..44754a3 100644 (file)
@@ -1,12 +1,12 @@
 {
-        might_have: {
-            fetch: 0
+        "might_have": {
+            "fetch": 0
         },
-        has_many: {
-            fetch: 0
+        "has_many": {
+            "fetch": 0
         },
-        sets: [{
-            class: 'Artist',
-            quantity: 1
+        "sets": [{
+            "class": "Artist",
+            "quantity": 1
         }]
 }
\ No newline at end of file