mako 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODRjYTY0OGEyY2Y1NmM3NmJiY2NiNmNjOTMwYWRkYjU1NDY5NmFjYQ==
4
+ OTM0ZWEwZDM2NGE1ODIwYjljYzQzNDMxZDQ0OWZjMDc5MTJkZmRjNA==
5
5
  data.tar.gz: !binary |-
6
- MDg2ZGMwZDRmOWQ5MzI3ZTU5ZTFiZjhlMWUxM2ZjOGExNDRmOTFmMg==
6
+ YWU1MjIzZWM5MzhjY2QxNGJlODk0NzEyODBmM2U5NTAxMDE3NTA4Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTU3OWFiYjE3YTBmNjZlZTA5NDgyZGQ2OTcwZmZjNjM5MjJjN2FlNjc4M2Vk
10
- MjBlMWI0YTY4MmEzYjE4YzA0MWY2NTcxNmU1M2ZhZTM0MDY5OTg1NGJjMDdk
11
- MmZhZTY4Y2I4OWU4ZmYyNDk1MWE0NDQ5ODhkNGFlNzlmZDYxODQ=
9
+ YzYyYjlkMGJjMjgxN2UwNzRhYzM4MDVhNDU4NDczYTVmNmIxMjIxMGZkM2Rh
10
+ M2ZmYjdhN2JmYTBlNWI2MzA1NzliNjI4ZmFkMDUyOTNmZmIxYTEwOWJhOGRh
11
+ OGViODBiZGJhZGYwZTdkNzJlYzA1YjM4NzY5ODMwYTYyMzAxZDU=
12
12
  data.tar.gz: !binary |-
13
- YTI5MGFiMzc4ZWYwMDM3MWNmZTBkNDFkZThhYWI3NTZlMGVjMTlkYmUzZDZm
14
- NjY5MDlmOGYzNDJiYzVkY2EyYzFiNjk1NWNkYTdkYzE1N2Y1M2JmMjI2NDJk
15
- NjBjZTFiYjAxY2ZkYzBkYWMxMDlmZmZlOTJkMDQwMzdkNDBlNmQ=
13
+ Mzk0YzVkZGM4MjkzN2ZiOGJjYzlkODdhNWJlODk2NGYxN2FiZDFmNzBmMDhm
14
+ MGZiYWI4MjE0MzM3MGE3OWQ0YWUxNGI4MGEyZjMwZmUzMTNiZTY0OWJjZTMz
15
+ ZWZlZGU5YzllYmZhMzYwYWUxZjc5NDIyNjEwOWIxNjk1NGQ3ZWE=
data/bin/mako CHANGED
@@ -92,7 +92,7 @@ class Mako
92
92
  when !cmd.nil? # Unkown
93
93
  Trollop::die "unknown subcommand #{cmd.inspect}".red
94
94
  else # If there is no sub command at all
95
- puts 'Mako Version: 1.0.2'.green
95
+ puts 'Mako Version: 1.0.3'.green
96
96
  puts help['mako']
97
97
  end
98
98
  end
@@ -489,16 +489,34 @@
489
489
  this.widget = widget;
490
490
  questionSetVersion = version;
491
491
  }
492
- // similar to code in MediaItem -> should both use the same function
493
- public static function resolveSource(asset_id:String, type:String = 'notASwf!'):String
492
+ // similar to code in MediaItem -> should both use the same function
493
+ public static function resolveSource(asset_id:String, type:String = 'notASwf!'):String
494
494
  {
495
- if(type == '.swf') // swfs will show preview images instead of playing the actual swf
495
+ if(type == '.swf') // swfs will show preview images instead of playing the actual swf
496
496
  {
497
497
  return CreatorConfig.getKogneatoAssetPreviewLink(asset_id);
498
498
  }
499
499
 
500
500
  return CreatorConfig.getKogneatoAssetLink(asset_id);
501
501
  }
502
+
503
+ // Generic method to scrub error messages temporarily held within the qset.
504
+ public function scrubErrorsFromQSet(qSet:Object):void
505
+ {
506
+ // items[0] is hard-coded because that's just how qsets roll.
507
+ for (var index:String in qSet.items[0].items)
508
+ {
509
+ var q:Object = qSet.items[0].items[index];
510
+
511
+ for (var id:String in q.options)
512
+ {
513
+ if (id == 'errorMessage' || id == 'errorTitle')
514
+ {
515
+ delete q.options[id];
516
+ }
517
+ }
518
+ }
519
+ }
502
520
  ]]>
503
521
  </mx:Script>
504
522
  </mx:Application>
@@ -378,7 +378,7 @@ public class Question
378
378
  {
379
379
  if(str.length == 0)
380
380
  {
381
- options.errorMessage = "Please look over the highlighted fields and enter information where necessary.";
381
+ options.errorMessage = "Please look over the highlighted fields and enter information where necessary.";
382
382
  options.errorTitle = "Missing Information";
383
383
  return true;
384
384
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mako
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Turgeon