haml-more 0.4.0.c → 0.4.0.d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/vendor/coffee-script/Cakefile +8 -0
  2. data/vendor/coffee-script/Rakefile +11 -0
  3. data/vendor/coffee-script/documentation/index.html.erb +85 -50
  4. data/vendor/coffee-script/documentation/js/aliases.js +1 -1
  5. data/vendor/coffee-script/documentation/js/arguments.js +1 -1
  6. data/vendor/coffee-script/documentation/js/array_comprehensions.js +1 -1
  7. data/vendor/coffee-script/documentation/js/assignment.js +1 -1
  8. data/vendor/coffee-script/documentation/js/cake_tasks.js +1 -1
  9. data/vendor/coffee-script/documentation/js/comparisons.js +1 -1
  10. data/vendor/coffee-script/documentation/js/conditionals.js +1 -1
  11. data/vendor/coffee-script/documentation/js/embedded.js +1 -1
  12. data/vendor/coffee-script/documentation/js/existence.js +1 -1
  13. data/vendor/coffee-script/documentation/js/expressions.js +1 -1
  14. data/vendor/coffee-script/documentation/js/expressions_assignment.js +1 -1
  15. data/vendor/coffee-script/documentation/js/expressions_comprehension.js +1 -1
  16. data/vendor/coffee-script/documentation/js/expressions_try.js +1 -1
  17. data/vendor/coffee-script/documentation/js/fat_arrow.js +1 -1
  18. data/vendor/coffee-script/documentation/js/functions.js +1 -1
  19. data/vendor/coffee-script/documentation/js/heredocs.js +1 -1
  20. data/vendor/coffee-script/documentation/js/multiple_return_values.js +1 -1
  21. data/vendor/coffee-script/documentation/js/object_comprehensions.js +1 -1
  22. data/vendor/coffee-script/documentation/js/object_extraction.js +1 -1
  23. data/vendor/coffee-script/documentation/js/objects_and_arrays.js +1 -1
  24. data/vendor/coffee-script/documentation/js/overview.js +1 -1
  25. data/vendor/coffee-script/documentation/js/parallel_assignment.js +1 -1
  26. data/vendor/coffee-script/documentation/js/range_comprehensions.js +1 -1
  27. data/vendor/coffee-script/documentation/js/scope.js +1 -1
  28. data/vendor/coffee-script/documentation/js/slices.js +1 -1
  29. data/vendor/coffee-script/documentation/js/soaks.js +1 -1
  30. data/vendor/coffee-script/documentation/js/splats.js +1 -1
  31. data/vendor/coffee-script/documentation/js/splices.js +1 -1
  32. data/vendor/coffee-script/documentation/js/strings.js +1 -1
  33. data/vendor/coffee-script/documentation/js/super.js +1 -1
  34. data/vendor/coffee-script/documentation/js/switch.js +1 -1
  35. data/vendor/coffee-script/documentation/js/try.js +1 -1
  36. data/vendor/coffee-script/documentation/js/while.js +1 -1
  37. data/vendor/coffee-script/extras/EXTRAS +9 -1
  38. data/vendor/coffee-script/extras/coffee-script.js +1 -0
  39. data/vendor/coffee-script/index.html +83 -48
  40. data/vendor/coffee-script/lib/cake.js +30 -32
  41. data/vendor/coffee-script/lib/coffee-script.js +12 -16
  42. data/vendor/coffee-script/lib/command_line.js +64 -74
  43. data/vendor/coffee-script/lib/grammar.js +1 -1
  44. data/vendor/coffee-script/lib/lexer.js +1 -1
  45. data/vendor/coffee-script/lib/narwhal.js +1 -1
  46. data/vendor/coffee-script/lib/nodes.js +48 -44
  47. data/vendor/coffee-script/lib/optparse.js +11 -17
  48. data/vendor/coffee-script/lib/repl.js +1 -1
  49. data/vendor/coffee-script/lib/rewriter.js +1 -1
  50. data/vendor/coffee-script/lib/scope.js +1 -1
  51. data/vendor/coffee-script/package.json +1 -1
  52. data/vendor/coffee-script/src/cake.coffee +15 -15
  53. data/vendor/coffee-script/src/coffee-script.coffee +6 -6
  54. data/vendor/coffee-script/src/command_line.coffee +43 -39
  55. data/vendor/coffee-script/src/nodes.coffee +43 -41
  56. data/vendor/coffee-script/src/optparse.coffee +6 -13
  57. data/vendor/coffee-script/test/test_destructuring_assignment.coffee +6 -0
  58. metadata +7 -6
@@ -1,30 +1,23 @@
1
1
  # Create an OptionParser with a list of valid options.
2
- op: exports.OptionParser: (rules) ->
3
- @banner: 'Usage: [Options]'
2
+ op: exports.OptionParser: (rules, banner) ->
3
+ @banner: banner or 'Usage: [Options]'
4
4
  @options_title: 'Available options:'
5
5
  @rules: build_rules(rules)
6
- @actions: {}
7
6
  this
8
7
 
9
- # Add a callback to fire when a particular option is encountered.
10
- op::add: (value, callback) ->
11
- @actions[value]: callback
12
-
13
8
  # Parse the argument array, calling defined callbacks, returning the remaining non-option arguments.
14
9
  op::parse: (args) ->
15
- results: []
10
+ options: {arguments: []}
16
11
  args: args.concat []
17
12
  while (arg: args.shift())
18
13
  is_option: false
19
14
  for rule in @rules
20
15
  if rule.letter is arg or rule.flag is arg
21
- callback: @actions[rule.name]
22
- value: rule.argument and args.shift()
23
- callback(value) if callback
16
+ options[rule.name]: if rule.argument then args.shift() else true
24
17
  is_option: true
25
18
  break
26
- results.push arg unless is_option
27
- results
19
+ options.arguments.push arg unless is_option
20
+ options
28
21
 
29
22
  # Return the help text for this OptionParser, for --help and such.
30
23
  op::help: ->
@@ -7,6 +7,12 @@ ok a is -2
7
7
  ok b is -1
8
8
 
9
9
 
10
+ func: ->
11
+ [a, b]: [b, a]
12
+
13
+ ok func().join(' ') is '-1 -2'
14
+
15
+
10
16
  arr: [1, 2, 3]
11
17
 
12
18
  [a, b, c]: arr
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 4
8
8
  - 0
9
- - c
10
- version: 0.4.0.c
9
+ - d
10
+ version: 0.4.0.d
11
11
  platform: ruby
12
12
  authors:
13
13
  - Konstantin Haase
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-02-24 00:00:00 +01:00
18
+ date: 2010-04-16 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -23,14 +23,14 @@ dependencies:
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "="
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 0
30
30
  - 4
31
31
  - 0
32
- - a
33
- version: 0.4.0.a
32
+ - d
33
+ version: 0.4.0.d
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
@@ -171,6 +171,7 @@ files:
171
171
  - vendor/coffee-script/examples/potion.coffee
172
172
  - vendor/coffee-script/examples/underscore.coffee
173
173
  - vendor/coffee-script/examples/web_server.coffee
174
+ - vendor/coffee-script/extras/coffee-script.js
174
175
  - vendor/coffee-script/extras/coffee.vim
175
176
  - vendor/coffee-script/extras/CoffeeScript.tmbundle/info.plist
176
177
  - vendor/coffee-script/extras/CoffeeScript.tmbundle/Preferences/CoffeeScript.tmPreferences