Please sign in to comment.
Added a gemspec and a license. Expanded the README. Fixed a really gn…
…arly bug: ruby 1.8.7 responds to hash collisions differently to ruby 1.9.3 when calling Hash.invert. Had to make sure my test cases didn't test on anything that had a hash collision. It gives correct answers, it's just messy to test against. Easier to pick values that only appear once in the lookup table.
- Loading branch information...
Showing with 369 additions and 11 deletions.
|@@ -0,0 +1,18 @@|
|+Copyright (C) 2012 Sam Rose|
|+Permission is hereby granted, free of charge, to any person obtaining a copy of|
|+this software and associated documentation files (the "Software"), to deal in|
|+the Software without restriction, including without limitation the rights to|
|+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of|
|+the Software, and to permit persons to whom the Software is furnished to do so,|
|+subject to the following conditions:|
|+The above copyright notice and this permission notice shall be included in all|
|+copies or substantial portions of the Software.|
|+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR|
|+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS|
|+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR|
|+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER|
|+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN|
|+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.|
|@@ -0,0 +1,27 @@|
|+# In your code, this LOAD_PATH malarky won't be necessary because the gem will|
|+# already be on your load path. This is just here for my own testing purposes so|
|+# that I can test the examples against the latest code base.|
|+libdir = File.absolute_path(File.dirname(__FILE__)) + '/../lib'|
|+$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)|
|+scheme = VimColorScheme.new :scheme_name, :dark do|
|+ comment "author: Sam Rose <email@example.com>"|
|+ raw "if version < 700"|
|+ raw " finish"|
|+ raw "endif\n"|
|+ highlight :Normal do|
|+ guifg '#ffffff'|
|+ guibg '#000000'|
|+ ctermfg :none|
|+ ctermbg :none|
|+ gui :bold, :italic|
Oops, something went wrong.