[Bast-commits] r6177 - in DBIx-Class-Fixtures/1.001/trunk: .
t/var/configs
timbunce at dev.catalyst.perl.org
timbunce at dev.catalyst.perl.org
Fri May 8 14:24:58 GMT 2009
Author: timbunce
Date: 2009-05-08 14:24:58 +0000 (Fri, 08 May 2009)
New Revision: 6177
Modified:
DBIx-Class-Fixtures/1.001/trunk/Changes
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/date.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/fetch.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/includes.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/quantity.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/rules.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/sample.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/scalar_ref.json
DBIx-Class-Fixtures/1.001/trunk/t/var/configs/simple.json
Log:
Fix t/var/configs/*.json to use valid JSON syntax.
Modified: DBIx-Class-Fixtures/1.001/trunk/Changes
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/Changes 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/Changes 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/date.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/date.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/date.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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"
}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/fetch.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/fetch.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/fetch.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
+}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/includes.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/includes.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/includes.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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"
}]
}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/quantity.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/quantity.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/quantity.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/rules.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/rules.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/rules.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
+}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/sample.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/sample.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/sample.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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"
}]
}
}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/scalar_ref.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/scalar_ref.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/scalar_ref.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
+}
Modified: DBIx-Class-Fixtures/1.001/trunk/t/var/configs/simple.json
===================================================================
--- DBIx-Class-Fixtures/1.001/trunk/t/var/configs/simple.json 2009-05-08 10:15:15 UTC (rev 6176)
+++ DBIx-Class-Fixtures/1.001/trunk/t/var/configs/simple.json 2009-05-08 14:24:58 UTC (rev 6177)
@@ -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
More information about the Bast-commits
mailing list