graffle 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/History.txt +5 -4
  2. data/Manifest.txt +13 -10
  3. data/Rakefile.hoe +1 -1
  4. data/examples/rails-workflow-test.expected +10 -0
  5. data/examples/rails-workflow-test.graffle/data.plist +1033 -0
  6. data/examples/rails-workflow-test.graffle/image1.png +0 -0
  7. data/examples/rails-workflow-test.graffle/image2.png +0 -0
  8. data/examples/rails-workflow-test.graffle/image3.png +0 -0
  9. data/examples/rails-workflow-test.rb +40 -0
  10. data/graffle.tmproj +431 -2
  11. data/lib/graffle/stereotypes.rb +15 -4
  12. data/lib/graffle/styled-text-reader.rb +3 -0
  13. data/lib/graffle/version.rb +1 -1
  14. data/lib/graphical_tests_for_rails.rb +25 -0
  15. data/lib/graphical_tests_for_rails/interpreters.rb +147 -0
  16. data/lib/graphical_tests_for_rails/orderings.rb +101 -0
  17. data/test/graffle-file-types/opening-tests.rb +0 -1
  18. data/test/graphical_tests_for_rails/graphic-interpreter-tests.rb +131 -0
  19. data/test/graphical_tests_for_rails/in-workflow-order-tests.rb +165 -0
  20. data/test/{grails-tests/commands-from-quoted-args-tests.rb → graphical_tests_for_rails/text-interpreter-tests.rb} +38 -27
  21. data/test/line-graphic-tests.rb +8 -0
  22. data/test/sheet-tests.rb +18 -0
  23. data/test/tests-of-examples/workflow-slowtests.rb +19 -0
  24. metadata +20 -18
  25. data/bin/bin-skeleton +0 -13
  26. data/lib/graffle/lib-skeleton +0 -3
  27. data/lib/grail_test.rb +0 -16
  28. data/lib/grail_test/command-interpreters.rb +0 -78
  29. data/test/grails-tests/destinations-tests.rb +0 -19
  30. data/test/grails-tests/do-nothing-commands-tests.rb +0 -18
  31. data/test/grails-tests/graphic-interpreter-tests.rb +0 -70
  32. data/test/grails-tests/translation-testcase.rb +0 -25
  33. data/test/test-skeleton +0 -19
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Created by Brian Marick on 2007-07-11.
4
+ # Copyright (c) 2007. All rights reserved.
5
+
6
+ ### The following adjusts the load path so that the correct version of
7
+ ### a library is found, no matter where the script is run from.
8
+
9
+ require 'pathname'
10
+ $:.unshift((Pathname.new(__FILE__).parent.parent + 'lib').to_s)
11
+ require 's4t-utils/load-path-auto-adjuster'
12
+
13
+ require 's4t-utils'
14
+ include S4tUtils
15
+
16
+ require 'graphical_tests_for_rails'
17
+ include GraphicalTestsForRails
18
+
19
+
20
+
21
+ class ImaginaryRailsUniverse
22
+ def method_missing(message, *args)
23
+ inspected_args = args.collect { |a| a.inspect }
24
+ puts "#{message}(#{inspected_args.join(', ')})"
25
+ end
26
+ end
27
+
28
+
29
+ if $0 == __FILE__
30
+ with_pleasant_exceptions do
31
+ test = File.dirname(__FILE__) + '/rails-workflow-test.graffle'
32
+ doc = Graffle.parse(test)
33
+ graphics = InWorkflowOrder.new(doc.first_sheet).graphics
34
+ interpreter = GraphicInterpreter.new(graphics,
35
+ 'line labels' => ArgsFromQuotedText.new,
36
+ 'shaped graphic text' => TextIsNameOfPage.new('assert_on_page'),
37
+ 'text...' => ArgsFromQuotedText.new)
38
+ interpreter.run_against(ImaginaryRailsUniverse.new)
39
+ end
40
+ end
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>currentDocument</key>
6
+ <string>examples/rails-workflow-test.expected</string>
5
7
  <key>documents</key>
6
8
  <array>
7
9
  <dict>
@@ -16,9 +18,436 @@
16
18
  </dict>
17
19
  </array>
18
20
  <key>fileHierarchyDrawerWidth</key>
19
- <integer>221</integer>
21
+ <integer>252</integer>
20
22
  <key>metaData</key>
21
- <dict/>
23
+ <dict>
24
+ <key>LICENSE.txt</key>
25
+ <dict>
26
+ <key>caret</key>
27
+ <dict>
28
+ <key>column</key>
29
+ <integer>8</integer>
30
+ <key>line</key>
31
+ <integer>14</integer>
32
+ </dict>
33
+ <key>firstVisibleColumn</key>
34
+ <integer>78</integer>
35
+ <key>firstVisibleLine</key>
36
+ <integer>0</integer>
37
+ </dict>
38
+ <key>Manifest.txt</key>
39
+ <dict>
40
+ <key>caret</key>
41
+ <dict>
42
+ <key>column</key>
43
+ <integer>0</integer>
44
+ <key>line</key>
45
+ <integer>45</integer>
46
+ </dict>
47
+ <key>firstVisibleColumn</key>
48
+ <integer>0</integer>
49
+ <key>firstVisibleLine</key>
50
+ <integer>14</integer>
51
+ </dict>
52
+ <key>README.txt</key>
53
+ <dict>
54
+ <key>caret</key>
55
+ <dict>
56
+ <key>column</key>
57
+ <integer>26</integer>
58
+ <key>line</key>
59
+ <integer>3</integer>
60
+ </dict>
61
+ <key>firstVisibleColumn</key>
62
+ <integer>0</integer>
63
+ <key>firstVisibleLine</key>
64
+ <integer>0</integer>
65
+ </dict>
66
+ <key>Rakefile</key>
67
+ <dict>
68
+ <key>caret</key>
69
+ <dict>
70
+ <key>column</key>
71
+ <integer>5</integer>
72
+ <key>line</key>
73
+ <integer>2</integer>
74
+ </dict>
75
+ <key>columnSelection</key>
76
+ <false/>
77
+ <key>firstVisibleColumn</key>
78
+ <integer>0</integer>
79
+ <key>firstVisibleLine</key>
80
+ <integer>0</integer>
81
+ <key>selectFrom</key>
82
+ <dict>
83
+ <key>column</key>
84
+ <integer>0</integer>
85
+ <key>line</key>
86
+ <integer>2</integer>
87
+ </dict>
88
+ <key>selectTo</key>
89
+ <dict>
90
+ <key>column</key>
91
+ <integer>12</integer>
92
+ <key>line</key>
93
+ <integer>2</integer>
94
+ </dict>
95
+ </dict>
96
+ <key>Rakefile.hoe</key>
97
+ <dict>
98
+ <key>caret</key>
99
+ <dict>
100
+ <key>column</key>
101
+ <integer>0</integer>
102
+ <key>line</key>
103
+ <integer>0</integer>
104
+ </dict>
105
+ <key>firstVisibleColumn</key>
106
+ <integer>0</integer>
107
+ <key>firstVisibleLine</key>
108
+ <integer>0</integer>
109
+ </dict>
110
+ <key>examples/rails-workflow-test.expected</key>
111
+ <dict>
112
+ <key>caret</key>
113
+ <dict>
114
+ <key>column</key>
115
+ <integer>0</integer>
116
+ <key>line</key>
117
+ <integer>10</integer>
118
+ </dict>
119
+ <key>firstVisibleColumn</key>
120
+ <integer>0</integer>
121
+ <key>firstVisibleLine</key>
122
+ <integer>0</integer>
123
+ </dict>
124
+ <key>examples/rails-workflow-test.graffle/data.plist</key>
125
+ <dict>
126
+ <key>caret</key>
127
+ <dict>
128
+ <key>column</key>
129
+ <integer>0</integer>
130
+ <key>line</key>
131
+ <integer>0</integer>
132
+ </dict>
133
+ <key>firstVisibleColumn</key>
134
+ <integer>0</integer>
135
+ <key>firstVisibleLine</key>
136
+ <integer>195</integer>
137
+ </dict>
138
+ <key>examples/rails-workflow-test.rb</key>
139
+ <dict>
140
+ <key>caret</key>
141
+ <dict>
142
+ <key>column</key>
143
+ <integer>0</integer>
144
+ <key>line</key>
145
+ <integer>37</integer>
146
+ </dict>
147
+ <key>columnSelection</key>
148
+ <false/>
149
+ <key>firstVisibleColumn</key>
150
+ <integer>0</integer>
151
+ <key>firstVisibleLine</key>
152
+ <integer>6</integer>
153
+ <key>selectFrom</key>
154
+ <dict>
155
+ <key>column</key>
156
+ <integer>0</integer>
157
+ <key>line</key>
158
+ <integer>34</integer>
159
+ </dict>
160
+ <key>selectTo</key>
161
+ <dict>
162
+ <key>column</key>
163
+ <integer>0</integer>
164
+ <key>line</key>
165
+ <integer>37</integer>
166
+ </dict>
167
+ </dict>
168
+ <key>lib/graffle/point.rb</key>
169
+ <dict>
170
+ <key>caret</key>
171
+ <dict>
172
+ <key>column</key>
173
+ <integer>14</integer>
174
+ <key>line</key>
175
+ <integer>6</integer>
176
+ </dict>
177
+ <key>firstVisibleColumn</key>
178
+ <integer>0</integer>
179
+ <key>firstVisibleLine</key>
180
+ <integer>0</integer>
181
+ </dict>
182
+ <key>lib/graffle/stereotypes.rb</key>
183
+ <dict>
184
+ <key>caret</key>
185
+ <dict>
186
+ <key>column</key>
187
+ <integer>35</integer>
188
+ <key>line</key>
189
+ <integer>322</integer>
190
+ </dict>
191
+ <key>firstVisibleColumn</key>
192
+ <integer>0</integer>
193
+ <key>firstVisibleLine</key>
194
+ <integer>314</integer>
195
+ </dict>
196
+ <key>lib/graffle/styled-text-reader.rb</key>
197
+ <dict>
198
+ <key>caret</key>
199
+ <dict>
200
+ <key>column</key>
201
+ <integer>39</integer>
202
+ <key>line</key>
203
+ <integer>6</integer>
204
+ </dict>
205
+ <key>firstVisibleColumn</key>
206
+ <integer>0</integer>
207
+ <key>firstVisibleLine</key>
208
+ <integer>15</integer>
209
+ </dict>
210
+ <key>lib/graphical_tests_for_rails.rb</key>
211
+ <dict>
212
+ <key>caret</key>
213
+ <dict>
214
+ <key>column</key>
215
+ <integer>35</integer>
216
+ <key>line</key>
217
+ <integer>9</integer>
218
+ </dict>
219
+ <key>firstVisibleColumn</key>
220
+ <integer>0</integer>
221
+ <key>firstVisibleLine</key>
222
+ <integer>0</integer>
223
+ </dict>
224
+ <key>lib/graphical_tests_for_rails/interpreters.rb</key>
225
+ <dict>
226
+ <key>caret</key>
227
+ <dict>
228
+ <key>column</key>
229
+ <integer>29</integer>
230
+ <key>line</key>
231
+ <integer>59</integer>
232
+ </dict>
233
+ <key>firstVisibleColumn</key>
234
+ <integer>0</integer>
235
+ <key>firstVisibleLine</key>
236
+ <integer>39</integer>
237
+ </dict>
238
+ <key>lib/graphical_tests_for_rails/orderings.rb</key>
239
+ <dict>
240
+ <key>caret</key>
241
+ <dict>
242
+ <key>column</key>
243
+ <integer>67</integer>
244
+ <key>line</key>
245
+ <integer>23</integer>
246
+ </dict>
247
+ <key>columnSelection</key>
248
+ <false/>
249
+ <key>firstVisibleColumn</key>
250
+ <integer>0</integer>
251
+ <key>firstVisibleLine</key>
252
+ <integer>6</integer>
253
+ <key>selectFrom</key>
254
+ <dict>
255
+ <key>column</key>
256
+ <integer>65</integer>
257
+ <key>line</key>
258
+ <integer>23</integer>
259
+ </dict>
260
+ <key>selectTo</key>
261
+ <dict>
262
+ <key>column</key>
263
+ <integer>67</integer>
264
+ <key>line</key>
265
+ <integer>23</integer>
266
+ </dict>
267
+ </dict>
268
+ <key>setup.rb</key>
269
+ <dict>
270
+ <key>caret</key>
271
+ <dict>
272
+ <key>column</key>
273
+ <integer>22</integer>
274
+ <key>line</key>
275
+ <integer>1356</integer>
276
+ </dict>
277
+ <key>firstVisibleColumn</key>
278
+ <integer>0</integer>
279
+ <key>firstVisibleLine</key>
280
+ <integer>1167</integer>
281
+ </dict>
282
+ <key>test/abstract-graphic-tests.rb</key>
283
+ <dict>
284
+ <key>caret</key>
285
+ <dict>
286
+ <key>column</key>
287
+ <integer>0</integer>
288
+ <key>line</key>
289
+ <integer>34</integer>
290
+ </dict>
291
+ <key>firstVisibleColumn</key>
292
+ <integer>0</integer>
293
+ <key>firstVisibleLine</key>
294
+ <integer>17</integer>
295
+ </dict>
296
+ <key>test/array-and-hash-stereotyping-tests.rb</key>
297
+ <dict>
298
+ <key>caret</key>
299
+ <dict>
300
+ <key>column</key>
301
+ <integer>0</integer>
302
+ <key>line</key>
303
+ <integer>5</integer>
304
+ </dict>
305
+ <key>firstVisibleColumn</key>
306
+ <integer>0</integer>
307
+ <key>firstVisibleLine</key>
308
+ <integer>0</integer>
309
+ </dict>
310
+ <key>test/graffle-file-types/opening-tests.rb</key>
311
+ <dict>
312
+ <key>caret</key>
313
+ <dict>
314
+ <key>column</key>
315
+ <integer>0</integer>
316
+ <key>line</key>
317
+ <integer>9</integer>
318
+ </dict>
319
+ <key>firstVisibleColumn</key>
320
+ <integer>0</integer>
321
+ <key>firstVisibleLine</key>
322
+ <integer>0</integer>
323
+ </dict>
324
+ <key>test/graphical_tests_for_rails/graphic-interpreter-tests.rb</key>
325
+ <dict>
326
+ <key>caret</key>
327
+ <dict>
328
+ <key>column</key>
329
+ <integer>25</integer>
330
+ <key>line</key>
331
+ <integer>83</integer>
332
+ </dict>
333
+ <key>firstVisibleColumn</key>
334
+ <integer>0</integer>
335
+ <key>firstVisibleLine</key>
336
+ <integer>69</integer>
337
+ </dict>
338
+ <key>test/graphical_tests_for_rails/in-workflow-order-tests.rb</key>
339
+ <dict>
340
+ <key>caret</key>
341
+ <dict>
342
+ <key>column</key>
343
+ <integer>0</integer>
344
+ <key>line</key>
345
+ <integer>0</integer>
346
+ </dict>
347
+ <key>firstVisibleColumn</key>
348
+ <integer>0</integer>
349
+ <key>firstVisibleLine</key>
350
+ <integer>0</integer>
351
+ </dict>
352
+ <key>test/graphical_tests_for_rails/text-interpreter-tests.rb</key>
353
+ <dict>
354
+ <key>caret</key>
355
+ <dict>
356
+ <key>column</key>
357
+ <integer>0</integer>
358
+ <key>line</key>
359
+ <integer>0</integer>
360
+ </dict>
361
+ <key>firstVisibleColumn</key>
362
+ <integer>0</integer>
363
+ <key>firstVisibleLine</key>
364
+ <integer>54</integer>
365
+ </dict>
366
+ <key>test/line-graphic-tests.rb</key>
367
+ <dict>
368
+ <key>caret</key>
369
+ <dict>
370
+ <key>column</key>
371
+ <integer>0</integer>
372
+ <key>line</key>
373
+ <integer>0</integer>
374
+ </dict>
375
+ <key>firstVisibleColumn</key>
376
+ <integer>0</integer>
377
+ <key>firstVisibleLine</key>
378
+ <integer>88</integer>
379
+ </dict>
380
+ <key>test/set-standalone-test-paths.rb</key>
381
+ <dict>
382
+ <key>caret</key>
383
+ <dict>
384
+ <key>column</key>
385
+ <integer>0</integer>
386
+ <key>line</key>
387
+ <integer>5</integer>
388
+ </dict>
389
+ <key>firstVisibleColumn</key>
390
+ <integer>0</integer>
391
+ <key>firstVisibleLine</key>
392
+ <integer>0</integer>
393
+ </dict>
394
+ <key>test/shaped-graphic-tests.rb</key>
395
+ <dict>
396
+ <key>caret</key>
397
+ <dict>
398
+ <key>column</key>
399
+ <integer>0</integer>
400
+ <key>line</key>
401
+ <integer>0</integer>
402
+ </dict>
403
+ <key>firstVisibleColumn</key>
404
+ <integer>0</integer>
405
+ <key>firstVisibleLine</key>
406
+ <integer>0</integer>
407
+ </dict>
408
+ <key>test/tests-of-examples/workflow-slowtests.rb</key>
409
+ <dict>
410
+ <key>caret</key>
411
+ <dict>
412
+ <key>column</key>
413
+ <integer>44</integer>
414
+ <key>line</key>
415
+ <integer>11</integer>
416
+ </dict>
417
+ <key>firstVisibleColumn</key>
418
+ <integer>0</integer>
419
+ <key>firstVisibleLine</key>
420
+ <integer>0</integer>
421
+ </dict>
422
+ </dict>
423
+ <key>openDocuments</key>
424
+ <array>
425
+ <string>examples/rails-workflow-test.expected</string>
426
+ <string>test/line-graphic-tests.rb</string>
427
+ <string>lib/graffle/stereotypes.rb</string>
428
+ <string>test/array-and-hash-stereotyping-tests.rb</string>
429
+ <string>LICENSE.txt</string>
430
+ <string>Manifest.txt</string>
431
+ <string>lib/graphical_tests_for_rails/orderings.rb</string>
432
+ <string>examples/rails-workflow-test.graffle/data.plist</string>
433
+ <string>lib/graphical_tests_for_rails/interpreters.rb</string>
434
+ <string>test/graffle-file-types/opening-tests.rb</string>
435
+ <string>examples/rails-workflow-test.rb</string>
436
+ <string>test/abstract-graphic-tests.rb</string>
437
+ <string>lib/graffle/point.rb</string>
438
+ <string>lib/graffle/styled-text-reader.rb</string>
439
+ <string>test/graphical_tests_for_rails/text-interpreter-tests.rb</string>
440
+ <string>test/graphical_tests_for_rails/graphic-interpreter-tests.rb</string>
441
+ <string>test/tests-of-examples/workflow-slowtests.rb</string>
442
+ <string>test/set-standalone-test-paths.rb</string>
443
+ <string>test/shaped-graphic-tests.rb</string>
444
+ <string>test/graphical_tests_for_rails/in-workflow-order-tests.rb</string>
445
+ <string>Rakefile</string>
446
+ <string>Rakefile.hoe</string>
447
+ <string>README.txt</string>
448
+ <string>setup.rb</string>
449
+ <string>lib/graphical_tests_for_rails.rb</string>
450
+ </array>
22
451
  <key>showFileHierarchyDrawer</key>
23
452
  <true/>
24
453
  <key>windowFrame</key>