Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

green default & project settings

  • Loading branch information...
commit 0ad48eed6706b44f5aa412bf56f446891e257349 1 parent a3fb82b
mike suarez msuarz authored
6 docs/settings.coffee
View
@@ -1,9 +1,11 @@
@settings =
+
docs:
reader: 'github'
repo: 'git://github.com/limadelic/frankendoc.wiki.git'
type: '.md'
- code_block: /```([\s\S]*?)```/g
- multiline_arg: /^(\s\s\s|""")$/
+ code_block: /`{3}([\s\S]*?)`{3}/g
+ multiline_arg: /^(\s{3}|"{3})$/
code:
root: 'docs/src'
+
12 docs/src/frank.coffee
View
@@ -1,7 +1,15 @@
+fs = require 'fs'
{ $ } = require '../../src/utils/shell'
class @Frank
'[>\$] frank @args': (args, output) ->
- console.log output
- console.log $ 'coffee src/frank ' + args
+ $ 'coffee src/frank ' + args
+
+ '@defaults =': (settings) ->
+ defaults = fs.readFileSync __dirname + '/../../src/settings.coffee', 'UTF8'
+ defaults.should.include settings
+
+ '@settings =': (settings) ->
+ actual_settings = fs.readFileSync __dirname + '/../settings.coffee', 'UTF8'
+ actual_settings.should.include settings
2  src/settings.coffee
View
@@ -13,7 +13,7 @@
reader: 'docs'
root: '.'
type: '.txt'
- multiline_arg: /^"""$/
+ multiline_arg: /^"{3}$/
report: 'console'
code:
reader: 'code'
Please sign in to comment.
Something went wrong with that request. Please try again.