activefacts-examples 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  "types": {
3
3
  "Acceptable Substitution": {
4
4
  "is_main": true,
5
- "id": "40e49157-6450-4d2c-b85b-3c299e492663",
5
+ "id": "46299C4A-9F69-4F4F-85D7-43B33DAAE15D",
6
6
  "functions": [
7
7
  {
8
8
  "title": "involving Product",
@@ -23,116 +23,116 @@
23
23
  },
24
24
  "Cost": {
25
25
  "is_main": false,
26
- "id": "716e46dc-38dc-4517-ae5f-2e455f8fcac3",
26
+ "id": "1C145D4D-F6A3-455A-B103-6FB654F45671",
27
27
  "functions": [
28
28
  {
29
29
  "title": "all Production Forecast",
30
30
  "type": "Production Forecast",
31
31
  "where": "some Production Forecast predicts this Cost",
32
- "role_id": "f99606fa-b75f-4e02-8a57-de57761158ea",
32
+ "role_id": "08FEE9C7-B0BF-4AD6-95B2-EC99B7AE46EC",
33
33
  "is_list": true
34
34
  },
35
35
  {
36
36
  "title": "all Transport Route",
37
37
  "type": "Transport Route",
38
38
  "where": "some Transport Route incurs this Cost per kl",
39
- "role_id": "d7613018-f6b0-49fa-ad78-3d698da6d72b",
39
+ "role_id": "256FB476-D5EE-463B-87ED-3BD6494F2EC8",
40
40
  "is_list": true
41
41
  }
42
42
  ]
43
43
  },
44
44
  "Month": {
45
45
  "is_main": true,
46
- "id": "4b128c89-e64d-42c9-8fb0-1e8e72cb0712",
46
+ "id": "CDF8EE98-34F1-4989-9B58-61B99A61E8E2",
47
47
  "functions": [
48
48
  {
49
49
  "title": "Month Nr",
50
50
  "type": "Month Nr",
51
51
  "where": "this Month has one Month Nr",
52
- "role_id": "60d15497-91ac-446e-9374-bc0793d43ba3"
52
+ "role_id": "3CAF1B93-3F96-4E7C-A8AF-FFAC4935E9E2"
53
53
  },
54
54
  {
55
55
  "title": "Season",
56
56
  "type": "Season",
57
57
  "where": "this Month is in one Season",
58
- "role_id": "b6dba1ae-390b-4304-be5e-4d7807963439"
58
+ "role_id": "25811225-AD77-45D7-879F-31161027F3E6"
59
59
  },
60
60
  {
61
61
  "title": "all Supply Period",
62
62
  "type": "Supply Period",
63
63
  "where": "some Supply Period is in this Month",
64
- "role_id": "66608cb1-e637-4c3f-be7a-4447ec82b4f5",
64
+ "role_id": "2B21C4CA-81D9-4924-81C1-23650B3022A1",
65
65
  "is_list": true
66
66
  }
67
67
  ]
68
68
  },
69
69
  "Month Nr": {
70
70
  "is_main": false,
71
- "id": "6e14a2ab-fd39-43ed-8fb6-f0e6f25c70bb",
71
+ "id": "2EC24502-C9BE-40A3-9430-61A1CA23C415",
72
72
  "functions": [
73
73
  {
74
74
  "title": "Month",
75
75
  "type": "Month",
76
76
  "where": "this Month Nr is of one Month",
77
- "role_id": "740d8591-6f51-4d81-9009-26768683d00e"
77
+ "role_id": "76A3933A-EDD4-4420-ABFC-2CA82AC84F27"
78
78
  }
79
79
  ]
80
80
  },
81
81
  "Product": {
82
82
  "is_main": true,
83
- "id": "aaf81a10-5093-45a8-94d8-efe6cb17445e",
83
+ "id": "9B9E96D3-43A4-4B06-AF7B-540EBBED56C1",
84
84
  "functions": [
85
85
  {
86
86
  "title": "Product Name",
87
87
  "type": "Product Name",
88
88
  "where": "this Product has one Product Name",
89
- "role_id": "1dacaac2-41c9-43a5-8fdc-b6d95352c058"
89
+ "role_id": "272C72C4-CB90-4B5E-95B7-788C021035B6"
90
90
  },
91
91
  {
92
92
  "title": "all Acceptable Substitution",
93
93
  "type": "Acceptable Substitution",
94
94
  "where": "this Product may be substituted by some alternate-Product in some Season",
95
- "role_id": "7138d862-b11b-4625-bb6d-7d63ea39b9b9",
95
+ "role_id": "914D38B5-B8A6-4E3D-84E3-D18F4BD8C9B5",
96
96
  "is_list": true
97
97
  },
98
98
  {
99
99
  "title": "all Acceptable Substitution",
100
100
  "type": "Acceptable Substitution",
101
101
  "where": "this alternate-Product is an acceptable substitute for some Product in some Season",
102
- "role_id": "09681795-a2c5-4429-9709-d5a9a993c077",
102
+ "role_id": "D479C192-1292-4A30-AB90-D8EB3DC9B857",
103
103
  "is_list": true
104
104
  },
105
105
  {
106
106
  "title": "all Production Forecast",
107
107
  "type": "Production Forecast",
108
108
  "where": "some Refinery in some Supply Period will make this Product in some Quantity",
109
- "role_id": "c6b420de-fdf1-4cc5-ae5d-1eb300d133cd",
109
+ "role_id": "76D25543-5651-413A-940A-05E3A2F8F482",
110
110
  "is_list": true
111
111
  },
112
112
  {
113
113
  "title": "all Regional Demand",
114
114
  "type": "Regional Demand",
115
115
  "where": "some Region in some Supply Period will need this Product in some Quantity",
116
- "role_id": "5753937f-6ed8-40c6-bc99-82b16ebf6f60",
116
+ "role_id": "A1CDE33D-5654-41A3-86C2-1F1D5A58ED90",
117
117
  "is_list": true
118
118
  }
119
119
  ]
120
120
  },
121
121
  "Product Name": {
122
122
  "is_main": false,
123
- "id": "0792678a-f609-44c9-80ed-3ffa964b310e",
123
+ "id": "56E07B5D-B848-4637-A7CE-6575EAA287E6",
124
124
  "functions": [
125
125
  {
126
126
  "title": "Product",
127
127
  "type": "Product",
128
128
  "where": "this Product Name is of one Product",
129
- "role_id": "3ad2fc0a-a2e4-437a-b3a7-6595e6d00a1b"
129
+ "role_id": "E7C93935-5478-4ED1-B02B-4A8B0DCE1DA7"
130
130
  }
131
131
  ]
132
132
  },
133
133
  "Production Forecast": {
134
134
  "is_main": true,
135
- "id": "fde0132b-695f-44f9-bdb9-5732f7b31118",
135
+ "id": "0AB026AB-90F9-48B3-9D0A-3791387E0014",
136
136
  "functions": [
137
137
  {
138
138
  "title": "involving Refinery",
@@ -158,109 +158,109 @@
158
158
  "title": "Cost",
159
159
  "type": "Cost",
160
160
  "where": "this Production Forecast predicts one Cost",
161
- "role_id": "5efdf306-1211-4ecd-b3cc-6db6e01c4e6d"
161
+ "role_id": "D7E826EB-30A0-4F38-9DAC-B6AA4CB73812"
162
162
  }
163
163
  ]
164
164
  },
165
165
  "Quantity": {
166
166
  "is_main": false,
167
- "id": "8279123e-1c02-42e9-9ffb-880abe057917",
167
+ "id": "A3464012-E2A4-4A5C-822B-93F1732BD985",
168
168
  "functions": [
169
169
  {
170
170
  "title": "all Production Forecast",
171
171
  "type": "Production Forecast",
172
172
  "where": "some Refinery in some Supply Period will make some Product in this Quantity",
173
- "role_id": "1ceab24c-c108-455f-9681-105090f7f21d",
173
+ "role_id": "6D4CAB3C-817F-4D6F-BB25-C33A8FDAE503",
174
174
  "is_list": true
175
175
  },
176
176
  {
177
177
  "title": "all Regional Demand",
178
178
  "type": "Regional Demand",
179
179
  "where": "some Region in some Supply Period will need some Product in this Quantity",
180
- "role_id": "770d2abd-a25a-4262-8e6f-825a5cb163f4",
180
+ "role_id": "1F4635EC-FB50-481D-9BAB-78CFF3D286AA",
181
181
  "is_list": true
182
182
  }
183
183
  ]
184
184
  },
185
185
  "Refinery": {
186
186
  "is_main": true,
187
- "id": "5d9f65d2-d38f-4aee-8ee3-464d56f3891f",
187
+ "id": "1B0862C1-8C10-4545-968D-DE6F87785FED",
188
188
  "functions": [
189
189
  {
190
190
  "title": "Refinery Name",
191
191
  "type": "Refinery Name",
192
192
  "where": "this Refinery has one Refinery Name",
193
- "role_id": "cbbbeebd-8444-426e-a63f-85ae318ecc20"
193
+ "role_id": "0C199902-6257-4D78-A418-7D05E5FA8B5C"
194
194
  },
195
195
  {
196
196
  "title": "all Production Forecast",
197
197
  "type": "Production Forecast",
198
198
  "where": "this Refinery in some Supply Period will make some Product in some Quantity",
199
- "role_id": "aae4cb21-a2cd-4225-a035-d0aeaf490337",
199
+ "role_id": "1B194D02-93A2-49CC-9BD5-735C489F44E9",
200
200
  "is_list": true
201
201
  },
202
202
  {
203
203
  "title": "all Transport Route",
204
204
  "type": "Transport Route",
205
205
  "where": "some Transport Method transportation is available from this Refinery to some Region",
206
- "role_id": "b8a2d8e9-adf3-49ee-97c7-4e27be294d72",
206
+ "role_id": "E15056F5-DAA6-4DA0-9618-A7484473FD2C",
207
207
  "is_list": true
208
208
  }
209
209
  ]
210
210
  },
211
211
  "Refinery Name": {
212
212
  "is_main": false,
213
- "id": "dd09ebcd-b9f2-4780-9a03-e9208aa94bbb",
213
+ "id": "75CF9EFE-9ACF-4C9B-9B57-A3B033E4C1EB",
214
214
  "functions": [
215
215
  {
216
216
  "title": "Refinery",
217
217
  "type": "Refinery",
218
218
  "where": "this Refinery Name is of one Refinery",
219
- "role_id": "29eef4b5-5ddf-4c0e-a2bd-21f4785ae6a9"
219
+ "role_id": "343CACDB-6F2C-4DC1-A55F-80652B3E52D8"
220
220
  }
221
221
  ]
222
222
  },
223
223
  "Region": {
224
224
  "is_main": true,
225
- "id": "27effba9-2a82-40cc-be4a-2d681811afd4",
225
+ "id": "407948D2-73D0-4D6E-8E0A-B38EAA06447B",
226
226
  "functions": [
227
227
  {
228
228
  "title": "Region Name",
229
229
  "type": "Region Name",
230
230
  "where": "this Region has one Region Name",
231
- "role_id": "8cdf335c-8622-4e68-9c8d-76161b3474b9"
231
+ "role_id": "C1227CDE-A69F-4C6A-A0D8-9BF2BFEC78BC"
232
232
  },
233
233
  {
234
234
  "title": "all Regional Demand",
235
235
  "type": "Regional Demand",
236
236
  "where": "this Region in some Supply Period will need some Product in some Quantity",
237
- "role_id": "32b3f496-e1a0-4ea8-ab52-7f7ea27d6f5e",
237
+ "role_id": "17D7B6F7-4B5E-444B-B839-48F2C194E43B",
238
238
  "is_list": true
239
239
  },
240
240
  {
241
241
  "title": "all Transport Route",
242
242
  "type": "Transport Route",
243
243
  "where": "some Transport Method transportation is available from some Refinery to this Region",
244
- "role_id": "15758b1e-8f4e-423c-9537-7ada53a0bb57",
244
+ "role_id": "511FBFE1-3B82-4EC9-A633-E8662E4E198E",
245
245
  "is_list": true
246
246
  }
247
247
  ]
248
248
  },
249
249
  "Region Name": {
250
250
  "is_main": false,
251
- "id": "a7d2f321-c1ec-4e71-9fe9-af622757ed9d",
251
+ "id": "BA574B2E-1C23-42C3-BCB9-B6C46009E51B",
252
252
  "functions": [
253
253
  {
254
254
  "title": "Region",
255
255
  "type": "Region",
256
256
  "where": "this Region Name is of one Region",
257
- "role_id": "1ad30fff-5230-4b7c-a340-df62d5f1c21e"
257
+ "role_id": "1D55A045-CF04-443F-B786-0B1634268AF9"
258
258
  }
259
259
  ]
260
260
  },
261
261
  "Regional Demand": {
262
262
  "is_main": true,
263
- "id": "c2d03b37-b913-4597-bb6b-ac2b971898cd",
263
+ "id": "A0D45DFC-4DB4-4DB8-8E1B-D9FE94CB67E3",
264
264
  "functions": [
265
265
  {
266
266
  "title": "involving Region",
@@ -286,72 +286,72 @@
286
286
  },
287
287
  "Season": {
288
288
  "is_main": false,
289
- "id": "db77e3b4-3412-46fa-be0f-5eba35639115",
289
+ "id": "97C68700-C3CF-4E26-B7E5-FA6CACB2290A",
290
290
  "functions": [
291
291
  {
292
292
  "title": "all Month",
293
293
  "type": "Month",
294
294
  "where": "some Month is in this Season",
295
- "role_id": "cc597414-58f0-4ae4-8818-52f08b99fa00",
295
+ "role_id": "C55C16BC-FEF6-4181-91B3-209EFEDCEF74",
296
296
  "is_list": true
297
297
  },
298
298
  {
299
299
  "title": "all Acceptable Substitution",
300
300
  "type": "Acceptable Substitution",
301
301
  "where": "some Product may be substituted by some alternate-Product in this Season",
302
- "role_id": "a99e4013-6692-49fa-8beb-613e2d83a87d",
302
+ "role_id": "406229F4-9CC1-4255-8A07-DFE69E67D5E1",
303
303
  "is_list": true
304
304
  }
305
305
  ]
306
306
  },
307
307
  "Supply Period": {
308
- "is_main": true,
309
- "id": "b8aedd69-21f5-4285-a7a5-fd3f079bf290",
308
+ "is_main": false,
309
+ "id": "0542D7A4-AC6E-4BED-B5B0-242C74EB0D3B",
310
310
  "functions": [
311
311
  {
312
312
  "title": "all Production Forecast",
313
313
  "type": "Production Forecast",
314
314
  "where": "some Refinery in this Supply Period will make some Product in some Quantity",
315
- "role_id": "d922f32f-6c9c-40e1-8062-2e0c9c3398f9",
315
+ "role_id": "220D9070-E28D-42E4-BCB5-0294DFAA9465",
316
316
  "is_list": true
317
317
  },
318
318
  {
319
319
  "title": "all Regional Demand",
320
320
  "type": "Regional Demand",
321
321
  "where": "some Region in this Supply Period will need some Product in some Quantity",
322
- "role_id": "75a88f4f-007d-4f19-8edb-8e8e0b81122e",
322
+ "role_id": "11D91447-7AF5-4D9D-B335-A88DC1BA2493",
323
323
  "is_list": true
324
324
  },
325
325
  {
326
326
  "title": "Month",
327
327
  "type": "Month",
328
328
  "where": "this Supply Period is in one Month",
329
- "role_id": "a284c9c8-f5cf-4f4d-9645-8ec72fa68b3d"
329
+ "role_id": "A731F142-EF35-4C6B-ADE6-25DB10222CD3"
330
330
  },
331
331
  {
332
332
  "title": "Year",
333
333
  "type": "Year",
334
334
  "where": "this Supply Period is in one Year",
335
- "role_id": "4f5fdced-0d4e-4e2f-8963-09d7e8905684"
335
+ "role_id": "13696B65-1C70-4B8B-8D75-32565F852F83"
336
336
  }
337
337
  ]
338
338
  },
339
339
  "Transport Method": {
340
340
  "is_main": false,
341
- "id": "62d8c19f-e40e-45b5-9b57-66e0b0134b4b",
341
+ "id": "149E788B-81B7-48FF-A081-BE4178E4147B",
342
342
  "functions": [
343
343
  {
344
344
  "title": "all Transport Route",
345
345
  "type": "Transport Route",
346
346
  "where": "this Transport Method transportation is available from some Refinery to some Region",
347
- "role_id": "8b46afa0-9f94-4739-a573-2e2dcaff6951",
347
+ "role_id": "B2681E73-13DF-49E7-8A35-39A1D2FF1B6A",
348
348
  "is_list": true
349
349
  }
350
350
  ]
351
351
  },
352
352
  "Transport Route": {
353
353
  "is_main": true,
354
- "id": "0c7f3e46-84dc-416a-8ee5-659c4b9ed4db",
354
+ "id": "C878B756-DF3F-4D4B-80D3-2701240F1A45",
355
355
  "functions": [
356
356
  {
357
357
  "title": "involving Transport Method",
@@ -372,38 +372,38 @@
372
372
  "title": "Cost",
373
373
  "type": "Cost",
374
374
  "where": "this Transport Route incurs one Cost per kl",
375
- "role_id": "8ca58acf-67b4-4dff-ae7b-59e59a8632ef"
375
+ "role_id": "73DCFE2A-F68B-4457-9E51-0755CDE2D67E"
376
376
  }
377
377
  ]
378
378
  },
379
379
  "Year": {
380
380
  "is_main": false,
381
- "id": "a3f9303c-6fd9-42f8-b30d-ea0c41f32c82",
381
+ "id": "0A48198E-095F-4753-9662-8A4DEC436074",
382
382
  "functions": [
383
383
  {
384
384
  "title": "all Supply Period",
385
385
  "type": "Supply Period",
386
386
  "where": "some Supply Period is in this Year",
387
- "role_id": "bfb58f99-dd83-4458-9c72-bd67943e88bd",
387
+ "role_id": "69E48469-5D76-4E4D-B812-A0E54474112C",
388
388
  "is_list": true
389
389
  },
390
390
  {
391
391
  "title": "Year Nr",
392
392
  "type": "Year Nr",
393
393
  "where": "this Year has one Year Nr",
394
- "role_id": "b9487343-5c56-40fc-bd20-4f547d6f0ff6"
394
+ "role_id": "08CF37AA-D541-4ACD-9A99-54C5A6F9911A"
395
395
  }
396
396
  ]
397
397
  },
398
398
  "Year Nr": {
399
399
  "is_main": false,
400
- "id": "e28c77da-08ea-45a5-883b-5db08b734d49",
400
+ "id": "0DD79E94-57BB-4F44-A4B9-120CE7D21CD0",
401
401
  "functions": [
402
402
  {
403
403
  "title": "Year",
404
404
  "type": "Year",
405
405
  "where": "this Year Nr is of one Year",
406
- "role_id": "d0cf514c-5fe1-40ed-85d0-bff9018fae5f"
406
+ "role_id": "27166569-0EB0-4A91-8CA0-5474623875DE"
407
407
  }
408
408
  ]
409
409
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-examples
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activefacts-orm
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: activefacts-generators
71
85
  requirement: !ruby/object:Gem::Requirement