graffle 0.1.0 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/History.txt +5 -0
  2. data/LICENSE.txt +2 -2
  3. data/Manifest.txt +7 -15
  4. data/Rakefile +5 -10
  5. data/Rakefile.hoe +9 -4
  6. data/bin/bin-skeleton +1 -11
  7. data/graffle.tmproj +2 -310
  8. data/lib/graffle/stereotypes.rb +32 -19
  9. data/lib/graffle/styled-text-reader.rb +0 -5
  10. data/lib/graffle/version.rb +1 -1
  11. data/lib/grail_test.rb +16 -0
  12. data/lib/grail_test/command-interpreters.rb +78 -0
  13. data/test/grails-tests/commands-from-quoted-args-tests.rb +86 -0
  14. data/test/grails-tests/destinations-tests.rb +19 -0
  15. data/test/grails-tests/do-nothing-commands-tests.rb +18 -0
  16. data/test/grails-tests/graphic-interpreter-tests.rb +70 -0
  17. data/test/grails-tests/translation-testcase.rb +25 -0
  18. data/test/line-graphic-tests.rb +10 -0
  19. data/test/set-standalone-test-paths.rb +4 -1
  20. data/test/shaped-graphic-tests.rb +6 -2
  21. data/test/styled-text-reader-tests.rb +0 -12
  22. data/test/text-tests.rb +9 -5
  23. metadata +25 -20
  24. data/lib/graffle/third-party/s4t-utils.rb +0 -21
  25. data/lib/graffle/third-party/s4t-utils/capturing-globals.rb +0 -78
  26. data/lib/graffle/third-party/s4t-utils/claims.rb +0 -14
  27. data/lib/graffle/third-party/s4t-utils/command-line.rb +0 -15
  28. data/lib/graffle/third-party/s4t-utils/error-handling.rb +0 -20
  29. data/lib/graffle/third-party/s4t-utils/friendly-format.rb +0 -27
  30. data/lib/graffle/third-party/s4t-utils/hacks.rb +0 -32
  31. data/lib/graffle/third-party/s4t-utils/load-path-auto-adjuster.rb +0 -120
  32. data/lib/graffle/third-party/s4t-utils/more-assertions.rb +0 -29
  33. data/lib/graffle/third-party/s4t-utils/os.rb +0 -28
  34. data/lib/graffle/third-party/s4t-utils/rake-task-helpers.rb +0 -75
  35. data/lib/graffle/third-party/s4t-utils/rakefile-common.rb +0 -106
  36. data/lib/graffle/third-party/s4t-utils/svn-file-movement.rb +0 -101
  37. data/lib/graffle/third-party/s4t-utils/test-util.rb +0 -19
  38. data/lib/graffle/third-party/s4t-utils/version.rb +0 -3
data/History.txt CHANGED
@@ -1,2 +1,7 @@
1
+ Version 0.1.7
2
+ * Use the s4t-utils gem instead of including it.
3
+ * Beginning support for converting text to method calls
4
+ (under grails_test)
5
+
1
6
  Version 0.1.0
2
7
  * Basic version can talk about lines, boxes, sheets, etc.
data/LICENSE.txt CHANGED
@@ -11,8 +11,8 @@ You can redistribute it and/or modify it under either the terms of the GNU Gener
11
11
 
12
12
  a) place your modifications in the Public Domain or otherwise
13
13
  make them Freely Available, such as by posting said
14
- modifications to Usenet or an equivalent medium, or by allowing
15
- the author to include your modifications in the software.
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
16
 
17
17
  b) use the modified software only within your corporation or
18
18
  organization.
data/Manifest.txt CHANGED
@@ -13,22 +13,9 @@ lib/graffle/nodoc/hacks.rb
13
13
  lib/graffle/point.rb
14
14
  lib/graffle/stereotypes.rb
15
15
  lib/graffle/styled-text-reader.rb
16
- lib/graffle/third-party/s4t-utils.rb
17
- lib/graffle/third-party/s4t-utils/capturing-globals.rb
18
- lib/graffle/third-party/s4t-utils/claims.rb
19
- lib/graffle/third-party/s4t-utils/command-line.rb
20
- lib/graffle/third-party/s4t-utils/error-handling.rb
21
- lib/graffle/third-party/s4t-utils/friendly-format.rb
22
- lib/graffle/third-party/s4t-utils/hacks.rb
23
- lib/graffle/third-party/s4t-utils/load-path-auto-adjuster.rb
24
- lib/graffle/third-party/s4t-utils/more-assertions.rb
25
- lib/graffle/third-party/s4t-utils/os.rb
26
- lib/graffle/third-party/s4t-utils/rake-task-helpers.rb
27
- lib/graffle/third-party/s4t-utils/rakefile-common.rb
28
- lib/graffle/third-party/s4t-utils/svn-file-movement.rb
29
- lib/graffle/third-party/s4t-utils/test-util.rb
30
- lib/graffle/third-party/s4t-utils/version.rb
31
16
  lib/graffle/version.rb
17
+ lib/grail_test.rb
18
+ lib/grail_test/command-interpreters.rb
32
19
  setup.rb
33
20
  test/abstract-graphic-tests.rb
34
21
  test/array-and-hash-stereotyping-tests.rb
@@ -40,6 +27,11 @@ test/graffle-file-types/as-a-package.graffle/image3.png
40
27
  test/graffle-file-types/multiple-canvases.graffle
41
28
  test/graffle-file-types/opening-tests.rb
42
29
  test/graffle-file-types/two-boxes-and-a-line.graffle
30
+ test/grails-tests/commands-from-quoted-args-tests.rb
31
+ test/grails-tests/destinations-tests.rb
32
+ test/grails-tests/do-nothing-commands-tests.rb
33
+ test/grails-tests/graphic-interpreter-tests.rb
34
+ test/grails-tests/translation-testcase.rb
43
35
  test/group-tests.rb
44
36
  test/hacks-tests.rb
45
37
  test/line-graphic-tests.rb
data/Rakefile CHANGED
@@ -1,21 +1,12 @@
1
- # This is a Rakefile that would live in the root folder for any package
2
- # that follows the Scripting for Testers conventions. You should not need
3
- # to edit it.
4
-
5
1
  $started_from_rakefile=true
6
2
 
7
- require 'pathname'
8
3
  PACKAGE_ROOT = Dir.pwd
9
4
  $:.unshift("#{PACKAGE_ROOT}/lib")
10
- require 'graffle/third-party/s4t-utils/load-path-auto-adjuster'
5
+ $:.unshift(PACKAGE_ROOT)
11
6
 
12
7
  require 's4t-utils'
13
8
  include S4tUtils
14
9
 
15
- # The following two lines are used to tell generic Rake tasks about
16
- # this particular project. If you installed using the s4t-utils
17
- # installation tool, they should have already been set correctly.
18
-
19
10
  MyFileSystemName='graffle' # No ".rb" extension.
20
11
  MyModuleName='Graffle'
21
12
 
@@ -30,3 +21,7 @@ MyRdocFiles = FileList.new("lib/graffle.rb",
30
21
 
31
22
  require 's4t-utils/rakefile-common'
32
23
 
24
+ desc "Push new version of project homepage."
25
+ task 'homepage' do
26
+ `cd homepage; scp * marick@rubyforge.org:/var/www/gforge-projects/#{MyFileSystemName}/`
27
+ end
data/Rakefile.hoe CHANGED
@@ -4,7 +4,7 @@
4
4
  # Copyright (c) 2007. All rights reserved.
5
5
 
6
6
  require 'hoe'
7
- require 'graffle/version'
7
+ require 'lib/graffle/version'
8
8
 
9
9
  def second_level_to_document
10
10
  files = File.read("lib/graffle/.document").split
@@ -13,11 +13,16 @@ end
13
13
 
14
14
  Hoe.new("graffle", Graffle::Version) do |p|
15
15
  p.rubyforge_name = "graffle"
16
+ p.changes = "See History.txt"
16
17
  p.author = "Brian Marick"
17
- p.description = "Working with OmniGraffle documents."
18
+ p.description = "Working with OmniGraffle documents, including support for Rails integration tests."
19
+ p.summary = p.description
18
20
  p.email = "marick@exampler.com"
19
21
  p.extra_deps = [['extensions', '>= 0.6.0'],
20
- ['plist', '>= 3.0.0']]
22
+ ['plist', '>= 3.0.0'],
23
+ ['s4t-utils', '>= 1.0.0']]
21
24
  p.test_globs = "test/**/*-tests.rb"
22
- p.rdoc_pattern = %r{README.txt|History.txt|lib/graffle.rb|#{second_level_to_document}}
25
+ p.rdoc_pattern = %r{README.txt|History.txt|lib/grail_test.rb|lib/graffle.rb|#{second_level_to_document}|lib/grail_test/.+\.rb}
26
+ p.url = "http://graffle.rubyforge.org"
27
+ p.remote_rdoc_dir = 'rdoc'
23
28
  end
data/bin/bin-skeleton CHANGED
@@ -1,20 +1,10 @@
1
1
  #! /opt/local/bin/ruby
2
2
 
3
- ### The following adjusts the load path so that the correct version of
4
- ### a self-contained package is found, no matter where the script is
5
- ### run from.
6
- require 'pathname'
7
- $:.unshift((Pathname.new(__FILE__).parent.parent + 'lib').to_s)
8
- require 'graffle/third-party/s4t-utils/load-path-auto-adjuster'
9
-
10
-
11
3
  require 's4t-utils'
12
4
  include S4tUtils
13
5
 
14
6
  require 'graffle'
15
- # You probably want to include your module as well, but I won't assume
16
- # that.
17
- # include Graffle
7
+ include Graffle
18
8
 
19
9
  if $0 == __FILE__
20
10
  with_pleasant_exceptions do
data/graffle.tmproj CHANGED
@@ -2,8 +2,6 @@
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>test/line-graphic-tests.rb</string>
7
5
  <key>documents</key>
8
6
  <array>
9
7
  <dict>
@@ -13,320 +11,14 @@
13
11
  <string>graffle</string>
14
12
  <key>regexFolderFilter</key>
15
13
  <string>!.*/(\.[^/]*|CVS|third-party|pkg|doc|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
16
- <key>selected</key>
17
- <true/>
18
14
  <key>sourceDirectory</key>
19
15
  <string></string>
20
16
  </dict>
21
17
  </array>
22
18
  <key>fileHierarchyDrawerWidth</key>
23
- <integer>200</integer>
19
+ <integer>221</integer>
24
20
  <key>metaData</key>
25
- <dict>
26
- <key>README.txt</key>
27
- <dict>
28
- <key>caret</key>
29
- <dict>
30
- <key>column</key>
31
- <integer>15</integer>
32
- <key>line</key>
33
- <integer>15</integer>
34
- </dict>
35
- <key>firstVisibleColumn</key>
36
- <integer>0</integer>
37
- <key>firstVisibleLine</key>
38
- <integer>0</integer>
39
- </dict>
40
- <key>Rakefile</key>
41
- <dict>
42
- <key>caret</key>
43
- <dict>
44
- <key>column</key>
45
- <integer>22</integer>
46
- <key>line</key>
47
- <integer>7</integer>
48
- </dict>
49
- <key>firstVisibleColumn</key>
50
- <integer>0</integer>
51
- <key>firstVisibleLine</key>
52
- <integer>0</integer>
53
- </dict>
54
- <key>lib/graffle/nodoc/hacks.rb</key>
55
- <dict>
56
- <key>caret</key>
57
- <dict>
58
- <key>column</key>
59
- <integer>5</integer>
60
- <key>line</key>
61
- <integer>39</integer>
62
- </dict>
63
- <key>firstVisibleColumn</key>
64
- <integer>0</integer>
65
- <key>firstVisibleLine</key>
66
- <integer>14</integer>
67
- </dict>
68
- <key>lib/graffle/stereotypes.rb</key>
69
- <dict>
70
- <key>caret</key>
71
- <dict>
72
- <key>column</key>
73
- <integer>27</integer>
74
- <key>line</key>
75
- <integer>170</integer>
76
- </dict>
77
- <key>firstVisibleColumn</key>
78
- <integer>0</integer>
79
- <key>firstVisibleLine</key>
80
- <integer>150</integer>
81
- </dict>
82
- <key>lib/graffle/styled-text-reader.rb</key>
83
- <dict>
84
- <key>caret</key>
85
- <dict>
86
- <key>column</key>
87
- <integer>0</integer>
88
- <key>line</key>
89
- <integer>9</integer>
90
- </dict>
91
- <key>firstVisibleColumn</key>
92
- <integer>0</integer>
93
- <key>firstVisibleLine</key>
94
- <integer>0</integer>
95
- </dict>
96
- <key>test/abstract-graphic-tests.rb</key>
97
- <dict>
98
- <key>caret</key>
99
- <dict>
100
- <key>column</key>
101
- <integer>49</integer>
102
- <key>line</key>
103
- <integer>10</integer>
104
- </dict>
105
- <key>firstVisibleColumn</key>
106
- <integer>0</integer>
107
- <key>firstVisibleLine</key>
108
- <integer>0</integer>
109
- </dict>
110
- <key>test/array-and-hash-stereotyping-tests.rb</key>
111
- <dict>
112
- <key>caret</key>
113
- <dict>
114
- <key>column</key>
115
- <integer>25</integer>
116
- <key>line</key>
117
- <integer>29</integer>
118
- </dict>
119
- <key>firstVisibleColumn</key>
120
- <integer>0</integer>
121
- <key>firstVisibleLine</key>
122
- <integer>0</integer>
123
- </dict>
124
- <key>test/document-tests.rb</key>
125
- <dict>
126
- <key>caret</key>
127
- <dict>
128
- <key>column</key>
129
- <integer>0</integer>
130
- <key>line</key>
131
- <integer>106</integer>
132
- </dict>
133
- <key>firstVisibleColumn</key>
134
- <integer>0</integer>
135
- <key>firstVisibleLine</key>
136
- <integer>0</integer>
137
- </dict>
138
- <key>test/graffle-file-types/as-a-package.graffle/data.plist</key>
139
- <dict>
140
- <key>caret</key>
141
- <dict>
142
- <key>column</key>
143
- <integer>18</integer>
144
- <key>line</key>
145
- <integer>560</integer>
146
- </dict>
147
- <key>firstVisibleColumn</key>
148
- <integer>0</integer>
149
- <key>firstVisibleLine</key>
150
- <integer>525</integer>
151
- </dict>
152
- <key>test/graffle-file-types/multiple-canvases.graffle</key>
153
- <dict>
154
- <key>caret</key>
155
- <dict>
156
- <key>column</key>
157
- <integer>20</integer>
158
- <key>line</key>
159
- <integer>599</integer>
160
- </dict>
161
- <key>firstVisibleColumn</key>
162
- <integer>0</integer>
163
- <key>firstVisibleLine</key>
164
- <integer>559</integer>
165
- </dict>
166
- <key>test/graffle-file-types/opening-tests.rb</key>
167
- <dict>
168
- <key>caret</key>
169
- <dict>
170
- <key>column</key>
171
- <integer>65</integer>
172
- <key>line</key>
173
- <integer>26</integer>
174
- </dict>
175
- <key>firstVisibleColumn</key>
176
- <integer>0</integer>
177
- <key>firstVisibleLine</key>
178
- <integer>3</integer>
179
- </dict>
180
- <key>test/graffle-file-types/two-boxes-and-a-line.graffle</key>
181
- <dict>
182
- <key>caret</key>
183
- <dict>
184
- <key>column</key>
185
- <integer>0</integer>
186
- <key>line</key>
187
- <integer>0</integer>
188
- </dict>
189
- <key>firstVisibleColumn</key>
190
- <integer>0</integer>
191
- <key>firstVisibleLine</key>
192
- <integer>0</integer>
193
- </dict>
194
- <key>test/group-tests.rb</key>
195
- <dict>
196
- <key>caret</key>
197
- <dict>
198
- <key>column</key>
199
- <integer>26</integer>
200
- <key>line</key>
201
- <integer>12</integer>
202
- </dict>
203
- <key>firstVisibleColumn</key>
204
- <integer>0</integer>
205
- <key>firstVisibleLine</key>
206
- <integer>0</integer>
207
- </dict>
208
- <key>test/hacks-tests.rb</key>
209
- <dict>
210
- <key>caret</key>
211
- <dict>
212
- <key>column</key>
213
- <integer>28</integer>
214
- <key>line</key>
215
- <integer>42</integer>
216
- </dict>
217
- <key>firstVisibleColumn</key>
218
- <integer>0</integer>
219
- <key>firstVisibleLine</key>
220
- <integer>19</integer>
221
- </dict>
222
- <key>test/line-graphic-tests.rb</key>
223
- <dict>
224
- <key>caret</key>
225
- <dict>
226
- <key>column</key>
227
- <integer>4</integer>
228
- <key>line</key>
229
- <integer>91</integer>
230
- </dict>
231
- <key>firstVisibleColumn</key>
232
- <integer>0</integer>
233
- <key>firstVisibleLine</key>
234
- <integer>57</integer>
235
- </dict>
236
- <key>test/shaped-graphic-tests.rb</key>
237
- <dict>
238
- <key>caret</key>
239
- <dict>
240
- <key>column</key>
241
- <integer>0</integer>
242
- <key>line</key>
243
- <integer>18</integer>
244
- </dict>
245
- <key>firstVisibleColumn</key>
246
- <integer>0</integer>
247
- <key>firstVisibleLine</key>
248
- <integer>0</integer>
249
- </dict>
250
- <key>test/sheet-tests.rb</key>
251
- <dict>
252
- <key>caret</key>
253
- <dict>
254
- <key>column</key>
255
- <integer>3</integer>
256
- <key>line</key>
257
- <integer>121</integer>
258
- </dict>
259
- <key>firstVisibleColumn</key>
260
- <integer>0</integer>
261
- <key>firstVisibleLine</key>
262
- <integer>87</integer>
263
- </dict>
264
- <key>test/styled-text-reader-tests.rb</key>
265
- <dict>
266
- <key>caret</key>
267
- <dict>
268
- <key>column</key>
269
- <integer>37</integer>
270
- <key>line</key>
271
- <integer>41</integer>
272
- </dict>
273
- <key>firstVisibleColumn</key>
274
- <integer>0</integer>
275
- <key>firstVisibleLine</key>
276
- <integer>16</integer>
277
- </dict>
278
- <key>test/test-skeleton</key>
279
- <dict>
280
- <key>caret</key>
281
- <dict>
282
- <key>column</key>
283
- <integer>0</integer>
284
- <key>line</key>
285
- <integer>12</integer>
286
- </dict>
287
- <key>firstVisibleColumn</key>
288
- <integer>0</integer>
289
- <key>firstVisibleLine</key>
290
- <integer>0</integer>
291
- </dict>
292
- <key>test/text-tests.rb</key>
293
- <dict>
294
- <key>caret</key>
295
- <dict>
296
- <key>column</key>
297
- <integer>0</integer>
298
- <key>line</key>
299
- <integer>28</integer>
300
- </dict>
301
- <key>firstVisibleColumn</key>
302
- <integer>0</integer>
303
- <key>firstVisibleLine</key>
304
- <integer>0</integer>
305
- </dict>
306
- </dict>
307
- <key>openDocuments</key>
308
- <array>
309
- <string>test/graffle-file-types/as-a-package.graffle/data.plist</string>
310
- <string>test/styled-text-reader-tests.rb</string>
311
- <string>test/test-skeleton</string>
312
- <string>Rakefile</string>
313
- <string>test/graffle-file-types/multiple-canvases.graffle</string>
314
- <string>test/hacks-tests.rb</string>
315
- <string>test/line-graphic-tests.rb</string>
316
- <string>lib/graffle/stereotypes.rb</string>
317
- <string>test/abstract-graphic-tests.rb</string>
318
- <string>test/graffle-file-types/opening-tests.rb</string>
319
- <string>test/graffle-file-types/two-boxes-and-a-line.graffle</string>
320
- <string>README.txt</string>
321
- <string>test/group-tests.rb</string>
322
- <string>test/document-tests.rb</string>
323
- <string>lib/graffle/styled-text-reader.rb</string>
324
- <string>test/shaped-graphic-tests.rb</string>
325
- <string>lib/graffle/nodoc/hacks.rb</string>
326
- <string>test/array-and-hash-stereotyping-tests.rb</string>
327
- <string>test/sheet-tests.rb</string>
328
- <string>test/text-tests.rb</string>
329
- </array>
21
+ <dict/>
330
22
  <key>showFileHierarchyDrawer</key>
331
23
  <true/>
332
24
  <key>windowFrame</key>