mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 14:15:04 -05:00
7bdab0e65c
- Added Guard for file watching - Configs can be automatically reloaded - Static asset changes do not trigger Jekyll build - CommonJS modular js support proved by stich-rb - Javascript is concatenated and uglified - Environment variables toggle uglify and fingerprinting - New Jekyll plugin config_tag - New Jekyll plugin javascript_assets_tag - Added theme specific configurations - Custome Jekyll Guard to the rescue - Install, Generate, Watch, and Preview work with Guard now. - Now configs are no longer tracked by Octopress, only theme defauts are. - Console messages can be colorized. - misc config reorganization and improvements
43 lines
436 B
Ruby
43 lines
436 B
Ruby
class String
|
|
# colorization
|
|
def colorize(color_code)
|
|
"\e[#{color_code}m#{self}\e[0m"
|
|
end
|
|
|
|
def black
|
|
colorize(30)
|
|
end
|
|
|
|
def red
|
|
colorize(31)
|
|
end
|
|
|
|
def green
|
|
colorize(32)
|
|
end
|
|
|
|
def yellow
|
|
colorize(33)
|
|
end
|
|
|
|
def blue
|
|
colorize(34)
|
|
end
|
|
|
|
def magenta
|
|
colorize(35)
|
|
end
|
|
|
|
def cyan
|
|
colorize(36)
|
|
end
|
|
|
|
def white
|
|
colorize(37)
|
|
end
|
|
|
|
def bold
|
|
colorize(1)
|
|
end
|
|
end
|