mayday 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +46 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +80 -0
  6. data/Rakefile +2 -0
  7. data/bin/mayday +33 -0
  8. data/lib/mayday/abstract_flag/error.rb +7 -0
  9. data/lib/mayday/abstract_flag/warning.rb +11 -0
  10. data/lib/mayday/abstract_flag.rb +90 -0
  11. data/lib/mayday/error.rb +7 -0
  12. data/lib/mayday/reader.rb +108 -0
  13. data/lib/mayday/script_generator.rb +74 -0
  14. data/lib/mayday/target_integrator.rb +69 -0
  15. data/lib/mayday/user_definitions.rb +42 -0
  16. data/lib/mayday/version.rb +3 -0
  17. data/lib/mayday/warning.rb +11 -0
  18. data/lib/mayday.rb +2 -0
  19. data/mayday.gemspec +30 -0
  20. data/spec/fixtures/Fixtures/Fixtures/AppDelegate.swift +46 -0
  21. data/spec/fixtures/Fixtures/Fixtures/Base.lproj/LaunchScreen.xib +41 -0
  22. data/spec/fixtures/Fixtures/Fixtures/Base.lproj/Main.storyboard +25 -0
  23. data/spec/fixtures/Fixtures/Fixtures/Excluded/ExcludedFile.h +13 -0
  24. data/spec/fixtures/Fixtures/Fixtures/Excluded/ExcludedFile.m +15 -0
  25. data/spec/fixtures/Fixtures/Fixtures/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  26. data/spec/fixtures/Fixtures/Fixtures/Info.plist +40 -0
  27. data/spec/fixtures/Fixtures/Fixtures/Pods/SomePodObject.h +13 -0
  28. data/spec/fixtures/Fixtures/Fixtures/Pods/SomePodObject.m +16 -0
  29. data/spec/fixtures/Fixtures/Fixtures/SomeDir/Fixtures-Bridging-Header.h +4 -0
  30. data/spec/fixtures/Fixtures/Fixtures/SomeDir/LongFile.h +5 -0
  31. data/spec/fixtures/Fixtures/Fixtures/SomeDir/LongFile.m +547 -0
  32. data/spec/fixtures/Fixtures/Fixtures/SomeDir/SomeObject.h +15 -0
  33. data/spec/fixtures/Fixtures/Fixtures/SomeDir/SomeObject.m +18 -0
  34. data/spec/fixtures/Fixtures/Fixtures/ViewController.swift +26 -0
  35. data/spec/fixtures/Fixtures/Fixtures.xcodeproj/project.pbxproj +487 -0
  36. data/spec/fixtures/Fixtures/Fixtures.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  37. data/spec/fixtures/Fixtures/Fixtures.xcodeproj/xcuserdata/marklarsen.xcuserdatad/xcschemes/Fixtures.xcscheme +110 -0
  38. data/spec/fixtures/Fixtures/FixturesTests/FixturesTests.swift +36 -0
  39. data/spec/fixtures/Fixtures/FixturesTests/Info.plist +24 -0
  40. data/spec/fixtures/Maydayfile +22 -0
  41. data/spec/fixtures/Maydayfile_ruby_error +11 -0
  42. data/spec/mayday/user_definitions_spec.rb +177 -0
  43. data/spec/spec_helper.rb +16 -0
  44. metadata +223 -0
@@ -0,0 +1,547 @@
1
+ //
2
+ // LongFile.m
3
+ // Fixtures
4
+ //
5
+ // Created by Mark Larsen on 10/19/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "LongFile.h"
10
+
11
+ @implementation LongFile
12
+
13
+ @end
14
+
15
+ //
16
+ // LongFile.m
17
+ // Fixtures
18
+ //
19
+ // Created by Mark Larsen on 10/19/14.//
20
+ // LongFile.m
21
+ // Fixtures
22
+ //
23
+ // Created by Mark Larsen on 10/19/14.//
24
+ // LongFile.m
25
+ // Fixtures
26
+ //
27
+ // Created by Mark Larsen on 10/19/14.//
28
+ // LongFile.m
29
+ // Fixtures
30
+ //
31
+ // Created by Mark Larsen on 10/19/14.//
32
+ // LongFile.m
33
+ // Fixtures
34
+ //
35
+ // Created by Mark Larsen on 10/19/14.//
36
+ // LongFile.m
37
+ // Fixtures
38
+ //
39
+ // Created by Mark Larsen on 10/19/14.//
40
+ // LongFile.m
41
+ // Fixtures
42
+ //
43
+ // Created by Mark Larsen on 10/19/14.//
44
+ // LongFile.m
45
+ // Fixtures
46
+ //
47
+ // Created by Mark Larsen on 10/19/14.//
48
+ // LongFile.m
49
+ // Fixtures
50
+ //
51
+ // Created by Mark Larsen on 10/19/14.//
52
+ // LongFile.m
53
+ // Fixtures
54
+ //
55
+ // Created by Mark Larsen on 10/19/14.//
56
+ // LongFile.m
57
+ // Fixtures
58
+ //
59
+ // Created by Mark Larsen on 10/19/14.//
60
+ // LongFile.m
61
+ // Fixtures
62
+ //
63
+ // Created by Mark Larsen on 10/19/14.//
64
+ // LongFile.m
65
+ // Fixtures
66
+ //
67
+ // Created by Mark Larsen on 10/19/14.//
68
+ // LongFile.m
69
+ // Fixtures
70
+ //
71
+ // Created by Mark Larsen on 10/19/14.//
72
+ // LongFile.m
73
+ // Fixtures
74
+ //
75
+ // Created by Mark Larsen on 10/19/14.//
76
+ // LongFile.m
77
+ // Fixtures
78
+ //
79
+ // Created by Mark Larsen on 10/19/14.//
80
+ // LongFile.m
81
+ // Fixtures
82
+ //
83
+ // Created by Mark Larsen on 10/19/14.//
84
+ // LongFile.m
85
+ // Fixtures
86
+ //
87
+ // Created by Mark Larsen on 10/19/14.//
88
+ // LongFile.m
89
+ // Fixtures
90
+ //
91
+ // Created by Mark Larsen on 10/19/14.//
92
+ // LongFile.m
93
+ // Fixtures
94
+ //
95
+ // Created by Mark Larsen on 10/19/14.//
96
+ // LongFile.m
97
+ // Fixtures
98
+ //
99
+ // Created by Mark Larsen on 10/19/14.//
100
+ // LongFile.m
101
+ // Fixtures
102
+ //
103
+ // Created by Mark Larsen on 10/19/14.//
104
+ // LongFile.m
105
+ // Fixtures
106
+ //
107
+ // Created by Mark Larsen on 10/19/14.//
108
+ // LongFile.m
109
+ // Fixtures
110
+ //
111
+ // Created by Mark Larsen on 10/19/14.//
112
+ // LongFile.m
113
+ // Fixtures
114
+ //
115
+ // Created by Mark Larsen on 10/19/14.//
116
+ // LongFile.m
117
+ // Fixtures
118
+ //
119
+ // Created by Mark Larsen on 10/19/14.//
120
+ // LongFile.m
121
+ // Fixtures
122
+ //
123
+ // Created by Mark Larsen on 10/19/14.//
124
+ // LongFile.m
125
+ // Fixtures
126
+ //
127
+ // Created by Mark Larsen on 10/19/14.//
128
+ // LongFile.m
129
+ // Fixtures
130
+ //
131
+ // Created by Mark Larsen on 10/19/14.//
132
+ // LongFile.m
133
+ // Fixtures
134
+ //
135
+ // Created by Mark Larsen on 10/19/14.//
136
+ // LongFile.m
137
+ // Fixtures
138
+ //
139
+ // Created by Mark Larsen on 10/19/14.//
140
+ // LongFile.m
141
+ // Fixtures
142
+ //
143
+ // Created by Mark Larsen on 10/19/14.//
144
+ // LongFile.m
145
+ // Fixtures
146
+ //
147
+ // Created by Mark Larsen on 10/19/14.//
148
+ // LongFile.m
149
+ // Fixtures
150
+ //
151
+ // Created by Mark Larsen on 10/19/14.//
152
+ // LongFile.m
153
+ // Fixtures
154
+ //
155
+ // Created by Mark Larsen on 10/19/14.//
156
+ // LongFile.m
157
+ // Fixtures
158
+ //
159
+ // Created by Mark Larsen on 10/19/14.//
160
+ // LongFile.m
161
+ // Fixtures
162
+ //
163
+ // Created by Mark Larsen on 10/19/14.//
164
+ // LongFile.m
165
+ // Fixtures
166
+ //
167
+ // Created by Mark Larsen on 10/19/14.//
168
+ // LongFile.m
169
+ // Fixtures
170
+ //
171
+ // Created by Mark Larsen on 10/19/14.//
172
+ // LongFile.m
173
+ // Fixtures
174
+ //
175
+ // Created by Mark Larsen on 10/19/14.//
176
+ // LongFile.m
177
+ // Fixtures
178
+ //
179
+ // Created by Mark Larsen on 10/19/14.//
180
+ // LongFile.m
181
+ // Fixtures
182
+ //
183
+ // Created by Mark Larsen on 10/19/14.//
184
+ // LongFile.m
185
+ // Fixtures
186
+ //
187
+ // Created by Mark Larsen on 10/19/14.//
188
+ // LongFile.m
189
+ // Fixtures
190
+ //
191
+ // Created by Mark Larsen on 10/19/14.//
192
+ // LongFile.m
193
+ // Fixtures
194
+ //
195
+ // Created by Mark Larsen on 10/19/14.//
196
+ // LongFile.m
197
+ // Fixtures
198
+ //
199
+ // Created by Mark Larsen on 10/19/14.//
200
+ // LongFile.m
201
+ // Fixtures
202
+ //
203
+ // Created by Mark Larsen on 10/19/14.//
204
+ // LongFile.m
205
+ // Fixtures
206
+ //
207
+ // Created by Mark Larsen on 10/19/14.//
208
+ // LongFile.m
209
+ // Fixtures
210
+ //
211
+ // Created by Mark Larsen on 10/19/14.//
212
+ // LongFile.m
213
+ // Fixtures
214
+ //
215
+ // Created by Mark Larsen on 10/19/14.//
216
+ // LongFile.m
217
+ // Fixtures
218
+ //
219
+ // Created by Mark Larsen on 10/19/14.//
220
+ // LongFile.m
221
+ // Fixtures
222
+ //
223
+ // Created by Mark Larsen on 10/19/14.//
224
+ // LongFile.m
225
+ // Fixtures
226
+ //
227
+ // Created by Mark Larsen on 10/19/14.//
228
+ // LongFile.m
229
+ // Fixtures
230
+ //
231
+ // Created by Mark Larsen on 10/19/14.//
232
+ // LongFile.m
233
+ // Fixtures
234
+ //
235
+ // Created by Mark Larsen on 10/19/14.//
236
+ // LongFile.m
237
+ // Fixtures
238
+ //
239
+ // Created by Mark Larsen on 10/19/14.//
240
+ // LongFile.m
241
+ // Fixtures
242
+ //
243
+ // Created by Mark Larsen on 10/19/14.//
244
+ // LongFile.m
245
+ // Fixtures
246
+ //
247
+ // Created by Mark Larsen on 10/19/14.//
248
+ // LongFile.m
249
+ // Fixtures
250
+ //
251
+ // Created by Mark Larsen on 10/19/14.//
252
+ // LongFile.m
253
+ // Fixtures
254
+ //
255
+ // Created by Mark Larsen on 10/19/14.//
256
+ // LongFile.m
257
+ // Fixtures
258
+ //
259
+ // Created by Mark Larsen on 10/19/14.//
260
+ // LongFile.m
261
+ // Fixtures
262
+ //
263
+ // Created by Mark Larsen on 10/19/14.//
264
+ // LongFile.m
265
+ // Fixtures
266
+ //
267
+ // Created by Mark Larsen on 10/19/14.//
268
+ // LongFile.m
269
+ // Fixtures
270
+ //
271
+ // Created by Mark Larsen on 10/19/14.//
272
+ // LongFile.m
273
+ // Fixtures
274
+ //
275
+ // Created by Mark Larsen on 10/19/14.//
276
+ // LongFile.m
277
+ // Fixtures
278
+ //
279
+ // Created by Mark Larsen on 10/19/14.//
280
+ // LongFile.m
281
+ // Fixtures
282
+ //
283
+ // Created by Mark Larsen on 10/19/14.//
284
+ // LongFile.m
285
+ // Fixtures
286
+ //
287
+ // Created by Mark Larsen on 10/19/14.//
288
+ // LongFile.m
289
+ // Fixtures
290
+ //
291
+ // Created by Mark Larsen on 10/19/14.//
292
+ // LongFile.m
293
+ // Fixtures
294
+ //
295
+ // Created by Mark Larsen on 10/19/14.//
296
+ // LongFile.m
297
+ // Fixtures
298
+ //
299
+ // Created by Mark Larsen on 10/19/14.//
300
+ // LongFile.m
301
+ // Fixtures
302
+ //
303
+ // Created by Mark Larsen on 10/19/14.//
304
+ // LongFile.m
305
+ // Fixtures
306
+ //
307
+ // Created by Mark Larsen on 10/19/14.//
308
+ // LongFile.m
309
+ // Fixtures
310
+ //
311
+ // Created by Mark Larsen on 10/19/14.//
312
+ // LongFile.m
313
+ // Fixtures
314
+ //
315
+ // Created by Mark Larsen on 10/19/14.//
316
+ // LongFile.m
317
+ // Fixtures
318
+ //
319
+ // Created by Mark Larsen on 10/19/14.//
320
+ // LongFile.m
321
+ // Fixtures
322
+ //
323
+ // Created by Mark Larsen on 10/19/14.//
324
+ // LongFile.m
325
+ // Fixtures
326
+ //
327
+ // Created by Mark Larsen on 10/19/14.//
328
+ // LongFile.m
329
+ // Fixtures
330
+ //
331
+ // Created by Mark Larsen on 10/19/14.//
332
+ // LongFile.m
333
+ // Fixtures
334
+ //
335
+ // Created by Mark Larsen on 10/19/14.//
336
+ // LongFile.m
337
+ // Fixtures
338
+ //
339
+ // Created by Mark Larsen on 10/19/14.//
340
+ // LongFile.m
341
+ // Fixtures
342
+ //
343
+ // Created by Mark Larsen on 10/19/14.//
344
+ // LongFile.m
345
+ // Fixtures
346
+ //
347
+ // Created by Mark Larsen on 10/19/14.//
348
+ // LongFile.m
349
+ // Fixtures
350
+ //
351
+ // Created by Mark Larsen on 10/19/14.//
352
+ // LongFile.m
353
+ // Fixtures
354
+ //
355
+ // Created by Mark Larsen on 10/19/14.//
356
+ // LongFile.m
357
+ // Fixtures
358
+ //
359
+ // Created by Mark Larsen on 10/19/14.//
360
+ // LongFile.m
361
+ // Fixtures
362
+ //
363
+ // Created by Mark Larsen on 10/19/14.//
364
+ // LongFile.m
365
+ // Fixtures
366
+ //
367
+ // Created by Mark Larsen on 10/19/14.//
368
+ // LongFile.m
369
+ // Fixtures
370
+ //
371
+ // Created by Mark Larsen on 10/19/14.//
372
+ // LongFile.m
373
+ // Fixtures
374
+ //
375
+ // Created by Mark Larsen on 10/19/14.//
376
+ // LongFile.m
377
+ // Fixtures
378
+ //
379
+ // Created by Mark Larsen on 10/19/14.//
380
+ // LongFile.m
381
+ // Fixtures
382
+ //
383
+ // Created by Mark Larsen on 10/19/14.//
384
+ // LongFile.m
385
+ // Fixtures
386
+ //
387
+ // Created by Mark Larsen on 10/19/14.//
388
+ // LongFile.m
389
+ // Fixtures
390
+ //
391
+ // Created by Mark Larsen on 10/19/14.//
392
+ // LongFile.m
393
+ // Fixtures
394
+ //
395
+ // Created by Mark Larsen on 10/19/14.//
396
+ // LongFile.m
397
+ // Fixtures
398
+ //
399
+ // Created by Mark Larsen on 10/19/14.//
400
+ // LongFile.m
401
+ // Fixtures
402
+ //
403
+ // Created by Mark Larsen on 10/19/14.//
404
+ // LongFile.m
405
+ // Fixtures
406
+ //
407
+ // Created by Mark Larsen on 10/19/14.//
408
+ // LongFile.m
409
+ // Fixtures
410
+ //
411
+ // Created by Mark Larsen on 10/19/14.//
412
+ // LongFile.m
413
+ // Fixtures
414
+ //
415
+ // Created by Mark Larsen on 10/19/14.//
416
+ // LongFile.m
417
+ // Fixtures
418
+ //
419
+ // Created by Mark Larsen on 10/19/14.//
420
+ // LongFile.m
421
+ // Fixtures
422
+ //
423
+ // Created by Mark Larsen on 10/19/14.//
424
+ // LongFile.m
425
+ // Fixtures
426
+ //
427
+ // Created by Mark Larsen on 10/19/14.//
428
+ // LongFile.m
429
+ // Fixtures
430
+ //
431
+ // Created by Mark Larsen on 10/19/14.//
432
+ // LongFile.m
433
+ // Fixtures
434
+ //
435
+ // Created by Mark Larsen on 10/19/14.//
436
+ // LongFile.m
437
+ // Fixtures
438
+ //
439
+ // Created by Mark Larsen on 10/19/14.//
440
+ // LongFile.m
441
+ // Fixtures
442
+ //
443
+ // Created by Mark Larsen on 10/19/14.//
444
+ // LongFile.m
445
+ // Fixtures
446
+ //
447
+ // Created by Mark Larsen on 10/19/14.//
448
+ // LongFile.m
449
+ // Fixtures
450
+ //
451
+ // Created by Mark Larsen on 10/19/14.//
452
+ // LongFile.m
453
+ // Fixtures
454
+ //
455
+ // Created by Mark Larsen on 10/19/14.//
456
+ // LongFile.m
457
+ // Fixtures
458
+ //
459
+ // Created by Mark Larsen on 10/19/14.//
460
+ // LongFile.m
461
+ // Fixtures
462
+ //
463
+ // Created by Mark Larsen on 10/19/14.//
464
+ // LongFile.m
465
+ // Fixtures
466
+ //
467
+ // Created by Mark Larsen on 10/19/14.//
468
+ // LongFile.m
469
+ // Fixtures
470
+ //
471
+ // Created by Mark Larsen on 10/19/14.//
472
+ // LongFile.m
473
+ // Fixtures
474
+ //
475
+ // Created by Mark Larsen on 10/19/14.//
476
+ // LongFile.m
477
+ // Fixtures
478
+ //
479
+ // Created by Mark Larsen on 10/19/14.//
480
+ // LongFile.m
481
+ // Fixtures
482
+ //
483
+ // Created by Mark Larsen on 10/19/14.//
484
+ // LongFile.m
485
+ // Fixtures
486
+ //
487
+ // Created by Mark Larsen on 10/19/14.//
488
+ // LongFile.m
489
+ // Fixtures
490
+ //
491
+ // Created by Mark Larsen on 10/19/14.//
492
+ // LongFile.m
493
+ // Fixtures
494
+ //
495
+ // Created by Mark Larsen on 10/19/14.//
496
+ // LongFile.m
497
+ // Fixtures
498
+ //
499
+ // Created by Mark Larsen on 10/19/14.//
500
+ // LongFile.m
501
+ // Fixtures
502
+ //
503
+ // Created by Mark Larsen on 10/19/14.//
504
+ // LongFile.m
505
+ // Fixtures
506
+ //
507
+ // Created by Mark Larsen on 10/19/14.//
508
+ // LongFile.m
509
+ // Fixtures
510
+ //
511
+ // Created by Mark Larsen on 10/19/14.//
512
+ // LongFile.m
513
+ // Fixtures
514
+ //
515
+ // Created by Mark Larsen on 10/19/14.//
516
+ // LongFile.m
517
+ // Fixtures
518
+ //
519
+ // Created by Mark Larsen on 10/19/14.//
520
+ // LongFile.m
521
+ // Fixtures
522
+ //
523
+ // Created by Mark Larsen on 10/19/14.//
524
+ // LongFile.m
525
+ // Fixtures
526
+ //
527
+ // Created by Mark Larsen on 10/19/14.//
528
+ // LongFile.m
529
+ // Fixtures
530
+ //
531
+ // Created by Mark Larsen on 10/19/14.//
532
+ // LongFile.m
533
+ // Fixtures
534
+ //
535
+ // Created by Mark Larsen on 10/19/14.//
536
+ // LongFile.m
537
+ // Fixtures
538
+ //
539
+ // Created by Mark Larsen on 10/19/14.//
540
+ // LongFile.m
541
+ // Fixtures
542
+ //
543
+ // Created by Mark Larsen on 10/19/14.//
544
+ // LongFile.m
545
+ // Fixtures
546
+ //
547
+ // Created by Mark Larsen on 10/19/14.
@@ -0,0 +1,15 @@
1
+ //
2
+ // SomeObject.h
3
+ // Fixtures
4
+ //
5
+ // Created by Mark Larsen on 10/16/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface SomeObject : NSObject
12
+
13
+ // TODO: Foo bar. Baz.
14
+
15
+ @end
@@ -0,0 +1,18 @@
1
+ //
2
+ // SomeObject.m
3
+ // Fixtures
4
+ //
5
+ // Created by Mark Larsen on 10/16/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "SomeObject.h"
10
+
11
+ @implementation SomeObject
12
+
13
+ - (void) willChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects // Long line is long.
14
+ {
15
+ [self validateValue:nil forKeyPath:nil error:nil] && [self validateValue:nil forKeyPath:nil error:nil] && [self validateValue:nil forKeyPath:nil error:nil];
16
+ }
17
+
18
+ @end
@@ -0,0 +1,26 @@
1
+ //
2
+ // ViewController.swift
3
+ // Fixtures
4
+ //
5
+ // Created by Mark Larsen on 10/16/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ import UIKit
10
+
11
+ class ViewController: UIViewController {
12
+
13
+ override func viewDidLoad() {
14
+ super.viewDidLoad()
15
+ // TODO: Implement this!
16
+ // Do any additional setup after loading the view, typically from a nib.
17
+ }
18
+
19
+ override func didReceiveMemoryWarning() {
20
+ super.didReceiveMemoryWarning()
21
+ // Dispose of any resources that can be recreated.
22
+ }
23
+
24
+
25
+ }
26
+