diff --git a/Gemfile b/Gemfile index 5f41b820..168faee2 100755 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ -source "http://gemcutter.org" -bin_path "vendor/bin" +bundle_path "lib/middleman/vendor/gems" +bin_path "lib/middleman/vendor/bin" # disable_rubygems # disable_system_gems @@ -13,12 +13,4 @@ gem "yui-compressor" gem "haml" gem "compass" gem "smusher" -gem "compass-slickmap" -gem "maruku" -gem "markaby" - -gem "jeweler" -gem "rspec" -gem "rdoc" -gem "sdoc" -gem "cucumber" \ No newline at end of file +gem "compass-slickmap" \ No newline at end of file diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 diff --git a/lib/middleman.rb b/lib/middleman.rb old mode 100644 new mode 100755 index 962a077f..4028e716 --- a/lib/middleman.rb +++ b/lib/middleman.rb @@ -1,6 +1,5 @@ libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) -# Bundler -require File.join(File.dirname(libdir), "vendor", "gems", "environment")# if ENV["RUN_CODE_RUN"] +require 'middleman/vendor/gems/environment' require 'middleman/base' \ No newline at end of file diff --git a/vendor/bin/compass b/lib/middleman/vendor/bin/compass similarity index 67% rename from vendor/bin/compass rename to lib/middleman/vendor/bin/compass index 764d7788..7bb29daa 100755 --- a/vendor/bin/compass +++ b/lib/middleman/vendor/bin/compass @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/compass-0.8.17/bin/compass") \ No newline at end of file diff --git a/lib/middleman/vendor/bin/css2sass b/lib/middleman/vendor/bin/css2sass new file mode 100755 index 00000000..c3b75744 --- /dev/null +++ b/lib/middleman/vendor/bin/css2sass @@ -0,0 +1,3 @@ +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +require File.join(File.dirname(__FILE__), "../gems/environment") +load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.14/bin/css2sass") \ No newline at end of file diff --git a/vendor/bin/edit_json.rb b/lib/middleman/vendor/bin/edit_json.rb similarity index 67% rename from vendor/bin/edit_json.rb rename to lib/middleman/vendor/bin/edit_json.rb index dc72a942..69acc5d1 100755 --- a/vendor/bin/edit_json.rb +++ b/lib/middleman/vendor/bin/edit_json.rb @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/json-1.2.0/bin/edit_json.rb") \ No newline at end of file diff --git a/lib/middleman/vendor/bin/haml b/lib/middleman/vendor/bin/haml new file mode 100755 index 00000000..20f09033 --- /dev/null +++ b/lib/middleman/vendor/bin/haml @@ -0,0 +1,3 @@ +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +require File.join(File.dirname(__FILE__), "../gems/environment") +load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.14/bin/haml") \ No newline at end of file diff --git a/lib/middleman/vendor/bin/html2haml b/lib/middleman/vendor/bin/html2haml new file mode 100755 index 00000000..08ba45d1 --- /dev/null +++ b/lib/middleman/vendor/bin/html2haml @@ -0,0 +1,3 @@ +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +require File.join(File.dirname(__FILE__), "../gems/environment") +load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.14/bin/html2haml") \ No newline at end of file diff --git a/vendor/bin/htmldiff b/lib/middleman/vendor/bin/htmldiff similarity index 67% rename from vendor/bin/htmldiff rename to lib/middleman/vendor/bin/htmldiff index d14c90be..c2f78731 100755 --- a/vendor/bin/htmldiff +++ b/lib/middleman/vendor/bin/htmldiff @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/diff-lcs-1.1.2/bin/htmldiff") \ No newline at end of file diff --git a/vendor/bin/launchy b/lib/middleman/vendor/bin/launchy similarity index 67% rename from vendor/bin/launchy rename to lib/middleman/vendor/bin/launchy index f8298055..ebc55a95 100755 --- a/vendor/bin/launchy +++ b/lib/middleman/vendor/bin/launchy @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/launchy-0.3.3/bin/launchy") \ No newline at end of file diff --git a/vendor/bin/ldiff b/lib/middleman/vendor/bin/ldiff similarity index 67% rename from vendor/bin/ldiff rename to lib/middleman/vendor/bin/ldiff index c023e241..1ab75e7e 100755 --- a/vendor/bin/ldiff +++ b/lib/middleman/vendor/bin/ldiff @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/diff-lcs-1.1.2/bin/ldiff") \ No newline at end of file diff --git a/vendor/bin/prettify_json.rb b/lib/middleman/vendor/bin/prettify_json.rb similarity index 68% rename from vendor/bin/prettify_json.rb rename to lib/middleman/vendor/bin/prettify_json.rb index 9889427a..a2fbce0e 100755 --- a/vendor/bin/prettify_json.rb +++ b/lib/middleman/vendor/bin/prettify_json.rb @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/json-1.2.0/bin/prettify_json.rb") \ No newline at end of file diff --git a/vendor/bin/rackup b/lib/middleman/vendor/bin/rackup similarity index 66% rename from vendor/bin/rackup rename to lib/middleman/vendor/bin/rackup index 0daff4b0..04f66249 100755 --- a/vendor/bin/rackup +++ b/lib/middleman/vendor/bin/rackup @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/rack-1.0.1/bin/rackup") \ No newline at end of file diff --git a/vendor/bin/rake b/lib/middleman/vendor/bin/rake similarity index 66% rename from vendor/bin/rake rename to lib/middleman/vendor/bin/rake index 31814c8d..8a94b7cc 100755 --- a/vendor/bin/rake +++ b/lib/middleman/vendor/bin/rake @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/rake-0.8.7/bin/rake") \ No newline at end of file diff --git a/lib/middleman/vendor/bin/sass b/lib/middleman/vendor/bin/sass new file mode 100755 index 00000000..ec798b55 --- /dev/null +++ b/lib/middleman/vendor/bin/sass @@ -0,0 +1,3 @@ +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +require File.join(File.dirname(__FILE__), "../gems/environment") +load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.14/bin/sass") \ No newline at end of file diff --git a/vendor/bin/shotgun b/lib/middleman/vendor/bin/shotgun similarity index 67% rename from vendor/bin/shotgun rename to lib/middleman/vendor/bin/shotgun index cbc73d90..7d3cc578 100755 --- a/vendor/bin/shotgun +++ b/lib/middleman/vendor/bin/shotgun @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/shotgun-0.4/bin/shotgun") \ No newline at end of file diff --git a/vendor/bin/smusher b/lib/middleman/vendor/bin/smusher similarity index 67% rename from vendor/bin/smusher rename to lib/middleman/vendor/bin/smusher index e45ba1ad..d1f2dfc4 100755 --- a/vendor/bin/smusher +++ b/lib/middleman/vendor/bin/smusher @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/smusher-0.4.2/bin/smusher") \ No newline at end of file diff --git a/vendor/bin/sprocketize b/lib/middleman/vendor/bin/sprocketize similarity index 68% rename from vendor/bin/sprocketize rename to lib/middleman/vendor/bin/sprocketize index 94ba6279..f4f4dab0 100755 --- a/vendor/bin/sprocketize +++ b/lib/middleman/vendor/bin/sprocketize @@ -1,3 +1,3 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.join(File.dirname(__FILE__), "../gems/environment") load File.join(File.dirname(__FILE__), "../gems/gems/sprockets-1.0.2/bin/sprocketize") \ No newline at end of file diff --git a/vendor/gems/cache/compass-0.8.17.gem b/lib/middleman/vendor/gems/cache/compass-0.8.17.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/compass-0.8.17.gem rename to lib/middleman/vendor/gems/cache/compass-0.8.17.gem diff --git a/vendor/gems/cache/compass-slickmap-0.2.1.gem b/lib/middleman/vendor/gems/cache/compass-slickmap-0.2.1.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/compass-slickmap-0.2.1.gem rename to lib/middleman/vendor/gems/cache/compass-slickmap-0.2.1.gem diff --git a/vendor/gems/cache/configuration-1.1.0.gem b/lib/middleman/vendor/gems/cache/configuration-1.1.0.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/configuration-1.1.0.gem rename to lib/middleman/vendor/gems/cache/configuration-1.1.0.gem diff --git a/vendor/gems/cache/diff-lcs-1.1.2.gem b/lib/middleman/vendor/gems/cache/diff-lcs-1.1.2.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/diff-lcs-1.1.2.gem rename to lib/middleman/vendor/gems/cache/diff-lcs-1.1.2.gem diff --git a/vendor/gems/cache/extlib-0.9.13.gem b/lib/middleman/vendor/gems/cache/extlib-0.9.13.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/extlib-0.9.13.gem rename to lib/middleman/vendor/gems/cache/extlib-0.9.13.gem diff --git a/lib/middleman/vendor/gems/cache/haml-2.2.14.gem b/lib/middleman/vendor/gems/cache/haml-2.2.14.gem new file mode 100755 index 00000000..1f4a28bc Binary files /dev/null and b/lib/middleman/vendor/gems/cache/haml-2.2.14.gem differ diff --git a/vendor/gems/cache/highline-1.5.1.gem b/lib/middleman/vendor/gems/cache/highline-1.5.1.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/highline-1.5.1.gem rename to lib/middleman/vendor/gems/cache/highline-1.5.1.gem diff --git a/vendor/gems/cache/httpclient-2.1.5.2.gem b/lib/middleman/vendor/gems/cache/httpclient-2.1.5.2.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/httpclient-2.1.5.2.gem rename to lib/middleman/vendor/gems/cache/httpclient-2.1.5.2.gem diff --git a/vendor/gems/cache/json-1.2.0.gem b/lib/middleman/vendor/gems/cache/json-1.2.0.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/json-1.2.0.gem rename to lib/middleman/vendor/gems/cache/json-1.2.0.gem diff --git a/vendor/gems/cache/launchy-0.3.3.gem b/lib/middleman/vendor/gems/cache/launchy-0.3.3.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/launchy-0.3.3.gem rename to lib/middleman/vendor/gems/cache/launchy-0.3.3.gem diff --git a/vendor/gems/cache/rack-1.0.1.gem b/lib/middleman/vendor/gems/cache/rack-1.0.1.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/rack-1.0.1.gem rename to lib/middleman/vendor/gems/cache/rack-1.0.1.gem diff --git a/vendor/gems/cache/rack-test-0.5.2.gem b/lib/middleman/vendor/gems/cache/rack-test-0.5.2.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/rack-test-0.5.2.gem rename to lib/middleman/vendor/gems/cache/rack-test-0.5.2.gem diff --git a/vendor/gems/cache/rake-0.8.7.gem b/lib/middleman/vendor/gems/cache/rake-0.8.7.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/rake-0.8.7.gem rename to lib/middleman/vendor/gems/cache/rake-0.8.7.gem diff --git a/vendor/gems/cache/shotgun-0.4.gem b/lib/middleman/vendor/gems/cache/shotgun-0.4.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/shotgun-0.4.gem rename to lib/middleman/vendor/gems/cache/shotgun-0.4.gem diff --git a/vendor/gems/cache/sinatra-0.9.4.gem b/lib/middleman/vendor/gems/cache/sinatra-0.9.4.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/sinatra-0.9.4.gem rename to lib/middleman/vendor/gems/cache/sinatra-0.9.4.gem diff --git a/vendor/gems/cache/sinatra-content-for-0.2.gem b/lib/middleman/vendor/gems/cache/sinatra-content-for-0.2.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/sinatra-content-for-0.2.gem rename to lib/middleman/vendor/gems/cache/sinatra-content-for-0.2.gem diff --git a/lib/middleman/vendor/gems/cache/smusher-0.4.2.gem b/lib/middleman/vendor/gems/cache/smusher-0.4.2.gem new file mode 100755 index 00000000..06b26ba9 Binary files /dev/null and b/lib/middleman/vendor/gems/cache/smusher-0.4.2.gem differ diff --git a/vendor/gems/cache/sprockets-1.0.2.gem b/lib/middleman/vendor/gems/cache/sprockets-1.0.2.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/sprockets-1.0.2.gem rename to lib/middleman/vendor/gems/cache/sprockets-1.0.2.gem diff --git a/vendor/gems/cache/templater-1.0.0.gem b/lib/middleman/vendor/gems/cache/templater-1.0.0.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/templater-1.0.0.gem rename to lib/middleman/vendor/gems/cache/templater-1.0.0.gem diff --git a/vendor/gems/cache/yui-compressor-0.9.1.gem b/lib/middleman/vendor/gems/cache/yui-compressor-0.9.1.gem old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/cache/yui-compressor-0.9.1.gem rename to lib/middleman/vendor/gems/cache/yui-compressor-0.9.1.gem diff --git a/vendor/gems/environment.rb b/lib/middleman/vendor/gems/environment.rb old mode 100644 new mode 100755 similarity index 59% rename from vendor/gems/environment.rb rename to lib/middleman/vendor/gems/environment.rb index 627dffd8..2fee2e9a --- a/vendor/gems/environment.rb +++ b/lib/middleman/vendor/gems/environment.rb @@ -6,78 +6,42 @@ module Bundler ENV["PATH"] = "#{dir}/../bin:#{ENV["PATH"]}" ENV["RUBYOPT"] = "-r#{file} #{ENV["RUBYOPT"]}" - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/polyglot-0.2.9/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/polyglot-0.2.9/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/treetop-1.4.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/treetop-1.4.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/term-ansicolor-1.0.4/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/term-ansicolor-1.0.4/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/syntax-1.0.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/syntax-1.0.0/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/maruku-0.6.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/maruku-0.6.0/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/configuration-1.1.0/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/configuration-1.1.0/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/extlib-0.9.13/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/extlib-0.9.13/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/highline-1.5.1/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/highline-1.5.1/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/diff-lcs-1.1.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/diff-lcs-1.1.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/templater-1.0.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/templater-1.0.0/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/net-ssh-2.0.15/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/net-ssh-2.0.15/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/haml-2.2.13/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/haml-2.2.13/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/net-scp-1.0.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/net-scp-1.0.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json_pure-1.2.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json_pure-1.2.0/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/gemcutter-0.1.7/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/gemcutter-0.1.7/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rubyforge-2.0.3/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rubyforge-2.0.3/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/git-1.2.5/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/git-1.2.5/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/jeweler-1.3.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/jeweler-1.3.0/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json-1.2.0/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json-1.2.0/ext/json/ext") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json-1.2.0/ext") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/json-1.2.0/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/httpclient-2.1.5.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/httpclient-2.1.5.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rake-0.8.7/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rake-0.8.7/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sprockets-1.0.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sprockets-1.0.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/builder-2.1.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/builder-2.1.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/cucumber-0.4.4/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/cucumber-0.4.4/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rspec-1.2.9/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rspec-1.2.9/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/markaby-0.5/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/markaby-0.5/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/smusher-0.4.2/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/smusher-0.4.2/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/yui-compressor-0.9.1/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/yui-compressor-0.9.1/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-1.0.1/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-1.0.1/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-test-0.5.2/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-test-0.5.2/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/configuration-1.1.0/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/configuration-1.1.0/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-0.9.4/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-0.9.4/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/haml-2.2.14/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/haml-2.2.14/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sprockets-1.0.2/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sprockets-1.0.2/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rake-0.8.7/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rake-0.8.7/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/launchy-0.3.3/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/launchy-0.3.3/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/shotgun-0.4/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/shotgun-0.4/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-0.9.4/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-0.9.4/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rdoc-2.4.3/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/rdoc-2.4.3/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sdoc-0.2.14.1/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sdoc-0.2.14.1/lib") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/yui-compressor-0.9.1/bin") - $LOAD_PATH.unshift File.expand_path("#{dir}/gems/yui-compressor-0.9.1/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/diff-lcs-1.1.2/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/diff-lcs-1.1.2/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/highline-1.5.1/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/highline-1.5.1/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/templater-1.0.0/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/templater-1.0.0/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/httpclient-2.1.5.2/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/httpclient-2.1.5.2/lib") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/smusher-0.4.2/bin") + $LOAD_PATH.unshift File.expand_path("#{dir}/gems/smusher-0.4.2/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-content-for-0.2/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-content-for-0.2/lib") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/compass-0.8.17/bin") @@ -85,81 +49,45 @@ module Bundler $LOAD_PATH.unshift File.expand_path("#{dir}/gems/compass-slickmap-0.2.1/bin") $LOAD_PATH.unshift File.expand_path("#{dir}/gems/compass-slickmap-0.2.1/lib") - @gemfile = "#{dir}/../../Gemfile" + @gemfile = "#{dir}/../../../../Gemfile" require "rubygems" @bundled_specs = {} - @bundled_specs["polyglot"] = eval(File.read("#{dir}/specifications/polyglot-0.2.9.gemspec")) - @bundled_specs["polyglot"].loaded_from = "#{dir}/specifications/polyglot-0.2.9.gemspec" - @bundled_specs["treetop"] = eval(File.read("#{dir}/specifications/treetop-1.4.2.gemspec")) - @bundled_specs["treetop"].loaded_from = "#{dir}/specifications/treetop-1.4.2.gemspec" - @bundled_specs["term-ansicolor"] = eval(File.read("#{dir}/specifications/term-ansicolor-1.0.4.gemspec")) - @bundled_specs["term-ansicolor"].loaded_from = "#{dir}/specifications/term-ansicolor-1.0.4.gemspec" - @bundled_specs["syntax"] = eval(File.read("#{dir}/specifications/syntax-1.0.0.gemspec")) - @bundled_specs["syntax"].loaded_from = "#{dir}/specifications/syntax-1.0.0.gemspec" - @bundled_specs["maruku"] = eval(File.read("#{dir}/specifications/maruku-0.6.0.gemspec")) - @bundled_specs["maruku"].loaded_from = "#{dir}/specifications/maruku-0.6.0.gemspec" + @bundled_specs["configuration"] = eval(File.read("#{dir}/specifications/configuration-1.1.0.gemspec")) + @bundled_specs["configuration"].loaded_from = "#{dir}/specifications/configuration-1.1.0.gemspec" @bundled_specs["extlib"] = eval(File.read("#{dir}/specifications/extlib-0.9.13.gemspec")) @bundled_specs["extlib"].loaded_from = "#{dir}/specifications/extlib-0.9.13.gemspec" - @bundled_specs["highline"] = eval(File.read("#{dir}/specifications/highline-1.5.1.gemspec")) - @bundled_specs["highline"].loaded_from = "#{dir}/specifications/highline-1.5.1.gemspec" - @bundled_specs["diff-lcs"] = eval(File.read("#{dir}/specifications/diff-lcs-1.1.2.gemspec")) - @bundled_specs["diff-lcs"].loaded_from = "#{dir}/specifications/diff-lcs-1.1.2.gemspec" - @bundled_specs["templater"] = eval(File.read("#{dir}/specifications/templater-1.0.0.gemspec")) - @bundled_specs["templater"].loaded_from = "#{dir}/specifications/templater-1.0.0.gemspec" - @bundled_specs["net-ssh"] = eval(File.read("#{dir}/specifications/net-ssh-2.0.15.gemspec")) - @bundled_specs["net-ssh"].loaded_from = "#{dir}/specifications/net-ssh-2.0.15.gemspec" - @bundled_specs["haml"] = eval(File.read("#{dir}/specifications/haml-2.2.13.gemspec")) - @bundled_specs["haml"].loaded_from = "#{dir}/specifications/haml-2.2.13.gemspec" - @bundled_specs["net-scp"] = eval(File.read("#{dir}/specifications/net-scp-1.0.2.gemspec")) - @bundled_specs["net-scp"].loaded_from = "#{dir}/specifications/net-scp-1.0.2.gemspec" - @bundled_specs["json_pure"] = eval(File.read("#{dir}/specifications/json_pure-1.2.0.gemspec")) - @bundled_specs["json_pure"].loaded_from = "#{dir}/specifications/json_pure-1.2.0.gemspec" - @bundled_specs["gemcutter"] = eval(File.read("#{dir}/specifications/gemcutter-0.1.7.gemspec")) - @bundled_specs["gemcutter"].loaded_from = "#{dir}/specifications/gemcutter-0.1.7.gemspec" - @bundled_specs["rubyforge"] = eval(File.read("#{dir}/specifications/rubyforge-2.0.3.gemspec")) - @bundled_specs["rubyforge"].loaded_from = "#{dir}/specifications/rubyforge-2.0.3.gemspec" - @bundled_specs["git"] = eval(File.read("#{dir}/specifications/git-1.2.5.gemspec")) - @bundled_specs["git"].loaded_from = "#{dir}/specifications/git-1.2.5.gemspec" - @bundled_specs["jeweler"] = eval(File.read("#{dir}/specifications/jeweler-1.3.0.gemspec")) - @bundled_specs["jeweler"].loaded_from = "#{dir}/specifications/jeweler-1.3.0.gemspec" @bundled_specs["json"] = eval(File.read("#{dir}/specifications/json-1.2.0.gemspec")) @bundled_specs["json"].loaded_from = "#{dir}/specifications/json-1.2.0.gemspec" - @bundled_specs["httpclient"] = eval(File.read("#{dir}/specifications/httpclient-2.1.5.2.gemspec")) - @bundled_specs["httpclient"].loaded_from = "#{dir}/specifications/httpclient-2.1.5.2.gemspec" - @bundled_specs["rake"] = eval(File.read("#{dir}/specifications/rake-0.8.7.gemspec")) - @bundled_specs["rake"].loaded_from = "#{dir}/specifications/rake-0.8.7.gemspec" - @bundled_specs["sprockets"] = eval(File.read("#{dir}/specifications/sprockets-1.0.2.gemspec")) - @bundled_specs["sprockets"].loaded_from = "#{dir}/specifications/sprockets-1.0.2.gemspec" - @bundled_specs["builder"] = eval(File.read("#{dir}/specifications/builder-2.1.2.gemspec")) - @bundled_specs["builder"].loaded_from = "#{dir}/specifications/builder-2.1.2.gemspec" - @bundled_specs["cucumber"] = eval(File.read("#{dir}/specifications/cucumber-0.4.4.gemspec")) - @bundled_specs["cucumber"].loaded_from = "#{dir}/specifications/cucumber-0.4.4.gemspec" - @bundled_specs["rspec"] = eval(File.read("#{dir}/specifications/rspec-1.2.9.gemspec")) - @bundled_specs["rspec"].loaded_from = "#{dir}/specifications/rspec-1.2.9.gemspec" - @bundled_specs["markaby"] = eval(File.read("#{dir}/specifications/markaby-0.5.gemspec")) - @bundled_specs["markaby"].loaded_from = "#{dir}/specifications/markaby-0.5.gemspec" - @bundled_specs["smusher"] = eval(File.read("#{dir}/specifications/smusher-0.4.2.gemspec")) - @bundled_specs["smusher"].loaded_from = "#{dir}/specifications/smusher-0.4.2.gemspec" + @bundled_specs["yui-compressor"] = eval(File.read("#{dir}/specifications/yui-compressor-0.9.1.gemspec")) + @bundled_specs["yui-compressor"].loaded_from = "#{dir}/specifications/yui-compressor-0.9.1.gemspec" @bundled_specs["rack"] = eval(File.read("#{dir}/specifications/rack-1.0.1.gemspec")) @bundled_specs["rack"].loaded_from = "#{dir}/specifications/rack-1.0.1.gemspec" @bundled_specs["rack-test"] = eval(File.read("#{dir}/specifications/rack-test-0.5.2.gemspec")) @bundled_specs["rack-test"].loaded_from = "#{dir}/specifications/rack-test-0.5.2.gemspec" - @bundled_specs["configuration"] = eval(File.read("#{dir}/specifications/configuration-1.1.0.gemspec")) - @bundled_specs["configuration"].loaded_from = "#{dir}/specifications/configuration-1.1.0.gemspec" + @bundled_specs["sinatra"] = eval(File.read("#{dir}/specifications/sinatra-0.9.4.gemspec")) + @bundled_specs["sinatra"].loaded_from = "#{dir}/specifications/sinatra-0.9.4.gemspec" + @bundled_specs["haml"] = eval(File.read("#{dir}/specifications/haml-2.2.14.gemspec")) + @bundled_specs["haml"].loaded_from = "#{dir}/specifications/haml-2.2.14.gemspec" + @bundled_specs["sprockets"] = eval(File.read("#{dir}/specifications/sprockets-1.0.2.gemspec")) + @bundled_specs["sprockets"].loaded_from = "#{dir}/specifications/sprockets-1.0.2.gemspec" + @bundled_specs["rake"] = eval(File.read("#{dir}/specifications/rake-0.8.7.gemspec")) + @bundled_specs["rake"].loaded_from = "#{dir}/specifications/rake-0.8.7.gemspec" @bundled_specs["launchy"] = eval(File.read("#{dir}/specifications/launchy-0.3.3.gemspec")) @bundled_specs["launchy"].loaded_from = "#{dir}/specifications/launchy-0.3.3.gemspec" @bundled_specs["shotgun"] = eval(File.read("#{dir}/specifications/shotgun-0.4.gemspec")) @bundled_specs["shotgun"].loaded_from = "#{dir}/specifications/shotgun-0.4.gemspec" - @bundled_specs["sinatra"] = eval(File.read("#{dir}/specifications/sinatra-0.9.4.gemspec")) - @bundled_specs["sinatra"].loaded_from = "#{dir}/specifications/sinatra-0.9.4.gemspec" - @bundled_specs["rdoc"] = eval(File.read("#{dir}/specifications/rdoc-2.4.3.gemspec")) - @bundled_specs["rdoc"].loaded_from = "#{dir}/specifications/rdoc-2.4.3.gemspec" - @bundled_specs["sdoc"] = eval(File.read("#{dir}/specifications/sdoc-0.2.14.1.gemspec")) - @bundled_specs["sdoc"].loaded_from = "#{dir}/specifications/sdoc-0.2.14.1.gemspec" - @bundled_specs["yui-compressor"] = eval(File.read("#{dir}/specifications/yui-compressor-0.9.1.gemspec")) - @bundled_specs["yui-compressor"].loaded_from = "#{dir}/specifications/yui-compressor-0.9.1.gemspec" + @bundled_specs["diff-lcs"] = eval(File.read("#{dir}/specifications/diff-lcs-1.1.2.gemspec")) + @bundled_specs["diff-lcs"].loaded_from = "#{dir}/specifications/diff-lcs-1.1.2.gemspec" + @bundled_specs["highline"] = eval(File.read("#{dir}/specifications/highline-1.5.1.gemspec")) + @bundled_specs["highline"].loaded_from = "#{dir}/specifications/highline-1.5.1.gemspec" + @bundled_specs["templater"] = eval(File.read("#{dir}/specifications/templater-1.0.0.gemspec")) + @bundled_specs["templater"].loaded_from = "#{dir}/specifications/templater-1.0.0.gemspec" + @bundled_specs["httpclient"] = eval(File.read("#{dir}/specifications/httpclient-2.1.5.2.gemspec")) + @bundled_specs["httpclient"].loaded_from = "#{dir}/specifications/httpclient-2.1.5.2.gemspec" + @bundled_specs["smusher"] = eval(File.read("#{dir}/specifications/smusher-0.4.2.gemspec")) + @bundled_specs["smusher"].loaded_from = "#{dir}/specifications/smusher-0.4.2.gemspec" @bundled_specs["sinatra-content-for"] = eval(File.read("#{dir}/specifications/sinatra-content-for-0.2.gemspec")) @bundled_specs["sinatra-content-for"].loaded_from = "#{dir}/specifications/sinatra-content-for-0.2.gemspec" @bundled_specs["compass"] = eval(File.read("#{dir}/specifications/compass-0.8.17.gemspec")) diff --git a/vendor/gems/gems/compass-0.8.17/CHANGELOG.markdown b/lib/middleman/vendor/gems/gems/compass-0.8.17/CHANGELOG.markdown old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/CHANGELOG.markdown rename to lib/middleman/vendor/gems/gems/compass-0.8.17/CHANGELOG.markdown diff --git a/vendor/gems/gems/compass-0.8.17/LICENSE.markdown b/lib/middleman/vendor/gems/gems/compass-0.8.17/LICENSE.markdown old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/LICENSE.markdown rename to lib/middleman/vendor/gems/gems/compass-0.8.17/LICENSE.markdown diff --git a/vendor/gems/gems/compass-0.8.17/README.markdown b/lib/middleman/vendor/gems/gems/compass-0.8.17/README.markdown old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/README.markdown rename to lib/middleman/vendor/gems/gems/compass-0.8.17/README.markdown diff --git a/vendor/gems/gems/compass-0.8.17/REVISION b/lib/middleman/vendor/gems/gems/compass-0.8.17/REVISION old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/REVISION rename to lib/middleman/vendor/gems/gems/compass-0.8.17/REVISION diff --git a/vendor/gems/gems/compass-0.8.17/Rakefile b/lib/middleman/vendor/gems/gems/compass-0.8.17/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/Rakefile rename to lib/middleman/vendor/gems/gems/compass-0.8.17/Rakefile diff --git a/vendor/gems/gems/compass-0.8.17/VERSION.yml b/lib/middleman/vendor/gems/gems/compass-0.8.17/VERSION.yml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/VERSION.yml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/VERSION.yml diff --git a/vendor/gems/gems/compass-0.8.17/bin/compass b/lib/middleman/vendor/gems/gems/compass-0.8.17/bin/compass similarity index 100% rename from vendor/gems/gems/compass-0.8.17/bin/compass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/bin/compass diff --git a/vendor/gems/gems/compass-0.8.17/deps.rip b/lib/middleman/vendor/gems/gems/compass-0.8.17/deps.rip old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/deps.rip rename to lib/middleman/vendor/gems/gems/compass-0.8.17/deps.rip diff --git a/vendor/gems/gems/compass-0.8.17/examples/README.markdown b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/README.markdown old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/README.markdown rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/README.markdown diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/index.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/index.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/index.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/index.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/elements.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/elements.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/elements.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/elements.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/forms.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/forms.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/forms.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/forms.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/grid.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/grid.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/grid.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/grid.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test-small.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test-small.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test-small.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test-small.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/test.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/valid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/valid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/valid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/parts/valid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_default/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/cross.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/cross.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/cross.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/cross.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/key.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/key.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/key.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/key.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/tick.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/tick.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/tick.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/buttons/tick.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/doc.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/doc.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/doc.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/doc.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/email.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/email.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/email.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/email.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/external.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/external.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/external.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/external.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/feed.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/feed.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/feed.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/feed.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/im.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/im.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/im.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/im.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/pdf.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/pdf.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/pdf.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/pdf.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/visited.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/visited.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/visited.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/visited.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/xls.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/xls.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/xls.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/link_icons/xls.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test-small.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test-small.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test-small.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test-small.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/test.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/valid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/valid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/valid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/images/valid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/index.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/index.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/index.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/index.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/buttons.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/buttons.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/buttons.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/buttons.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/fancy_type.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/fancy_type.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/fancy_type.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/fancy_type.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/link_icons.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/link_icons.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/link_icons.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/link_icons.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/rtl.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/rtl.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/rtl.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/plugins/rtl.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/buttons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/buttons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/buttons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/buttons.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/link_icons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/link_icons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/link_icons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/link_icons.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/rtl_screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/rtl_screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/rtl_screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/rtl_screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_plugins/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_scoped_form/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/index.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/index.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/index.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/index.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/fancy_type.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/fancy_type.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/fancy_type.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/fancy_type.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/liquid.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/liquid.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/liquid.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/liquid.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test-small.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test-small.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test-small.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test-small.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/test.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/valid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/valid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/valid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/parts/valid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/liquid.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/liquid.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/liquid.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/liquid.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/blueprint_semantic/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/compass.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/compass.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/compass.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/compass.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/images/blue_arrow.gif b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/images/blue_arrow.gif old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/images/blue_arrow.gif rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/images/blue_arrow.gif diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/src/compass.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/compass.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/src/compass.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/compass.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/src/images/blue_arrow.gif b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/images/blue_arrow.gif old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/src/images/blue_arrow.gif rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/images/blue_arrow.gif diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/src/sticky_footer.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/sticky_footer.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/src/sticky_footer.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/sticky_footer.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/src/utilities.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/utilities.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/src/utilities.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/src/utilities.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/sticky_footer.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/sticky_footer.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/sticky_footer.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/sticky_footer.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/compass/utilities.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/utilities.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/compass/utilities.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/compass/utilities.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/logo/logo.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/logo.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/logo/logo.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/logo.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/logo/src/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/logo/src/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/logo/src/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/logo/src/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/logo/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/logo/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/logo/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/divisions.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/divisions.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/divisions.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/divisions.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/index.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/index.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/index.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/index.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/src/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/src/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/src/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/src/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/sub_divisions.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/sub_divisions.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/sub_divisions.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/sub_divisions.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/templates.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/templates.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/templates.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/templates.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/test.jpg b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/test.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/test.jpg rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/test.jpg diff --git a/vendor/gems/gems/compass-0.8.17/examples/yui/typography.html.haml b/lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/typography.html.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/examples/yui/typography.html.haml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/examples/yui/typography.html.haml diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/_blueprint.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/_blueprint.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/_blueprint.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/_blueprint.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_print.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/_screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/cross.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/cross.png similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/cross.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/cross.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/key.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/key.png similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/key.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/key.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/tick.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/tick.png similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/tick.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/buttons/tick.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/buttons/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/doc.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/doc.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/doc.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/doc.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/email.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/email.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/email.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/email.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/external.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/external.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/external.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/external.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/feed.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/feed.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/feed.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/feed.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/im.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/im.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/im.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/im.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/pdf.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/pdf.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/pdf.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/pdf.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/visited.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/visited.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/visited.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/visited.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/xls.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/xls.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/xls.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/link_icons/xls.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/link_icons/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/partials/_base.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/partials/_base.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/partials/_base.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/partials/_base.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/blueprint/templates/project/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/_compass.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/_compass.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/_compass.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/_compass.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_layout.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_layout.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_layout.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_layout.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_misc.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_misc.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_misc.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_misc.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_utilities.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_utilities.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_utilities.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/_utilities.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_general.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_general.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_general.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_general.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_links.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_links.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_links.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_links.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_lists.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_lists.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_lists.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_lists.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_print.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_sprites.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_sprites.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_sprites.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_sprites.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_tables.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_tables.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_tables.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_tables.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_text.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_text.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_text.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/_text.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_float.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_float.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_float.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_float.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/ellipsis.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/ellipsis.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/ellipsis.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/ellipsis.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/xml/ellipsis.xml b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/xml/ellipsis.xml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/xml/ellipsis.xml rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/ellipsis/xml/ellipsis.xml diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/compass/templates/project/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/_yui.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/_yui.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/_yui.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/_yui.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_base.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_base.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_base.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_base.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_fonts.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_fonts.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_fonts.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_fonts.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_grids.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_grids.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_grids.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_grids.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/stylesheets/yui/modules/_reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/frameworks/yui/templates/project/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/actions.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/actions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/actions.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/actions.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/merb.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/merb.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/merb.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/merb.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/sass_plugin.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/sass_plugin.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/sass_plugin.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/sass_plugin.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/templates/compass-install-rails.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/templates/compass-install-rails.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/templates/compass-install-rails.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/templates/compass-install-rails.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/urls.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/urls.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/urls.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/app_integration/rails/urls.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/base.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/base.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/base.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/base.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/create_project.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/create_project.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/create_project.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/create_project.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/generate_grid_background.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/generate_grid_background.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/generate_grid_background.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/generate_grid_background.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/installer_command.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/installer_command.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/installer_command.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/installer_command.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/list_frameworks.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/list_frameworks.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/list_frameworks.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/list_frameworks.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/print_version.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/print_version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/print_version.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/print_version.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/project_base.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/project_base.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/project_base.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/project_base.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/stamp_pattern.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/stamp_pattern.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/stamp_pattern.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/stamp_pattern.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/update_project.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/update_project.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/update_project.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/update_project.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/validate_project.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/validate_project.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/validate_project.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/validate_project.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/watch_project.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/watch_project.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/watch_project.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/watch_project.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/commands/write_configuration.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/write_configuration.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/commands/write_configuration.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/commands/write_configuration.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/compiler.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/compiler.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/compiler.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/compiler.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/configuration.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/configuration.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/configuration.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/configuration.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/core_ext.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/core_ext.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/core_ext.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/core_ext.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/dependencies.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/dependencies.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/dependencies.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/dependencies.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/errors.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/errors.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/errors.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/errors.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/exec.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/exec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/exec.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/exec.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/frameworks.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/frameworks.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/frameworks.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/frameworks.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/grid_builder.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/grid_builder.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/grid_builder.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/grid_builder.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/installers.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/installers.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/installers/base.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/base.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/installers/base.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/base.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/installers/manifest.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/manifest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/installers/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/manifest.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/installers/rails.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/rails.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/installers/rails.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/rails.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/installers/stand_alone.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/stand_alone.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/installers/stand_alone.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/installers/stand_alone.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/logger.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/logger.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/logger.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/logger.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/display.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/display.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/display.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/display.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/enumerate.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/enumerate.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/enumerate.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/enumerate.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/inline_image.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/inline_image.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/inline_image.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/inline_image.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/selectors.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/selectors.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/selectors.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/selectors.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/urls.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/urls.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/urls.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/functions/urls.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/test_case.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/test_case.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/test_case.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/test_case.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/validator.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/validator.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/validator.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/validator.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/compass/version.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/compass/version.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/compass/version.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/fsevents.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/fsevents.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/fsevents.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/fsevents.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/polling.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/polling.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/polling.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/backends/polling.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/cache.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/cache.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/cache.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/cache.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/ext.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/ext.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/ext.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/ext.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/fsevents.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/fsevents.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/fsevents.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/fsevents.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/monitor.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/monitor.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/monitor.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/monitor.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/path.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/path.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/path.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/path.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/state.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/state.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/state.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/state.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb diff --git a/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/tree.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/tree.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/tree.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/tree.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/command_line_helper.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/command_line_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/command_line_helper.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/command_line_helper.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/command_line_test.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/command_line_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/command_line_test.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/command_line_test.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/compass_test.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/compass_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/compass_test.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/compass_test.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/configuration_test.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/configuration_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/configuration_test.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/configuration_test.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/css/typography.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/css/typography.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/css/typography.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/css/typography.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/ie.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/ie.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/ie.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/ie.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/typography.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/typography.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/typography.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/blueprint/sass/typography.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/layout.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/layout.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/layout.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/layout.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/print.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/print.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/print.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/print.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/reset.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/reset.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/reset.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/reset.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/utilities.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/utilities.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/utilities.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/css/utilities.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/layout.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/layout.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/layout.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/layout.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/print.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/print.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/print.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/print.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/reset.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/reset.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/reset.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/reset.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/utilities.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/utilities.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/utilities.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/compass/sass/utilities.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/css/screen.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/css/screen.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/css/screen.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/css/screen.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/images/grid.png b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/images/grid.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/images/grid.png rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/images/grid.png diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/sass/screen.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/sass/screen.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/sass/screen.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/image_urls/sass/screen.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/config.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/config.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/config.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/css/mixins.css b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/css/mixins.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/css/mixins.css rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/css/mixins.css diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/base.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/base.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/base.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/base.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/fonts.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/fonts.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/fonts.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/fonts.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/grids.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/grids.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/grids.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/grids.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/mixins.sass b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/mixins.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/mixins.sass rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/fixtures/stylesheets/yui/sass/mixins.sass diff --git a/vendor/gems/gems/compass-0.8.17/test/rails_integration_test.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/rails_integration_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/rails_integration_test.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/rails_integration_test.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/sass_extensions_test.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/sass_extensions_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/sass_extensions_test.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/sass_extensions_test.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/test_case_helper.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_case_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/test_case_helper.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_case_helper.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/test_helper.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/test_helper.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_helper.rb diff --git a/vendor/gems/gems/compass-0.8.17/test/test_rails_helper.rb b/lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_rails_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-0.8.17/test/test_rails_helper.rb rename to lib/middleman/vendor/gems/gems/compass-0.8.17/test/test_rails_helper.rb diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/.gitignore b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/.gitignore old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/.gitignore rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/.gitignore diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/Rakefile b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/Rakefile rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/Rakefile diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/VERSION b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/VERSION old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/VERSION rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/VERSION diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/compass-slickmap.gemspec b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/compass-slickmap.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/compass-slickmap.gemspec rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/compass-slickmap.gemspec diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap.rb b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap.rb similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap.rb rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap.rb diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap/compass_plugin.rb b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap/compass_plugin.rb similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap/compass_plugin.rb rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/lib/slickmap/compass_plugin.rb diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/sass/_slickmap.sass b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/sass/_slickmap.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/sass/_slickmap.sass rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/sass/_slickmap.sass diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-center.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-center.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-center.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-center.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-left.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-left.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-left.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-left.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-right.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-right.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-right.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L1-right.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-bottom.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-bottom.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-bottom.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-bottom.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-center.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-center.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-center.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-center.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-li-top.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-li-top.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-li-top.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-li-top.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-ul-top.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-ul-top.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-ul-top.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/L3-ul-top.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/vertical-line.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/vertical-line.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/vertical-line.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/vertical-line.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/white-highlight.png b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/white-highlight.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/white-highlight.png rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/images/white-highlight.png diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/manifest.rb b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/manifest.rb similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/manifest.rb rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/manifest.rb diff --git a/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/sitemap.sass b/lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/sitemap.sass similarity index 100% rename from vendor/gems/gems/compass-slickmap-0.2.1/templates/project/sitemap.sass rename to lib/middleman/vendor/gems/gems/compass-slickmap-0.2.1/templates/project/sitemap.sass diff --git a/vendor/gems/gems/configuration-1.1.0/README b/lib/middleman/vendor/gems/gems/configuration-1.1.0/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/README rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/README diff --git a/vendor/gems/gems/configuration-1.1.0/README.erb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/README.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/README.erb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/README.erb diff --git a/vendor/gems/gems/configuration-1.1.0/Rakefile b/lib/middleman/vendor/gems/gems/configuration-1.1.0/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/Rakefile rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/Rakefile diff --git a/vendor/gems/gems/configuration-1.1.0/config/a.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/config/a.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/config/a.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/config/a.rb diff --git a/vendor/gems/gems/configuration-1.1.0/config/b.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/config/b.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/config/b.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/config/b.rb diff --git a/vendor/gems/gems/configuration-1.1.0/config/c.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/config/c.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/config/c.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/config/c.rb diff --git a/vendor/gems/gems/configuration-1.1.0/config/d.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/config/d.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/config/d.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/config/d.rb diff --git a/vendor/gems/gems/configuration-1.1.0/config/e.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/config/e.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/config/e.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/config/e.rb diff --git a/vendor/gems/gems/configuration-1.1.0/configuration.gemspec b/lib/middleman/vendor/gems/gems/configuration-1.1.0/configuration.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/configuration.gemspec rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/configuration.gemspec diff --git a/vendor/gems/gems/configuration-1.1.0/lib/configuration.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/lib/configuration.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/lib/configuration.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/lib/configuration.rb diff --git a/vendor/gems/gems/configuration-1.1.0/samples/a.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/a.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/samples/a.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/a.rb diff --git a/vendor/gems/gems/configuration-1.1.0/samples/b.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/b.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/samples/b.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/b.rb diff --git a/vendor/gems/gems/configuration-1.1.0/samples/c.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/c.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/samples/c.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/c.rb diff --git a/vendor/gems/gems/configuration-1.1.0/samples/d.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/d.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/samples/d.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/d.rb diff --git a/vendor/gems/gems/configuration-1.1.0/samples/e.rb b/lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/e.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/configuration-1.1.0/samples/e.rb rename to lib/middleman/vendor/gems/gems/configuration-1.1.0/samples/e.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/ChangeLog b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/ChangeLog old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/ChangeLog rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/ChangeLog diff --git a/vendor/gems/gems/diff-lcs-1.1.2/Install b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/Install old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/Install rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/Install diff --git a/vendor/gems/gems/diff-lcs-1.1.2/README b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/README rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/README diff --git a/vendor/gems/gems/diff-lcs-1.1.2/Rakefile b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/Rakefile rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/Rakefile diff --git a/vendor/gems/gems/diff-lcs-1.1.2/bin/htmldiff b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/bin/htmldiff similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/bin/htmldiff rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/bin/htmldiff diff --git a/vendor/gems/gems/diff-lcs-1.1.2/bin/ldiff b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/bin/ldiff similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/bin/ldiff rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/bin/ldiff diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb diff --git a/vendor/gems/gems/diff-lcs-1.1.2/tests/00test.rb b/lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/tests/00test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/diff-lcs-1.1.2/tests/00test.rb rename to lib/middleman/vendor/gems/gems/diff-lcs-1.1.2/tests/00test.rb diff --git a/vendor/gems/gems/extlib-0.9.13/History.txt b/lib/middleman/vendor/gems/gems/extlib-0.9.13/History.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/History.txt rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/History.txt diff --git a/vendor/gems/gems/extlib-0.9.13/LICENSE b/lib/middleman/vendor/gems/gems/extlib-0.9.13/LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/LICENSE rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/LICENSE diff --git a/vendor/gems/gems/extlib-0.9.13/README b/lib/middleman/vendor/gems/gems/extlib-0.9.13/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/README rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/README diff --git a/vendor/gems/gems/extlib-0.9.13/Rakefile b/lib/middleman/vendor/gems/gems/extlib-0.9.13/Rakefile similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/Rakefile rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/Rakefile diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/array.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/array.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/array.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/array.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/assertions.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/assertions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/assertions.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/assertions.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/blank.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/blank.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/blank.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/blank.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/boolean.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/boolean.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/boolean.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/boolean.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/byte_array.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/byte_array.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/byte_array.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/byte_array.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/class.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/class.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/class.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/class.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/datetime.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/datetime.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/datetime.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/datetime.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/dictionary.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/dictionary.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/dictionary.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/dictionary.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/hash.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/hash.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/hash.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/hash.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/hook.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/hook.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/hook.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/hook.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/inflection.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/inflection.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/inflection.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/inflection.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_array.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_array.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_array.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_array.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_module.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_module.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_module.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/lazy_module.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/logger.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/logger.rb similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/logger.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/logger.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/mash.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/mash.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/mash.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/mash.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/module.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/module.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/module.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/module.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/nil.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/nil.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/nil.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/nil.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/numeric.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/numeric.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/numeric.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/numeric.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/object.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/object.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/object.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/object.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/object_space.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/object_space.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/object_space.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/object_space.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/pooling.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pooling.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/pooling.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pooling.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/rubygems.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/rubygems.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/rubygems.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/rubygems.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/simple_set.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/simple_set.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/simple_set.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/simple_set.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/string.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/string.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/string.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/string.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/struct.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/struct.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/struct.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/struct.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/symbol.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/symbol.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/symbol.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/symbol.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/tasks/release.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/tasks/release.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/tasks/release.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/tasks/release.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/time.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/time.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/time.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/time.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/version.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/version.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/version.rb diff --git a/vendor/gems/gems/extlib-0.9.13/lib/extlib/virtual_file.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/virtual_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/lib/extlib/virtual_file.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/virtual_file.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/array_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/array_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/array_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/array_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/blank_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/blank_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/blank_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/blank_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/byte_array_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/byte_array_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/byte_array_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/byte_array_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/class_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/class_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/class_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/class_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/datetime_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/datetime_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/datetime_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/datetime_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/hash_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/hash_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/hash_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/hash_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/hook_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/hook_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/hook_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/hook_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/inflection/plural_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection/plural_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/inflection/plural_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection/plural_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/inflection/singular_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection/singular_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/inflection/singular_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection/singular_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/inflection_extras_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection_extras_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/inflection_extras_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/inflection_extras_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/lazy_array_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/lazy_array_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/lazy_array_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/lazy_array_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/lazy_module_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/lazy_module_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/lazy_module_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/lazy_module_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/mash_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/mash_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/mash_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/mash_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/module_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/module_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/module_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/module_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/object_space_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/object_space_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/object_space_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/object_space_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/object_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/object_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/object_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/object_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/pooling_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/pooling_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/pooling_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/pooling_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/simple_set_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/simple_set_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/simple_set_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/simple_set_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/spec.opts b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/spec.opts old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/spec.opts rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/spec.opts diff --git a/vendor/gems/gems/extlib-0.9.13/spec/spec_helper.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/spec_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/spec_helper.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/spec_helper.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/string_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/string_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/string_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/string_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/struct_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/struct_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/struct_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/struct_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/symbol_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/symbol_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/symbol_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/symbol_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/time_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/time_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/time_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/time_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/try_call_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/try_call_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/try_call_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/try_call_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/try_dup_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/try_dup_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/try_dup_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/try_dup_spec.rb diff --git a/vendor/gems/gems/extlib-0.9.13/spec/virtual_file_spec.rb b/lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/virtual_file_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/extlib-0.9.13/spec/virtual_file_spec.rb rename to lib/middleman/vendor/gems/gems/extlib-0.9.13/spec/virtual_file_spec.rb diff --git a/vendor/gems/gems/haml-2.2.13/.yardopts b/lib/middleman/vendor/gems/gems/haml-2.2.14/.yardopts old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/.yardopts rename to lib/middleman/vendor/gems/gems/haml-2.2.14/.yardopts diff --git a/vendor/gems/gems/haml-2.2.13/CONTRIBUTING b/lib/middleman/vendor/gems/gems/haml-2.2.14/CONTRIBUTING old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/CONTRIBUTING rename to lib/middleman/vendor/gems/gems/haml-2.2.14/CONTRIBUTING diff --git a/vendor/gems/gems/haml-2.2.13/MIT-LICENSE b/lib/middleman/vendor/gems/gems/haml-2.2.14/MIT-LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/MIT-LICENSE rename to lib/middleman/vendor/gems/gems/haml-2.2.14/MIT-LICENSE diff --git a/vendor/gems/gems/haml-2.2.13/README.md b/lib/middleman/vendor/gems/gems/haml-2.2.14/README.md old mode 100644 new mode 100755 similarity index 97% rename from vendor/gems/gems/haml-2.2.13/README.md rename to lib/middleman/vendor/gems/gems/haml-2.2.14/README.md index af0eafae..9120183e --- a/vendor/gems/gems/haml-2.2.13/README.md +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/README.md @@ -49,6 +49,16 @@ To do so, just add to `config/dependencies.rb` (or `config/init.rb` in a flat/very flat Merb application). Then it'll work just like it does in Rails. +Sass can also be used with any Rack-enabled web framework. +To do so, just add + + require 'sass/plugin/rack' + use Sass::Plugin::Rack + +to `config.ru`. +Then any Sass files in `public/stylesheets/sass` +will be compiled CSS files in `public/stylesheets` on every request. + To use Haml and Sass programatically, check out the [YARD documentation](http://haml-lang.com/docs/yardoc). diff --git a/vendor/gems/gems/haml-2.2.13/REVISION b/lib/middleman/vendor/gems/gems/haml-2.2.14/REVISION old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/REVISION rename to lib/middleman/vendor/gems/gems/haml-2.2.14/REVISION diff --git a/vendor/gems/gems/haml-2.2.13/Rakefile b/lib/middleman/vendor/gems/gems/haml-2.2.14/Rakefile old mode 100644 new mode 100755 similarity index 99% rename from vendor/gems/gems/haml-2.2.13/Rakefile rename to lib/middleman/vendor/gems/gems/haml-2.2.14/Rakefile index aa8812f8..98e35517 --- a/vendor/gems/gems/haml-2.2.13/Rakefile +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/Rakefile @@ -80,6 +80,7 @@ task :release => [:check_release, :release_elpa, :package] do sh %{rubyforge add_file haml haml "#{name} (v#{version})" pkg/haml-#{version}.tar.gz} sh %{rubyforge add_file haml haml "#{name} (v#{version})" pkg/haml-#{version}.tar.bz2} sh %{rubyforge add_file haml haml "#{name} (v#{version})" pkg/haml-#{version}.zip} + sh %{gem push pkg/haml-#{version}.gem} end # Releases haml-mode.el and sass-mode.el to ELPA. @@ -312,11 +313,11 @@ rescue LoadError; end # ----- Testing Multiple Rails Versions ----- rails_versions = [ - "v2.3.0", + "v2.3.4", "v2.2.2", "v2.1.2", - "v2.0.5" ] +rails_versions << "v2.0.5" if RUBY_VERSION =~ /^1\.8/ namespace :test do desc "Test all supported versions of rails. This takes a while." diff --git a/lib/middleman/vendor/gems/gems/haml-2.2.14/VERSION b/lib/middleman/vendor/gems/gems/haml-2.2.14/VERSION new file mode 100755 index 00000000..42a4ee5b --- /dev/null +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/VERSION @@ -0,0 +1 @@ +2.2.14 diff --git a/vendor/gems/gems/haml-2.2.13/VERSION_NAME b/lib/middleman/vendor/gems/gems/haml-2.2.14/VERSION_NAME old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/VERSION_NAME rename to lib/middleman/vendor/gems/gems/haml-2.2.14/VERSION_NAME diff --git a/vendor/gems/gems/haml-2.2.13/bin/css2sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/bin/css2sass similarity index 100% rename from vendor/gems/gems/haml-2.2.13/bin/css2sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/bin/css2sass diff --git a/vendor/gems/gems/haml-2.2.13/bin/haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/bin/haml similarity index 100% rename from vendor/gems/gems/haml-2.2.13/bin/haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/bin/haml diff --git a/vendor/gems/gems/haml-2.2.13/bin/html2haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/bin/html2haml similarity index 100% rename from vendor/gems/gems/haml-2.2.13/bin/html2haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/bin/html2haml diff --git a/vendor/gems/gems/haml-2.2.13/bin/sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/bin/sass similarity index 100% rename from vendor/gems/gems/haml-2.2.13/bin/sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/bin/sass diff --git a/vendor/gems/gems/haml-2.2.13/extra/haml-mode.el b/lib/middleman/vendor/gems/gems/haml-2.2.14/extra/haml-mode.el old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/extra/haml-mode.el rename to lib/middleman/vendor/gems/gems/haml-2.2.14/extra/haml-mode.el diff --git a/vendor/gems/gems/haml-2.2.13/extra/sass-mode.el b/lib/middleman/vendor/gems/gems/haml-2.2.14/extra/sass-mode.el old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/extra/sass-mode.el rename to lib/middleman/vendor/gems/gems/haml-2.2.14/extra/sass-mode.el diff --git a/vendor/gems/gems/haml-2.2.13/extra/update_watch.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/extra/update_watch.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/extra/update_watch.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/extra/update_watch.rb diff --git a/vendor/gems/gems/haml-2.2.13/init.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/init.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/init.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/init.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/buffer.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/buffer.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/buffer.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/buffer.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/engine.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/engine.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/engine.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/engine.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/error.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/error.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/error.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/error.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/exec.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/exec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/exec.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/exec.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/filters.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/filters.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/filters.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/filters.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/helpers.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers.rb old mode 100644 new mode 100755 similarity index 99% rename from vendor/gems/gems/haml-2.2.13/lib/haml/helpers.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers.rb index 3bb5f775..6a5172fd --- a/vendor/gems/gems/haml-2.2.13/lib/haml/helpers.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers.rb @@ -483,7 +483,9 @@ END # @param text [String] The string to sanitize # @return [String] The sanitized string def escape_once(text) - text.to_s.gsub(/[\"><]|&(?!(?:[a-zA-Z]+|(#\d+));)/n) {|s| HTML_ESCAPE[s]} + Haml::Util.silence_warnings do + text.to_s.gsub(/[\"><]|&(?!(?:[a-zA-Z]+|(#\d+));)/n) {|s| HTML_ESCAPE[s]} + end end # Returns whether or not the current template is a Haml template. diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/helpers/action_view_extensions.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/action_view_extensions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/helpers/action_view_extensions.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/action_view_extensions.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/helpers/action_view_mods.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/action_view_mods.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/helpers/action_view_mods.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/action_view_mods.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/helpers/xss_mods.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/xss_mods.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/helpers/xss_mods.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/helpers/xss_mods.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/html.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/html.rb old mode 100644 new mode 100755 similarity index 98% rename from vendor/gems/gems/haml-2.2.13/lib/haml/html.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/html.rb index 81334aeb..36acac60 --- a/vendor/gems/gems/haml-2.2.13/lib/haml/html.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/html.rb @@ -152,10 +152,7 @@ module Haml end version = " #{version}" if version - if strictness - strictness[0] = strictness[0] - 32 - strictness = " #{strictness}" - end + strictness = " #{strictness.capitalize}" if strictness "#{tabulate(tabs)}!!!#{version}#{strictness}\n" end diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/precompiler.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/precompiler.rb old mode 100644 new mode 100755 similarity index 99% rename from vendor/gems/gems/haml-2.2.13/lib/haml/precompiler.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/precompiler.rb index 21441a95..5725f2b4 --- a/vendor/gems/gems/haml-2.2.13/lib/haml/precompiler.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/precompiler.rb @@ -82,7 +82,7 @@ module Haml MID_BLOCK_KEYWORD_REGEX = /^-\s*(#{%w[else elsif rescue ensure when end].join('|')})\b/ # The Regex that matches a Doctype command. - DOCTYPE_REGEX = /(\d\.\d)?[\s]*([a-z]*)/i + DOCTYPE_REGEX = /(\d(?:\.\d)?)?[\s]*([a-z]*)/i # The Regex that matches a literal string or symbol value LITERAL_VALUE_REGEX = /:(\w*)|(["'])((?![\\#]|\2).|\\.)*\2/ @@ -848,6 +848,8 @@ END if xhtml? if version == "1.1" '' + elsif version == "5" + '' else case type when "strict"; '' diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/shared.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/shared.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/shared.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/shared.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/template.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/template.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/template/patch.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template/patch.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/template/patch.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template/patch.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/template/plugin.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template/plugin.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/template/plugin.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/template/plugin.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/util.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/util.rb old mode 100644 new mode 100755 similarity index 96% rename from vendor/gems/gems/haml-2.2.13/lib/haml/util.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/util.rb index 7c6c863c..aa8c6998 --- a/vendor/gems/gems/haml-2.2.13/lib/haml/util.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/util.rb @@ -1,6 +1,7 @@ require 'erb' require 'set' require 'enumerator' +require 'stringio' module Haml # A module containing various useful functions. @@ -122,6 +123,16 @@ module Haml end end + # Silence all output to STDERR within a block. + # + # @yield A block in which no output will be printed to STDERR + def silence_warnings + the_real_stderr, $stderr = $stderr, StringIO.new + yield + ensure + $stderr = the_real_stderr + end + ## Cross Rails Version Compatibility # Returns the root of the Rails application, diff --git a/vendor/gems/gems/haml-2.2.13/lib/haml/version.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/haml/version.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/haml/version.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/css.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/css.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/css.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/css.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/engine.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/engine.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/engine.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/engine.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/environment.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/environment.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/environment.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/environment.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/error.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/error.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/error.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/error.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/files.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/files.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/files.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/files.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin.rb old mode 100644 new mode 100755 similarity index 96% rename from vendor/gems/gems/haml-2.2.13/lib/sass/plugin.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin.rb index d79f7ea5..126d8cd8 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin.rb @@ -1,4 +1,4 @@ -require 'sass/engine' +require 'sass' module Sass # This module handles the compilation of Sass files. @@ -7,7 +7,9 @@ module Sass # # This module is used as the primary interface with Sass # when it's used as a plugin for various frameworks. - # Currently Rails and Merb are supported out of the box. + # All Rack-enabled frameworks are supported out of the box. + # The plugin is {file:SASS_REFERENCE.md#rails_merb_plugin automatically activated for Rails and Merb}. + # Other frameworks must enable it explicitly; see {Sass::Plugin::Rack}. module Plugin extend self diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin/merb.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/merb.rb old mode 100644 new mode 100755 similarity index 77% rename from vendor/gems/gems/haml-2.2.13/lib/sass/plugin/merb.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/merb.rb index c150ec23..fb931f37 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin/merb.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/merb.rb @@ -27,11 +27,7 @@ unless defined?(Sass::MERB_LOADED) class Merb::Rack::Application def call_with_sass(env) - if !Sass::Plugin.checked_for_updates || - Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check] - Sass::Plugin.update_stylesheets - end - + Sass::Plugin.check_for_updates call_without_sass(env) end alias_method :call_without_sass, :call @@ -42,11 +38,7 @@ unless defined?(Sass::MERB_LOADED) class MerbHandler def process_with_sass(request, response) - if !Sass::Plugin.checked_for_updates || - Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check] - Sass::Plugin.update_stylesheets - end - + Sass::Plugin.check_for_updates process_without_sass(request, response) end alias_method :process_without_sass, :process diff --git a/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rack.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rack.rb new file mode 100755 index 00000000..73953960 --- /dev/null +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rack.rb @@ -0,0 +1,65 @@ +require 'sass/plugin' + +module Sass + module Plugin + # Rack middleware for compiling Sass code. + # + # ## Activate + # + # require 'sass/plugin/rack' + # use Sass::Plugin::Rack + # + # ## Customize + # + # Sass::Plugin.options.merge( + # :cache_location => './tmp/sass-cache', + # :never_update => environment != :production, + # :full_exception => environment != :production) + # + # {file:SASS_REFERENCE.md#options See the Reference for more options}. + # + # ## Use + # + # Put your Sass files in `public/stylesheets/sass`. + # Your CSS will be generated in `public/stylesheets`, + # and regenerated every request if necessary. + # The locations and frequency {file:SASS_REFERENCE.md#options can be customized}. + # That's all there is to it! + class Rack + # Initialize the middleware. + # + # @param app [#call] The Rack application + def initialize(app) + @app = app + self.class.disable_native_plugin! + end + + # Process a request, checking the Sass stylesheets for changes + # and updating them if necessary. + # + # @param env The Rack request environment + # @return [(#to_i, Hash, Object)] The Rack response + def call(env) + Sass::Plugin.check_for_updates + @app.call(env) + end + + # Disable the native Rails or Merb plugins, if they're enabled. + # This is automatically done once the Rack plugin is activated. + # This is done so that the stylesheets aren't checked twice for each request. + def self.disable_native_plugin! + if defined?(Merb::Rack::Application) && + Haml::Util.has?(:instance_method, Merb::Rack::Application, :call_without_sass) + Merb::Rack::Application.instance_eval {alias_method :call, :call_without_sass} + end + + if defined?(ActionDispatch::Callbacks.to_prepare) + ActionDispatch::Callbacks.skip_callback(:prepare, :__sass_process) + elsif defined?(ActionController::Base) && + Haml::Util.has?(:instance_method, ActionController::Base, :sass_old_process) + ActionController::Base.instance_eval {alias_method :process, :sass_old_process} + end + end + end + end +end diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rails.rb old mode 100644 new mode 100755 similarity index 90% rename from vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rails.rb index 08cde510..8d4a5f40 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rails.rb @@ -9,7 +9,7 @@ unless defined?(Sass::RAILS_LOADED) if defined?(ActionDispatch::Callbacks.to_prepare) # Rails >= 3.0.0 - ActionDispatch::Callbacks.to_prepare {Sass::Plugin.check_for_updates} + ActionDispatch::Callbacks.to_prepare(:sass_process) {Sass::Plugin.check_for_updates} else module ActionController class Base diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/repl.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/repl.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/repl.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/repl.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/bool.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/bool.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/bool.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/bool.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/color.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/color.rb old mode 100644 new mode 100755 similarity index 87% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/color.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/color.rb index 5681e58e..49d0116d --- a/vendor/gems/gems/haml-2.2.13/lib/sass/script/color.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/color.rb @@ -36,6 +36,25 @@ module Sass::Script super(rgb) end + # @deprecated This will be removed in version 2.6. + # @see #rgb + def value + warn <] A three-element array of the red, green, and blue + # values (respectively) of the color + def rgb + @value + end + # The SassScript `+` operation. # Its functionality depends on the type of its argument: # @@ -157,8 +176,8 @@ module Sass::Script # # @return [String] The string representation def to_s - return HTML4_COLORS_REVERSE[@value] if HTML4_COLORS_REVERSE[@value] - red, green, blue = @value.map { |num| num.to_s(16).rjust(2, '0') } + return HTML4_COLORS_REVERSE[rgb] if HTML4_COLORS_REVERSE[rgb] + red, green, blue = rgb.map { |num| num.to_s(16).rjust(2, '0') } "##{red}#{green}#{blue}" end alias_method :inspect, :to_s @@ -167,17 +186,16 @@ module Sass::Script def piecewise(other, operation) other_num = other.is_a? Number - other_val = other.value if other_num && !other.unitless? raise Sass::SyntaxError.new("Cannot add a number with units (#{other}) to a color (#{self}).") end - rgb = [] + result = [] for i in (0...3) - res = @value[i].send(operation, other_num ? other_val : other_val[i]) - rgb[i] = [ [res, 255].min, 0 ].max + res = rgb[i].send(operation, other_num ? other.value : other.rgb[i]) + result[i] = [ [res, 255].min, 0 ].max end - Color.new(rgb) + Color.new(result) end end end diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/funcall.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/funcall.rb old mode 100644 new mode 100755 similarity index 95% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/funcall.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/funcall.rb index d05d2cf9..7e144cf1 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/script/funcall.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/funcall.rb @@ -42,7 +42,7 @@ module Sass return Functions::EvaluationContext.new(environment.options).send(name, *args) rescue ArgumentError => e - raise e unless e.backtrace.first =~ /:in `(block in )?(#{name}|perform)'$/ + raise e unless e.backtrace.any? {|t| t =~ /:in `(block in )?(#{name}|perform)'$/} raise Sass::SyntaxError.new("#{e.message} for `#{name}'") end end diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/functions.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/functions.rb old mode 100644 new mode 100755 similarity index 69% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/functions.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/functions.rb index c843eb5d..f9547fc0 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/script/functions.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/functions.rb @@ -11,6 +11,9 @@ module Sass::Script # \{#hsl} # : Converts an `hsl(hue, saturation, lightness)` triplet into a color. # + # \{#rgb} + # : Converts an `rgb(red, green, blue)` triplet into a color. + # # \{#percentage} # : Converts a unitless number to a percentage. # @@ -26,10 +29,28 @@ module Sass::Script # \{#abs} # : Returns the absolute value of a number. # - # You can add your own functions to this module, - # but there are a few things to keep in mind. + # These functions are described in more detail below. + # + # ## Adding Custom Functions + # + # New Sass functions can be added by adding Ruby methods to this module. + # For example: + # + # module Sass::Script::Functions + # def reverse(string) + # assert_type string, :String + # Sass::Script::String.new(string.value.reverse) + # end + # end + # + # There are a few things to keep in mind when modifying this module. # First of all, the arguments passed are {Sass::Script::Literal} objects. # Literal objects are also expected to be returned. + # This means that Ruby values must be unwrapped and wrapped. + # + # Most Literal objects support the {Sass::Script::Literal#value value} accessor + # for getting their Ruby values. + # Color objects, though, must be accessed using {Sass::Script::Color#rgb rgb}. # # Second, making Ruby functions accessible from Sass introduces the temptation # to do things like database access within stylesheets. @@ -57,6 +78,22 @@ module Sass::Script def initialize(options) @options = options end + + # Asserts that the type of a given SassScript value + # is the expected type (designated by a symbol). + # For example: + # + # assert_type value, :String + # assert_type value, :Number + # + # Valid types are `:Bool`, `:Color`, `:Number`, and `:String`. + # + # @param value [Sass::Script::Literal] A SassScript value + # @param type [Symbol] The name of the type the value is expected to be + def assert_type(value, type) + return if value.is_a?(Sass::Script.const_get(type)) + raise ArgumentError.new("#{value.inspect} is not a #{type.to_s.downcase}") + end end instance_methods.each { |m| undef_method m unless m.to_s =~ /^__/ } @@ -64,21 +101,34 @@ module Sass::Script # Creates a {Color} object from red, green, and blue values. # @param red - # A number between 0 and 255 inclusive + # A number between 0 and 255 inclusive, + # or between 0% and 100% inclusive # @param green - # A number between 0 and 255 inclusive + # A number between 0 and 255 inclusive, + # or between 0% and 100% inclusive # @param blue - # A number between 0 and 255 inclusive + # A number between 0 and 255 inclusive, + # or between 0% and 100% inclusive def rgb(red, green, blue) - [red.value, green.value, blue.value].each do |v| - next unless v < 0 || v > 255 - raise ArgumentError.new("Color value #{v} must be between 0 and 255 inclusive") + assert_type red, :Number + assert_type green, :Number + assert_type blue, :Number + + rgb = [red, green, blue].map do |c| + v = c.value + if c.numerator_units == ["%"] && c.denominator_units.empty? + next v * 255 / 100.0 if (0..100).include?(v) + raise ArgumentError.new("Color value #{c} must be between 0% and 100% inclusive") + else + next v if (0..255).include?(v) + raise ArgumentError.new("Color value #{v} must be between 0 and 255 inclusive") + end end - Color.new([red.value, green.value, blue.value]) + Color.new(rgb) end - # Creates a {Color} object from hue, saturation, and lightness - # as per the CSS3 spec (http://www.w3.org/TR/css3-color/#hsl-color). + # Creates a {Color} object from hue, saturation, and lightness. + # Uses the algorithm from the [CSS3 spec](http://www.w3.org/TR/css3-color/#hsl-color). # # @param hue [Number] The hue of the color. # Should be between 0 and 360 degrees, inclusive @@ -89,6 +139,10 @@ module Sass::Script # @return [Color] The resulting color # @raise [ArgumentError] if `saturation` or `lightness` are out of bounds def hsl(hue, saturation, lightness) + assert_type hue, :Number + assert_type saturation, :Number + assert_type lightness, :Number + original_s = saturation original_l = lightness # This algorithm is from http://www.w3.org/TR/css3-color#hsl-color @@ -117,7 +171,7 @@ module Sass::Script # @raise [ArgumentError] If `value` isn't a unitless number def percentage(value) unless value.is_a?(Sass::Script::Number) && value.unitless? - raise ArgumentError.new("#{value} is not a unitless number") + raise ArgumentError.new("#{value.inspect} is not a unitless number") end Sass::Script::Number.new(value.value * 100, ['%']) end @@ -180,10 +234,7 @@ module Sass::Script # another numeric value with the same units. # It yields a number to a block to perform the operation and return a number def numeric_transformation(value) - unless value.is_a?(Sass::Script::Number) - calling_function = caller.first.scan(/`([^']+)'/).first.first - raise Sass::SyntaxError.new("#{value} is not a number for `#{calling_function}'") - end + assert_type value, :Number Sass::Script::Number.new(yield(value.value), value.numerator_units, value.denominator_units) end diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/lexer.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/lexer.rb old mode 100644 new mode 100755 similarity index 97% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/lexer.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/lexer.rb index 86e7c3b8..083065f4 --- a/vendor/gems/gems/haml-2.2.13/lib/sass/script/lexer.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/lexer.rb @@ -53,8 +53,8 @@ module Sass REGULAR_EXPRESSIONS = { :whitespace => /\s*/, :variable => /!(\w+)/, - :ident => /(\\.|\#\{|[^\s\\+\-*\/%(),=!])+/, - :string_end => /((?:\\.|\#[^{]|[^"\\#])*)(?:"|(?=#\{))/, + :ident => /(\\.|[^\s\\+\-*\/%(),=!])+/, + :string_end => /((?:\\.|\#(?!\{)|[^"\\#])*)(?:"|(?=#\{))/, :number => /(-)?(?:(\d*\.\d+)|(\d+))([a-zA-Z%]+)?/, :color => /\##{"([0-9a-fA-F]{1,2})" * 3}|(#{Color::HTML4_COLORS.keys.join("|")})/, :bool => /(true|false)\b/, diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/literal.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/literal.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/literal.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/literal.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/number.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/number.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/number.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/number.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/operation.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/operation.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/operation.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/operation.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/parser.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/parser.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/parser.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/parser.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/string.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/string.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/string.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/string.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/unary_operation.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/unary_operation.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/unary_operation.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/unary_operation.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/script/variable.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/variable.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/script/variable.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/script/variable.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/comment_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/comment_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/comment_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/comment_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/debug_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/debug_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/debug_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/debug_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/directive_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/directive_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/directive_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/directive_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/for_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/for_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/for_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/for_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/if_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/if_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/if_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/if_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/import_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/import_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/import_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/import_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/mixin_def_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/mixin_def_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/mixin_def_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/mixin_def_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/mixin_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/mixin_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/mixin_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/mixin_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/prop_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/prop_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/prop_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/prop_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/rule_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/rule_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/rule_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/rule_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/variable_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/variable_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/variable_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/variable_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/lib/sass/tree/while_node.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/while_node.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/lib/sass/tree/while_node.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/tree/while_node.rb diff --git a/vendor/gems/gems/haml-2.2.13/rails/init.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/rails/init.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/rails/init.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/rails/init.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/benchmark.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/benchmark.rb similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/benchmark.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/benchmark.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/engine_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/engine_test.rb old mode 100644 new mode 100755 similarity index 99% rename from vendor/gems/gems/haml-2.2.13/test/haml/engine_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/engine_test.rb index 6cbfed89..a63f1dce --- a/vendor/gems/gems/haml-2.2.13/test/haml/engine_test.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/engine_test.rb @@ -729,6 +729,7 @@ HAML def test_doctypes assert_equal('', render('!!!', :format => :html5).strip) + assert_equal('', render('!!! 5').strip) assert_equal('', render('!!! strict').strip) assert_equal('', @@ -1033,6 +1034,11 @@ END assert_equal("\n", render('%a{:b => "a #{1 + 1} b", :c => "d"}', :suppress_eval => true)) end + def test_utf8_attrs + assert_equal("\n", render("%a{:href => 'héllo'}")) + assert_equal("\n", render("%a(href='héllo')")) + end + # HTML 4.0 def test_html_has_no_self_closing_tags diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/helper_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/helper_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/helper_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/helper_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/html2haml_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/html2haml_test.rb old mode 100644 new mode 100755 similarity index 94% rename from vendor/gems/gems/haml-2.2.13/test/haml/html2haml_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/html2haml_test.rb index 187e1779..5c2b545a --- a/vendor/gems/gems/haml-2.2.13/test/haml/html2haml_test.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/html2haml_test.rb @@ -112,6 +112,15 @@ HTML render_rhtml('

">

')) end + # Regression Tests + + def test_xhtml_strict_doctype + assert_equal('!!! Strict', render(< +HTML + end + protected def render(text, options = {}) diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/markaby/standard.mab b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/markaby/standard.mab old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/markaby/standard.mab rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/markaby/standard.mab diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/mocks/article.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/mocks/article.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/mocks/article.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/mocks/article.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/content_for_layout.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/content_for_layout.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/content_for_layout.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/content_for_layout.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/eval_suppressed.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/eval_suppressed.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/eval_suppressed.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/eval_suppressed.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/filters.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/filters.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/filters.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/filters.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/helpers.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/helpers.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/helpers.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/helpers.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/helpful.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/helpful.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/helpful.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/helpful.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/just_stuff.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/just_stuff.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/just_stuff.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/just_stuff.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/list.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/list.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/list.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/list.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/nuke_inner_whitespace.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/nuke_inner_whitespace.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/nuke_inner_whitespace.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/nuke_inner_whitespace.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/nuke_outer_whitespace.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/nuke_outer_whitespace.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/nuke_outer_whitespace.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/nuke_outer_whitespace.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/original_engine.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/original_engine.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/original_engine.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/original_engine.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/partial_layout.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/partial_layout.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/partial_layout.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/partial_layout.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/partials.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/partials.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/partials.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/partials.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/render_layout.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/render_layout.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/render_layout.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/render_layout.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/silent_script.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/silent_script.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/silent_script.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/silent_script.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/standard.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/standard.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/standard.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/standard.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/tag_parsing.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/tag_parsing.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/tag_parsing.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/tag_parsing.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/very_basic.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/very_basic.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/very_basic.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/very_basic.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/results/whitespace_handling.xhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/whitespace_handling.xhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/results/whitespace_handling.xhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/results/whitespace_handling.xhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/rhtml/_av_partial_1.rhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/_av_partial_1.rhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/rhtml/_av_partial_1.rhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/_av_partial_1.rhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/rhtml/_av_partial_2.rhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/_av_partial_2.rhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/rhtml/_av_partial_2.rhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/_av_partial_2.rhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/rhtml/action_view.rhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/action_view.rhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/rhtml/action_view.rhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/action_view.rhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/rhtml/standard.rhtml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/standard.rhtml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/rhtml/standard.rhtml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/rhtml/standard.rhtml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/spec/README.md b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/README.md old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/spec/README.md rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/README.md diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/spec/lua_haml_spec.lua b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/lua_haml_spec.lua old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/spec/lua_haml_spec.lua rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/lua_haml_spec.lua diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/spec/ruby_haml_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/ruby_haml_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/spec/ruby_haml_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/ruby_haml_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/spec/tests.json b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/tests.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/spec/tests.json rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/spec/tests.json diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/template_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/template_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/template_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/template_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_1.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_1.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_1.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_1.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_1_ugly.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_1_ugly.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_1_ugly.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_1_ugly.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_2.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_2.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_2.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_2.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_2_ugly.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_2_ugly.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_av_partial_2_ugly.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_av_partial_2_ugly.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_layout.erb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_layout.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_layout.erb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_layout.erb diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_layout_for_partial.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_layout_for_partial.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_layout_for_partial.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_layout_for_partial.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_partial.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_partial.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_partial.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_partial.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/_text_area.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_text_area.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/_text_area.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/_text_area.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/action_view.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/action_view.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/action_view.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/action_view.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/action_view_ugly.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/action_view_ugly.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/action_view_ugly.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/action_view_ugly.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/breakage.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/breakage.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/breakage.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/breakage.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/content_for_layout.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/content_for_layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/content_for_layout.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/content_for_layout.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/eval_suppressed.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/eval_suppressed.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/eval_suppressed.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/eval_suppressed.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/filters.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/filters.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/filters.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/filters.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/helpers.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/helpers.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/helpers.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/helpers.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/helpful.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/helpful.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/helpful.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/helpful.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/just_stuff.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/just_stuff.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/just_stuff.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/just_stuff.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/list.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/list.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/list.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/list.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/nuke_inner_whitespace.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/nuke_inner_whitespace.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/nuke_inner_whitespace.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/nuke_inner_whitespace.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/nuke_outer_whitespace.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/nuke_outer_whitespace.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/nuke_outer_whitespace.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/nuke_outer_whitespace.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/original_engine.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/original_engine.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/original_engine.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/original_engine.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/partial_layout.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partial_layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/partial_layout.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partial_layout.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/partialize.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partialize.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/partialize.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partialize.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/partials.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partials.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/partials.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/partials.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/render_layout.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/render_layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/render_layout.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/render_layout.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/silent_script.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/silent_script.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/silent_script.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/silent_script.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/standard.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/standard.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/standard.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/standard.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/standard_ugly.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/standard_ugly.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/standard_ugly.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/standard_ugly.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/tag_parsing.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/tag_parsing.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/tag_parsing.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/tag_parsing.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/very_basic.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/very_basic.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/very_basic.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/very_basic.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/templates/whitespace_handling.haml b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/whitespace_handling.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/haml/templates/whitespace_handling.haml rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/templates/whitespace_handling.haml diff --git a/vendor/gems/gems/haml-2.2.13/test/haml/util_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/util_test.rb old mode 100644 new mode 100755 similarity index 92% rename from vendor/gems/gems/haml-2.2.13/test/haml/util_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/util_test.rb index a2b09c9d..560c2343 --- a/vendor/gems/gems/haml-2.2.13/test/haml/util_test.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/haml/util_test.rb @@ -59,6 +59,16 @@ class UtilTest < Test::Unit::TestCase merge_adjacent_strings(["foo ", "bar ", "baz", :bang, "biz", " bop", 12])) end + def test_silence_warnings + old_stderr, $stderr = $stderr, StringIO.new + warn "Out" + assert_equal("Out\n", $stderr.string) + silence_warnings {warn "In"} + assert_equal("Out\n", $stderr.string) + ensure + $stderr = old_stderr + end + def test_has assert(has?(:instance_method, String, :chomp!)) assert(has?(:private_instance_method, Haml::Engine, :set_locals)) diff --git a/vendor/gems/gems/haml-2.2.13/test/linked_rails.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/linked_rails.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/linked_rails.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/linked_rails.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/css2sass_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/css2sass_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/css2sass_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/css2sass_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/engine_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/engine_test.rb similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/engine_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/engine_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/functions_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/functions_test.rb old mode 100644 new mode 100755 similarity index 72% rename from vendor/gems/gems/haml-2.2.13/test/sass/functions_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/functions_test.rb index 446ab202..ef45ad94 --- a/vendor/gems/gems/haml-2.2.13/test/sass/functions_test.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/functions_test.rb @@ -48,13 +48,22 @@ class SassFunctionTest < Test::Unit::TestCase assert_error_message("Lightness 256 must be between 0% and 100% for `hsl'", "hsl(10, 10, 256%)"); end + def test_hsl_checks_types + assert_error_message("\"foo\" is not a number for `hsl'", "hsl(\"foo\", 10, 12)"); + assert_error_message("\"foo\" is not a number for `hsl'", "hsl(10, \"foo\", 12)"); + assert_error_message("\"foo\" is not a number for `hsl'", "hsl(10, 10, \"foo\")"); + end + def test_percentage assert_equal("50%", evaluate("percentage(.5)")) assert_equal("100%", evaluate("percentage(1)")) assert_equal("25%", evaluate("percentage(25px / 100px)")) + end + + def test_percentage_checks_types assert_error_message("25px is not a unitless number for `percentage'", "percentage(25px)") assert_error_message("#cccccc is not a unitless number for `percentage'", "percentage(#ccc)") - assert_error_message("string is not a unitless number for `percentage'", %Q{percentage("string")}) + assert_error_message("\"string\" is not a unitless number for `percentage'", %Q{percentage("string")}) end def test_round @@ -69,14 +78,14 @@ class SassFunctionTest < Test::Unit::TestCase assert_equal("4", evaluate("floor(4.8)")) assert_equal("4px", evaluate("floor(4.8px)")) - assert_error_message("foo is not a number for `floor'", "floor(\"foo\")") + assert_error_message("\"foo\" is not a number for `floor'", "floor(\"foo\")") end def test_ceil assert_equal("5", evaluate("ceil(4.1)")) assert_equal("5px", evaluate("ceil(4.8px)")) - assert_error_message("a is not a number for `ceil'", "ceil(\"a\")") + assert_error_message("\"a\" is not a number for `ceil'", "ceil(\"a\")") end def test_abs @@ -92,7 +101,16 @@ class SassFunctionTest < Test::Unit::TestCase assert_equal("#123456", evaluate("rgb(18, 52, 86)")) assert_equal("#beaded", evaluate("rgb(190, 173, 237)")) assert_equal("#00ff7f", evaluate("rgb(0, 255, 127)")) + end + def test_rgb_percent + assert_equal("#123456", evaluate("rgb(7.1%, 20.4%, 34%)")) + assert_equal("#beaded", evaluate("rgb(74.7%, 173, 93%)")) + assert_equal("#beaded", evaluate("rgb(190, 68%, 237)")) + assert_equal("#00ff7f", evaluate("rgb(0%, 100%, 50%)")) + end + + def test_rgb_tests_bounds assert_error_message("Color value 256 must be between 0 and 255 inclusive for `rgb'", "rgb(256, 1, 1)") assert_error_message("Color value 256 must be between 0 and 255 inclusive for `rgb'", @@ -105,11 +123,26 @@ class SassFunctionTest < Test::Unit::TestCase "rgb(-1, 1, 1)") end + def test_rgb_test_percent_bounds + assert_error_message("Color value 100.1% must be between 0% and 100% inclusive for `rgb'", + "rgb(100.1%, 0, 0)") + assert_error_message("Color value -0.1% must be between 0% and 100% inclusive for `rgb'", + "rgb(0, -0.1%, 0)") + assert_error_message("Color value 101% must be between 0% and 100% inclusive for `rgb'", + "rgb(0, 0, 101%)") + end + + def test_rgb_tests_types + assert_error_message("\"foo\" is not a number for `rgb'", "rgb(\"foo\", 10, 12)"); + assert_error_message("\"foo\" is not a number for `rgb'", "rgb(10, \"foo\", 12)"); + assert_error_message("\"foo\" is not a number for `rgb'", "rgb(10, 10, \"foo\")"); + end + private def assert_rgb_hsl(rgb, hsl) hsl = hsl.map {|v| Sass::Script::Parser.parse v, 0, 0 } - assert_equal(rgb, Sass::Script::Functions::EvaluationContext.new({}).hsl(*hsl).value) + assert_equal(rgb, Sass::Script::Functions::EvaluationContext.new({}).hsl(*hsl).rgb) end def evaluate(value) diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_results/more1.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more1.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_results/more1.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more1.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_results/more1_with_line_comments.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more1_with_line_comments.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_results/more1_with_line_comments.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more1_with_line_comments.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_results/more_import.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more_import.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_results/more_import.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_results/more_import.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_templates/_more_partial.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/_more_partial.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_templates/_more_partial.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/_more_partial.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_templates/more1.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/more1.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_templates/more1.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/more1.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/more_templates/more_import.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/more_import.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/more_templates/more_import.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/more_templates/more_import.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/plugin_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/plugin_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/plugin_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/plugin_test.rb diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/alt.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/alt.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/alt.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/alt.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/basic.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/basic.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/basic.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/basic.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/compact.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/compact.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/compact.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/compact.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/complex.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/complex.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/complex.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/complex.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/compressed.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/compressed.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/compressed.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/compressed.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/expanded.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/expanded.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/expanded.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/expanded.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/import.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/import.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/import.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/import.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/line_numbers.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/line_numbers.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/line_numbers.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/line_numbers.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/mixins.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/mixins.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/mixins.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/mixins.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/multiline.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/multiline.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/multiline.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/multiline.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/nested.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/nested.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/nested.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/nested.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/parent_ref.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/parent_ref.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/parent_ref.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/parent_ref.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/script.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/script.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/script.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/script.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/subdir/nested_subdir/nested_subdir.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/subdir/nested_subdir/nested_subdir.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/subdir/nested_subdir/nested_subdir.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/subdir/nested_subdir/nested_subdir.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/subdir/subdir.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/subdir/subdir.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/subdir/subdir.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/subdir/subdir.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/results/units.css b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/units.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/results/units.css rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/results/units.css diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/script_test.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/script_test.rb old mode 100644 new mode 100755 similarity index 98% rename from vendor/gems/gems/haml-2.2.13/test/sass/script_test.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/script_test.rb index 93f55efd..463a13f4 --- a/vendor/gems/gems/haml-2.2.13/test/sass/script_test.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/script_test.rb @@ -225,6 +225,12 @@ WARN assert_equal "true", resolve("1.1cm == 11mm") end + # Regression tests + + def test_interpolation_after_hash + assert_equal "#2", resolve('"##{1 + 1}"') + end + private def resolve(str, opts = {}, environment = env) diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/_partial.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/_partial.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/_partial.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/_partial.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/alt.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/alt.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/alt.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/alt.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/basic.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/basic.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/basic.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/basic.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/bork.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/bork.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/bork.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/bork.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/bork2.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/bork2.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/bork2.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/bork2.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/compact.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/compact.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/compact.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/compact.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/complex.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/complex.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/complex.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/complex.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/compressed.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/compressed.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/compressed.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/compressed.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/expanded.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/expanded.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/expanded.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/expanded.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/import.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/import.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/import.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/import.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/importee.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/importee.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/importee.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/importee.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/line_numbers.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/line_numbers.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/line_numbers.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/line_numbers.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/mixins.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/mixins.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/mixins.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/mixins.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/multiline.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/multiline.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/multiline.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/multiline.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/nested.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/nested.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/nested.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/nested.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/parent_ref.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/parent_ref.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/parent_ref.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/parent_ref.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/script.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/script.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/script.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/script.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/nested_subdir/_nested_partial.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/nested_subdir/_nested_partial.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/nested_subdir/_nested_partial.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/nested_subdir/_nested_partial.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/nested_subdir/nested_subdir.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/nested_subdir/nested_subdir.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/nested_subdir/nested_subdir.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/nested_subdir/nested_subdir.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/subdir.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/subdir.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/subdir/subdir.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/subdir/subdir.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/sass/templates/units.sass b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/units.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/haml-2.2.13/test/sass/templates/units.sass rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/sass/templates/units.sass diff --git a/vendor/gems/gems/haml-2.2.13/test/test_helper.rb b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/test_helper.rb old mode 100644 new mode 100755 similarity index 86% rename from vendor/gems/gems/haml-2.2.13/test/test_helper.rb rename to lib/middleman/vendor/gems/gems/haml-2.2.14/test/test_helper.rb index d5da2379..a31a675e --- a/vendor/gems/gems/haml-2.2.13/test/test_helper.rb +++ b/lib/middleman/vendor/gems/gems/haml-2.2.14/test/test_helper.rb @@ -29,10 +29,7 @@ class Test::Unit::TestCase $stderr = the_real_stderr end - def silence_warnings - the_real_stderr, $stderr = $stderr, StringIO.new - yield - ensure - $stderr = the_real_stderr + def silence_warnings(&block) + Haml::Util.silence_warnings(&block) end end diff --git a/vendor/gems/gems/highline-1.5.1/CHANGELOG b/lib/middleman/vendor/gems/gems/highline-1.5.1/CHANGELOG old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/CHANGELOG rename to lib/middleman/vendor/gems/gems/highline-1.5.1/CHANGELOG diff --git a/vendor/gems/gems/highline-1.5.1/INSTALL b/lib/middleman/vendor/gems/gems/highline-1.5.1/INSTALL old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/INSTALL rename to lib/middleman/vendor/gems/gems/highline-1.5.1/INSTALL diff --git a/vendor/gems/gems/highline-1.5.1/LICENSE b/lib/middleman/vendor/gems/gems/highline-1.5.1/LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/LICENSE rename to lib/middleman/vendor/gems/gems/highline-1.5.1/LICENSE diff --git a/vendor/gems/gems/highline-1.5.1/README b/lib/middleman/vendor/gems/gems/highline-1.5.1/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/README rename to lib/middleman/vendor/gems/gems/highline-1.5.1/README diff --git a/vendor/gems/gems/highline-1.5.1/Rakefile b/lib/middleman/vendor/gems/gems/highline-1.5.1/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/Rakefile rename to lib/middleman/vendor/gems/gems/highline-1.5.1/Rakefile diff --git a/vendor/gems/gems/highline-1.5.1/TODO b/lib/middleman/vendor/gems/gems/highline-1.5.1/TODO old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/TODO rename to lib/middleman/vendor/gems/gems/highline-1.5.1/TODO diff --git a/vendor/gems/gems/highline-1.5.1/examples/ansi_colors.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/ansi_colors.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/ansi_colors.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/ansi_colors.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/asking_for_arrays.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/asking_for_arrays.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/asking_for_arrays.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/asking_for_arrays.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/basic_usage.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/basic_usage.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/basic_usage.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/basic_usage.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/color_scheme.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/color_scheme.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/color_scheme.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/color_scheme.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/limit.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/limit.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/limit.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/limit.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/menus.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/menus.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/menus.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/menus.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/overwrite.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/overwrite.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/overwrite.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/overwrite.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/page_and_wrap.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/page_and_wrap.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/page_and_wrap.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/page_and_wrap.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/password.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/password.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/password.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/password.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/trapping_eof.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/trapping_eof.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/trapping_eof.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/trapping_eof.rb diff --git a/vendor/gems/gems/highline-1.5.1/examples/using_readline.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/examples/using_readline.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/examples/using_readline.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/examples/using_readline.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/color_scheme.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/color_scheme.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/color_scheme.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/color_scheme.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/compatibility.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/compatibility.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/compatibility.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/compatibility.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/import.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/import.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/import.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/import.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/menu.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/menu.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/menu.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/menu.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/question.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/question.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/question.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/question.rb diff --git a/vendor/gems/gems/highline-1.5.1/lib/highline/system_extensions.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/system_extensions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/lib/highline/system_extensions.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/lib/highline/system_extensions.rb diff --git a/vendor/gems/gems/highline-1.5.1/setup.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/setup.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/setup.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/setup.rb diff --git a/vendor/gems/gems/highline-1.5.1/test/tc_color_scheme.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_color_scheme.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/test/tc_color_scheme.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_color_scheme.rb diff --git a/vendor/gems/gems/highline-1.5.1/test/tc_highline.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_highline.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/test/tc_highline.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_highline.rb diff --git a/vendor/gems/gems/highline-1.5.1/test/tc_import.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_import.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/test/tc_import.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_import.rb diff --git a/vendor/gems/gems/highline-1.5.1/test/tc_menu.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_menu.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/test/tc_menu.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/test/tc_menu.rb diff --git a/vendor/gems/gems/highline-1.5.1/test/ts_all.rb b/lib/middleman/vendor/gems/gems/highline-1.5.1/test/ts_all.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/highline-1.5.1/test/ts_all.rb rename to lib/middleman/vendor/gems/gems/highline-1.5.1/test/ts_all.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/cookie.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/cookie.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/cookie.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/cookie.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/http.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/http.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/http.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/http-access2/http.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/auth.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/auth.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/auth.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/auth.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert.p7s b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert.p7s old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert.p7s rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert.p7s diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert_sha1.p7s b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert_sha1.p7s old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert_sha1.p7s rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cacert_sha1.p7s diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/connection.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/connection.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/connection.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/connection.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cookie.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cookie.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cookie.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/cookie.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/http.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/http.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/http.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/http.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/session.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/session.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/session.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/session.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/timeout.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/timeout.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/timeout.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/timeout.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/util.rb b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/util.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/util.rb rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/httpclient/util.rb diff --git a/vendor/gems/gems/httpclient-2.1.5.2/lib/tags b/lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/tags old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/httpclient-2.1.5.2/lib/tags rename to lib/middleman/vendor/gems/gems/httpclient-2.1.5.2/lib/tags diff --git a/vendor/gems/gems/json-1.2.0/.require_paths b/lib/middleman/vendor/gems/gems/json-1.2.0/.require_paths old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/.require_paths rename to lib/middleman/vendor/gems/gems/json-1.2.0/.require_paths diff --git a/vendor/gems/gems/json-1.2.0/CHANGES b/lib/middleman/vendor/gems/gems/json-1.2.0/CHANGES old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/CHANGES rename to lib/middleman/vendor/gems/gems/json-1.2.0/CHANGES diff --git a/vendor/gems/gems/json-1.2.0/COPYING b/lib/middleman/vendor/gems/gems/json-1.2.0/COPYING old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/COPYING rename to lib/middleman/vendor/gems/gems/json-1.2.0/COPYING diff --git a/vendor/gems/gems/json-1.2.0/GPL b/lib/middleman/vendor/gems/gems/json-1.2.0/GPL old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/GPL rename to lib/middleman/vendor/gems/gems/json-1.2.0/GPL diff --git a/vendor/gems/gems/json-1.2.0/README b/lib/middleman/vendor/gems/gems/json-1.2.0/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/README rename to lib/middleman/vendor/gems/gems/json-1.2.0/README diff --git a/vendor/gems/gems/json-1.2.0/Rakefile b/lib/middleman/vendor/gems/gems/json-1.2.0/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/Rakefile rename to lib/middleman/vendor/gems/gems/json-1.2.0/Rakefile diff --git a/vendor/gems/gems/json-1.2.0/TODO b/lib/middleman/vendor/gems/gems/json-1.2.0/TODO old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/TODO rename to lib/middleman/vendor/gems/gems/json-1.2.0/TODO diff --git a/vendor/gems/gems/json-1.2.0/VERSION b/lib/middleman/vendor/gems/gems/json-1.2.0/VERSION old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/VERSION rename to lib/middleman/vendor/gems/gems/json-1.2.0/VERSION diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/generator_benchmark.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/generator_benchmark.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/generator_benchmark.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/generator_benchmark.rb diff --git a/vendor/gems/gems/json-1.2.0/benchmarks/parser_benchmark.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/parser_benchmark.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/benchmarks/parser_benchmark.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/benchmarks/parser_benchmark.rb diff --git a/vendor/gems/gems/json-1.2.0/bin/edit_json.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/bin/edit_json.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/bin/edit_json.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/bin/edit_json.rb diff --git a/vendor/gems/gems/json-1.2.0/bin/prettify_json.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/bin/prettify_json.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/bin/prettify_json.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/bin/prettify_json.rb diff --git a/vendor/gems/gems/json-1.2.0/data/example.json b/lib/middleman/vendor/gems/gems/json-1.2.0/data/example.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/data/example.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/data/example.json diff --git a/vendor/gems/gems/json-1.2.0/data/index.html b/lib/middleman/vendor/gems/gems/json-1.2.0/data/index.html old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/data/index.html rename to lib/middleman/vendor/gems/gems/json-1.2.0/data/index.html diff --git a/vendor/gems/gems/json-1.2.0/data/prototype.js b/lib/middleman/vendor/gems/gems/json-1.2.0/data/prototype.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/data/prototype.js rename to lib/middleman/vendor/gems/gems/json-1.2.0/data/prototype.js diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator.bundle b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator.bundle new file mode 100755 index 00000000..9f2fdb94 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator.bundle differ diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/Makefile b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/Makefile new file mode 100755 index 00000000..212d98b1 --- /dev/null +++ b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/Makefile @@ -0,0 +1,157 @@ + +SHELL = /bin/sh + +#### Start of system configuration section. #### + +srcdir = . +topdir = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 +hdrdir = $(topdir) +VPATH = $(srcdir):$(topdir):$(hdrdir) +exec_prefix = $(prefix) +prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr +sharedstatedir = $(prefix)/com +mandir = $(DESTDIR)/usr/share/man +psdir = $(docdir) +oldincludedir = $(DESTDIR)/usr/include +localedir = $(datarootdir)/locale +bindir = $(exec_prefix)/bin +libexecdir = $(exec_prefix)/libexec +sitedir = $(DESTDIR)/Library/Ruby/Site +htmldir = $(docdir) +vendorarchdir = $(vendorlibdir)/$(sitearch) +includedir = $(prefix)/include +infodir = $(DESTDIR)/usr/share/info +vendorlibdir = $(vendordir)/$(ruby_version) +sysconfdir = $(prefix)/etc +libdir = $(exec_prefix)/lib +sbindir = $(exec_prefix)/sbin +rubylibdir = $(libdir)/ruby/$(ruby_version) +docdir = $(datarootdir)/doc/$(PACKAGE) +dvidir = $(docdir) +vendordir = $(libdir)/ruby/vendor_ruby +datarootdir = $(prefix)/share +pdfdir = $(docdir) +archdir = $(rubylibdir)/$(arch) +sitearchdir = $(sitelibdir)/$(sitearch) +datadir = $(datarootdir) +localstatedir = $(prefix)/var +sitelibdir = $(sitedir)/$(ruby_version) + +CC = gcc +LIBRUBY = $(LIBRUBY_SO) +LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a +LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME) +LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME) + +RUBY_EXTCONF_H = +CFLAGS = -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common $(cflags) -Wall +INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) +DEFS = +CPPFLAGS = -DHAVE_RUBY_ST_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags) +CXXFLAGS = $(CFLAGS) +ldflags = -L. -arch i386 -arch x86_64 +dldflags = +archflag = +DLDFLAGS = $(ldflags) $(dldflags) $(archflag) +LDSHARED = cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup +AR = ar +EXEEXT = + +RUBY_INSTALL_NAME = ruby +RUBY_SO_NAME = ruby +arch = universal-darwin10.0 +sitearch = universal-darwin10.0 +ruby_version = 1.8 +ruby = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +RUBY = $(ruby) +RM = rm -f +MAKEDIRS = mkdir -p +INSTALL = /usr/bin/install -c +INSTALL_PROG = $(INSTALL) -m 0755 +INSTALL_DATA = $(INSTALL) -m 644 +COPY = cp + +#### End of system configuration section. #### + +preload = + +libpath = . $(libdir) +LIBPATH = -L. -L$(libdir) +DEFFILE = + +CLEANFILES = mkmf.log +DISTCLEANFILES = + +extout = +extout_prefix = +target_prefix = +LOCAL_LIBS = +LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl +SRCS = generator.c unicode.c +OBJS = generator.o unicode.o +TARGET = generator +DLLIB = $(TARGET).bundle +EXTSTATIC = +STATIC_LIB = + +BINDIR = $(bindir) +RUBYCOMMONDIR = $(sitedir)$(target_prefix) +RUBYLIBDIR = /Users/tdreyno/Dropbox/Sites/middleman/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext$(target_prefix) +RUBYARCHDIR = /Users/tdreyno/Dropbox/Sites/middleman/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext$(target_prefix) + +TARGET_SO = $(DLLIB) +CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map +CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak + +all: $(DLLIB) +static: $(STATIC_LIB) + +clean: + @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) + +distclean: clean + @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log + @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) + +realclean: distclean +install: install-so install-rb + +install-so: $(RUBYARCHDIR) +install-so: $(RUBYARCHDIR)/$(DLLIB) +$(RUBYARCHDIR)/$(DLLIB): $(DLLIB) + $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) +install-rb: pre-install-rb install-rb-default +install-rb-default: pre-install-rb-default +pre-install-rb: Makefile +pre-install-rb-default: Makefile +$(RUBYARCHDIR): + $(MAKEDIRS) $@ + +site-install: site-install-so site-install-rb +site-install-so: install-so +site-install-rb: install-rb + +.SUFFIXES: .c .m .cc .cxx .cpp .C .o + +.cc.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cxx.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cpp.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.C.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.c.o: + $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< + +$(DLLIB): $(OBJS) + @-$(RM) $@ + $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) + + + +$(OBJS): ruby.h defines.h diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/extconf.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/extconf.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/generator/extconf.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/extconf.rb diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.bundle b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.bundle new file mode 100755 index 00000000..9f2fdb94 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.bundle differ diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.c b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.c rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.c diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.o b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.o new file mode 100755 index 00000000..ac48ba10 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/generator.o differ diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/mkmf.log b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/mkmf.log new file mode 100755 index 00000000..02fefa8a --- /dev/null +++ b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/mkmf.log @@ -0,0 +1,21 @@ +have_header: checking for ruby/st.h... -------------------- yes + +"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall conftest.c -o conftest.i" +checked program was: +/* begin */ +1: #include +/* end */ + +-------------------- + +have_header: checking for ruby/encoding.h... -------------------- no + +"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall conftest.c -o conftest.i" +conftest.c:1:27: error: ruby/encoding.h: No such file or directory +checked program was: +/* begin */ +1: #include +/* end */ + +-------------------- + diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.c b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.c rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.c diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.h b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.h old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.h rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.h diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.o b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.o new file mode 100755 index 00000000..7559f547 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/generator/unicode.o differ diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser.bundle b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser.bundle new file mode 100755 index 00000000..651ac911 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser.bundle differ diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/Makefile b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/Makefile new file mode 100755 index 00000000..1f2b5f63 --- /dev/null +++ b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/Makefile @@ -0,0 +1,157 @@ + +SHELL = /bin/sh + +#### Start of system configuration section. #### + +srcdir = . +topdir = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 +hdrdir = $(topdir) +VPATH = $(srcdir):$(topdir):$(hdrdir) +exec_prefix = $(prefix) +prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr +sharedstatedir = $(prefix)/com +mandir = $(DESTDIR)/usr/share/man +psdir = $(docdir) +oldincludedir = $(DESTDIR)/usr/include +localedir = $(datarootdir)/locale +bindir = $(exec_prefix)/bin +libexecdir = $(exec_prefix)/libexec +sitedir = $(DESTDIR)/Library/Ruby/Site +htmldir = $(docdir) +vendorarchdir = $(vendorlibdir)/$(sitearch) +includedir = $(prefix)/include +infodir = $(DESTDIR)/usr/share/info +vendorlibdir = $(vendordir)/$(ruby_version) +sysconfdir = $(prefix)/etc +libdir = $(exec_prefix)/lib +sbindir = $(exec_prefix)/sbin +rubylibdir = $(libdir)/ruby/$(ruby_version) +docdir = $(datarootdir)/doc/$(PACKAGE) +dvidir = $(docdir) +vendordir = $(libdir)/ruby/vendor_ruby +datarootdir = $(prefix)/share +pdfdir = $(docdir) +archdir = $(rubylibdir)/$(arch) +sitearchdir = $(sitelibdir)/$(sitearch) +datadir = $(datarootdir) +localstatedir = $(prefix)/var +sitelibdir = $(sitedir)/$(ruby_version) + +CC = gcc +LIBRUBY = $(LIBRUBY_SO) +LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a +LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME) +LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME) + +RUBY_EXTCONF_H = +CFLAGS = -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common $(cflags) -Wall +INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) +DEFS = +CPPFLAGS = -DHAVE_RUBY_ST_H -DHAVE_RE_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags) +CXXFLAGS = $(CFLAGS) +ldflags = -L. -arch i386 -arch x86_64 +dldflags = +archflag = +DLDFLAGS = $(ldflags) $(dldflags) $(archflag) +LDSHARED = cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup +AR = ar +EXEEXT = + +RUBY_INSTALL_NAME = ruby +RUBY_SO_NAME = ruby +arch = universal-darwin10.0 +sitearch = universal-darwin10.0 +ruby_version = 1.8 +ruby = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +RUBY = $(ruby) +RM = rm -f +MAKEDIRS = mkdir -p +INSTALL = /usr/bin/install -c +INSTALL_PROG = $(INSTALL) -m 0755 +INSTALL_DATA = $(INSTALL) -m 644 +COPY = cp + +#### End of system configuration section. #### + +preload = + +libpath = . $(libdir) +LIBPATH = -L. -L$(libdir) +DEFFILE = + +CLEANFILES = mkmf.log +DISTCLEANFILES = + +extout = +extout_prefix = +target_prefix = +LOCAL_LIBS = +LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl +SRCS = parser.c unicode.c +OBJS = parser.o unicode.o +TARGET = parser +DLLIB = $(TARGET).bundle +EXTSTATIC = +STATIC_LIB = + +BINDIR = $(bindir) +RUBYCOMMONDIR = $(sitedir)$(target_prefix) +RUBYLIBDIR = /Users/tdreyno/Dropbox/Sites/middleman/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext$(target_prefix) +RUBYARCHDIR = /Users/tdreyno/Dropbox/Sites/middleman/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext$(target_prefix) + +TARGET_SO = $(DLLIB) +CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map +CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak + +all: $(DLLIB) +static: $(STATIC_LIB) + +clean: + @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) + +distclean: clean + @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log + @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) + +realclean: distclean +install: install-so install-rb + +install-so: $(RUBYARCHDIR) +install-so: $(RUBYARCHDIR)/$(DLLIB) +$(RUBYARCHDIR)/$(DLLIB): $(DLLIB) + $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) +install-rb: pre-install-rb install-rb-default +install-rb-default: pre-install-rb-default +pre-install-rb: Makefile +pre-install-rb-default: Makefile +$(RUBYARCHDIR): + $(MAKEDIRS) $@ + +site-install: site-install-so site-install-rb +site-install-so: install-so +site-install-rb: install-rb + +.SUFFIXES: .c .m .cc .cxx .cpp .C .o + +.cc.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cxx.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cpp.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.C.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.c.o: + $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< + +$(DLLIB): $(OBJS) + @-$(RM) $@ + $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) + + + +$(OBJS): ruby.h defines.h diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/extconf.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/extconf.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/parser/extconf.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/extconf.rb diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/mkmf.log b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/mkmf.log new file mode 100755 index 00000000..e4168270 --- /dev/null +++ b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/mkmf.log @@ -0,0 +1,20 @@ +have_header: checking for ruby/st.h... -------------------- yes + +"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall conftest.c -o conftest.i" +checked program was: +/* begin */ +1: #include +/* end */ + +-------------------- + +have_header: checking for re.h... -------------------- yes + +"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall conftest.c -o conftest.i" +checked program was: +/* begin */ +1: #include +/* end */ + +-------------------- + diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.bundle b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.bundle new file mode 100755 index 00000000..651ac911 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.bundle differ diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.c b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.c rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.c diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.o b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.o new file mode 100755 index 00000000..93525a49 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.o differ diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.rl b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.rl old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.rl rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/parser.rl diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.c b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.c rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.c diff --git a/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.h b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.h old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.h rename to lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.h diff --git a/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.o b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.o new file mode 100755 index 00000000..ae663746 Binary files /dev/null and b/lib/middleman/vendor/gems/gems/json-1.2.0/ext/json/ext/parser/unicode.o differ diff --git a/vendor/gems/gems/json-1.2.0/install.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/install.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/install.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/install.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/Array.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Array.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/Array.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Array.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/FalseClass.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/FalseClass.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/FalseClass.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/FalseClass.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/Hash.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Hash.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/Hash.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Hash.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/Key.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Key.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/Key.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Key.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/NilClass.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/NilClass.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/NilClass.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/NilClass.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/Numeric.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Numeric.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/Numeric.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/Numeric.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/String.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/String.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/String.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/String.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/TrueClass.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/TrueClass.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/TrueClass.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/TrueClass.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/add/core.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/add/core.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/add/core.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/add/core.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/add/rails.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/add/rails.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/add/rails.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/add/rails.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/common.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/common.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/common.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/common.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/editor.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/editor.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/editor.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/editor.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/ext.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/ext.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/ext.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/ext.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/json.xpm b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/json.xpm old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/json.xpm rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/json.xpm diff --git a/vendor/gems/gems/json-1.2.0/lib/json/pure.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/pure.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/pure/generator.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure/generator.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/pure/generator.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure/generator.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/pure/parser.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure/parser.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/pure/parser.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/pure/parser.rb diff --git a/vendor/gems/gems/json-1.2.0/lib/json/version.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/lib/json/version.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/lib/json/version.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail1.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail1.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail1.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail1.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail10.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail10.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail10.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail10.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail11.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail11.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail11.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail11.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail12.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail12.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail12.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail12.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail13.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail13.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail13.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail13.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail14.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail14.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail14.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail14.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail18.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail18.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail18.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail18.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail19.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail19.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail19.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail19.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail2.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail2.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail2.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail2.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail20.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail20.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail20.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail20.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail21.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail21.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail21.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail21.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail22.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail22.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail22.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail22.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail23.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail23.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail23.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail23.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail24.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail24.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail24.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail24.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail25.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail25.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail25.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail25.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail27.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail27.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail27.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail27.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail28.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail28.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail28.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail28.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail3.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail3.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail3.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail3.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail4.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail4.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail4.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail4.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail5.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail5.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail5.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail5.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail6.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail6.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail6.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail6.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail7.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail7.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail7.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail7.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail8.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail8.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail8.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail8.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/fail9.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail9.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/fail9.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/fail9.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass1.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass1.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass1.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass1.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass15.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass15.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass15.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass15.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass16.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass16.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass16.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass16.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass17.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass17.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass17.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass17.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass2.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass2.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass2.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass2.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass26.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass26.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass26.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass26.json diff --git a/vendor/gems/gems/json-1.2.0/tests/fixtures/pass3.json b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass3.json old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/fixtures/pass3.json rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/fixtures/pass3.json diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_addition.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_addition.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_addition.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_addition.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_encoding.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_encoding.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_encoding.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_encoding.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_fixtures.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_fixtures.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_fixtures.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_fixtures.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_generate.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_generate.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_generate.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_generate.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_rails.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_rails.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_rails.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_rails.rb diff --git a/vendor/gems/gems/json-1.2.0/tests/test_json_unicode.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_unicode.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tests/test_json_unicode.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tests/test_json_unicode.rb diff --git a/vendor/gems/gems/json-1.2.0/tools/fuzz.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tools/fuzz.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tools/fuzz.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tools/fuzz.rb diff --git a/vendor/gems/gems/json-1.2.0/tools/server.rb b/lib/middleman/vendor/gems/gems/json-1.2.0/tools/server.rb similarity index 100% rename from vendor/gems/gems/json-1.2.0/tools/server.rb rename to lib/middleman/vendor/gems/gems/json-1.2.0/tools/server.rb diff --git a/vendor/gems/gems/launchy-0.3.3/HISTORY b/lib/middleman/vendor/gems/gems/launchy-0.3.3/HISTORY old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/HISTORY rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/HISTORY diff --git a/vendor/gems/gems/launchy-0.3.3/LICENSE b/lib/middleman/vendor/gems/gems/launchy-0.3.3/LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/LICENSE rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/LICENSE diff --git a/vendor/gems/gems/launchy-0.3.3/README b/lib/middleman/vendor/gems/gems/launchy-0.3.3/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/README rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/README diff --git a/vendor/gems/gems/launchy-0.3.3/Rakefile b/lib/middleman/vendor/gems/gems/launchy-0.3.3/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/Rakefile rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/Rakefile diff --git a/vendor/gems/gems/launchy-0.3.3/bin/launchy b/lib/middleman/vendor/gems/gems/launchy-0.3.3/bin/launchy similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/bin/launchy rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/bin/launchy diff --git a/vendor/gems/gems/launchy-0.3.3/gemspec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/gemspec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/gemspec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/gemspec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy/application.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/application.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy/application.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/application.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy/browser.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/browser.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy/browser.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/browser.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy/command_line.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/command_line.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy/command_line.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/command_line.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy/paths.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/paths.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy/paths.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/paths.rb diff --git a/vendor/gems/gems/launchy-0.3.3/lib/launchy/version.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/lib/launchy/version.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/lib/launchy/version.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/application_spec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/application_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/application_spec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/application_spec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/browser_spec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/browser_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/browser_spec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/browser_spec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/launchy_spec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/launchy_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/launchy_spec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/launchy_spec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/spec_helper.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/spec_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/spec_helper.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/spec_helper.rb diff --git a/vendor/gems/gems/launchy-0.3.3/spec/version_spec.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/version_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/spec/version_spec.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/version_spec.rb diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/announce.rake rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/config.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/config.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/config.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/config.rb diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/distribution.rake diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/documentation.rake b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/documentation.rake old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/documentation.rake rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/documentation.rake diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/rspec.rake b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/rspec.rake old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/rspec.rake rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/rspec.rake diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/rubyforge.rake b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/rubyforge.rake old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/rubyforge.rake rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/rubyforge.rake diff --git a/vendor/gems/gems/launchy-0.3.3/tasks/utils.rb b/lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/utils.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/launchy-0.3.3/tasks/utils.rb rename to lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/utils.rb diff --git a/vendor/gems/gems/rack-1.0.1/COPYING b/lib/middleman/vendor/gems/gems/rack-1.0.1/COPYING old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/COPYING rename to lib/middleman/vendor/gems/gems/rack-1.0.1/COPYING diff --git a/vendor/gems/gems/rack-1.0.1/KNOWN-ISSUES b/lib/middleman/vendor/gems/gems/rack-1.0.1/KNOWN-ISSUES old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/KNOWN-ISSUES rename to lib/middleman/vendor/gems/gems/rack-1.0.1/KNOWN-ISSUES diff --git a/vendor/gems/gems/rack-1.0.1/RDOX b/lib/middleman/vendor/gems/gems/rack-1.0.1/RDOX old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/RDOX rename to lib/middleman/vendor/gems/gems/rack-1.0.1/RDOX diff --git a/vendor/gems/gems/rack-1.0.1/README b/lib/middleman/vendor/gems/gems/rack-1.0.1/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/README rename to lib/middleman/vendor/gems/gems/rack-1.0.1/README diff --git a/vendor/gems/gems/rack-1.0.1/Rakefile b/lib/middleman/vendor/gems/gems/rack-1.0.1/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/Rakefile rename to lib/middleman/vendor/gems/gems/rack-1.0.1/Rakefile diff --git a/vendor/gems/gems/rack-1.0.1/SPEC b/lib/middleman/vendor/gems/gems/rack-1.0.1/SPEC old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/SPEC rename to lib/middleman/vendor/gems/gems/rack-1.0.1/SPEC diff --git a/vendor/gems/gems/rack-1.0.1/bin/rackup b/lib/middleman/vendor/gems/gems/rack-1.0.1/bin/rackup similarity index 100% rename from vendor/gems/gems/rack-1.0.1/bin/rackup rename to lib/middleman/vendor/gems/gems/rack-1.0.1/bin/rackup diff --git a/vendor/gems/gems/rack-1.0.1/contrib/rack_logo.svg b/lib/middleman/vendor/gems/gems/rack-1.0.1/contrib/rack_logo.svg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/contrib/rack_logo.svg rename to lib/middleman/vendor/gems/gems/rack-1.0.1/contrib/rack_logo.svg diff --git a/vendor/gems/gems/rack-1.0.1/example/lobster.ru b/lib/middleman/vendor/gems/gems/rack-1.0.1/example/lobster.ru old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/example/lobster.ru rename to lib/middleman/vendor/gems/gems/rack-1.0.1/example/lobster.ru diff --git a/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb diff --git a/vendor/gems/gems/rack-1.0.1/example/protectedlobster.ru b/lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.ru old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/example/protectedlobster.ru rename to lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.ru diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/adapter/camping.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/adapter/camping.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/adapter/camping.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/adapter/camping.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/handler.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/handler.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/handler.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/handler.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/request.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/request.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/request.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/abstract/request.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/basic.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/basic.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/basic.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/basic.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/md5.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/md5.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/md5.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/md5.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/nonce.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/nonce.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/nonce.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/nonce.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/params.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/params.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/params.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/params.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/request.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/request.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/request.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/digest/request.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/auth/openid.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/openid.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/auth/openid.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/auth/openid.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/builder.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/builder.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/builder.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/builder.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/cascade.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/cascade.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/cascade.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/cascade.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/chunked.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/chunked.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/chunked.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/chunked.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/commonlogger.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/commonlogger.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/commonlogger.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/commonlogger.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/conditionalget.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/conditionalget.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/conditionalget.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/conditionalget.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/content_length.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/content_length.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/content_length.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/content_length.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/content_type.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/content_type.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/content_type.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/content_type.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/deflater.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/deflater.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/deflater.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/deflater.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/directory.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/directory.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/directory.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/directory.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/file.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/file.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/file.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/cgi.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/cgi.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/cgi.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/cgi.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/evented_mongrel.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/evented_mongrel.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/evented_mongrel.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/evented_mongrel.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/fastcgi.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/fastcgi.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/fastcgi.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/fastcgi.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/lsws.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/lsws.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/lsws.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/lsws.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/mongrel.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/mongrel.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/mongrel.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/mongrel.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/scgi.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/scgi.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/scgi.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/scgi.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/swiftiplied_mongrel.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/swiftiplied_mongrel.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/swiftiplied_mongrel.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/swiftiplied_mongrel.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/thin.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/thin.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/thin.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/thin.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/handler/webrick.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/webrick.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/handler/webrick.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/handler/webrick.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/head.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/head.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/head.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/head.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/lint.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lint.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/lint.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lint.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/lobster.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lobster.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/lobster.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lobster.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/lock.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lock.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/lock.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/lock.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/methodoverride.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/methodoverride.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/methodoverride.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/methodoverride.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/mime.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/mime.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/mime.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/mime.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/mock.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/mock.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/mock.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/mock.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/recursive.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/recursive.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/recursive.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/recursive.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/reloader.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/reloader.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/reloader.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/reloader.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/request.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/request.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/request.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/request.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/response.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/response.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/response.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/response.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/rewindable_input.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/rewindable_input.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/rewindable_input.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/rewindable_input.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/session/abstract/id.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/abstract/id.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/session/abstract/id.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/abstract/id.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/session/cookie.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/cookie.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/session/cookie.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/cookie.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/session/memcache.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/memcache.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/session/memcache.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/memcache.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/session/pool.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/pool.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/session/pool.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/session/pool.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/showexceptions.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/showexceptions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/showexceptions.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/showexceptions.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/showstatus.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/showstatus.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/showstatus.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/showstatus.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/static.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/static.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/static.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/static.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/urlmap.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/urlmap.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/urlmap.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/urlmap.rb diff --git a/vendor/gems/gems/rack-1.0.1/lib/rack/utils.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/utils.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/lib/rack/utils.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/lib/rack/utils.rb diff --git a/vendor/gems/gems/rack-1.0.1/rack.gemspec b/lib/middleman/vendor/gems/gems/rack-1.0.1/rack.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/rack.gemspec rename to lib/middleman/vendor/gems/gems/rack-1.0.1/rack.gemspec diff --git a/vendor/gems/gems/rack-1.0.1/test/cgi/lighttpd.conf b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/lighttpd.conf old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/cgi/lighttpd.conf rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/lighttpd.conf diff --git a/vendor/gems/gems/rack-1.0.1/test/cgi/test b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/cgi/test rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test diff --git a/vendor/gems/gems/rack-1.0.1/test/cgi/test.fcgi b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test.fcgi similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/cgi/test.fcgi rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test.fcgi diff --git a/vendor/gems/gems/rack-1.0.1/test/cgi/test.ru b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test.ru similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/cgi/test.ru rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/cgi/test.ru diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/binary b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/binary old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/binary rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/binary diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/empty b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/empty old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/empty rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/empty diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/ie b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/ie old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/ie rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/ie diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/nested b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/nested old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/nested rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/nested diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/none b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/none old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/none rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/none diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/semicolon b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/semicolon old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/semicolon rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/semicolon diff --git a/vendor/gems/gems/rack-1.0.1/test/multipart/text b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/text old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/multipart/text rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/multipart/text diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_basic.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_basic.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_basic.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_basic.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_digest.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_digest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_digest.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_digest.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_openid.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_openid.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_openid.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_auth_openid.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_builder.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_builder.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_builder.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_builder.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_camping.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_camping.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_camping.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_camping.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_cascade.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_cascade.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_cascade.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_cascade.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_cgi.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_cgi.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_cgi.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_cgi.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_chunked.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_chunked.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_chunked.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_chunked.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_commonlogger.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_commonlogger.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_commonlogger.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_commonlogger.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_conditionalget.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_conditionalget.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_conditionalget.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_conditionalget.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_length.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_length.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_content_length.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_length.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_type.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_type.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_content_type.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_content_type.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_deflater.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_deflater.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_deflater.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_deflater.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_directory.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_directory.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_directory.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_directory.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_fastcgi.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_fastcgi.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_fastcgi.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_fastcgi.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_file.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_file.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_file.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_handler.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_handler.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_handler.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_handler.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_head.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_head.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_head.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_head.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_lint.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lint.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_lint.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lint.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_lobster.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lobster.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_lobster.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lobster.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_lock.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lock.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_lock.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_lock.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_methodoverride.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_methodoverride.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_methodoverride.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_methodoverride.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_mock.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_mock.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_mock.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_mock.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_mongrel.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_mongrel.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_mongrel.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_mongrel.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_recursive.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_recursive.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_recursive.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_recursive.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_request.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_request.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_request.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_request.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_response.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_response.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_response.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_response.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_rewindable_input.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_rewindable_input.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_rewindable_input.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_rewindable_input.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_cookie.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_cookie.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_session_cookie.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_cookie.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_memcache.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_memcache.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_session_memcache.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_memcache.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_pool.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_pool.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_session_pool.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_session_pool.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_showexceptions.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_showexceptions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_showexceptions.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_showexceptions.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_showstatus.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_showstatus.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_showstatus.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_showstatus.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_static.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_static.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_static.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_static.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_thin.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_thin.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_thin.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_thin.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_urlmap.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_urlmap.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_urlmap.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_urlmap.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_utils.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_utils.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_utils.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_utils.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/spec_rack_webrick.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_webrick.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/spec_rack_webrick.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/spec_rack_webrick.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/testrequest.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/testrequest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/testrequest.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/testrequest.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered.rb diff --git a/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered_long_one.rb b/lib/middleman/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered_long_one.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered_long_one.rb rename to lib/middleman/vendor/gems/gems/rack-1.0.1/test/unregistered_handler/rack/handler/unregistered_long_one.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/.document b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/.document old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/.document rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/.document diff --git a/vendor/gems/gems/rack-test-0.5.2/.gitignore b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/.gitignore old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/.gitignore rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/.gitignore diff --git a/vendor/gems/gems/rack-test-0.5.2/History.txt b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/History.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/History.txt rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/History.txt diff --git a/vendor/gems/gems/rack-test-0.5.2/MIT-LICENSE.txt b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/MIT-LICENSE.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/MIT-LICENSE.txt rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/MIT-LICENSE.txt diff --git a/vendor/gems/gems/rack-test-0.5.2/README.rdoc b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/README.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/README.rdoc rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/README.rdoc diff --git a/vendor/gems/gems/rack-test-0.5.2/Rakefile b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/Rakefile rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/Rakefile diff --git a/vendor/gems/gems/rack-test-0.5.2/Thorfile b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/Thorfile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/Thorfile rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/Thorfile diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/mock_session.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/mock_session.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/mock_session.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/mock_session.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/cookie_jar.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/cookie_jar.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test/cookie_jar.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/cookie_jar.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/methods.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/methods.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test/methods.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/methods.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/mock_digest_request.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/mock_digest_request.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test/mock_digest_request.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/mock_digest_request.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/uploaded_file.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/uploaded_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test/uploaded_file.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/uploaded_file.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/utils.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/utils.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/lib/rack/test/utils.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/lib/rack/test/utils.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/rack-test.gemspec b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/rack-test.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/rack-test.gemspec rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/rack-test.gemspec diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/config.ru b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/config.ru old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/fixtures/config.ru rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/config.ru diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/fake_app.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/fake_app.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/fixtures/fake_app.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/fake_app.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/foo.txt b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/foo.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/fixtures/foo.txt rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/fixtures/foo.txt diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/cookie_spec.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/cookie_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/rack/test/cookie_spec.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/cookie_spec.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/digest_auth_spec.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/digest_auth_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/rack/test/digest_auth_spec.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/digest_auth_spec.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/multipart_spec.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/multipart_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/rack/test/multipart_spec.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/multipart_spec.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/utils_spec.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/utils_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/rack/test/utils_spec.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test/utils_spec.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/rack/test_spec.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/rack/test_spec.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/rack/test_spec.rb diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/spec.opts b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/spec.opts old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/spec.opts rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/spec.opts diff --git a/vendor/gems/gems/rack-test-0.5.2/spec/spec_helper.rb b/lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/spec_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rack-test-0.5.2/spec/spec_helper.rb rename to lib/middleman/vendor/gems/gems/rack-test-0.5.2/spec/spec_helper.rb diff --git a/vendor/gems/gems/rake-0.8.7/CHANGES b/lib/middleman/vendor/gems/gems/rake-0.8.7/CHANGES old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/CHANGES rename to lib/middleman/vendor/gems/gems/rake-0.8.7/CHANGES diff --git a/vendor/gems/gems/rake-0.8.7/MIT-LICENSE b/lib/middleman/vendor/gems/gems/rake-0.8.7/MIT-LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/MIT-LICENSE rename to lib/middleman/vendor/gems/gems/rake-0.8.7/MIT-LICENSE diff --git a/vendor/gems/gems/rake-0.8.7/README b/lib/middleman/vendor/gems/gems/rake-0.8.7/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/README rename to lib/middleman/vendor/gems/gems/rake-0.8.7/README diff --git a/vendor/gems/gems/rake-0.8.7/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/TODO b/lib/middleman/vendor/gems/gems/rake-0.8.7/TODO old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/TODO rename to lib/middleman/vendor/gems/gems/rake-0.8.7/TODO diff --git a/vendor/gems/gems/rake-0.8.7/bin/rake b/lib/middleman/vendor/gems/gems/rake-0.8.7/bin/rake similarity index 100% rename from vendor/gems/gems/rake-0.8.7/bin/rake rename to lib/middleman/vendor/gems/gems/rake-0.8.7/bin/rake diff --git a/vendor/gems/gems/rake-0.8.7/doc/command_line_usage.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/command_line_usage.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/command_line_usage.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/command_line_usage.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile1 b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile1 old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/example/Rakefile1 rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile1 diff --git a/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile2 b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile2 old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/example/Rakefile2 rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/Rakefile2 diff --git a/vendor/gems/gems/rake-0.8.7/doc/example/a.c b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/a.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/example/a.c rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/a.c diff --git a/vendor/gems/gems/rake-0.8.7/doc/example/b.c b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/b.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/example/b.c rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/b.c diff --git a/vendor/gems/gems/rake-0.8.7/doc/example/main.c b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/main.c old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/example/main.c rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/example/main.c diff --git a/vendor/gems/gems/rake-0.8.7/doc/glossary.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/glossary.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/glossary.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/glossary.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/jamis.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/jamis.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/jamis.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/jamis.rb diff --git a/vendor/gems/gems/rake-0.8.7/doc/proto_rake.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/proto_rake.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/proto_rake.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/proto_rake.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/rake.1.gz b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rake.1.gz old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/rake.1.gz rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rake.1.gz diff --git a/vendor/gems/gems/rake-0.8.7/doc/rakefile.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rakefile.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/rakefile.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rakefile.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/rational.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rational.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/rational.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/rational.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc b/lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc rename to lib/middleman/vendor/gems/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc diff --git a/vendor/gems/gems/rake-0.8.7/install.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/install.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/install.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/install.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake.rb similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/alt_system.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/alt_system.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/alt_system.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/alt_system.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/classic_namespace.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/classic_namespace.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/classic_namespace.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/classic_namespace.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/clean.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/clean.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/clean.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/clean.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/publisher.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/publisher.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/publisher.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/publisher.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sys.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sys.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sys.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/contrib/sys.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/gempackagetask.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/gempackagetask.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/gempackagetask.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/gempackagetask.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/loaders/makefile.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/loaders/makefile.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/loaders/makefile.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/loaders/makefile.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/packagetask.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/packagetask.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/packagetask.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/packagetask.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/rake_test_loader.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/rake_test_loader.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/rake_test_loader.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/rake_test_loader.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/rdoctask.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/rdoctask.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/rdoctask.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/rdoctask.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/runtest.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/runtest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/runtest.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/runtest.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/tasklib.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/tasklib.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/tasklib.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/tasklib.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/testtask.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/testtask.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/testtask.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/testtask.rb diff --git a/vendor/gems/gems/rake-0.8.7/lib/rake/win32.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/win32.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/lib/rake/win32.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/lib/rake/win32.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/capture_stdout.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/capture_stdout.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/capture_stdout.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/capture_stdout.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/check_expansion.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/check_expansion.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/check_expansion.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/check_expansion.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/check_no_expansion.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/check_no_expansion.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/check_no_expansion.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/check_no_expansion.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/contrib/test_sys.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/contrib/test_sys.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/contrib/test_sys.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/contrib/test_sys.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/data/chains/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/chains/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/chains/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/chains/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/default/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/default/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/default/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/default/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/dryrun/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/dryrun/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/dryrun/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/dryrun/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/file_creation_task/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/file_creation_task/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/file_creation_task/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/file_creation_task/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/imports/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/imports/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/imports/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/imports/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/imports/deps.mf b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/imports/deps.mf old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/imports/deps.mf rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/imports/deps.mf diff --git a/vendor/gems/gems/rake-0.8.7/test/data/multidesc/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/multidesc/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/multidesc/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/multidesc/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/namespace/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/namespace/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/namespace/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/namespace/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/rakelib/test1.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/rakelib/test1.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/rakelib/test1.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/rakelib/test1.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/data/rbext/rakefile.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/rbext/rakefile.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/rbext/rakefile.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/rbext/rakefile.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/data/sample.mf b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/sample.mf old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/sample.mf rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/sample.mf diff --git a/vendor/gems/gems/rake-0.8.7/test/data/statusreturn/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/statusreturn/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/statusreturn/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/statusreturn/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/data/unittest/Rakefile b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/unittest/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/data/unittest/Rakefile rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/data/unittest/Rakefile diff --git a/vendor/gems/gems/rake-0.8.7/test/filecreation.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/filecreation.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/filecreation.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/filecreation.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/functional.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/functional.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/functional.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/functional.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/in_environment.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/in_environment.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/in_environment.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/in_environment.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/rake_test_setup.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/rake_test_setup.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/rake_test_setup.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/rake_test_setup.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/reqfile.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/reqfile.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/reqfile.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/reqfile.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/reqfile2.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/reqfile2.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/reqfile2.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/reqfile2.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/session_functional.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/session_functional.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/session_functional.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/session_functional.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/shellcommand.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/shellcommand.rb similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/shellcommand.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/shellcommand.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_application.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_application.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_application.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_application.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_clean.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_clean.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_clean.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_clean.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_definitions.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_definitions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_definitions.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_definitions.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_earlytime.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_earlytime.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_earlytime.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_earlytime.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_extension.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_extension.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_extension.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_extension.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_file_creation_task.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_file_creation_task.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_file_creation_task.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_file_creation_task.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_file_task.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_file_task.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_file_task.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_file_task.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_filelist.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_filelist.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_filelist.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_filelist.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_fileutils.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_fileutils.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_fileutils.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_fileutils.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_ftp.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_ftp.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_ftp.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_ftp.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_invocation_chain.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_invocation_chain.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_invocation_chain.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_invocation_chain.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_makefile_loader.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_makefile_loader.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_makefile_loader.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_makefile_loader.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_multitask.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_multitask.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_multitask.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_multitask.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_namespace.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_namespace.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_namespace.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_namespace.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_package_task.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_package_task.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_package_task.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_package_task.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_pathmap.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_pathmap.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_pathmap.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_pathmap.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_pseudo_status.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_pseudo_status.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_pseudo_status.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_pseudo_status.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_rake.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rake.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_rake.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rake.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_rdoc_task.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rdoc_task.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_rdoc_task.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rdoc_task.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_require.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_require.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_require.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_require.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_rules.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rules.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_rules.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_rules.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_task_arguments.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_task_arguments.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_task_arguments.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_task_arguments.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_task_manager.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_task_manager.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_task_manager.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_task_manager.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_tasklib.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_tasklib.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_tasklib.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_tasklib.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_tasks.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_tasks.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_tasks.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_tasks.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_test_task.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_test_task.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_test_task.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_test_task.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_top_level_functions.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_top_level_functions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_top_level_functions.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_top_level_functions.rb diff --git a/vendor/gems/gems/rake-0.8.7/test/test_win32.rb b/lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_win32.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/rake-0.8.7/test/test_win32.rb rename to lib/middleman/vendor/gems/gems/rake-0.8.7/test/test_win32.rb diff --git a/vendor/gems/gems/shotgun-0.4/COPYING b/lib/middleman/vendor/gems/gems/shotgun-0.4/COPYING old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/shotgun-0.4/COPYING rename to lib/middleman/vendor/gems/gems/shotgun-0.4/COPYING diff --git a/vendor/gems/gems/shotgun-0.4/README b/lib/middleman/vendor/gems/gems/shotgun-0.4/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/shotgun-0.4/README rename to lib/middleman/vendor/gems/gems/shotgun-0.4/README diff --git a/vendor/gems/gems/shotgun-0.4/Rakefile b/lib/middleman/vendor/gems/gems/shotgun-0.4/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/shotgun-0.4/Rakefile rename to lib/middleman/vendor/gems/gems/shotgun-0.4/Rakefile diff --git a/vendor/gems/gems/shotgun-0.4/bin/shotgun b/lib/middleman/vendor/gems/gems/shotgun-0.4/bin/shotgun similarity index 100% rename from vendor/gems/gems/shotgun-0.4/bin/shotgun rename to lib/middleman/vendor/gems/gems/shotgun-0.4/bin/shotgun diff --git a/vendor/gems/gems/shotgun-0.4/lib/shotgun.rb b/lib/middleman/vendor/gems/gems/shotgun-0.4/lib/shotgun.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/shotgun-0.4/lib/shotgun.rb rename to lib/middleman/vendor/gems/gems/shotgun-0.4/lib/shotgun.rb diff --git a/vendor/gems/gems/shotgun-0.4/shotgun.gemspec b/lib/middleman/vendor/gems/gems/shotgun-0.4/shotgun.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/shotgun-0.4/shotgun.gemspec rename to lib/middleman/vendor/gems/gems/shotgun-0.4/shotgun.gemspec diff --git a/vendor/gems/gems/sinatra-0.9.4/AUTHORS b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/AUTHORS old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/AUTHORS rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/AUTHORS diff --git a/vendor/gems/gems/sinatra-0.9.4/CHANGES b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/CHANGES old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/CHANGES rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/CHANGES diff --git a/vendor/gems/gems/sinatra-0.9.4/LICENSE b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/LICENSE rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/LICENSE diff --git a/vendor/gems/gems/sinatra-0.9.4/README.rdoc b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/README.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/README.rdoc rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/README.rdoc diff --git a/vendor/gems/gems/sinatra-0.9.4/Rakefile b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/Rakefile rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/Rakefile diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/app_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/app_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/app_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/app_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/application_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/application_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/application_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/application_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/builder_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/builder_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/builder_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/builder_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/compat_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/compat_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/compat_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/compat_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/custom_error_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/custom_error_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/custom_error_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/custom_error_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/erb_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/erb_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/erb_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/erb_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/events_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/events_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/events_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/events_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/filter_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/filter_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/filter_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/filter_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/haml_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/haml_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/haml_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/haml_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/helper.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/mapped_error_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/mapped_error_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/mapped_error_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/mapped_error_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/pipeline_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/pipeline_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/pipeline_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/pipeline_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/public/foo.xml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/public/foo.xml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/public/foo.xml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/public/foo.xml diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/sass_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sass_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/sass_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sass_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/sessions_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sessions_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/sessions_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sessions_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/streaming_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/streaming_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/streaming_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/streaming_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/template_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/template_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/template_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/template_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/use_in_file_templates_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/use_in_file_templates_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/use_in_file_templates_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/use_in_file_templates_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.sass b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo.sass rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo.sass diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/foo_layout.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.sass b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.sass rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/foo.sass diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.sass b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.sass rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/layout_test/layout.sass diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/base.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/base.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/base.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/base.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/compat.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/compat.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/compat.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/compat.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/404.png b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/404.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/404.png rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/404.png diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/500.png b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/500.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/500.png rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/images/500.png diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/main.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/main.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/main.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/main.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/showexceptions.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/showexceptions.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/showexceptions.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/showexceptions.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/bacon.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/bacon.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/bacon.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/bacon.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/rspec.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/rspec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/rspec.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/rspec.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/spec.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/spec.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/spec.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/unit.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/unit.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/unit.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/lib/sinatra/test/unit.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/sinatra.gemspec b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/sinatra.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/sinatra.gemspec rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/sinatra.gemspec diff --git a/vendor/gems/gems/sinatra-0.9.4/test/base_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/base_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/base_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/base_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/builder_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/builder_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/builder_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/builder_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/contest.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/contest.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/contest.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/contest.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/data/reload_app_file.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/data/reload_app_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/data/reload_app_file.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/data/reload_app_file.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/erb_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/erb_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/erb_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/erb_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/extensions_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/extensions_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/extensions_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/extensions_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/filter_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/filter_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/filter_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/filter_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/haml_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/haml_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/haml_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/haml_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/helper.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/helper.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/helper.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/helpers_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/helpers_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/helpers_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/helpers_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/mapped_error_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/mapped_error_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/mapped_error_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/mapped_error_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/middleware_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/middleware_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/middleware_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/middleware_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/options_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/options_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/options_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/options_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/render_backtrace_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/render_backtrace_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/render_backtrace_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/render_backtrace_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/request_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/request_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/request_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/request_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/response_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/response_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/response_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/response_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/result_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/result_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/result_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/result_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/route_added_hook_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/route_added_hook_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/route_added_hook_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/route_added_hook_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/routing_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/routing_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/routing_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/routing_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/sass_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/sass_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/sass_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/sass_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/server_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/server_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/server_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/server_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/sinatra_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/sinatra_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/sinatra_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/sinatra_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/static_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/static_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/static_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/static_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/templates_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/templates_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/templates_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/templates_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/test_test.rb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/test_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/test_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/test_test.rb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/error.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/error.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/error.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/error.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/error.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/error.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/error.sass b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/error.sass rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/error.sass diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/foo/hello.test b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/foo/hello.test old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/foo/hello.test rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/foo/hello.test diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/hello.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/hello.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/hello.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/hello.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/hello.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/hello.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/hello.sass b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.sass old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/hello.sass rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.sass diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/hello.test b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.test old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/hello.test rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/hello.test diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.builder b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.builder old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/layout2.builder rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.builder diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.erb b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.erb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/layout2.erb rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.erb diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.haml b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.haml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/layout2.haml rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.haml diff --git a/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.test b/lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.test old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-0.9.4/test/views/layout2.test rename to lib/middleman/vendor/gems/gems/sinatra-0.9.4/test/views/layout2.test diff --git a/vendor/gems/gems/sinatra-content-for-0.2/.gitignore b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/.gitignore old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/.gitignore rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/.gitignore diff --git a/vendor/gems/gems/sinatra-content-for-0.2/LICENSE b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/LICENSE old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/LICENSE rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/LICENSE diff --git a/vendor/gems/gems/sinatra-content-for-0.2/README.rdoc b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/README.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/README.rdoc rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/README.rdoc diff --git a/vendor/gems/gems/sinatra-content-for-0.2/lib/sinatra/content_for.rb b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/lib/sinatra/content_for.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/lib/sinatra/content_for.rb rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/lib/sinatra/content_for.rb diff --git a/vendor/gems/gems/sinatra-content-for-0.2/sinatra-content-for.gemspec b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/sinatra-content-for.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/sinatra-content-for.gemspec rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/sinatra-content-for.gemspec diff --git a/vendor/gems/gems/sinatra-content-for-0.2/test/content_for_test.rb b/lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/test/content_for_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sinatra-content-for-0.2/test/content_for_test.rb rename to lib/middleman/vendor/gems/gems/sinatra-content-for-0.2/test/content_for_test.rb diff --git a/vendor/gems/gems/smusher-0.4.2/.gitignore b/lib/middleman/vendor/gems/gems/smusher-0.4.2/.gitignore old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/.gitignore rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/.gitignore diff --git a/vendor/gems/gems/smusher-0.4.2/README.markdown b/lib/middleman/vendor/gems/gems/smusher-0.4.2/README.markdown old mode 100644 new mode 100755 similarity index 55% rename from vendor/gems/gems/smusher-0.4.2/README.markdown rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/README.markdown index 624c6c19..ced40ba9 --- a/vendor/gems/gems/smusher-0.4.2/README.markdown +++ b/lib/middleman/vendor/gems/gems/smusher-0.4.2/README.markdown @@ -1,13 +1,7 @@ -Problem -======= - - Images are too large because they are not optimized - - Users & your bandwidth is wasted for useless metadata - - local image optimization requires tons of programs / libaries / knowledge +*LOSSLESS* image size reduction for jpg, png and gif in the cloud -Solution -======== - - *LOSSLESS* size reduction (10-97% size reduction) in the cloud - - optmizes all images(jpg+png+[gif]) from a given folder + - no image libraries needed, everything done in the interwebs + - less size (up 97% saving) = faster downloads = less bandwidth + happy users Install ======= @@ -16,30 +10,18 @@ Install Usage ===== -Optimize a single image or a whole folder in the cloud. +Optimize a single image or a whole folder: -converting gif-s to png-s: - - - called with a folder gif-s will not be converted - - called on a single .gif or wildcard, image(s) will be converted if optimizeable - -Usage: smusher /apps/x/public/images [options] smusher /apps/x/public/images/x.png [options] smusher /apps/x/public/images/*.png [options] -Options are: +Options: -q, --quiet no output - -c, --convert-gifs convert all .gif`s in the given folder + -c, --convert-gifs convert gifs to PNGs --service PunyPng use PunyPng for image optimizing, instead of SmushIt -v, --version display current version - -Protection -========== -Any image that returns a failure code, is larger than before, -or is empty will not be saved. - Example ====== smusher /apps/ts/public/images @@ -54,14 +36,18 @@ Example reverted! ... +Protection +========== +Any image that returns a failure code, is larger than before, +or is empty will not be saved. + TODO ==== - - only optimize 'new' images -> save time when doing on each deploy - - convert gifs to png, even if the new size is the same, for consistency (atm only those which get smaller are converted) + - only optimize 'new' images -> save time when doing on already optimized folder -ALTERNATIVES +JS + CSS ============ -If you want to lossless reduce images and minify css + js, try [reduce](http://github.com/grosser/reduce). +reduce images and minify css + js -> try [reduce](http://github.com/grosser/reduce). Authors ====== diff --git a/vendor/gems/gems/smusher-0.4.2/Rakefile b/lib/middleman/vendor/gems/gems/smusher-0.4.2/Rakefile old mode 100644 new mode 100755 similarity index 54% rename from vendor/gems/gems/smusher-0.4.2/Rakefile rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/Rakefile index c7bf8ea0..51bdf855 --- a/vendor/gems/gems/smusher-0.4.2/Rakefile +++ b/lib/middleman/vendor/gems/gems/smusher-0.4.2/Rakefile @@ -1,10 +1,6 @@ -desc "Run all specs in spec directory" -task :default do |t| - require 'spec' - options = "--colour --format progress --loadby --reverse" - files = FileList['spec/**/*_spec.rb'] - system("spec #{options} #{files}") -end +task :default => :spec +require 'spec/rake/spectask' +Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']} begin require 'jeweler' @@ -16,16 +12,9 @@ begin gem.homepage = "http://github.com/grosser/#{project_name}" gem.authors = ["Michael Grosser"] %w[rake json httpclient].each{|d| gem.add_dependency d} - gem.rubyforge_project = 'smusher' end - # fake task so that rubyforge:release works - task :rdoc do - `mkdir rdoc` - `echo documentation is at http://github.com/grosser/#{project_name} > rdoc/README.rdoc` - end - - Jeweler::RubyforgeTasks.new + Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end \ No newline at end of file diff --git a/vendor/gems/gems/smusher-0.4.2/VERSION b/lib/middleman/vendor/gems/gems/smusher-0.4.2/VERSION old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/VERSION rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/VERSION diff --git a/vendor/gems/gems/smusher-0.4.2/bin/smusher b/lib/middleman/vendor/gems/gems/smusher-0.4.2/bin/smusher similarity index 83% rename from vendor/gems/gems/smusher-0.4.2/bin/smusher rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/bin/smusher index 5d4bf52f..83a80f40 100755 --- a/vendor/gems/gems/smusher-0.4.2/bin/smusher +++ b/lib/middleman/vendor/gems/gems/smusher-0.4.2/bin/smusher @@ -8,16 +8,12 @@ OptionParser.new do |opts| opts.banner = <= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Michael Grosser"] - s.date = %q{2009-10-09} + s.date = %q{2009-11-22} s.default_executable = %q{smusher} s.email = %q{grosser.michael@gmail.com} s.executables = ["smusher"] @@ -25,7 +25,6 @@ Gem::Specification.new do |s| "lib/smusher.rb", "lib/smusher/puny_png.rb", "lib/smusher/smush_it.rb", - "rdoc/README.rdoc", "smusher.gemspec", "spec/empty/.gitignore", "spec/images/ad.gif", @@ -48,14 +47,13 @@ Gem::Specification.new do |s| s.homepage = %q{http://github.com/grosser/smusher} s.rdoc_options = ["--charset=UTF-8"] s.require_paths = ["lib"] - s.rubyforge_project = %q{smusher} s.rubygems_version = %q{1.3.5} s.summary = %q{Automatic Lossless Reduction Of All Your Images} s.test_files = [ - "spec/smusher/smush_it_spec.rb", + "spec/spec_helper.rb", + "spec/smusher_spec.rb", "spec/smusher/puny_png_spec.rb", - "spec/spec_helper.rb", - "spec/smusher_spec.rb" + "spec/smusher/smush_it_spec.rb" ] if s.respond_to? :specification_version then @@ -77,3 +75,4 @@ Gem::Specification.new do |s| s.add_dependency(%q, [">= 0"]) end end + diff --git a/vendor/gems/gems/smusher-0.4.2/spec/empty/.gitignore b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/empty/.gitignore old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/empty/.gitignore rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/empty/.gitignore diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/ad.gif b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/ad.gif old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/ad.gif rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/ad.gif diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/add.png b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/add.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/add.png rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/add.png diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/drink_empty.png b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/drink_empty.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/drink_empty.png rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/drink_empty.png diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/logo.gif b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/logo.gif old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/logo.gif rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/logo.gif diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/people.jpg b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/people.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/people.jpg rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/people.jpg diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/water.JPG b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/water.JPG old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/water.JPG rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/water.JPG diff --git a/vendor/gems/gems/smusher-0.4.2/spec/images/woman.jpeg b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/woman.jpeg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/images/woman.jpeg rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/images/woman.jpeg diff --git a/vendor/gems/gems/smusher-0.4.2/spec/out/ad.gif b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/out/ad.gif old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/out/ad.gif rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/out/ad.gif diff --git a/vendor/gems/gems/smusher-0.4.2/spec/out/people.jpg b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/out/people.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/out/people.jpg rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/out/people.jpg diff --git a/vendor/gems/gems/smusher-0.4.2/spec/reduced/add.png b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/add.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/reduced/add.png rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/add.png diff --git a/vendor/gems/gems/smusher-0.4.2/spec/reduced/add_puny.png b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/add_puny.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/reduced/add_puny.png rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/add_puny.png diff --git a/vendor/gems/gems/smusher-0.4.2/spec/reduced/fam.png b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/fam.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/reduced/fam.png rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/reduced/fam.png diff --git a/vendor/gems/gems/smusher-0.4.2/spec/smusher/puny_png_spec.rb b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher/puny_png_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/smusher/puny_png_spec.rb rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher/puny_png_spec.rb diff --git a/vendor/gems/gems/smusher-0.4.2/spec/smusher/smush_it_spec.rb b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher/smush_it_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/smusher/smush_it_spec.rb rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher/smush_it_spec.rb diff --git a/vendor/gems/gems/smusher-0.4.2/spec/smusher_spec.rb b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/smusher_spec.rb rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/smusher_spec.rb diff --git a/vendor/gems/gems/smusher-0.4.2/spec/spec_helper.rb b/lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/spec_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/smusher-0.4.2/spec/spec_helper.rb rename to lib/middleman/vendor/gems/gems/smusher-0.4.2/spec/spec_helper.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/Rakefile b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/Rakefile rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/Rakefile diff --git a/vendor/gems/gems/sprockets-1.0.2/bin/sprocketize b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/bin/sprocketize similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/bin/sprocketize rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/bin/sprocketize diff --git a/vendor/gems/gems/sprockets-1.0.2/ext/nph-sprockets.cgi b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/ext/nph-sprockets.cgi similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/ext/nph-sprockets.cgi rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/ext/nph-sprockets.cgi diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/concatenation.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/concatenation.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/concatenation.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/concatenation.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/environment.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/environment.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/environment.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/environment.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/error.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/error.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/error.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/error.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/pathname.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/pathname.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/pathname.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/pathname.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/preprocessor.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/preprocessor.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/preprocessor.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/preprocessor.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/secretary.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/secretary.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/secretary.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/secretary.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_file.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_file.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_file.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_line.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_line.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_line.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/source_line.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/version.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/version.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/lib/sprockets/version.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/lib/sprockets/version.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/one.png b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/one.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/one.png rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/one.png diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/two.png b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/two.png old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/two.png rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/images/script_with_assets/two.png diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/stylesheets/script_with_assets.css b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/stylesheets/script_with_assets.css old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/stylesheets/script_with_assets.css rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/assets/stylesheets/script_with_assets.css diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/constants.yml b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/constants.yml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/constants.yml rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/constants.yml diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/multiline_comments_should_be_removed_by_default.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/multiline_comments_should_be_removed_by_default.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/multiline_comments_should_be_removed_by_default.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/multiline_comments_should_be_removed_by_default.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_the_current_file_should_do_nothing.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_the_current_file_should_do_nothing.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_the_current_file_should_do_nothing.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/requiring_the_current_file_should_do_nothing.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/constants.yml b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/constants.yml old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/constants.yml rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/constants.yml diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/bar.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/bar.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/bar.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/bar.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/foo.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/foo.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/foo.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/foo/foo.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/script_with_assets.js b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/script_with_assets.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/script_with_assets.js rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/fixtures/src/script_with_assets.js diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_concatenation.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_concatenation.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_concatenation.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_concatenation.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_environment.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_environment.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_environment.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_environment.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_helper.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_helper.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_helper.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_pathname.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_pathname.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_pathname.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_pathname.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_preprocessor.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_preprocessor.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_preprocessor.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_preprocessor.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_secretary.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_secretary.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_secretary.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_secretary.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_source_file.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_source_file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_source_file.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_source_file.rb diff --git a/vendor/gems/gems/sprockets-1.0.2/test/test_source_line.rb b/lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_source_line.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/sprockets-1.0.2/test/test_source_line.rb rename to lib/middleman/vendor/gems/gems/sprockets-1.0.2/test/test_source_line.rb diff --git a/vendor/gems/gems/templater-1.0.0/History.txt b/lib/middleman/vendor/gems/gems/templater-1.0.0/History.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/History.txt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/History.txt diff --git a/vendor/gems/gems/templater-1.0.0/Manifest.txt b/lib/middleman/vendor/gems/gems/templater-1.0.0/Manifest.txt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/Manifest.txt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/Manifest.txt diff --git a/vendor/gems/gems/templater-1.0.0/README.rdoc b/lib/middleman/vendor/gems/gems/templater-1.0.0/README.rdoc old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/README.rdoc rename to lib/middleman/vendor/gems/gems/templater-1.0.0/README.rdoc diff --git a/vendor/gems/gems/templater-1.0.0/Rakefile b/lib/middleman/vendor/gems/gems/templater-1.0.0/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/Rakefile rename to lib/middleman/vendor/gems/gems/templater-1.0.0/Rakefile diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/actions/action.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/action.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/actions/action.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/action.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/actions/empty_directory.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/empty_directory.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/actions/empty_directory.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/empty_directory.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/actions/file.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/file.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/actions/file.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/file.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/actions/template.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/template.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/actions/template.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/template.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/capture_helpers.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/capture_helpers.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/capture_helpers.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/capture_helpers.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/cli/generator.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/generator.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/cli/generator.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/generator.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/cli/manifold.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/manifold.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/cli/manifold.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/manifold.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/cli/parser.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/parser.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/cli/parser.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/cli/parser.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/kernel.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/kernel.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/kernel.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/kernel.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/string.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/string.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/string.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/core_ext/string.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/description.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/description.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/description.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/description.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/discovery.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/discovery.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/discovery.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/discovery.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/generator.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/generator.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/generator.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/generator.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/manifold.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/manifold.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/manifold.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/manifold.rb diff --git a/vendor/gems/gems/templater-1.0.0/lib/templater/spec/helpers.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/spec/helpers.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/lib/templater/spec/helpers.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/spec/helpers.rb diff --git a/vendor/gems/gems/templater-1.0.0/script/console b/lib/middleman/vendor/gems/gems/templater-1.0.0/script/console similarity index 100% rename from vendor/gems/gems/templater-1.0.0/script/console rename to lib/middleman/vendor/gems/gems/templater-1.0.0/script/console diff --git a/vendor/gems/gems/templater-1.0.0/script/destroy b/lib/middleman/vendor/gems/gems/templater-1.0.0/script/destroy similarity index 100% rename from vendor/gems/gems/templater-1.0.0/script/destroy rename to lib/middleman/vendor/gems/gems/templater-1.0.0/script/destroy diff --git a/vendor/gems/gems/templater-1.0.0/script/generate b/lib/middleman/vendor/gems/gems/templater-1.0.0/script/generate similarity index 100% rename from vendor/gems/gems/templater-1.0.0/script/generate rename to lib/middleman/vendor/gems/gems/templater-1.0.0/script/generate diff --git a/vendor/gems/gems/templater-1.0.0/spec/actions/directory_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/directory_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/actions/directory_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/directory_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/actions/empty_directory_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/empty_directory_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/actions/empty_directory_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/empty_directory_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/actions/file_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/file_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/actions/file_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/file_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/actions/template_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/template_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/actions/template_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/actions/template_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/core_ext/string_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/core_ext/string_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/core_ext/string_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/core_ext/string_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/actions_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/actions_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/actions_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/actions_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/arguments_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/arguments_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/arguments_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/arguments_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/destination_root_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/destination_root_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/destination_root_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/destination_root_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/empty_directories_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/empty_directories_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/empty_directories_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/empty_directories_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/files_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/files_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/files_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/files_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/generators_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/generators_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/generators_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/generators_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/glob_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/glob_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/glob_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/glob_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/invocations_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/invocations_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/invocations_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/invocations_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/invoke_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/invoke_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/invoke_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/invoke_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/options_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/options_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/options_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/options_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/render_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/render_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/render_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/render_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/source_root_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/source_root_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/source_root_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/source_root_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/generator/templates_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/templates_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/generator/templates_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/templates_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/manifold_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/manifold_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/manifold_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/manifold_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/options_parser_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/options_parser_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/options_parser_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/options_parser_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/results/erb.rbs b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/erb.rbs old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/results/erb.rbs rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/erb.rbs diff --git a/vendor/gems/gems/templater-1.0.0/spec/results/file.rbs b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/file.rbs old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/results/file.rbs rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/file.rbs diff --git a/vendor/gems/gems/templater-1.0.0/spec/results/random.rbs b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/random.rbs old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/results/random.rbs rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/random.rbs diff --git a/vendor/gems/gems/templater-1.0.0/spec/results/simple_erb.rbs b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/simple_erb.rbs old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/results/simple_erb.rbs rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/results/simple_erb.rbs diff --git a/vendor/gems/gems/templater-1.0.0/spec/spec_helper.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/spec_helper.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/spec_helper.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/spec_helper.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/spec_helpers_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/spec_helpers_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/spec_helpers_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/spec_helpers_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/templater_spec.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templater_spec.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templater_spec.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templater_spec.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/erb.rbt b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/erb.rbt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/erb.rbt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/erb.rbt diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/README b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/README old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/README rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/README diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/arg.js b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/arg.js old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/arg.js rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/arg.js diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.%feh% b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.%feh% old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.%feh% rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.%feh% diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.html.%feh% b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.html.%feh% old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.html.%feh% rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/hellothar.html.%feh% diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/jessica_alba.jpg b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/jessica_alba.jpg old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/jessica_alba.jpg rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/jessica_alba.jpg diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/monkey.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/monkey.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/monkey.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/subfolder/monkey.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/glob/test.rb b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/glob/test.rb rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/glob/test.rb diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/literals_erb.rbt b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/literals_erb.rbt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/literals_erb.rbt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/literals_erb.rbt diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/simple.rbt b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/simple.rbt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/simple.rbt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/simple.rbt diff --git a/vendor/gems/gems/templater-1.0.0/spec/templates/simple_erb.rbt b/lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/simple_erb.rbt old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/spec/templates/simple_erb.rbt rename to lib/middleman/vendor/gems/gems/templater-1.0.0/spec/templates/simple_erb.rbt diff --git a/vendor/gems/gems/templater-1.0.0/templater.gemspec b/lib/middleman/vendor/gems/gems/templater-1.0.0/templater.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/templater-1.0.0/templater.gemspec rename to lib/middleman/vendor/gems/gems/templater-1.0.0/templater.gemspec diff --git a/vendor/gems/gems/yui-compressor-0.9.1/Rakefile b/lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/Rakefile old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/yui-compressor-0.9.1/Rakefile rename to lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/Rakefile diff --git a/vendor/gems/gems/yui-compressor-0.9.1/lib/yui/compressor.rb b/lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/lib/yui/compressor.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/yui-compressor-0.9.1/lib/yui/compressor.rb rename to lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/lib/yui/compressor.rb diff --git a/vendor/gems/gems/yui-compressor-0.9.1/test/compressor_test.rb b/lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/test/compressor_test.rb old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/gems/yui-compressor-0.9.1/test/compressor_test.rb rename to lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/test/compressor_test.rb diff --git a/vendor/gems/gems/yui-compressor-0.9.1/vendor/yuicompressor-2.4.2.jar b/lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/vendor/yuicompressor-2.4.2.jar similarity index 100% rename from vendor/gems/gems/yui-compressor-0.9.1/vendor/yuicompressor-2.4.2.jar rename to lib/middleman/vendor/gems/gems/yui-compressor-0.9.1/vendor/yuicompressor-2.4.2.jar diff --git a/vendor/gems/specifications/compass-0.8.17.gemspec b/lib/middleman/vendor/gems/specifications/compass-0.8.17.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/compass-0.8.17.gemspec rename to lib/middleman/vendor/gems/specifications/compass-0.8.17.gemspec diff --git a/vendor/gems/specifications/compass-slickmap-0.2.1.gemspec b/lib/middleman/vendor/gems/specifications/compass-slickmap-0.2.1.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/compass-slickmap-0.2.1.gemspec rename to lib/middleman/vendor/gems/specifications/compass-slickmap-0.2.1.gemspec diff --git a/vendor/gems/specifications/configuration-1.1.0.gemspec b/lib/middleman/vendor/gems/specifications/configuration-1.1.0.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/configuration-1.1.0.gemspec rename to lib/middleman/vendor/gems/specifications/configuration-1.1.0.gemspec diff --git a/vendor/gems/specifications/diff-lcs-1.1.2.gemspec b/lib/middleman/vendor/gems/specifications/diff-lcs-1.1.2.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/diff-lcs-1.1.2.gemspec rename to lib/middleman/vendor/gems/specifications/diff-lcs-1.1.2.gemspec diff --git a/vendor/gems/specifications/extlib-0.9.13.gemspec b/lib/middleman/vendor/gems/specifications/extlib-0.9.13.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/extlib-0.9.13.gemspec rename to lib/middleman/vendor/gems/specifications/extlib-0.9.13.gemspec diff --git a/lib/middleman/vendor/gems/specifications/haml-2.2.14.gemspec b/lib/middleman/vendor/gems/specifications/haml-2.2.14.gemspec new file mode 100755 index 00000000..73aafcbc --- /dev/null +++ b/lib/middleman/vendor/gems/specifications/haml-2.2.14.gemspec @@ -0,0 +1,45 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{haml} + s.version = "2.2.14" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Nathan Weizenbaum", "Hampton Catlin"] + s.date = %q{2009-11-22} + s.description = %q{ Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML + that's designed to express the structure of XHTML or XML documents + in a non-repetitive, elegant, easy way, + using indentation rather than closing tags + and allowing Ruby to be embedded with ease. + It was originally envisioned as a plugin for Ruby on Rails, + but it can function as a stand-alone templating engine. +} + s.email = %q{haml@googlegroups.com} + s.executables = ["haml", "html2haml", "sass", "css2sass"] + s.extra_rdoc_files = ["VERSION", "MIT-LICENSE", "README.md", "VERSION_NAME", "REVISION", "CONTRIBUTING"] + s.files = ["rails/init.rb", "lib/sass.rb", "lib/sass/plugin/rails.rb", "lib/sass/plugin/rack.rb", "lib/sass/plugin/merb.rb", "lib/sass/script.rb", "lib/sass/error.rb", "lib/sass/tree/for_node.rb", "lib/sass/tree/mixin_node.rb", "lib/sass/tree/if_node.rb", "lib/sass/tree/prop_node.rb", "lib/sass/tree/mixin_def_node.rb", "lib/sass/tree/variable_node.rb", "lib/sass/tree/debug_node.rb", "lib/sass/tree/directive_node.rb", "lib/sass/tree/node.rb", "lib/sass/tree/comment_node.rb", "lib/sass/tree/rule_node.rb", "lib/sass/tree/import_node.rb", "lib/sass/tree/while_node.rb", "lib/sass/files.rb", "lib/sass/plugin.rb", "lib/sass/script/parser.rb", "lib/sass/script/color.rb", "lib/sass/script/string.rb", "lib/sass/script/unary_operation.rb", "lib/sass/script/number.rb", "lib/sass/script/funcall.rb", "lib/sass/script/variable.rb", "lib/sass/script/functions.rb", "lib/sass/script/bool.rb", "lib/sass/script/lexer.rb", "lib/sass/script/operation.rb", "lib/sass/script/node.rb", "lib/sass/script/literal.rb", "lib/sass/css.rb", "lib/sass/engine.rb", "lib/sass/repl.rb", "lib/sass/environment.rb", "lib/haml/util.rb", "lib/haml/exec.rb", "lib/haml/html.rb", "lib/haml/error.rb", "lib/haml/buffer.rb", "lib/haml/template.rb", "lib/haml/template/plugin.rb", "lib/haml/template/patch.rb", "lib/haml/helpers.rb", "lib/haml/version.rb", "lib/haml/filters.rb", "lib/haml/engine.rb", "lib/haml/precompiler.rb", "lib/haml/shared.rb", "lib/haml/helpers/action_view_extensions.rb", "lib/haml/helpers/action_view_mods.rb", "lib/haml/helpers/xss_mods.rb", "lib/haml.rb", "bin/css2sass", "bin/sass", "bin/haml", "bin/html2haml", "test/sass/script_test.rb", "test/sass/more_results/more1_with_line_comments.css", "test/sass/more_results/more1.css", "test/sass/more_results/more_import.css", "test/sass/templates/bork2.sass", "test/sass/templates/compressed.sass", "test/sass/templates/expanded.sass", "test/sass/templates/import.sass", "test/sass/templates/subdir/subdir.sass", "test/sass/templates/subdir/nested_subdir/_nested_partial.sass", "test/sass/templates/subdir/nested_subdir/nested_subdir.sass", "test/sass/templates/basic.sass", "test/sass/templates/_partial.sass", "test/sass/templates/units.sass", "test/sass/templates/mixins.sass", "test/sass/templates/multiline.sass", "test/sass/templates/line_numbers.sass", "test/sass/templates/nested.sass", "test/sass/templates/compact.sass", "test/sass/templates/alt.sass", "test/sass/templates/script.sass", "test/sass/templates/importee.sass", "test/sass/templates/parent_ref.sass", "test/sass/templates/bork.sass", "test/sass/templates/complex.sass", "test/sass/css2sass_test.rb", "test/sass/plugin_test.rb", "test/sass/more_templates/more1.sass", "test/sass/more_templates/more_import.sass", "test/sass/more_templates/_more_partial.sass", "test/sass/functions_test.rb", "test/sass/results/nested.css", "test/sass/results/units.css", "test/sass/results/script.css", "test/sass/results/subdir/nested_subdir/nested_subdir.css", "test/sass/results/subdir/subdir.css", "test/sass/results/import.css", "test/sass/results/compact.css", "test/sass/results/expanded.css", "test/sass/results/alt.css", "test/sass/results/mixins.css", "test/sass/results/complex.css", "test/sass/results/compressed.css", "test/sass/results/parent_ref.css", "test/sass/results/line_numbers.css", "test/sass/results/multiline.css", "test/sass/results/basic.css", "test/sass/engine_test.rb", "test/haml/mocks/article.rb", "test/haml/util_test.rb", "test/haml/template_test.rb", "test/haml/html2haml_test.rb", "test/haml/rhtml/_av_partial_1.rhtml", "test/haml/rhtml/standard.rhtml", "test/haml/rhtml/action_view.rhtml", "test/haml/rhtml/_av_partial_2.rhtml", "test/haml/helper_test.rb", "test/haml/templates/action_view_ugly.haml", "test/haml/templates/list.haml", "test/haml/templates/_text_area.haml", "test/haml/templates/_partial.haml", "test/haml/templates/nuke_outer_whitespace.haml", "test/haml/templates/render_layout.haml", "test/haml/templates/_av_partial_2.haml", "test/haml/templates/partial_layout.haml", "test/haml/templates/helpful.haml", "test/haml/templates/_av_partial_1_ugly.haml", "test/haml/templates/just_stuff.haml", "test/haml/templates/standard_ugly.haml", "test/haml/templates/silent_script.haml", "test/haml/templates/very_basic.haml", "test/haml/templates/nuke_inner_whitespace.haml", "test/haml/templates/eval_suppressed.haml", "test/haml/templates/tag_parsing.haml", "test/haml/templates/whitespace_handling.haml", "test/haml/templates/partials.haml", "test/haml/templates/standard.haml", "test/haml/templates/partialize.haml", "test/haml/templates/_layout_for_partial.haml", "test/haml/templates/_av_partial_1.haml", "test/haml/templates/filters.haml", "test/haml/templates/_layout.erb", "test/haml/templates/content_for_layout.haml", "test/haml/templates/_av_partial_2_ugly.haml", "test/haml/templates/helpers.haml", "test/haml/templates/original_engine.haml", "test/haml/templates/breakage.haml", "test/haml/templates/action_view.haml", "test/haml/spec/tests.json", "test/haml/spec/lua_haml_spec.lua", "test/haml/spec/ruby_haml_test.rb", "test/haml/spec/README.md", "test/haml/results/content_for_layout.xhtml", "test/haml/results/just_stuff.xhtml", "test/haml/results/whitespace_handling.xhtml", "test/haml/results/nuke_outer_whitespace.xhtml", "test/haml/results/silent_script.xhtml", "test/haml/results/filters.xhtml", "test/haml/results/standard.xhtml", "test/haml/results/nuke_inner_whitespace.xhtml", "test/haml/results/helpful.xhtml", "test/haml/results/very_basic.xhtml", "test/haml/results/eval_suppressed.xhtml", "test/haml/results/partials.xhtml", "test/haml/results/render_layout.xhtml", "test/haml/results/original_engine.xhtml", "test/haml/results/helpers.xhtml", "test/haml/results/list.xhtml", "test/haml/results/partial_layout.xhtml", "test/haml/results/tag_parsing.xhtml", "test/haml/markaby/standard.mab", "test/haml/engine_test.rb", "test/linked_rails.rb", "test/benchmark.rb", "test/test_helper.rb", "extra/sass-mode.el", "extra/haml-mode.el", "extra/update_watch.rb", "Rakefile", "init.rb", ".yardopts", "VERSION", "MIT-LICENSE", "README.md", "VERSION_NAME", "REVISION", "CONTRIBUTING"] + s.homepage = %q{http://haml.hamptoncatlin.com/} + s.rdoc_options = ["--title", "Haml", "--main", "README.rdoc", "--exclude", "lib/haml/buffer.rb", "--line-numbers", "--inline-source"] + s.require_paths = ["lib"] + s.rubyforge_project = %q{haml} + s.rubygems_version = %q{1.3.5} + s.summary = %q{An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.} + s.test_files = ["test/sass/script_test.rb", "test/sass/css2sass_test.rb", "test/sass/plugin_test.rb", "test/sass/functions_test.rb", "test/sass/engine_test.rb", "test/haml/util_test.rb", "test/haml/template_test.rb", "test/haml/html2haml_test.rb", "test/haml/helper_test.rb", "test/haml/spec/ruby_haml_test.rb", "test/haml/engine_test.rb"] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + s.add_development_dependency(%q, [">= 0.2.3"]) + s.add_development_dependency(%q, [">= 0.5.9"]) + else + s.add_dependency(%q, [">= 0.2.3"]) + s.add_dependency(%q, [">= 0.5.9"]) + end + else + s.add_dependency(%q, [">= 0.2.3"]) + s.add_dependency(%q, [">= 0.5.9"]) + end +end diff --git a/vendor/gems/specifications/highline-1.5.1.gemspec b/lib/middleman/vendor/gems/specifications/highline-1.5.1.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/highline-1.5.1.gemspec rename to lib/middleman/vendor/gems/specifications/highline-1.5.1.gemspec diff --git a/vendor/gems/specifications/httpclient-2.1.5.2.gemspec b/lib/middleman/vendor/gems/specifications/httpclient-2.1.5.2.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/httpclient-2.1.5.2.gemspec rename to lib/middleman/vendor/gems/specifications/httpclient-2.1.5.2.gemspec diff --git a/vendor/gems/specifications/json-1.2.0.gemspec b/lib/middleman/vendor/gems/specifications/json-1.2.0.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/json-1.2.0.gemspec rename to lib/middleman/vendor/gems/specifications/json-1.2.0.gemspec diff --git a/vendor/gems/specifications/launchy-0.3.3.gemspec b/lib/middleman/vendor/gems/specifications/launchy-0.3.3.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/launchy-0.3.3.gemspec rename to lib/middleman/vendor/gems/specifications/launchy-0.3.3.gemspec diff --git a/vendor/gems/specifications/rack-1.0.1.gemspec b/lib/middleman/vendor/gems/specifications/rack-1.0.1.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/rack-1.0.1.gemspec rename to lib/middleman/vendor/gems/specifications/rack-1.0.1.gemspec diff --git a/vendor/gems/specifications/rack-test-0.5.2.gemspec b/lib/middleman/vendor/gems/specifications/rack-test-0.5.2.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/rack-test-0.5.2.gemspec rename to lib/middleman/vendor/gems/specifications/rack-test-0.5.2.gemspec diff --git a/vendor/gems/specifications/rake-0.8.7.gemspec b/lib/middleman/vendor/gems/specifications/rake-0.8.7.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/rake-0.8.7.gemspec rename to lib/middleman/vendor/gems/specifications/rake-0.8.7.gemspec diff --git a/vendor/gems/specifications/shotgun-0.4.gemspec b/lib/middleman/vendor/gems/specifications/shotgun-0.4.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/shotgun-0.4.gemspec rename to lib/middleman/vendor/gems/specifications/shotgun-0.4.gemspec diff --git a/vendor/gems/specifications/sinatra-0.9.4.gemspec b/lib/middleman/vendor/gems/specifications/sinatra-0.9.4.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/sinatra-0.9.4.gemspec rename to lib/middleman/vendor/gems/specifications/sinatra-0.9.4.gemspec diff --git a/vendor/gems/specifications/sinatra-content-for-0.2.gemspec b/lib/middleman/vendor/gems/specifications/sinatra-content-for-0.2.gemspec old mode 100644 new mode 100755 similarity index 97% rename from vendor/gems/specifications/sinatra-content-for-0.2.gemspec rename to lib/middleman/vendor/gems/specifications/sinatra-content-for-0.2.gemspec index 78fb0e78..342d29e8 --- a/vendor/gems/specifications/sinatra-content-for-0.2.gemspec +++ b/lib/middleman/vendor/gems/specifications/sinatra-content-for-0.2.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.version = "0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Nicolás Sanguinetti"] + s.authors = ["Nicol\303\241s Sanguinetti"] s.date = %q{2009-05-08} s.description = %q{Small Sinatra extension to add a content_for helper similar to Rails'} s.email = %q{contacto@nicolassanguinetti.info} diff --git a/vendor/gems/specifications/smusher-0.4.2.gemspec b/lib/middleman/vendor/gems/specifications/smusher-0.4.2.gemspec old mode 100644 new mode 100755 similarity index 70% rename from vendor/gems/specifications/smusher-0.4.2.gemspec rename to lib/middleman/vendor/gems/specifications/smusher-0.4.2.gemspec index dd812adf..1c437f78 --- a/vendor/gems/specifications/smusher-0.4.2.gemspec +++ b/lib/middleman/vendor/gems/specifications/smusher-0.4.2.gemspec @@ -6,19 +6,18 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Michael Grosser"] - s.date = %q{2009-10-08} + s.date = %q{2009-11-21} s.default_executable = %q{smusher} s.email = %q{grosser.michael@gmail.com} s.executables = ["smusher"] s.extra_rdoc_files = ["README.markdown"] - s.files = [".gitignore", "README.markdown", "Rakefile", "VERSION", "bin/smusher", "lib/smusher.rb", "lib/smusher/puny_png.rb", "lib/smusher/smush_it.rb", "rdoc/README.rdoc", "smusher.gemspec", "spec/empty/.gitignore", "spec/images/ad.gif", "spec/images/add.png", "spec/images/drink_empty.png", "spec/images/logo.gif", "spec/images/people.jpg", "spec/images/water.JPG", "spec/images/woman.jpeg", "spec/out/ad.gif", "spec/out/people.jpg", "spec/reduced/add.png", "spec/reduced/add_puny.png", "spec/reduced/fam.png", "spec/smusher/puny_png_spec.rb", "spec/smusher/smush_it_spec.rb", "spec/smusher_spec.rb", "spec/spec_helper.rb"] + s.files = [".gitignore", "README.markdown", "Rakefile", "VERSION", "bin/smusher", "lib/smusher.rb", "lib/smusher/puny_png.rb", "lib/smusher/smush_it.rb", "smusher.gemspec", "spec/empty/.gitignore", "spec/images/ad.gif", "spec/images/add.png", "spec/images/drink_empty.png", "spec/images/logo.gif", "spec/images/people.jpg", "spec/images/water.JPG", "spec/images/woman.jpeg", "spec/out/ad.gif", "spec/out/people.jpg", "spec/reduced/add.png", "spec/reduced/add_puny.png", "spec/reduced/fam.png", "spec/smusher/puny_png_spec.rb", "spec/smusher/smush_it_spec.rb", "spec/smusher_spec.rb", "spec/spec_helper.rb"] s.homepage = %q{http://github.com/grosser/smusher} s.rdoc_options = ["--charset=UTF-8"] s.require_paths = ["lib"] - s.rubyforge_project = %q{smusher} s.rubygems_version = %q{1.3.5} s.summary = %q{Automatic Lossless Reduction Of All Your Images} - s.test_files = ["spec/smusher/smush_it_spec.rb", "spec/smusher/puny_png_spec.rb", "spec/spec_helper.rb", "spec/smusher_spec.rb"] + s.test_files = ["spec/spec_helper.rb", "spec/smusher_spec.rb", "spec/smusher/puny_png_spec.rb", "spec/smusher/smush_it_spec.rb"] if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION diff --git a/vendor/gems/specifications/sprockets-1.0.2.gemspec b/lib/middleman/vendor/gems/specifications/sprockets-1.0.2.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/sprockets-1.0.2.gemspec rename to lib/middleman/vendor/gems/specifications/sprockets-1.0.2.gemspec diff --git a/vendor/gems/specifications/templater-1.0.0.gemspec b/lib/middleman/vendor/gems/specifications/templater-1.0.0.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/templater-1.0.0.gemspec rename to lib/middleman/vendor/gems/specifications/templater-1.0.0.gemspec diff --git a/vendor/gems/specifications/yui-compressor-0.9.1.gemspec b/lib/middleman/vendor/gems/specifications/yui-compressor-0.9.1.gemspec old mode 100644 new mode 100755 similarity index 100% rename from vendor/gems/specifications/yui-compressor-0.9.1.gemspec rename to lib/middleman/vendor/gems/specifications/yui-compressor-0.9.1.gemspec diff --git a/spec/fixtures/sample/views/cache-buster.html.haml b/spec/fixtures/sample/views/cache-buster.html.haml old mode 100644 new mode 100755 diff --git a/vendor/bin/autospec b/vendor/bin/autospec deleted file mode 100755 index dc9f5d5c..00000000 --- a/vendor/bin/autospec +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/rspec-1.2.9/bin/autospec") \ No newline at end of file diff --git a/vendor/bin/css2sass b/vendor/bin/css2sass deleted file mode 100755 index af1bb491..00000000 --- a/vendor/bin/css2sass +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.13/bin/css2sass") \ No newline at end of file diff --git a/vendor/bin/cucumber b/vendor/bin/cucumber deleted file mode 100755 index 01a05632..00000000 --- a/vendor/bin/cucumber +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/cucumber-0.4.4/bin/cucumber") \ No newline at end of file diff --git a/vendor/bin/haml b/vendor/bin/haml deleted file mode 100755 index 7da8fab1..00000000 --- a/vendor/bin/haml +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.13/bin/haml") \ No newline at end of file diff --git a/vendor/bin/html2haml b/vendor/bin/html2haml deleted file mode 100755 index 92d98d0a..00000000 --- a/vendor/bin/html2haml +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.13/bin/html2haml") \ No newline at end of file diff --git a/vendor/bin/jeweler b/vendor/bin/jeweler deleted file mode 100755 index ad06100f..00000000 --- a/vendor/bin/jeweler +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/jeweler-1.3.0/bin/jeweler") \ No newline at end of file diff --git a/vendor/bin/maruku b/vendor/bin/maruku deleted file mode 100755 index 2a46dff6..00000000 --- a/vendor/bin/maruku +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/maruku-0.6.0/bin/maruku") \ No newline at end of file diff --git a/vendor/bin/marutex b/vendor/bin/marutex deleted file mode 100755 index 7e135eb4..00000000 --- a/vendor/bin/marutex +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/maruku-0.6.0/bin/marutex") \ No newline at end of file diff --git a/vendor/bin/ri b/vendor/bin/ri deleted file mode 100755 index f1060668..00000000 --- a/vendor/bin/ri +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/rdoc-2.4.3/bin/ri") \ No newline at end of file diff --git a/vendor/bin/rubyforge b/vendor/bin/rubyforge deleted file mode 100755 index ed066f3f..00000000 --- a/vendor/bin/rubyforge +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/rubyforge-2.0.3/bin/rubyforge") \ No newline at end of file diff --git a/vendor/bin/sass b/vendor/bin/sass deleted file mode 100755 index 81179857..00000000 --- a/vendor/bin/sass +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/haml-2.2.13/bin/sass") \ No newline at end of file diff --git a/vendor/bin/sdoc b/vendor/bin/sdoc deleted file mode 100755 index 7c9401c8..00000000 --- a/vendor/bin/sdoc +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -KU -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/sdoc-0.2.14.1/bin/sdoc") \ No newline at end of file diff --git a/vendor/bin/sdoc-merge b/vendor/bin/sdoc-merge deleted file mode 100755 index 6e856fa6..00000000 --- a/vendor/bin/sdoc-merge +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -KU -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/sdoc-0.2.14.1/bin/sdoc-merge") \ No newline at end of file diff --git a/vendor/bin/spec b/vendor/bin/spec deleted file mode 100755 index 7a1431cc..00000000 --- a/vendor/bin/spec +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/rspec-1.2.9/bin/spec") \ No newline at end of file diff --git a/vendor/bin/tt b/vendor/bin/tt deleted file mode 100755 index 198db5e5..00000000 --- a/vendor/bin/tt +++ /dev/null @@ -1,3 +0,0 @@ -#!/Users/tdreyno/homebrew/Cellar/ruby/1.9.1-p243/bin/ruby -require File.join(File.dirname(__FILE__), "../gems/environment") -load File.join(File.dirname(__FILE__), "../gems/gems/treetop-1.4.2/bin/tt") \ No newline at end of file diff --git a/vendor/gems/cache/builder-2.1.2.gem b/vendor/gems/cache/builder-2.1.2.gem deleted file mode 100644 index c9016972..00000000 Binary files a/vendor/gems/cache/builder-2.1.2.gem and /dev/null differ diff --git a/vendor/gems/cache/cucumber-0.4.4.gem b/vendor/gems/cache/cucumber-0.4.4.gem deleted file mode 100644 index 7447f604..00000000 Binary files a/vendor/gems/cache/cucumber-0.4.4.gem and /dev/null differ diff --git a/vendor/gems/cache/daemons-1.0.10.gem b/vendor/gems/cache/daemons-1.0.10.gem deleted file mode 100644 index 248c9507..00000000 Binary files a/vendor/gems/cache/daemons-1.0.10.gem and /dev/null differ diff --git a/vendor/gems/cache/eventmachine-0.12.10.gem b/vendor/gems/cache/eventmachine-0.12.10.gem deleted file mode 100644 index aa54c34a..00000000 Binary files a/vendor/gems/cache/eventmachine-0.12.10.gem and /dev/null differ diff --git a/vendor/gems/cache/gemcutter-0.1.7.gem b/vendor/gems/cache/gemcutter-0.1.7.gem deleted file mode 100644 index 2edc3c02..00000000 Binary files a/vendor/gems/cache/gemcutter-0.1.7.gem and /dev/null differ diff --git a/vendor/gems/cache/git-1.2.5.gem b/vendor/gems/cache/git-1.2.5.gem deleted file mode 100644 index d9cda559..00000000 Binary files a/vendor/gems/cache/git-1.2.5.gem and /dev/null differ diff --git a/vendor/gems/cache/haml-2.2.13.gem b/vendor/gems/cache/haml-2.2.13.gem deleted file mode 100644 index 0785a0ec..00000000 Binary files a/vendor/gems/cache/haml-2.2.13.gem and /dev/null differ diff --git a/vendor/gems/cache/jeweler-1.3.0.gem b/vendor/gems/cache/jeweler-1.3.0.gem deleted file mode 100644 index e3129950..00000000 Binary files a/vendor/gems/cache/jeweler-1.3.0.gem and /dev/null differ diff --git a/vendor/gems/cache/json_pure-1.2.0.gem b/vendor/gems/cache/json_pure-1.2.0.gem deleted file mode 100644 index f9e2535e..00000000 Binary files a/vendor/gems/cache/json_pure-1.2.0.gem and /dev/null differ diff --git a/vendor/gems/cache/markaby-0.5.gem b/vendor/gems/cache/markaby-0.5.gem deleted file mode 100644 index 16dea9e8..00000000 Binary files a/vendor/gems/cache/markaby-0.5.gem and /dev/null differ diff --git a/vendor/gems/cache/maruku-0.6.0.gem b/vendor/gems/cache/maruku-0.6.0.gem deleted file mode 100644 index d048b507..00000000 Binary files a/vendor/gems/cache/maruku-0.6.0.gem and /dev/null differ diff --git a/vendor/gems/cache/net-scp-1.0.2.gem b/vendor/gems/cache/net-scp-1.0.2.gem deleted file mode 100644 index b30a5310..00000000 Binary files a/vendor/gems/cache/net-scp-1.0.2.gem and /dev/null differ diff --git a/vendor/gems/cache/net-ssh-2.0.15.gem b/vendor/gems/cache/net-ssh-2.0.15.gem deleted file mode 100644 index a513edb1..00000000 Binary files a/vendor/gems/cache/net-ssh-2.0.15.gem and /dev/null differ diff --git a/vendor/gems/cache/polyglot-0.2.9.gem b/vendor/gems/cache/polyglot-0.2.9.gem deleted file mode 100644 index 29a97ee1..00000000 Binary files a/vendor/gems/cache/polyglot-0.2.9.gem and /dev/null differ diff --git a/vendor/gems/cache/rack-test-0.5.1.gem b/vendor/gems/cache/rack-test-0.5.1.gem deleted file mode 100644 index ed57b845..00000000 Binary files a/vendor/gems/cache/rack-test-0.5.1.gem and /dev/null differ diff --git a/vendor/gems/cache/rdoc-2.4.3.gem b/vendor/gems/cache/rdoc-2.4.3.gem deleted file mode 100644 index 8d24281d..00000000 Binary files a/vendor/gems/cache/rdoc-2.4.3.gem and /dev/null differ diff --git a/vendor/gems/cache/rspec-1.2.9.gem b/vendor/gems/cache/rspec-1.2.9.gem deleted file mode 100644 index 4a712d64..00000000 Binary files a/vendor/gems/cache/rspec-1.2.9.gem and /dev/null differ diff --git a/vendor/gems/cache/rubyforge-2.0.3.gem b/vendor/gems/cache/rubyforge-2.0.3.gem deleted file mode 100644 index 0a516c5a..00000000 Binary files a/vendor/gems/cache/rubyforge-2.0.3.gem and /dev/null differ diff --git a/vendor/gems/cache/sdoc-0.2.14.1.gem b/vendor/gems/cache/sdoc-0.2.14.1.gem deleted file mode 100644 index 4e894216..00000000 Binary files a/vendor/gems/cache/sdoc-0.2.14.1.gem and /dev/null differ diff --git a/vendor/gems/cache/smusher-0.4.2.gem b/vendor/gems/cache/smusher-0.4.2.gem deleted file mode 100644 index 2b6ee401..00000000 Binary files a/vendor/gems/cache/smusher-0.4.2.gem and /dev/null differ diff --git a/vendor/gems/cache/syntax-1.0.0.gem b/vendor/gems/cache/syntax-1.0.0.gem deleted file mode 100644 index d193067a..00000000 Binary files a/vendor/gems/cache/syntax-1.0.0.gem and /dev/null differ diff --git a/vendor/gems/cache/term-ansicolor-1.0.4.gem b/vendor/gems/cache/term-ansicolor-1.0.4.gem deleted file mode 100644 index 11f724ba..00000000 Binary files a/vendor/gems/cache/term-ansicolor-1.0.4.gem and /dev/null differ diff --git a/vendor/gems/cache/thin-1.2.5.gem b/vendor/gems/cache/thin-1.2.5.gem deleted file mode 100644 index 25fc506d..00000000 Binary files a/vendor/gems/cache/thin-1.2.5.gem and /dev/null differ diff --git a/vendor/gems/cache/treetop-1.4.2.gem b/vendor/gems/cache/treetop-1.4.2.gem deleted file mode 100644 index 9e6f6272..00000000 Binary files a/vendor/gems/cache/treetop-1.4.2.gem and /dev/null differ diff --git a/vendor/gems/gems/builder-2.1.2/CHANGES b/vendor/gems/gems/builder-2.1.2/CHANGES deleted file mode 100644 index 4843141c..00000000 --- a/vendor/gems/gems/builder-2.1.2/CHANGES +++ /dev/null @@ -1,85 +0,0 @@ -= Change Log - -== Version 2.1.2 - -* Fixed bug where private methods in kernel could leak through using - tag!(). Thanks to Hagen Overdick for finding and diagnosing this - bug. - - -== Version 2.1.1 - -* Fixed typo in XmlMarkup class docs (ident => indent). (from Martin - Fowler). -* Removed extra directory indirection from legacy CVS to SVN move. -* Removed some extraneous tabs from source. -* Fixed test on private methods in blankslate to differentiate between - targetted and untargetted private methods. -* Removed legacy capture of @self in XmlBase (@self was used back when - we used instance eval). -* Added additional tests for global functions (both direct and included). - -== Version 2.1.0 - -* Fixed bug in BlankSlate where including a module into Object could - cause methods to leak into BlankSlate. -* Made BlankSlate available as its own gem. Currently the builder gem - still directly includes the BlankSlate code. -* Added reveal capability to BlankSlate. - -== Version 2.0.0 - -* Added doc directory -* Added unit tests for XmlEvents. -* Added XChar module and used it in the _escape method. -* Attributes are now quoted by default when strings. Use Symbol - attribute values for unquoted behavior. - -== Version 1.2.4 - -* Added a cdata! command to an XML Builder (from Josh Knowles). - -== Version 1.2.3 - -The attributes in the instruction will be ordered: -version, encoding, standalone. - -== Version 1.2.2 - -Another fix for BlankSlate. The Kernal/Object traps added in 1.2.1 -failed when a method was defined late more than once. Since the -method was already marked as removed, another attempt to undefine it -raised an error. The fix was to check the list of instance methods -before attempting the undef operation. Thanks to Florian Gross and -David Heinemeier Hansson for the patch. - -== Version 1.2.1 - -BlankSlate now traps method definitions in Kernel and Object to avoid -late method definitions inadvertently becoming part of the definition -of BlankSlate as well. - -== Version 1.2.0 - -Improved support for entity declarations by allowing nested -declarations and removal of the attribute processing. - -Added namespace support. - -== Version 1.1.0 - -Added support for comments, entity declarations and processing instructions. - -== Version 1.0.0 - -Removed use of instace_eval making the use of XmlMarkup much -less prone to error. - -== Version 0.1.1 - -Bug fix. - -== Version 0.1.0 - -Initial version release. - diff --git a/vendor/gems/gems/builder-2.1.2/README b/vendor/gems/gems/builder-2.1.2/README deleted file mode 100644 index 5ba72dff..00000000 --- a/vendor/gems/gems/builder-2.1.2/README +++ /dev/null @@ -1,210 +0,0 @@ -= Project: Builder - -== Goal - -Provide a simple way to create XML markup and data structures. - -== Classes - -Builder::XmlMarkup:: Generate XML markup notiation -Builder::XmlEvents:: Generate XML events (i.e. SAX-like) - -Notes:: - -* An Builder::XmlTree class to generate XML tree - (i.e. DOM-like) structures is also planned, but not yet implemented. - Also, the events builder is currently lagging the markup builder in - features. - -== Usage - - require 'rubygems' - require_gem 'builder', '~> 2.0' - - builder = Builder::XmlMarkup.new - xml = builder.person { |b| b.name("Jim"); b.phone("555-1234") } - xml #=> Jim555-1234 - -or - - require 'rubygems' - require_gem 'builder' - - builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2) - builder.person { |b| b.name("Jim"); b.phone("555-1234") } - # - # Prints: - # - # Jim - # 555-1234 - # - -== Compatibility - -=== Version 2.0.0 Compatibility Changes - -Version 2.0.0 introduces automatically escaped attribute values for -the first time. Versions prior to 2.0.0 did not insert escape -characters into attribute values in the XML markup. This allowed -attribute values to explicitly reference entities, which was -occasionally used by a small number of developers. Since strings -could always be explicitly escaped by hand, this was not a major -restriction in functionality. - -However, it did suprise most users of builder. Since the body text is -normally escaped, everybody expected the attribute values to be -escaped as well. Escaped attribute values were the number one support -request on the 1.x Builder series. - -Starting with Builder version 2.0.0, all attribute values expressed as -strings will be processed and the appropriate characters will be -escaped (e.g. "&" will be tranlated to "&"). Attribute values -that are expressed as Symbol values will not be processed for escaped -characters and will be unchanged in output. (Yes, this probably counts -as Symbol abuse, but the convention is convenient and flexible). - -Example: - - xml = Builder::XmlMarkup.new - xml.sample(:escaped=>"This&That", :unescaped=>:"Here&There") - xml.target! => - - -=== Version 1.0.0 Compatibility Changes - -Version 1.0.0 introduces some changes that are not backwards -compatible with earlier releases of builder. The main areas of -incompatibility are: - -* Keyword based arguments to +new+ (rather than positional based). It - was found that a developer would often like to specify indentation - without providing an explicit target, or specify a target without - indentation. Keyword based arguments handle this situation nicely. - -* Builder must now be an explicit target for markup tags. Instead of - writing - - xml_markup = Builder::XmlMarkup.new - xml_markup.div { strong("text") } - - you need to write - - xml_markup = Builder::XmlMarkup.new - xml_markup.div { xml_markup.strong("text") } - -* The builder object is passed as a parameter to all nested markup - blocks. This allows you to create a short alias for the builder - object that can be used within the block. For example, the previous - example can be written as: - - xml_markup = Builder::XmlMarkup.new - xml_markup.div { |xml| xml.strong("text") } - -* If you have both a pre-1.0 and a post-1.0 gem of builder installed, - you can choose which version to use through the RubyGems - +require_gem+ facility. - - require_gem 'builder', "~> 0.0" # Gets the old version - require_gem 'builder', "~> 1.0" # Gets the new version - -== Features - -* XML Comments are supported ... - - xml_markup.comment! "This is a comment" - #=> - -* XML processing instructions are supported ... - - xml_markup.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" - #=> - - If the processing instruction is omitted, it defaults to "xml". - When the processing instruction is "xml", the defaults attributes - are: - - version:: 1.0 - encoding:: "UTF-8" - -* XML entity declarations are now supported to a small degree. - - xml_markup.declare! :DOCTYPE, :chapter, :SYSTEM, "../dtds/chapter.dtd" - #=> - - The parameters to a declare! method must be either symbols or - strings. Symbols are inserted without quotes, and strings are - inserted with double quotes. Attribute-like arguments in hashes are - not allowed. - - If you need to have an argument to declare! be inserted without - quotes, but the arguement does not conform to the typical Ruby - syntax for symbols, then use the :"string" form to specify a symbol. - - For example: - - xml_markup.declare! :ELEMENT, :chapter, :"(title,para+)" - #=> - - Nested entity declarations are allowed. For example: - - @xml_markup.declare! :DOCTYPE, :chapter do |x| - x.declare! :ELEMENT, :chapter, :"(title,para+)" - x.declare! :ELEMENT, :title, :"(#PCDATA)" - x.declare! :ELEMENT, :para, :"(#PCDATA)" - end - - #=> - - - - - ]> - -* Some support for XML namespaces is now available. If the first - argument to a tag call is a symbol, it will be joined to the tag to - produce a namespace:tag combination. It is easier to show this than - describe it. - - xml.SOAP :Envelope do ... end - - Just put a space before the colon in a namespace to produce the - right form for builder (e.g. "SOAP:Envelope" => - "xml.SOAP :Envelope") - -* String attribute values are now escaped by default by - Builder (NOTE: this is _new_ behavior as of version 2.0). - - However, occasionally you need to use entities in attribute values. - Using a symbols (rather than a string) for an attribute value will - cause Builder to not run its quoting/escaping algorithm on that - particular value. - - (Note: The +escape_attrs+ option for builder is now - obsolete). - - Example: - - xml = Builder::XmlMarkup.new - xml.sample(:escaped=>"This&That", :unescaped=>:"Here&There") - xml.target! => - - -* UTF-8 Support - - Builder correctly translates UTF-8 characters into valid XML. (New - in version 2.0.0). Thanks to Sam Ruby for the translation code. - - Example: - - xml = Builder::Markup.new - xml.sample("Iñtërnâtiônàl") - xml.target! => - "Iñtërnâtiônàl" - -== Contact - -Author:: Jim Weirich -Email:: jim@weirichhouse.org -Home Page:: http://onestepback.org -License:: MIT Licence (http://www.opensource.org/licenses/mit-license.html) diff --git a/vendor/gems/gems/builder-2.1.2/Rakefile b/vendor/gems/gems/builder-2.1.2/Rakefile deleted file mode 100644 index 89e1ae2c..00000000 --- a/vendor/gems/gems/builder-2.1.2/Rakefile +++ /dev/null @@ -1,263 +0,0 @@ -# Rakefile for rake -*- ruby -*- - -# Copyright 2004, 2005, 2006 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. - -require 'rake/clean' -require 'rake/testtask' -require 'rake/rdoctask' -begin - require 'rubygems' - require 'rake/gempackagetask' -rescue Exception - nil -end - -# Determine the current version of the software - -CLOBBER.include('pkg') - -CURRENT_VERSION = '2.1.2' -PKG_VERSION = ENV['REL'] ? ENV['REL'] : CURRENT_VERSION - -SRC_RB = FileList['lib/**/*.rb'] - -# The default task is run if rake is given no explicit arguments. - -desc "Default Task" -task :default => :test_all - -# Test Tasks --------------------------------------------------------- - -desc "Run all tests" -task :test_all => [:test_units] -task :ta => [:test_all] - -task :tu => [:test_units] - -Rake::TestTask.new("test_units") do |t| - t.test_files = FileList['test/test*.rb'] - t.verbose = false -end - -# Create a task to build the RDOC documentation tree. - -rd = Rake::RDocTask.new("rdoc") { |rdoc| - rdoc.rdoc_dir = 'html' - rdoc.title = "Builder for Markup" - rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README' - rdoc.rdoc_files.include('lib/**/*.rb', '[A-Z]*', 'doc/**/*.rdoc') - rdoc.template = 'doc/jamis.rb' -} - -# ==================================================================== -# Create a task that will package the Rake software into distributable -# gem files. - -PKG_FILES = FileList[ - 'lib/**/*.rb', - 'test/**/*.rb', - 'scripts/**/*.rb' -] -PKG_FILES.exclude('test/testcssbuilder.rb') -PKG_FILES.exclude('lib/builder/css.rb') - -BLANKSLATE_FILES = FileList[ - 'lib/blankslate.rb', - 'test/testblankslate.rb' -] - -if ! defined?(Gem) - puts "Package Target requires RubyGEMs" -else - spec = Gem::Specification.new do |s| - - #### Basic information. - - s.name = 'builder' - s.version = PKG_VERSION - s.summary = "Builders for MarkUp." - s.description = %{\ -Builder provides a number of builder objects that make creating structured data -simple to do. Currently the following builder objects are supported: - -* XML Markup -* XML Events -} - - s.files = PKG_FILES.to_a - s.require_path = 'lib' - s.autorequire = 'builder' - - s.test_files = PKG_FILES.select { |fn| fn =~ /^test\/test/ } - - s.has_rdoc = true - s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a - s.rdoc_options << - '--title' << 'Builder -- Easy XML Building' << - '--main' << 'README' << - '--line-numbers' - - s.author = "Jim Weirich" - s.email = "jim@weirichhouse.org" - s.homepage = "http://onestepback.org" - end - - blankslate_spec = Gem::Specification.new do |s| - - #### Basic information. - - s.name = 'blankslate' - s.version = PKG_VERSION - s.summary = "Blank Slate base class." - s.description = %{\ -BlankSlate provides a base class where almost all of the methods from Object and -Kernel have been removed. This is useful when providing proxy object and other -classes that make heavy use of method_missing. -} - - s.files = BLANKSLATE_FILES.to_a - s.require_path = 'lib' - s.autorequire = 'builder' - - s.test_files = PKG_FILES.select { |fn| fn =~ /^test\/test/ } - - s.has_rdoc = true - s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a - s.rdoc_options << - '--title' << 'BlankSlate -- Base Class for building proxies.' << - '--main' << 'README' << - '--line-numbers' - - s.author = "Jim Weirich" - s.email = "jim@weirichhouse.org" - s.homepage = "http://onestepback.org" - end - - namespace 'builder' do - Rake::GemPackageTask.new(spec) do |t| - t.need_tar = true - end - end - - namespace 'blankslate' do - Rake::GemPackageTask.new(blankslate_spec) do |t| - t.need_tar = true - end - end - - task :package => ['builder:package', 'blankslate:package'] -end - -desc "Look for Debugging print lines" -task :dbg do - FileList['**/*.rb'].egrep /\bDBG|\bbreakpoint\b/ -end - -# -------------------------------------------------------------------- -# Creating a release - -def announce(msg='') - STDERR.puts msg -end - -desc "Make a new release" -task :release => [ - :prerelease, - :clobber, - :test_all, - :update_version, - :package, - :tag] do - - announce - announce "**************************************************************" - announce "* Release #{PKG_VERSION} Complete." - announce "* Packages ready to upload." - announce "**************************************************************" - announce -end - -# Validate that everything is ready to go for a release. -task :prerelease do - announce - announce "**************************************************************" - announce "* Making RubyGem Release #{PKG_VERSION}" - announce "* (current version #{CURRENT_VERSION})" - announce "**************************************************************" - announce - - # Is a release number supplied? - unless ENV['REL'] - fail "Usage: rake release REL=x.y.z [REUSE=tag_suffix]" - end - - # Is the release different than the current release. - # (or is REUSE set?) - if PKG_VERSION == CURRENT_VERSION && ! ENV['REUSE'] - fail "Current version is #{PKG_VERSION}, must specify REUSE=tag_suffix to reuse version" - end - - # Are all source files checked in? - if ENV['RELTEST'] - announce "Release Task Testing, skipping checked-in file test" - else - announce "Checking for unchecked-in files..." - data = `cvs -q update` - unless data =~ /^$/ - fail "CVS update is not clean ... do you have unchecked-in files?" - end - announce "No outstanding checkins found ... OK" - end -end - -task :update_version => [:prerelease] do - if PKG_VERSION == CURRENT_VERSION - announce "No version change ... skipping version update" - else - announce "Updating Builder version to #{PKG_VERSION}" - open("Rakefile") do |rakein| - open("Rakefile.new", "w") do |rakeout| - rakein.each do |line| - if line =~ /^CURRENT_VERSION\s*=\s*/ - rakeout.puts "CURRENT_VERSION = '#{PKG_VERSION}'" - else - rakeout.puts line - end - end - end - end - mv "Rakefile.new", "Rakefile" - if ENV['RELTEST'] - announce "Release Task Testing, skipping commiting of new version" - else - sh %{cvs commit -m "Updated to version #{PKG_VERSION}" Rakefile} - end - end -end - -desc "Tag all the CVS files with the latest release number (REL=x.y.z)" -task :tag => [:prerelease] do - reltag = "REL_#{PKG_VERSION.gsub(/\./, '_')}" - reltag << ENV['REUSE'].gsub(/\./, '_') if ENV['REUSE'] - announce "Tagging CVS with [#{reltag}]" - if ENV['RELTEST'] - announce "Release Task Testing, skipping CVS tagging" - else - sh %{cvs tag #{reltag}} - end -end - -desc "Install the jamis RDoc template" -task :install_jamis_template do - require 'rbconfig' - dest_dir = File.join(Config::CONFIG['rubylibdir'], "rdoc/generators/template/html") - fail "Unabled to write to #{dest_dir}" unless File.writable?(dest_dir) - install "doc/jamis.rb", dest_dir, :verbose => true -end - -require 'scripts/publish' diff --git a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-1.2.4.rdoc b/vendor/gems/gems/builder-2.1.2/doc/releases/builder-1.2.4.rdoc deleted file mode 100644 index a1cf54fd..00000000 --- a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-1.2.4.rdoc +++ /dev/null @@ -1,31 +0,0 @@ -= Builder 1.2.4 Released. - -Added a "CDATA" method to the XML Markup builder (from Josh Knowles). - -== What is Builder? - -Builder::XmlMarkup allows easy programmatic creation of XML markup. -For example: - - builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2) - builder.person { |b| b.name("Jim"); b.phone("555-1234") } - puts builder.target! - -will generate: - - - Jim - 555-1234 - - -== Availability - -The easiest way to get and install builder is via RubyGems ... - - gem install builder (you may need root/admin privileges) - -== Thanks - -* Josh Knowles for the cdata! patch. - --- Jim Weirich diff --git a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.0.0.rdoc b/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.0.0.rdoc deleted file mode 100644 index ed9e086d..00000000 --- a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.0.0.rdoc +++ /dev/null @@ -1,46 +0,0 @@ -= Builder 2.0.0 Released. - -== Changes in 2.0.0 - -* UTF-8 characters in data are now correctly translated to their XML - equivalents. (Thanks to Sam Ruby) - -* Attribute values are now escaped by default. See the README - file for details. - -NOTE: The escaping attribute values by default is different -than in previous releases of Builder. This makes version 2.0.0 -somewhat incompatible with the 1.x series of Builder. If you use "&", -"<", or ">" in attributes values, you may have to change your -code. (Essentially you remove the manual escaping. The new way is -easier, believe me). - -== What is Builder? - -Builder::XmlMarkup is a library that allows easy programmatic creation -of XML markup. For example: - - builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2) - builder.person { |b| b.name("Jim"); b.phone("555-1234") } - -will generate: - - - Jim - 555-1234 - - -== Availability - -The easiest way to get and install builder is via RubyGems ... - - gem install builder (you may need root/admin privileges) - -== Thanks - -* Sam Ruby for the XChar module and the related UTF-8 translation - tools. -* Also to Sam Ruby for gently persuading me to start quoting attribute - values. - --- Jim Weirich diff --git a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.1.1.rdoc b/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.1.1.rdoc deleted file mode 100644 index dbbf1213..00000000 --- a/vendor/gems/gems/builder-2.1.2/doc/releases/builder-2.1.1.rdoc +++ /dev/null @@ -1,58 +0,0 @@ -= Builder 2.1.1 Released. - -Release 2.1.1 of Builder is mainly a bug fix release. - -== Changes in 2.1.1 - -* Added reveal capability to BlankSlate. - -* Fixed a bug in BlankSlate where including a module into Object could - cause methods to leak into BlankSlate. - -* Fixed typo in XmlMarkup class docs (from Martin Fowler). - -* Fixed test on private methods to differentiate between targetted and - untargetted private methods. - -* Removed legacy capture of @self in XmlBase (@self was used back when - we used instance eval). - -* Added additional tests for global functions (both direct and - included). - -* Several misc internal cleanups, including rearranging the source - code tree. - -NOTE: The escaping attribute values by default is different -than in previous releases of Builder. This makes version 2.0.x -somewhat incompatible with the 1.x series of Builder. If you use "&", -"<", or ">" in attributes values, you may have to change your -code. (Essentially you remove the manual escaping. The new way is -easier, believe me). - -== What is Builder? - -Builder::XmlMarkup is a library that allows easy programmatic creation -of XML markup. For example: - - builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2) - builder.person { |b| b.name("Jim"); b.phone("555-1234") } - -will generate: - - - Jim - 555-1234 - - -== Availability - -The easiest way to get and install builder is via RubyGems ... - - gem install builder (you may need root/admin privileges) - -== Thanks - -* Martin Fowler for spotting some typos in the documentation. - --- Jim Weirich diff --git a/vendor/gems/gems/builder-2.1.2/lib/blankslate.rb b/vendor/gems/gems/builder-2.1.2/lib/blankslate.rb deleted file mode 100644 index 0f30838f..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/blankslate.rb +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env ruby -#-- -# Copyright 2004, 2006 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -###################################################################### -# BlankSlate provides an abstract base class with no predefined -# methods (except for \_\_send__ and \_\_id__). -# BlankSlate is useful as a base class when writing classes that -# depend upon method_missing (e.g. dynamic proxies). -# -class BlankSlate - class << self - - # Hide the method named +name+ in the BlankSlate class. Don't - # hide +instance_eval+ or any method beginning with "__". - def hide(name) - if instance_methods.include?(name.to_s) and - name !~ /^(__|instance_eval)/ - @hidden_methods ||= {} - @hidden_methods[name.to_sym] = instance_method(name) - undef_method name - end - end - - def find_hidden_method(name) - @hidden_methods ||= {} - @hidden_methods[name] || superclass.find_hidden_method(name) - end - - # Redefine a previously hidden method so that it may be called on a blank - # slate object. - def reveal(name) - bound_method = nil - unbound_method = find_hidden_method(name) - fail "Don't know how to reveal method '#{name}'" unless unbound_method - define_method(name) do |*args| - bound_method ||= unbound_method.bind(self) - bound_method.call(*args) - end - end - end - - instance_methods.each { |m| hide(m) } -end - -###################################################################### -# Since Ruby is very dynamic, methods added to the ancestors of -# BlankSlate after BlankSlate is defined will show up in the -# list of available BlankSlate methods. We handle this by defining a -# hook in the Object and Kernel classes that will hide any method -# defined after BlankSlate has been loaded. -# -module Kernel - class << self - alias_method :blank_slate_method_added, :method_added - - # Detect method additions to Kernel and remove them in the - # BlankSlate class. - def method_added(name) - result = blank_slate_method_added(name) - return result if self != Kernel - BlankSlate.hide(name) - result - end - end -end - -###################################################################### -# Same as above, except in Object. -# -class Object - class << self - alias_method :blank_slate_method_added, :method_added - - # Detect method additions to Object and remove them in the - # BlankSlate class. - def method_added(name) - result = blank_slate_method_added(name) - return result if self != Object - BlankSlate.hide(name) - result - end - - def find_hidden_method(name) - nil - end - end -end - -###################################################################### -# Also, modules included into Object need to be scanned and have their -# instance methods removed from blank slate. In theory, modules -# included into Kernel would have to be removed as well, but a -# "feature" of Ruby prevents late includes into modules from being -# exposed in the first place. -# -class Module - alias blankslate_original_append_features append_features - def append_features(mod) - result = blankslate_original_append_features(mod) - return result if mod != Object - instance_methods.each do |name| - BlankSlate.hide(name) - end - result - end -end \ No newline at end of file diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder.rb b/vendor/gems/gems/builder-2.1.2/lib/builder.rb deleted file mode 100644 index 97192776..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder.rb +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env ruby - -#-- -# Copyright 2004 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -require 'builder/xmlmarkup' -require 'builder/xmlevents' diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder/blankslate.rb b/vendor/gems/gems/builder-2.1.2/lib/builder/blankslate.rb deleted file mode 100644 index 2935b6f1..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder/blankslate.rb +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env ruby -#-- -# Copyright 2004, 2006 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -require 'blankslate' - -###################################################################### -# BlankSlate has been promoted to a top level name and is now -# available as a standalone gem. We make the name available in the -# Builder namespace for compatibility. -# -module Builder - BlankSlate = ::BlankSlate -end diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder/xchar.rb b/vendor/gems/gems/builder-2.1.2/lib/builder/xchar.rb deleted file mode 100644 index 3a752bab..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder/xchar.rb +++ /dev/null @@ -1,115 +0,0 @@ -#!/usr/bin/env ruby - -# The XChar library is provided courtesy of Sam Ruby (See -# http://intertwingly.net/stories/2005/09/28/xchar.rb) - -# -------------------------------------------------------------------- - -# If the Builder::XChar module is not currently defined, fail on any -# name clashes in standard library classes. - -module Builder - def self.check_for_name_collision(klass, method_name, defined_constant=nil) - if klass.instance_methods.include?(method_name) - fail RuntimeError, - "Name Collision: Method '#{method_name}' is already defined in #{klass}" - end - end -end - -if ! defined?(Builder::XChar) - Builder.check_for_name_collision(String, "to_xs") - Builder.check_for_name_collision(Fixnum, "xchr") -end - -###################################################################### -module Builder - - #################################################################### - # XML Character converter, from Sam Ruby: - # (see http://intertwingly.net/stories/2005/09/28/xchar.rb). - # - module XChar # :nodoc: - - # See - # http://intertwingly.net/stories/2004/04/14/i18n.html#CleaningWindows - # for details. - CP1252 = { # :nodoc: - 128 => 8364, # euro sign - 130 => 8218, # single low-9 quotation mark - 131 => 402, # latin small letter f with hook - 132 => 8222, # double low-9 quotation mark - 133 => 8230, # horizontal ellipsis - 134 => 8224, # dagger - 135 => 8225, # double dagger - 136 => 710, # modifier letter circumflex accent - 137 => 8240, # per mille sign - 138 => 352, # latin capital letter s with caron - 139 => 8249, # single left-pointing angle quotation mark - 140 => 338, # latin capital ligature oe - 142 => 381, # latin capital letter z with caron - 145 => 8216, # left single quotation mark - 146 => 8217, # right single quotation mark - 147 => 8220, # left double quotation mark - 148 => 8221, # right double quotation mark - 149 => 8226, # bullet - 150 => 8211, # en dash - 151 => 8212, # em dash - 152 => 732, # small tilde - 153 => 8482, # trade mark sign - 154 => 353, # latin small letter s with caron - 155 => 8250, # single right-pointing angle quotation mark - 156 => 339, # latin small ligature oe - 158 => 382, # latin small letter z with caron - 159 => 376, # latin capital letter y with diaeresis - } - - # See http://www.w3.org/TR/REC-xml/#dt-chardata for details. - PREDEFINED = { - 38 => '&', # ampersand - 60 => '<', # left angle bracket - 62 => '>', # right angle bracket - } - - # See http://www.w3.org/TR/REC-xml/#charsets for details. - VALID = [ - 0x9, 0xA, 0xD, - (0x20..0xD7FF), - (0xE000..0xFFFD), - (0x10000..0x10FFFF) - ] - end - -end - - -###################################################################### -# Enhance the Fixnum class with a XML escaped character conversion. -# -class Fixnum - XChar = Builder::XChar if ! defined?(XChar) - - # XML escaped version of chr - def xchr - n = XChar::CP1252[self] || self - case n when *XChar::VALID - XChar::PREDEFINED[n] or (n<128 ? n.chr : "&##{n};") - else - '*' - end - end -end - - -###################################################################### -# Enhance the String class with a XML escaped character version of -# to_s. -# -class String - # XML escaped version of to_s - def to_xs - unpack('U*').map {|n| n.xchr}.join # ASCII, UTF-8 - rescue - unpack('C*').map {|n| n.xchr}.join # ISO-8859-1, WIN-1252 - end -end diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlbase.rb b/vendor/gems/gems/builder-2.1.2/lib/builder/xmlbase.rb deleted file mode 100644 index 8e13483b..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlbase.rb +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/bin/env ruby - -require 'builder/blankslate' - -module Builder - - # Generic error for builder - class IllegalBlockError < RuntimeError; end - - # XmlBase is a base class for building XML builders. See - # Builder::XmlMarkup and Builder::XmlEvents for examples. - class XmlBase < BlankSlate - - # Create an XML markup builder. - # - # out:: Object receiving the markup. +out+ must respond to - # <<. - # indent:: Number of spaces used for indentation (0 implies no - # indentation and no line breaks). - # initial:: Level of initial indentation. - # - def initialize(indent=0, initial=0) - @indent = indent - @level = initial - end - - # Create a tag named +sym+. Other than the first argument which - # is the tag name, the arguements are the same as the tags - # implemented via method_missing. - def tag!(sym, *args, &block) - method_missing(sym.to_sym, *args, &block) - end - - # Create XML markup based on the name of the method. This method - # is never invoked directly, but is called for each markup method - # in the markup block. - def method_missing(sym, *args, &block) - text = nil - attrs = nil - sym = "#{sym}:#{args.shift}" if args.first.kind_of?(Symbol) - args.each do |arg| - case arg - when Hash - attrs ||= {} - attrs.merge!(arg) - else - text ||= '' - text << arg.to_s - end - end - if block - unless text.nil? - raise ArgumentError, "XmlMarkup cannot mix a text argument with a block" - end - _indent - _start_tag(sym, attrs) - _newline - _nested_structures(block) - _indent - _end_tag(sym) - _newline - elsif text.nil? - _indent - _start_tag(sym, attrs, true) - _newline - else - _indent - _start_tag(sym, attrs) - text! text - _end_tag(sym) - _newline - end - @target - end - - # Append text to the output target. Escape any markup. May be - # used within the markup brakets as: - # - # builder.p { |b| b.br; b.text! "HI" } #=>


HI

- def text!(text) - _text(_escape(text)) - end - - # Append text to the output target without escaping any markup. - # May be used within the markup brakets as: - # - # builder.p { |x| x << "
HI" } #=>


HI

- # - # This is useful when using non-builder enabled software that - # generates strings. Just insert the string directly into the - # builder without changing the inserted markup. - # - # It is also useful for stacking builder objects. Builders only - # use << to append to the target, so by supporting this - # method/operation builders can use other builders as their - # targets. - def <<(text) - _text(text) - end - - # For some reason, nil? is sent to the XmlMarkup object. If nil? - # is not defined and method_missing is invoked, some strange kind - # of recursion happens. Since nil? won't ever be an XML tag, it - # is pretty safe to define it here. (Note: this is an example of - # cargo cult programming, - # cf. http://fishbowl.pastiche.org/2004/10/13/cargo_cult_programming). - def nil? - false - end - - private - - require 'builder/xchar' - def _escape(text) - text.to_xs - end - - def _escape_quote(text) - _escape(text).gsub(%r{"}, '"') # " WART - end - - def _newline - return if @indent == 0 - text! "\n" - end - - def _indent - return if @indent == 0 || @level == 0 - text!(" " * (@level * @indent)) - end - - def _nested_structures(block) - @level += 1 - block.call(self) - ensure - @level -= 1 - end - end -end diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlevents.rb b/vendor/gems/gems/builder-2.1.2/lib/builder/xmlevents.rb deleted file mode 100644 index 91fcd21e..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlevents.rb +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env ruby - -#-- -# Copyright 2004 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -require 'builder/xmlmarkup' - -module Builder - - # Create a series of SAX-like XML events (e.g. start_tag, end_tag) - # from the markup code. XmlEvent objects are used in a way similar - # to XmlMarkup objects, except that a series of events are generated - # and passed to a handler rather than generating character-based - # markup. - # - # Usage: - # xe = Builder::XmlEvents.new(hander) - # xe.title("HI") # Sends start_tag/end_tag/text messages to the handler. - # - # Indentation may also be selected by providing value for the - # indentation size and initial indentation level. - # - # xe = Builder::XmlEvents.new(handler, indent_size, initial_indent_level) - # - # == XML Event Handler - # - # The handler object must expect the following events. - # - # [start_tag(tag, attrs)] - # Announces that a new tag has been found. +tag+ is the name of - # the tag and +attrs+ is a hash of attributes for the tag. - # - # [end_tag(tag)] - # Announces that an end tag for +tag+ has been found. - # - # [text(text)] - # Announces that a string of characters (+text+) has been found. - # A series of characters may be broken up into more than one - # +text+ call, so the client cannot assume that a single - # callback contains all the text data. - # - class XmlEvents < XmlMarkup - def text!(text) - @target.text(text) - end - - def _start_tag(sym, attrs, end_too=false) - @target.start_tag(sym, attrs) - _end_tag(sym) if end_too - end - - def _end_tag(sym) - @target.end_tag(sym) - end - end - -end diff --git a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlmarkup.rb b/vendor/gems/gems/builder-2.1.2/lib/builder/xmlmarkup.rb deleted file mode 100644 index abc5666a..00000000 --- a/vendor/gems/gems/builder-2.1.2/lib/builder/xmlmarkup.rb +++ /dev/null @@ -1,328 +0,0 @@ -#!/usr/bin/env ruby -#-- -# Copyright 2004, 2005 by Jim Weirich (jim@weirichhouse.org). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -# Provide a flexible and easy to use Builder for creating XML markup. -# See XmlBuilder for usage details. - -require 'builder/xmlbase' - -module Builder - - # Create XML markup easily. All (well, almost all) methods sent to - # an XmlMarkup object will be translated to the equivalent XML - # markup. Any method with a block will be treated as an XML markup - # tag with nested markup in the block. - # - # Examples will demonstrate this easier than words. In the - # following, +xm+ is an +XmlMarkup+ object. - # - # xm.em("emphasized") # => emphasized - # xm.em { xmm.b("emp & bold") } # => emph & bold - # xm.a("A Link", "href"=>"http://onestepback.org") - # # => A Link - # xm.div { br } # =>

- # xm.target("name"=>"compile", "option"=>"fast") - # # => - # # NOTE: order of attributes is not specified. - # - # xm.instruct! # - # xm.html { # - # xm.head { # - # xm.title("History") # History - # } # - # xm.body { # - # xm.comment! "HI" # - # xm.h1("Header") #

Header

- # xm.p("paragraph") #

paragraph

- # } # - # } # - # - # == Notes: - # - # * The order that attributes are inserted in markup tags is - # undefined. - # - # * Sometimes you wish to insert text without enclosing tags. Use - # the text! method to accomplish this. - # - # Example: - # - # xm.div { #
- # xm.text! "line"; xm.br # line
- # xm.text! "another line"; xmbr # another line
- # } #
- # - # * The special XML characters <, >, and & are converted to <, - # > and & automatically. Use the << operation to - # insert text without modification. - # - # * Sometimes tags use special characters not allowed in ruby - # identifiers. Use the tag! method to handle these - # cases. - # - # Example: - # - # xml.tag!("SOAP:Envelope") { ... } - # - # will produce ... - # - # ... " - # - # tag! will also take text and attribute arguments (after - # the tag name) like normal markup methods. (But see the next - # bullet item for a better way to handle XML namespaces). - # - # * Direct support for XML namespaces is now available. If the - # first argument to a tag call is a symbol, it will be joined to - # the tag to produce a namespace:tag combination. It is easier to - # show this than describe it. - # - # xml.SOAP :Envelope do ... end - # - # Just put a space before the colon in a namespace to produce the - # right form for builder (e.g. "SOAP:Envelope" => - # "xml.SOAP :Envelope") - # - # * XmlMarkup builds the markup in any object (called a _target_) - # that accepts the << method. If no target is given, - # then XmlMarkup defaults to a string target. - # - # Examples: - # - # xm = Builder::XmlMarkup.new - # result = xm.title("yada") - # # result is a string containing the markup. - # - # buffer = "" - # xm = Builder::XmlMarkup.new(buffer) - # # The markup is appended to buffer (using <<) - # - # xm = Builder::XmlMarkup.new(STDOUT) - # # The markup is written to STDOUT (using <<) - # - # xm = Builder::XmlMarkup.new - # x2 = Builder::XmlMarkup.new(:target=>xm) - # # Markup written to +x2+ will be send to +xm+. - # - # * Indentation is enabled by providing the number of spaces to - # indent for each level as a second argument to XmlBuilder.new. - # Initial indentation may be specified using a third parameter. - # - # Example: - # - # xm = Builder.new(:indent=>2) - # # xm will produce nicely formatted and indented XML. - # - # xm = Builder.new(:indent=>2, :margin=>4) - # # xm will produce nicely formatted and indented XML with 2 - # # spaces per indent and an over all indentation level of 4. - # - # builder = Builder::XmlMarkup.new(:target=>$stdout, :indent=>2) - # builder.name { |b| b.first("Jim"); b.last("Weirich) } - # # prints: - # # - # # Jim - # # Weirich - # # - # - # * The instance_eval implementation which forces self to refer to - # the message receiver as self is now obsolete. We now use normal - # block calls to execute the markup block. This means that all - # markup methods must now be explicitly send to the xml builder. - # For instance, instead of - # - # xml.div { strong("text") } - # - # you need to write: - # - # xml.div { xml.strong("text") } - # - # Although more verbose, the subtle change in semantics within the - # block was found to be prone to error. To make this change a - # little less cumbersome, the markup block now gets the markup - # object sent as an argument, allowing you to use a shorter alias - # within the block. - # - # For example: - # - # xml_builder = Builder::XmlMarkup.new - # xml_builder.div { |xml| - # xml.stong("text") - # } - # - class XmlMarkup < XmlBase - - # Create an XML markup builder. Parameters are specified by an - # option hash. - # - # :target=>target_object:: - # Object receiving the markup. +out+ must respond to the - # << operator. The default is a plain string target. - # - # :indent=>indentation:: - # Number of spaces used for indentation. The default is no - # indentation and no line breaks. - # - # :margin=>initial_indentation_level:: - # Amount of initial indentation (specified in levels, not - # spaces). - # - # :escape_attrs=>OBSOLETE:: - # The :escape_attrs option is no longer supported by builder - # (and will be quietly ignored). String attribute values are - # now automatically escaped. If you need unescaped attribute - # values (perhaps you are using entities in the attribute - # values), then give the value as a Symbol. This allows much - # finer control over escaping attribute values. - # - def initialize(options={}) - indent = options[:indent] || 0 - margin = options[:margin] || 0 - super(indent, margin) - @target = options[:target] || "" - end - - # Return the target of the builder. - def target! - @target - end - - def comment!(comment_text) - _ensure_no_block block_given? - _special("", comment_text, nil) - end - - # Insert an XML declaration into the XML markup. - # - # For example: - # - # xml.declare! :ELEMENT, :blah, "yada" - # # => - def declare!(inst, *args, &block) - _indent - @target << "" - _newline - end - - # Insert a processing instruction into the XML markup. E.g. - # - # For example: - # - # xml.instruct! - # #=> - # xml.instruct! :aaa, :bbb=>"ccc" - # #=> - # - def instruct!(directive_tag=:xml, attrs={}) - _ensure_no_block block_given? - if directive_tag == :xml - a = { :version=>"1.0", :encoding=>"UTF-8" } - attrs = a.merge attrs - end - _special( - "", - nil, - attrs, - [:version, :encoding, :standalone]) - end - - # Insert a CDATA section into the XML markup. - # - # For example: - # - # xml.cdata!("text to be included in cdata") - # #=> - # - def cdata!(text) - _ensure_no_block block_given? - _special("", text, nil) - end - - private - - # NOTE: All private methods of a builder object are prefixed when - # a "_" character to avoid possible conflict with XML tag names. - - # Insert text directly in to the builder's target. - def _text(text) - @target << text - end - - # Insert special instruction. - def _special(open, close, data=nil, attrs=nil, order=[]) - _indent - @target << open - @target << data if data - _insert_attributes(attrs, order) if attrs - @target << close - _newline - end - - # Start an XML tag. If end_too is true, then the start - # tag is also the end tag (e.g.
- def _start_tag(sym, attrs, end_too=false) - @target << "<#{sym}" - _insert_attributes(attrs) - @target << "/" if end_too - @target << ">" - end - - # Insert an ending tag. - def _end_tag(sym) - @target << "" - end - - # Insert the attributes (given in the hash). - def _insert_attributes(attrs, order=[]) - return if attrs.nil? - order.each do |k| - v = attrs[k] - @target << %{ #{k}="#{_attr_value(v)}"} if v # " WART - end - attrs.each do |k, v| - @target << %{ #{k}="#{_attr_value(v)}"} unless order.member?(k) # " WART - end - end - - def _attr_value(value) - case value - when Symbol - value.to_s - else - _escape_quote(value.to_s) - end - end - - def _ensure_no_block(got_block) - if got_block - fail IllegalBlockError, - "Blocks are not allowed on XML instructions" - end - end - - end - -end diff --git a/vendor/gems/gems/builder-2.1.2/scripts/publish.rb b/vendor/gems/gems/builder-2.1.2/scripts/publish.rb deleted file mode 100644 index 76657c67..00000000 --- a/vendor/gems/gems/builder-2.1.2/scripts/publish.rb +++ /dev/null @@ -1,17 +0,0 @@ -# Optional publish task for Rake - -require 'rake/contrib/sshpublisher' -require 'rake/contrib/rubyforgepublisher' - -publisher = Rake::CompositePublisher.new -publisher.add Rake::RubyForgePublisher.new('builder', 'jimweirich') -publisher.add Rake::SshFilePublisher.new( - 'umlcoop', - 'htdocs/software/builder', - '.', - 'builder.blurb') - -desc "Publish the Documentation to RubyForge." -task :publish => [:rdoc] do - publisher.upload -end diff --git a/vendor/gems/gems/builder-2.1.2/test/performance.rb b/vendor/gems/gems/builder-2.1.2/test/performance.rb deleted file mode 100644 index 2d61bd53..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/performance.rb +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env ruby - -require 'builder/xmlmarkup' -require 'benchmark' - -text = "This is a test of the new xml markup. Iñtërnâtiônàlizætiøn\n" * 10000 - -include Benchmark # we need the CAPTION and FMTSTR constants -include Builder -n = 50 -Benchmark.benchmark do |bm| - tf = bm.report("base") { - n.times do - x = XmlMarkup.new - x.text(text) - x.target! - end - } - def XmlMarkup._escape(text) - text.to_xs - end - tf = bm.report("to_xs") { - n.times do - x = XmlMarkup.new - x.text(text) - x.target! - end - } -end - diff --git a/vendor/gems/gems/builder-2.1.2/test/preload.rb b/vendor/gems/gems/builder-2.1.2/test/preload.rb deleted file mode 100644 index daab3272..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/preload.rb +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby - -# We are defining method_added in Kernel and Object so that when -# BlankSlate overrides them later, we can verify that it correctly -# calls the older hooks. - -module Kernel - class << self - attr_reader :k_added_names - alias_method :preload_method_added, :method_added - def method_added(name) - preload_method_added(name) - @k_added_names ||= [] - @k_added_names << name - end - end -end - -class Object - class << self - attr_reader :o_added_names - alias_method :preload_method_added, :method_added - def method_added(name) - preload_method_added(name) - @o_added_names ||= [] - @o_added_names << name - end - end -end diff --git a/vendor/gems/gems/builder-2.1.2/test/test_xchar.rb b/vendor/gems/gems/builder-2.1.2/test/test_xchar.rb deleted file mode 100644 index fb8c53a1..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/test_xchar.rb +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env ruby - -require 'test/unit' -require 'builder/xchar' - -class TestXmlEscaping < Test::Unit::TestCase - def test_ascii - assert_equal 'abc', 'abc'.to_xs - end - - def test_predefined - assert_equal '&', '&'.to_xs # ampersand - assert_equal '<', '<'.to_xs # left angle bracket - assert_equal '>', '>'.to_xs # right angle bracket - end - - def test_invalid - assert_equal '*', "\x00".to_xs # null - assert_equal '*', "\x0C".to_xs # form feed - assert_equal '*', "\xEF\xBF\xBF".to_xs # U+FFFF - end - - def test_iso_8859_1 - assert_equal 'ç', "\xE7".to_xs # small c cedilla - assert_equal '©', "\xA9".to_xs # copyright symbol - end - - def test_win_1252 - assert_equal '’', "\x92".to_xs # smart quote - assert_equal '€', "\x80".to_xs # euro - end - - def test_utf8 - assert_equal '’', "\xE2\x80\x99".to_xs # right single quote - assert_equal '©', "\xC2\xA9".to_xs # copy - end -end diff --git a/vendor/gems/gems/builder-2.1.2/test/testblankslate.rb b/vendor/gems/gems/builder-2.1.2/test/testblankslate.rb deleted file mode 100644 index ae5794ed..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/testblankslate.rb +++ /dev/null @@ -1,183 +0,0 @@ -#!/usr/bin/env ruby - -require 'test/unit' -require 'test/preload' -require 'builder/blankslate' -require 'stringio' - -# Methods to be introduced into the Object class late. -module LateObject - def late_object - 33 - end - def LateObject.included(mod) - # Modules defining an included method should not prevent blank - # slate erasure! - end -end - -# Methods to be introduced into the Kernel module late. -module LateKernel - def late_kernel - 44 - end - def LateKernel.included(mod) - # Modules defining an included method should not prevent blank - # slate erasure! - end -end - -# Introduce some late methods (both module and direct) into the Kernel -# module. -module Kernel - include LateKernel - - def late_addition - 1234 - end - - def double_late_addition - 11 - end - - def double_late_addition - 22 - end -end - - -# Introduce some late methods (both module and direct) into the Object -# class. -class Object - include LateObject - def another_late_addition - 4321 - end -end - -# Introduce some late methods by inclusion. -module GlobalModule - def global_inclusion - 42 - end -end -include GlobalModule - -def direct_global - 43 -end - -###################################################################### -# Test case for blank slate. -# -class TestBlankSlate < Test::Unit::TestCase - def setup - @bs = BlankSlate.new - end - - def test_undefined_methods_remain_undefined - assert_raise(NoMethodError) { @bs.no_such_method } - assert_raise(NoMethodError) { @bs.nil? } - end - - - # NOTE: NameError is acceptable because the lack of a '.' means that - # Ruby can't tell if it is a method or a local variable. - def test_undefined_methods_remain_undefined_during_instance_eval - assert_raise(NoMethodError, NameError) do - @bs.instance_eval do nil? end - end - assert_raise(NoMethodError, NameError) do - @bs.instance_eval do no_such_method end - end - end - - def test_private_methods_are_undefined - assert_raise(NoMethodError) do - @bs.puts "HI" - end - end - - def test_targetted_private_methods_are_undefined_during_instance_eval - assert_raise(NoMethodError, NameError) do - @bs.instance_eval do self.puts "HI" end - end - end - - def test_untargetted_private_methods_are_defined_during_instance_eval - oldstdout = $stdout - $stdout = StringIO.new - @bs.instance_eval do - puts "HI" - end - ensure - $stdout = oldstdout - end - - def test_methods_added_late_to_kernel_remain_undefined - assert_equal 1234, nil.late_addition - assert_raise(NoMethodError) { @bs.late_addition } - end - - def test_methods_added_late_to_object_remain_undefined - assert_equal 4321, nil.another_late_addition - assert_raise(NoMethodError) { @bs.another_late_addition } - end - - def test_methods_added_late_to_global_remain_undefined - assert_equal 42, global_inclusion - assert_raise(NoMethodError) { @bs.global_inclusion } - end - - def test_preload_method_added - assert Kernel.k_added_names.include?(:late_addition) - assert Object.o_added_names.include?(:another_late_addition) - end - - def test_method_defined_late_multiple_times_remain_undefined - assert_equal 22, nil.double_late_addition - assert_raise(NoMethodError) { @bs.double_late_addition } - end - - def test_late_included_module_in_object_is_ok - assert_equal 33, 1.late_object - assert_raise(NoMethodError) { @bs.late_object } - end - - def test_late_included_module_in_kernel_is_ok - assert_raise(NoMethodError) { @bs.late_kernel } - end - - def test_revealing_previously_hidden_methods_are_callable - with_to_s = Class.new(BlankSlate) do - reveal :to_s - end - assert_match /^#<.*>$/, with_to_s.new.to_s - end - - def test_revealing_a_hidden_method_twice_is_ok - with_to_s = Class.new(BlankSlate) do - reveal :to_s - reveal :to_s - end - assert_match /^#<.*>$/, with_to_s.new.to_s - end - - def test_revealing_unknown_hidden_method_is_an_error - assert_raises(RuntimeError) do - Class.new(BlankSlate) do - reveal :xyz - end - end - end - - def test_global_includes_still_work - assert_nothing_raised do - assert_equal 42, global_inclusion - assert_equal 42, Object.new.global_inclusion - assert_equal 42, "magic number".global_inclusion - assert_equal 43, direct_global - end - end -end - diff --git a/vendor/gems/gems/builder-2.1.2/test/testeventbuilder.rb b/vendor/gems/gems/builder-2.1.2/test/testeventbuilder.rb deleted file mode 100644 index 2d603717..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/testeventbuilder.rb +++ /dev/null @@ -1,133 +0,0 @@ -class TestEvents < Test::Unit::TestCase - - class Target - attr_reader :events - - def initialize - @events = [] - end - - def start_tag(tag, attrs) - @events << [:start_tag, tag, attrs] - end - - def end_tag(tag) - @events << [:end_tag, tag] - end - - def text(string) - @events << [:text, string] - end - - end - - - def setup - @target = Target.new - @xml = Builder::XmlEvents.new(:target=>@target) - end - - def test_simple - @xml.one - expect [:start_tag, :one, nil] - expect [:end_tag, :one] - expect_done - end - - def test_nested - @xml.one { @xml.two } - expect [:start_tag, :one, nil] - expect [:start_tag, :two, nil] - expect [:end_tag, :two] - expect [:end_tag, :one] - expect_done - end - - def test_text - @xml.one("a") - expect [:start_tag, :one, nil] - expect [:text, "a"] - expect [:end_tag, :one] - expect_done - end - - def test_special_text - @xml.one("H&R") - expect [:start_tag, :one, nil] - expect [:text, "H&R"] - expect [:end_tag, :one] - expect_done - end - - def test_text_with_entity - @xml.one("H&R") - expect [:start_tag, :one, nil] - expect [:text, "H&R"] - expect [:end_tag, :one] - expect_done - end - - def test_attributes - @xml.a(:b=>"c", :x=>"y") - expect [:start_tag, :a, {:x => "y", :b => "c"}] - expect [:end_tag, :a] - expect_done - end - - def test_moderately_complex - @xml.tag! "address-book" do |x| - x.entry :id=>"1" do - x.name { - x.first "Bill" - x.last "Smith" - } - x.address "Cincinnati" - end - x.entry :id=>"2" do - x.name { - x.first "John" - x.last "Doe" - } - x.address "Columbus" - end - end - expect [:start_tag, "address-book".intern, nil] - expect [:start_tag, :entry, {:id => "1"}] - expect [:start_tag, :name, nil] - expect [:start_tag, :first, nil] - expect [:text, "Bill"] - expect [:end_tag, :first] - expect [:start_tag, :last, nil] - expect [:text, "Smith"] - expect [:end_tag, :last] - expect [:end_tag, :name] - expect [:start_tag, :address, nil] - expect [:text, "Cincinnati"] - expect [:end_tag, :address] - expect [:end_tag, :entry] - expect [:start_tag, :entry, {:id => "2"}] - expect [:start_tag, :name, nil] - expect [:start_tag, :first, nil] - expect [:text, "John"] - expect [:end_tag, :first] - expect [:start_tag, :last, nil] - expect [:text, "Doe"] - expect [:end_tag, :last] - expect [:end_tag, :name] - expect [:start_tag, :address, nil] - expect [:text, "Columbus"] - expect [:end_tag, :address] - expect [:end_tag, :entry] - expect [:end_tag, "address-book".intern] - expect_done - end - - def expect(value) - assert_equal value, @target.events.shift - end - - def expect_done - assert_nil @target.events.shift - end - -end diff --git a/vendor/gems/gems/builder-2.1.2/test/testmarkupbuilder.rb b/vendor/gems/gems/builder-2.1.2/test/testmarkupbuilder.rb deleted file mode 100644 index ad173143..00000000 --- a/vendor/gems/gems/builder-2.1.2/test/testmarkupbuilder.rb +++ /dev/null @@ -1,449 +0,0 @@ -#!/usr/bin/env ruby - -#-- -# Portions copyright 2004 by Jim Weirich (jim@weirichhouse.org). -# Portions copyright 2005 by Sam Ruby (rubys@intertwingly.net). -# All rights reserved. - -# Permission is granted for use, copying, modification, distribution, -# and distribution of modified versions of this work as long as the -# above copyright notice is included. -#++ - -require 'test/unit' -require 'test/preload' -require 'builder' -require 'builder/xmlmarkup' - -class TestMarkup < Test::Unit::TestCase - def setup - @xml = Builder::XmlMarkup.new - end - - def test_create - assert_not_nil @xml - end - - def test_simple - @xml.simple - assert_equal "", @xml.target! - end - - def test_value - @xml.value("hi") - assert_equal "hi", @xml.target! - end - - def test_nested - @xml.outer { |x| x.inner("x") } - assert_equal "x", @xml.target! - end - - def test_attributes - @xml.ref(:id => 12) - assert_equal %{}, @xml.target! - end - - def test_string_attributes_are_quoted_by_default - @xml.ref(:id => "H&R") - assert_equal %{}, @xml.target! - end - - def test_symbol_attributes_are_unquoted_by_default - @xml.ref(:id => :"H&R") - assert_equal %{}, @xml.target! - end - - def test_attributes_quoted_can_be_turned_on - @xml = Builder::XmlMarkup.new - @xml.ref(:id => "") - assert_equal %{}, @xml.target! - end - - def test_mixed_attribute_quoting_with_nested_builders - x = Builder::XmlMarkup.new(:target=>@xml) - @xml.ref(:id=>:"H&R") { - x.element(:tag=>"Long&Short") - } - assert_equal "", - @xml.target! - end - - def test_multiple_attributes - @xml.ref(:id => 12, :name => "bill") - assert_match %r{^$}, @xml.target! - end - - def test_attributes_with_text - @xml.a("link", :href=>"http://onestepback.org") - assert_equal %{link}, @xml.target! - end - - def test_complex - @xml.body(:bg=>"#ffffff") { |x| - x.title("T", :style=>"red") - } - assert_equal %{T}, @xml.target! - end - - def test_funky_symbol - @xml.tag!("non-ruby-token", :id=>1) { |x| x.ok } - assert_equal %{}, @xml.target! - end - - def test_tag_can_handle_private_method - @xml.tag!("loop", :id=>1) { |x| x.ok } - assert_equal %{}, @xml.target! - end - - def test_no_explicit_marker - @xml.p { |x| x.b("HI") } - assert_equal "

HI

", @xml.target! - end - - def test_reference_local_vars - n = 3 - @xml.ol { |x| n.times { x.li(n) } } - assert_equal "
  1. 3
  2. 3
  3. 3
", @xml.target! - end - - def test_reference_methods - @xml.title { |x| x.a { x.b(name) } } - assert_equal "<a><b>bob</b></a>", @xml.target! - end - - def test_append_text - @xml.p { |x| x.br; x.text! "HI" } - assert_equal "


HI

", @xml.target! - end - - def test_ambiguous_markup - ex = assert_raises(ArgumentError) { - @xml.h1("data1") { b } - } - assert_match /\btext\b/, ex.message - assert_match /\bblock\b/, ex.message - end - - def test_capitalized_method - @xml.P { |x| x.B("hi"); x.BR(); x.EM { x.text! "world" } } - assert_equal "

hi
world

", @xml.target! - end - - def test_escaping - @xml.div { |x| x.text! ""; x.em("H&R Block") } - assert_equal %{
<hi>H&R Block
}, @xml.target! - end - - def test_non_escaping - @xml.div("ns:xml"=>:"&xml;") { |x| x << ""; x.em("H&R Block") } - assert_equal %{
H&R Block
}, @xml.target! - end - - def test_return_value - str = @xml.x("men") - assert_equal @xml.target!, str - end - - def test_stacked_builders - b = Builder::XmlMarkup.new( :target => @xml ) - b.div { @xml.span { @xml.a("text", :href=>"ref") } } - assert_equal "", @xml.target! - end - - def name - "bob" - end -end - -class TestAttributeEscaping < Test::Unit::TestCase - - def setup - @xml = Builder::XmlMarkup.new - end - - def test_element_gt - @xml.title('1<2') - assert_equal '1<2', @xml.target! - end - - def test_element_amp - @xml.title('AT&T') - assert_equal 'AT&T', @xml.target! - end - - def test_element_amp2 - @xml.title('&') - assert_equal '&amp;', @xml.target! - end - - def test_attr_less - @xml.a(:title => '2>1') - assert_equal '', @xml.target! - end - - def test_attr_amp - @xml.a(:title => 'AT&T') - assert_equal '', @xml.target! - end - - def test_attr_quot - @xml.a(:title => '"x"') - assert_equal '', @xml.target! - end - -end - -class TestNameSpaces < Test::Unit::TestCase - def setup - @xml = Builder::XmlMarkup.new(:indent=>2) - end - - def test_simple_name_spaces - @xml.rdf :RDF - assert_equal "\n", @xml.target! - end - - def test_long - xml = Builder::XmlMarkup.new(:indent=>2) - xml.instruct! - xml.rdf :RDF, - "xmlns:rdf" => :"&rdf;", - "xmlns:rdfs" => :"&rdfs;", - "xmlns:xsd" => :"&xsd;", - "xmlns:owl" => :"&owl;" do - xml.owl :Class, :'rdf:ID'=>'Bird' do - xml.rdfs :label, 'bird' - xml.rdfs :subClassOf do - xml.owl :Restriction do - xml.owl :onProperty, 'rdf:resource'=>'#wingspan' - xml.owl :maxCardinality,1,'rdf:datatype'=>'&xsd;nonNegativeInteger' - end - end - end - end - assert_match /^<\?xml/, xml.target! - assert_match /\n/m, xml.target! - end - -end - -class TestDeclarations < Test::Unit::TestCase - def setup - @xml = Builder::XmlMarkup.new(:indent=>2) - end - - def test_declare - @xml.declare! :element - assert_equal "\n", @xml.target! - end - - def test_bare_arg - @xml.declare! :element, :arg - assert_equal"\n", @xml.target! - end - - def test_string_arg - @xml.declare! :element, "string" - assert_equal"\n", @xml.target! - end - - def test_mixed_args - @xml.declare! :element, :x, "y", :z, "-//OASIS//DTD DocBook XML//EN" - assert_equal "\n", @xml.target! - end - - def test_nested_declarations - @xml = Builder::XmlMarkup.new - @xml.declare! :DOCTYPE, :chapter do |x| - x.declare! :ELEMENT, :chapter, "(title,para+)".intern - end - assert_equal "]>", @xml.target! - end - - def test_nested_indented_declarations - @xml.declare! :DOCTYPE, :chapter do |x| - x.declare! :ELEMENT, :chapter, "(title,para+)".intern - end - assert_equal "\n]>\n", @xml.target! - end - - def test_complex_declaration - @xml.declare! :DOCTYPE, :chapter do |x| - x.declare! :ELEMENT, :chapter, "(title,para+)".intern - x.declare! :ELEMENT, :title, "(#PCDATA)".intern - x.declare! :ELEMENT, :para, "(#PCDATA)".intern - end - expected = %{ - - -]> -} - assert_equal expected, @xml.target! - end -end - - -class TestSpecialMarkup < Test::Unit::TestCase - def setup - @xml = Builder::XmlMarkup.new(:indent=>2) - end - - def test_comment - @xml.comment!("COMMENT") - assert_equal "\n", @xml.target! - end - - def test_indented_comment - @xml.p { @xml.comment! "OK" } - assert_equal "

\n \n

\n", @xml.target! - end - - def test_instruct - @xml.instruct! :abc, :version=>"0.9" - assert_equal "\n", @xml.target! - end - - def test_indented_instruct - @xml.p { @xml.instruct! :xml } - assert_match %r{

\n <\?xml version="1.0" encoding="UTF-8"\?>\n

\n}, - @xml.target! - end - - def test_instruct_without_attributes - @xml.instruct! :zz - assert_equal "\n", @xml.target! - end - - def test_xml_instruct - @xml.instruct! - assert_match /^<\?xml version="1.0" encoding="UTF-8"\?>$/, @xml.target! - end - - def test_xml_instruct_with_overrides - @xml.instruct! :xml, :encoding=>"UCS-2" - assert_match /^<\?xml version="1.0" encoding="UCS-2"\?>$/, @xml.target! - end - - def test_xml_instruct_with_standalong - @xml.instruct! :xml, :encoding=>"UCS-2", :standalone=>"yes" - assert_match /^<\?xml version="1.0" encoding="UCS-2" standalone="yes"\?>$/, @xml.target! - end - - def test_no_blocks - assert_raises(Builder::IllegalBlockError) do - @xml.instruct! { |x| x.hi } - end - assert_raises(Builder::IllegalBlockError) do - @xml.comment!(:element) { |x| x.hi } - end - end - - def test_cdata - @xml.cdata!("TEST") - assert_equal "\n", @xml.target! - end - - def test_cdata_with_ampersand - @xml.cdata!("TEST&CHECK") - assert_equal "\n", @xml.target! - end -end - -class TestIndentedXmlMarkup < Test::Unit::TestCase - def setup - @xml = Builder::XmlMarkup.new(:indent=>2) - end - - def test_one_level - @xml.ol { |x| x.li "text" } - assert_equal "
    \n
  1. text
  2. \n
\n", @xml.target! - end - - def test_two_levels - @xml.p { |x| - x.ol { x.li "text" } - x.br - } - assert_equal "

\n

    \n
  1. text
  2. \n
\n
\n

\n", @xml.target! - end - - def test_initial_level - @xml = Builder::XmlMarkup.new(:indent=>2, :margin=>4) - @xml.name { |x| x.first("Jim") } - assert_equal " \n Jim\n \n", @xml.target! - end - - class TestXmlEvents < Test::Unit::TestCase - def setup - @handler = EventHandler.new - @xe = Builder::XmlEvents.new(:target=>@handler) - end - - def test_simple - @xe.p - assert_equal [:start, :p, nil], @handler.events.shift - assert_equal [:end, :p], @handler.events.shift - end - - def test_text - @xe.p("HI") - assert_equal [:start, :p, nil], @handler.events.shift - assert_equal [:text, "HI"], @handler.events.shift - assert_equal [:end, :p], @handler.events.shift - end - - def test_attributes - @xe.p("id"=>"2") - ev = @handler.events.shift - assert_equal [:start, :p], ev[0,2] - assert_equal "2", ev[2]['id'] - assert_equal [:end, :p], @handler.events.shift - end - - def test_indented - @xml = Builder::XmlEvents.new(:indent=>2, :target=>@handler) - @xml.p { |x| x.b("HI") } - assert_equal [:start, :p, nil], @handler.events.shift - assert_equal "\n ", pop_text - assert_equal [:start, :b, nil], @handler.events.shift - assert_equal "HI", pop_text - assert_equal [:end, :b], @handler.events.shift - assert_equal "\n", pop_text - assert_equal [:end, :p], @handler.events.shift - end - - def pop_text - result = '' - while ! @handler.events.empty? && @handler.events[0][0] == :text - result << @handler.events[0][1] - @handler.events.shift - end - result - end - - class EventHandler - attr_reader :events - def initialize - @events = [] - end - - def start_tag(sym, attrs) - @events << [:start, sym, attrs] - end - - def end_tag(sym) - @events << [:end, sym] - end - - def text(txt) - @events << [:text, txt] - end - end - end - -end - diff --git a/vendor/gems/gems/cucumber-0.4.4/.gitattributes b/vendor/gems/gems/cucumber-0.4.4/.gitattributes deleted file mode 100644 index 3ce46dd7..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -spec/cucumber/treetop_parser/test_dos.feature -crlf \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/.gitignore b/vendor/gems/gems/cucumber-0.4.4/.gitignore deleted file mode 100644 index f5a4155d..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -nbproject -coverage -pkg -doc -.yardoc -*.log -*.pid -.eprj -.tmtags -*~ -.DS_Store -*.swp -target -*.tmproj -examples/self_test/tmp -.#* -.idea \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/History.txt b/vendor/gems/gems/cucumber-0.4.4/History.txt deleted file mode 100644 index d31e9064..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/History.txt +++ /dev/null @@ -1,1269 +0,0 @@ -== 0.4.4 2009-11-13 - -What a bad day to make a release, but here goes. - -=== New features -* Cucumber should use ActiveSupport::Callbacks for fixtures (#516 Adam Salter) -* Make 'I' optional in all webrat steps. (Gavin Hughes) -* Make generated cucumber.rake work with a vendored gem (Alex Rothenberg) -* Native support for ANSIColor on IronRuby via the iron-term-ansicolor gem (Will Green) -* Call a bunch of steps from step definitions - also with tables or pystrings. Copy-paste friendly (Bodaniel Jeanes, Jack Chen, Aslak Hellesøy) TODO - WIKI DOCUMENTATION BEFORE RELEASE - -=== Bugfixes -* Pretty printer fails when expanding scenario outlines with -x when the background includes a table (#515 Mike Sassak) -* Ensure tags used with Before/After hooks always get parsed (#520 Joseph Wilk) -* Define IRONRUBY correctly on Ruby 1.9 (Joe Van Dyk) -* RbStepDefinition#invoke calls #backtrace_line on self rather than @proc (#503 Mike Sassak) -* Avoid duplicate cucumber entries in database.yml (Daniel Hofstetter) -* Added respond_to? when checking config.cache_classes for older Rails versions (Jeremy Durham) - -=== Changed Features -* The code for Czech has changed from cz to cs. (deepj) -* $cucumber_interrupted is now Cucumber.wants_to_quit - avoid global variable, which gives warnings. (Aslak Hellesøy) -* Examples keyword without a colon is deprecated loudly. Gherkin will not recognize it at all. (Gherkin #30 Mike Sassak) - -== 0.4.3 2009-10-28 - -The exciting thing about this release is that the wire protocol is starting to take shape. This means you can -now use Cucumber with .NET - writing step definitions in C#. And this is without having to use IronRuby at all! -See Cuke4Nuke (http://wiki.github.com/richardlawrence/Cuke4Nuke) for more information. - -As usual there are several small features and bug fixes. - -=== New Features -* Add support for ORing tags which are passed in with seperate --tag arguments. Make comma seperated tags use AND (#368 Joseph Wilk) -* New Wire Protocol - allowing out of process execution of Cucumber scenarios. (#428 Matt Wynne) -* Added an example illustrating how to get screenshots in HTML reports (examples/watir) (Aslak Hellesøy) -* Added new #embed(file, mime_type) method to visitors and Ruby Worlds to make it easier to embed screenshots (Aslak Hellesøy) -* The #announce method available from Ruby Step Definitions will print *after* the step is executed. (#487 Zoltan Penzeli) -* Add support for rolling back transaction for all open database connections. (John Ferlito) -* Show scenario and step summary in HTML formatter (#285 Joseph Wilk) -* Ast::Table can now be constructed with an Array of Hash. (Aslak Hellesøy) - -=== Changed features -* The #announce method will no longer escape HTML if the html formatter is used. Escaping must be done manually. (Aslak Hellesøy) - -=== Bugfixes -* Fixed incorrect rendering of step arguments with UTF8 characters (Aslak Hellesøy) -* "--format rerun", with a Scenario Outline, kills cucumber (#492 Aslak Hellesøy) -* Usage formatter is not reporting time correctly. (Elliot Crosby-McCullough) -* JUnit formatter raises a more helpful error when run on a feature with no name. (#493 Matt Wynne) -* Better Danish translation (Thorbjørn Ravn Andersen) - - -== 0.4.2 2009-10-14 - -Bugfix release. The 0.4.1 release was hosed when switching from Hoe to Jeweler. - -== 0.4.1 2009-10-14 - -This is mostly a bugfix release. Some of Cucumber's own features have been fixed so they pass on more platforms, -making it easier for people to contribute. The README.txt also describes how to get up and running with the -development environment. - -=== Bugfixes -* Cucumber's features verified passing on MRI 1.8.6 (OSX), 1.8.7 (OSX), 1.9.1 (OSX/Win) and JRuby 1.4.0RC1 (OSX). (Aslak Hellesøy) -* Ensure no errors are raised when limiting with tags which are not in the feature set (#464 Joseph Wilk) -* Missing Romanian keywords added for Examples, Scenario Outline and Background (to my best google translate knowledge) (Aslak Hellesøy) -* Make rerun and --drb work together again after formatter API changes (#485 Erik Hansson, John Ferlito) - -=== New Features -* The Rails cucumber generator will only default to RSpec if installed. And print better help. (Aslak Hellesøy) -* Added 'but' variants to Japanese. (Kakutani Shintaro) -* README.txt explains people how to run all tests. Install gems with geminstaller. (Aslak Hellesøy) -* Added support for Serbian language, both Cyrillic and Latin with usage examples. (Dejan Dimic) -* Add new 'debug' formatter for debugging and visualising the calls to listeners. (Matt Wynne) - -=== Changed features -* Use http://github.com/aslakhellesoy/wac instead of http://github.com/aslakhellesoy/ansicolor on Windows/JRuby (#456 Aslak Hellesøy) - -=== Internal changes -* Ditched Hoe for Jeweler (Aslak Hellesøy) -* Added StepMother#invoke(step_name, multiline_argument=nil) - needed by cuke4duke ticket #26 (Aslak Hellesøy) -* StepDefinitionMethods is gone. - -== 0.4.0 2009-10-09 - -The back to stable release. When we went from 0.3.11 to 0.3.90 we thought we were close to a 0.4.0 release. Then the community -went nuts and a lot of great contributions came in. Some of those broke backwards compatibility, and we decided it would be -better to do this while still on 0.3.x. - -Rails users: you *must* run script/generate cucumber after installing this version. - -If something breaks for you, please please please read this file carefully. It's most likely something referenced here, and -that will give you more information so you can solve any problems. If not, just get in touch on IRC or the Google Group. - -=== New Features -* Total feature parsing time is shown when run with --verbose. Useful for benchmarking with future Ragel parser (Aslak Hellesøy) -* Tables yielded to step definitions are no longer frozen, so you can edit their data without #dup'ing (Aslak Hellesøy) -* Transform can now transform tables, using /table:col1,col2,col3/ (#478 Corey Haines) -* cucumber.yml can also end in .yaml and be located in .config/ or config/ dirs (#447 trans) -* Turkish support. (Hakan Åženol Ensari) -* Upgrade Rails generator to set a dependency to Spork 0.7.3. (Aslak Hellesøy) -* Installation via rubygems will print a message telling people to read this file. (Aslak Hellesøy) -* Files generated by the Rails cucumber generator have information about the risks of editing. (Aslak Hellesøy) -* Rotten Cucumber alert on Rails if you upgrade your gem without regenerating with script/generate cucumber. (Aslak Hellesøy) -* Stop the confusion between "homepage" and "home page" by allowing both (Ryan Bigg & Bodaniel Jeanes) -* Make script/cucumber file generated by the Rails cucumber generator look for cucumber in vendored gems as well. (Tom ten Thij) - -=== Changed Features -* Step tables now default empty table cells to empty strings and not nil (#470 Joseph Wilk) - -=== Removed Features -* The feature_list, feature_pattern, step_list and step_pattern properties are removed from the Rake task. Use profiles instead. (Aslak Hellesøy) -* The FeatureTask is removed. Use profiles instead. - -=== Bugfixes -* instance_exec get declared private (#477 Tim Galeckas) -* Transforms can return nil. (Thomas Marek) -* Generated rails rake tasks doesn't use the vendored version cucumber binary (#468 Josh Nichols) -* Incorrect diagnostics in case when Before raises in presence of Background (#465 Fedor Kocherga) -* Error on pystring in scenario outline with pretty formatter (#475 Aslak Hellesøy) -* Adding After('@allow-rescue') to set allow_rescue back to its former value. (Alf Mikula) -* Feature files are now sorted before they are executed, because different operating systems may list files differently. (Aslak Hellesøy) -* Fixed image loading for Windows in PDF formatter. Allow use of both png and jpg. (#461 Declan Whelan) -* Before('~@no-txn') is run on all scenarios without @no-txn causing Cucumber::Rails::World.use_transactional_fixtures to always be true. (#457 Aslak Hellesøy) -* JUnit formatter not handling scenario outline tables (#472 Matt Wynne) -* Language help broken (#467 Matt Wynne) -* Language help formatter aligns output better on Ruby 1.8.6 (Aslak Hellesøy) -* Better backtraces for Ruby 1.8.7. (Jakob Skov-Pedersen) -* String step definitions ( Given 'I have $number cucumbers' ) are escaped before being turned into regular expressions. (David Waite) - -== 0.3.104 2009-09-27 - -This release has some minor changes to the command line and formatters. The biggest change is internally, paving -the way for more programming language support in Cuke4Duke, which now supports step definitions written in Java, Scala, -Groovy, Clojure and Javascript! - -=== New Features -* "usage" formatter should display progress (#437 Aslak Hellesøy) -* Added example for Ramaze. (Yutaka HARA) - -=== Bugfixes -* Fixed regression in profile formatter from 0.3.102. (Aslak Hellesøy) -* Raise a proper error message if someone forgets @ for tags, example: --tags ~foo or --tags bar. (Aslak Hellesøy) -* lib/cucumber/formatter/html.rb requires xml (#458 Brent Snook) -* lib/cucumber/formatter/html.rb requires ruby-debug (#455 Assaf Arkin) -* Allow for STDOUT formatters to be defined in profiles. Addresses an Autotest plugin issue. (#375 Gabriel Medina) - -=== Removed features -* The --dry-run option no longer implies --no-source and --no-snippets. It only implies --no-snippets. (Aslak Hellesøy) - -=== Changed features -* The profile and usage formatters have been combined to the usage formatter. Use it eith or without --dry-run. See --help for more. (Aslak Hellesøy) -* The steps formatter has been renamed to stepdefs formatter. (Aslak Hellesøy) -* The internal programming language API has changed, giving more power to the implementation. See #428. (Aslak Hellesøy) - -== 0.3.103 2009-09-24 - -This release gives you back some of the control over the Rails environment that was accidentally taken away from you in the -previous release. - -Using this release on a Rails project requires a rerun of script/generate cucumber. - -=== New Features -* Added a new @no-txn tag to selectively turn off transactions for a particlular scenario. -* Added back a way to globally turn off transactions. -* Renamed @allow_rescue tag to @allow-rescue. - -=== Bugfixes -* Gracefully handle cases when optional regexp groups are not matched. Ex: /should( not)? be flashed '([^']*?)'$/ (Aslak Hellesøy) - -=== Changed Features -* The Formatter API has completely changed. Formatters are no longer a double-dispacth visitor - just a single-dispatch listener (#438 Matt Wynne) - -== 0.3.102 2009-09-22 - -This release has some changes in the Rails support, so make sure you run "script/generate cucumber" after you upgrade. -Other noteworthy new features are improved Hook, tags and Transform support, and as always - several smaller bug fixes. - -=== New Features -* Added new internal API for Regexp and groups, allowing other programming languages to leverage native regexps. (Aslak Hellesøy) -* New @allow_rescue tag for Rails scenarios. Causes exceptions raised in actions to be caught by rails and not bubble up to Cucumber (Aslak Hellesøy) -* Negative tags can now be used in hooks, just like the command line's --tags option: Before('~@yarr') - will run for all scenarios that *don't* have the @yarr tag. (Aslak Hellesøy) -* Transform has current "World" scope (Larry Diehl) -* Other Transforms can be reused by calling Transform with a string inside of another Transform definition (Larry Diehl) -* Execute "After" hooks in reverse order of declaration for better behavior with dependent blocks and to mimic the behavior of at_exit (David Waite) - -=== Bugfixes -* features/support/env.rb runs commands twice (bugfix cuts total time by almost 50% w00t) (#452 Jim Meyer) -* Problems adding custom formatters to features/support. (features/support is added to $LOAD_PATH) (#449 Aslak Hellesøy) -* Some options set in cucumber.yml profiles are ignored (#446 Leonard CHIN) -* Missing step_definition snippets not properly displayed (#433 Aslak Hellesøy) -* rspec-rails, :lib => false (#447 David Chelimsky) -* Cucumber with Spork breaks on OS X Snow Leopard (#431 David Chelimsky) - -=== Changed Features -* Tag names passed on the command line *always* have to use the @ sign. --tags foo or --tags ~bar won't work. Use --tags @foo or --tags ~@bar (Aslak Hellesøy) - -=== Removed features -* The Cucumber::Rails.bypass_rescue no longer exists. Errors will always bubble up, unless you use the new @allow_rescue tag. (Aslak Hellesøy) -* The Cucumber::Rails.use_transactional_fixtures no longer exists. Transactional fixtures are always enabled for the cucumber environment. (Aslak Hellesøy) - -== 0.3.101 2009-09-15 - -Two exciting things in this release. Step Argument Transforms and a PDF formatter you can use to send -your features to your customer for review! - -=== New Features -* New pdf formatter (#425 Mads Buus) -* Step Argument Transforms: These let you use the Transform method to register regular expressions - to catch and transform/coerce arguments before they are yielded to step definitions: - http://wiki.github.com/aslakhellesoy/cucumber/step-argument-transforms (Larry Diehl & Dave Astels) -* Adding webrat steps for asserting content does or does not exist within a particular element - (using webrat's within method) (Kieran Pilkington) - -== 0.3.100 2009-09-09 - -The JavaZone release! - -=== New Features -* Added support for Uzbek (msarvar) -* The file argument on the cucumber command line will replace contents of file on cli if file is prefixed with @ (Tero Tilus) - -=== Bugfixes -* Backtraces on JRuby are handled in a cleaner way when the exception comes from Java (NativeException). (Aslak Hellesøy) -* When exceptions occur in a Before block the rest of the scenario is now skipped (#331 Matt Wynne) - -== 0.3.99 2009-09-03 - -=== New Features -* Support for Croatian (Bkrsta) -* Make #feature available from scenario so you can do: Before{|scenario| scenario.feature}. (Aslak Hellesøy) -* cucumber.yml parsing supports ERB syntax (#427 Gregory Hnatiuk) -* New AfterConfiguration hook added; a block can be specified that takes Cucumber::Cli::Configuration (#423 Brent Snook) -* Cucumber::Cli::Configuration#feature_dirs and #out_stream exposed as public attributes so that they may be used in AfterConfiguration hook (#423 Brent Snook) - -== 0.3.98 2009-08-25 - -Just a small release to help Cuke4Duke, which will be presented at Agile2009 -in 2 days. - -=== New Features -* Backtrace filtering now happens in StepInvocation class, meaning other languages (Cuke4Duke) can get backtraces stripped. (Aslak Hellesøy) -* Cucumber::Ast::Table#map_headers now allows for a block that will convert all the headers. See docs for details. (Ben Mabey) - -== 0.3.97 2009-08-23 - -The AA-FTT release. Creating a release for the AA-FTT meeting in Chicago so that we can play -with the new language API and maybe knock out some better .NET support. - -=== Bugfixes -* Allow comments on examples sections underneath scenario outlines (#420 Mike Sassak) -* Table.map_headers! will fail with a decent error message when 0 or 2+ headers are matched. (Aslak Hellesøy) -* Fixed an issue with comments with preceding spaces after a background causing a parse error (#401 Joseph Wilk) - -=== New Features -* The public API is documented and there is a new :sdoc task to generate nice searchable API docs. -* Add :default => :cucumber when setting up Rake tasks for Cucumber in Rails (Aslak Hellesøy) -* New When /^I fill in "([^\"]*)" for "([^\"]*)"$/ Webrat step for Rails (Aslak Hellesøy) - -=== Changed Features -* Changed the Programming Language API to support languages without "bleed through" (e.g. rubypython can't invoke ruby objs) (Aslak Hellesøy) -* The Programming Language API manages hooks on the language level instead of on the step mother level (Aslak Hellesøy) - -== 0.3.96 2009-08-15 - -This release doesn't have any significant new features or bug fixes, but there are big -internal changes. This release has a new API for plugging in other programming languages. -You can read more about that here: http://groups.google.com/group/cukes/browse_thread/thread/b9db8bf1f3ec9708 - -This might break other tools that are using Cucumber's internal APIs. For example Spork broke and had to -be patched. Please upgrade to Spork 0.5.9 if you are using Spork. - -=== New Features -* Ability to preload natural language in Spork's prefork. Rerun script/generate cucumber --spork to see how. (Aslak Hellesøy) -* Ability to control which DRb port is used via the --port flag or by setting CUCUMBER_DRB environment variable. (Chris Flipse) -* Upgrade Rails generator to use webrat 0.5.0. (Aslak Hellesøy) -* Upgrade Sinatra example to work with rack-test 0.4.1 and webrat 0.5.0. (Aslak Hellesøy) - -=== Changed Features -* --strict will cause an exit code 1 for missing and pending (used to be for missing only). (Mads Buus) -* junit formatter doesn't report pending steps unless --strict is used. (Mads Buus) - -== 0.3.95 2009-08-13 - -This release improves Webrat support for table-like HTML markup. Now you can easily turn the HTML -elements table, dl, ol and ul elements into a 2D array. This is particularly useful for comparing -data in your HTML with a Cucumber table using Cucumber::Ast::Table#diff! - -This release also fixes several bugs related to --drb (Spork) and profiles (cucumber.yml) - -=== Bug Fixes -* --guess will always prefer the longest regexp with no groups if they exist. -* Prevent delays if a NoMethodError is raise in a step definition. Define a light #inspect in World. (#374 Aslak Hellesøy) -* Restore 'features' as the default feature running path. (#412 Ben Mabey) -* --drb degrades gracefully when no drb server is running and no formatter is provided. (#410 Ben Mabey) -* --language picked up from profiles again. (#409 Ben Mabey) -* Resolved infinite loop problem when --drb was defined in a profile. (#408 Ben Mabey) - -=== New Features -* Cucumber::World#table has been overloaded to work with 2D Array in addition to a table String to be parsed. -* New When /^I fill in the following:$/ step definition for Webrat. Useful for filling out a form with a Table. (Aslak Hellesøy) -* The object returned by element_at (Webrat::Element) has a #to_table that works for table, dl, ol and ul. (Aslak Hellesøy) -* An explanation of why failures are ok is printed when --wip is used. (Aslak Hellesøy) -* Added cucumber alias for cucumber:ok in Rails Rake tasks. (Aslak Hellesøy) - -=== Changed features -* element_at('table').to_table should be used instead of table_at('table').to_a. The old way is deprecated but still works. (Aslak Hellesøy) -* element_at (and the depracated table_at) no longer takes a DOM id, only CSS selectors. Change "my_id" to "#my_id". (Aslak Hellesøy) - -== 0.3.94 2009-08-06 - -Kanban take II. - -Release 0.3.6 introduced a new --wip switch that can be used to limit work in progress -(WIP). Limiting WIP is central for Kanban Software Development (http://www.infoq.com/articles/hiranabe-lean-agile-kanban). - -However, this feature went mostly unnoticed, and because we think it's so great we have decided -to make it the default for Rails projects. When you bootstrap your Rails project for Cucumber -you will now get 2 Cucumber Rake tasks for Kanban development: - - cucumber:ok : Run features that should pass. This runs your "good,old" features - cucumber:wip : Run the features you're working on that don't pass yet. Tag them with @wip. Max 2! - -So upgrade today and get into the habit of tagging new features with @wip (or invent your own tags). -You'll achieve better flow this way. - -=== New features -* Support limiting the number of feature elements with certain tags (#353 Joseph Wilk) -* script/generate cucumber sets up 'cucumber:ok' and 'cucumber:wip' tasks and deprecates 'features'. More Kanban love. (#344 Aslak Hellesøy) -* Better JUnit formatter: feature->testsuite, scenario->testcase. Better timing and support for background and scenario outline. (Mads Buus Westmark) -* Added examples/python that uses rubypython. (Aslak Hellesøy) -* Checks the number of available colors on the terminal with ruby-terminfo if ruby-terminfo is installed. - This prevents Apple's Terminal.app from stalling (Yugui - Yuki Sonoda). - * Set 'xterm-256color' to TERM if your terminal supports grey. - * ruby-terminfo is available as genki-ruby-terminfo gem from github. -* Document builtin formatters with --help. (#406 Aslak Hellesøy) -* Added support for using regular expressions when mapping table headers. (Peter Williams) - -== 0.3.93 2009-08-03 - -Highlights in this release: Improved profile handling (cucumber.yml) and a fix for cucumber hanging. - -=== New features -* script/generate cucumber --spork now sets up a spork gem dependency in the cucumber.rb environment. (Aslak Hellesøy) -* Feature files defined on the command line override any that are present in profiles. (#344 Ben Mabey) -* Default (STDOUT) formatter defined in profile can be overridden from the command line. (#344 Ben Mabey) -* Displays which profile, if any, is being used. (Ben Mabey) -* click_link_within(parent, link) webrat step (Joakim Kolsjö) - -=== Bugfixes -* script/cucumber correctly loads the gem's binary if the plugin isn't installed. -* Cucumber hangs waiting for Ctrl+C if an Error is raised. (#374 Aslak Hellesøy) - -== 0.3.92 2009-07-29 - -This release has some minor improvements to the new Table.diff! functionality. For example, -if you're using Webrat and you want to compare a feature table with a HTML table containing -links in one of the columns, you can do: - - actual = Cucumber::Ast::Table.new(table_at('table').to_a) - actual.map_column!('Name') { |text| text.strip.match(/>(.*)= 0.5.1. (#355 Ben Mabey) -* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière) -* Fixed bug with rake task raising errors with feature files with spaces (#380 Joseph Wilk) - -=== New Features -* I should see should support regexes (#382 John Ferlito) -* Access to scenario outline name from After hook scenario parameter (#342 Aslak Hellesøy) -* Allow multiple --tags switches to be passed -* Load step definitions from vendored gems and plugins (#388 Mike Burns) -* New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes) -* Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy) -* Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp) -* Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg) - -=== Changed Features -* When using --tags, positive tags are &&'ed while negative tags are ||'ed (John Wilger) -* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy) -* Visitor.visit_table_cell_value(value, col_width, status) is now visitor.visit_table_cell_value(value, status) - -== 0.3.11 2009-06-05 - -This release just fixes a tiny bug in the formatter to fix an incompatibility -with the latest RedMine release. It should have been included in 0.3.10, but -was forgotten. - -=== Bugfixes -* Formatter API was broken in 0.3.9 (Roman Chernyatchik) - -== 0.3.10 2009-06-05 - -The Spork Release! - -This release has an exciting new feature - a new --drb switch! This magic switch lets you run your -features much faster than before, because you can eliminate the startup time for your code. This is -thanks to a brand new gem called Spork by Tim Harper and Ben Mabey. (You can find out more about Spork -here: http://github.com/timcharper/spork/tree/master). You can start Spork and have it preload your -application in a separate process. Spork listens for DRb connections, and when you run cucumber with ---drb the features will run inside the Spork server instead. Spork provides two simple hooks for preloading -your application - one for framework/stable code (Spork.prefork) and one for the code that *you* write and -change often (Spork.each_run). Keep in mind that all World, Before, and other Cucumber hooks need to be -in the Spork.each_run block. Using Spork works great for Ruby on Rails, which can take a while to load, -but --drb and Spork aren't tied to Rails at all. The new --drb switch also works great alongside autotest -(just add --drb to your autotest profile in cucumber.yml), so now you can get even faster feedback. - -Cucumber's built-in cucumber generator now has a new --spork switch, so when you bootstrap your Rails -application for cucumber, you can have spork configuration set up out of the box. (It's just a -slightly different env.rb.) - -Although Spork was in mind when the --drb switch was added it is important to realize that all that was added -to Cucumber was a DRb client. Any DRb server that adheres to this protocol can be used with Cucumber's --drb -switch. While Spork is geared towards removing the load time to give you a faster feedback loop you could -just as easily use this client with a server that distributes your features to run in parallel. Someone just -needs to write such a server. ;) - -This release also has some minor bugfixes related to RSpec and Rails interop. - -=== Bugfixes -* RSpec's be_* matchers did not work in 0.3.9 and probably earlier versions. Now they do. (Aslak Hellesøy) -* The Rails cucumber environment won't declare gem dependencies if the plugin exists. (Aslak Hellesøy) -* The Rails cucumber generator will no longer declare gem dependencies on rspec if you use --testunit. (Aslak Hellesøy) - -=== New features -* Spork support via --drb. (Ben Mabey) -* Added a Ast::Feature#name method for convenience. (Aslak Hellesøy) - -=== Changed features -* The HTML formatter wraps examples in a div, and distinguishes between Scenario and Scenario Outline. (Aslak Hellesøy) - -== 0.3.9 2009-05-27 - -Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber -generator which is fixed in 0.3.9. - -=== Bugfixes -* Fix broken Rails cucumber generator (Tim Glen) -* The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy) - -== 0.3.8 2009-05-27 - -This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you -use Cucumber with a Rails app we *strongly* recommend you bootstrap Cucumber again: - - ruby script/generate cucumber - -=== New Features -* Rails cucumber generator sets up default gem dependencies in cucumber environment. -* The duration of a run is reported by formatters - same format as the Linux time command (#228 Aslak Hellesøy) -* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy) -* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey) -* HTML formatter renders @tags (but the CSS is still ugly) - -=== Removed/changed features -* The Cucumber Rake task will again fork by default (as 0.3.3 and earlier). Forking must be turned off explicitly. (Aslak Hellesøy) - -=== Bugfixes -* Better coexistence with RSpec - Cucumber now *neuters* the part of RSpec that tries to parse ARGV. -* The differ= exception is gone (#325, #340 Aslak Hellesøy) - -== 0.3.7 2009-05-22 - -This is the "Help JetBrains RubyMine" release! - -=== New Features -* Added new Given alias for Catalan: Donat|Donada (Lleïr Borràs Metje) -* New --expand option. This will print Scenario Outlines once for each Example row - with values expanded. (#327 Aslak Hellesøy) -* You can override the formatter in Rails-generated rake tasks with the CUCUMBER_FORMAT environment variable (#335 Aslak Hellesøy) - -=== Bugfixes -* 'specs' folder needs to be renamed back to 'spec' (#339 Aslak Hellesøy) -* CUCUMBER_OPTS doesn't work for cucumber rake tasks (#336 Aslak Hellesøy) - -== 0.3.6 2009-05-20 - -Kanban! With this release you can tag features or scenarios that are work in progress -with a tag and use the new --wip switch. - -Another handy feature in this release is that you can package your own formatters in RubyGems. - -=== New features -* New --wip switch. See http://www.jroller.com/perryn/entry/bdd_on_a_multi_disciplined (Perryn Fowler) -* Added a AfterStep hook (Luke Melia) -* New aliases for Vietnamese (Ngoc Dao) -* Automatic require of custom formatters. --require is no longer needed to load them, and they can be in Ruby gems. (Aslak Hellesøy) -* Lazy loading of built-in formatters. Should improve startup time a little bit. - -=== Bugfixes -* Gracefully handle exceptions in After block (#330 Matt Wynne) -* Feature with only Background doesn't run hooks (#314, #329 Aslak Hellesøy) - -== 0.3.5 2009-05-14 - -Let's make a new release today because two annoying bugs are fixed. - -=== Bugfixes -* Allow feature element names to contain Gherkin keywords as long as they are not the first word on a newline (#319, #307 Joseph Wilk) - -== 0.3.4 2009-05-14 - -A couple of great new features in this release. Running with Rake is faster than before, -and there is a brand new JUnit formatter - great for Continuous Integration reports! - -This release was made especially for the Oslo XP Meetup today. - -** IMPORTANT UPGRADE NOTES FOR RAILS USERS ** - -Running Cucumber features in the same Ruby interpreter as Rake doesn't seem to work, -so you have to explicitly tell the task to fork (like it was doing by default in prior -versions). In lib/tasks/cucumber.rake: - - Cucumber::Rake::Task.new(:features) do |t| - t.fork = true # Explicitly fork - t.cucumber_opts = %w{--format pretty} - end - -(If you run script/generate cucumber this will be done for you). -Alternatively you can omit forking and run features like this: - - RAILS_ENV=test rake cucumber - -However, setting the RAILS_ENV is easy to forget, so I don't recommend relying on this. - -=== Bugfixes -* Hooks (World, Before, After) are no longer executed when --dry-run (Aslak Hellesøy) -* Proper UTF8 use in HTML formatter (Herminio Torres) -* Problem with multiple terms in languages.yml (#321 Aslak Hellesøy) - -=== New features -* New JUnit formatter (Gareth Jones) -* Support for Vietnamese (Ngoc Dao) -* Added aliases for Feature and But in Japanese (Leonard Chin) -* Support for Catalan (Francesc Esplugas) - -=== Changed features -* --exclude flag now works on ruby files in addition to feature files (#312 Ben Mabey) -* The Java example under examples/java uses Ant instead of Rake - and the new JUnit formatter. -* Rake task should not shell out (#297 Aslak Hellesøy) - The Cucumber Rake task will run Cucumber in the same Ruby interpreter as Rake itself - unless explicitly told to fork a new interpreter. This is to increase speed. You can - force a new interpreter by setting fork=true or rcov=true in the task. - -== 0.3.3 2009-05-10 - -Minor bugfix release, made specially for EuRuKo! - -=== Bugfixes -* Summaries are no longer printed in an empty () if there are no scenarios/steps (Aslak Hellesøy) -* Background, Scenario Outline, Before Hook interaction (#309 Aslak Hellesøy) -* Multiline String snippets no longer give misleading info. It's a String, not a PyString that's sent to step def. - -=== Removed/changed features -* New aliases: --no-source/-s, --name/-n (#317 Lonnon Foster) - -== 0.3.2 2009-05-05 - -This release has some minor bug fixes and new features. -Nothing major, but we need a release for RailsConf'09 in Las Vegas! - -=== Bugfixes -* rake tasks with profiles not respecting --require flags (#311 Ben Mabey) -* Step table with blank cell fails (#308 JohnnyT) -* Fixed error where unused table cells in Examples where raising exceptions due to having no status (#302 Joseph Wilk) - -=== New features -* Support for Hebrew (Ido Kanner) -* Summary should report scenarios (#32 Aslak Hellesøy) -* Examples and the associated tables are indented one level deeper than Scenario Outline. (Aslak Hellesøy) -* Added support for Examples selection when using --name. (#295 Joseph Wilk) - -== 0.3.1 2009-04-26 - -This release has several minor bug fixes and new features. With the addition of Latvian and Hungarian Cucumber -now supports 32(!!) languages. - -=== New features -* Support multiline names for Scenarios, Scenario Outlines, Backgrounds, Examples (#231 Joseph Wilk) -* Added #headers to Cucumber::Ast::Table (Ben Mabey) -* New translation for Latvian (Vitauts StoÄka) -* New translation for Hungarian (#287 Bence Golda) -* Pick up failure on after hook (#272 Aslak Hellesøy) - -=== Bugfixes -* Pretty formatter not colouring Examples tables correctly (#304 Aslak Hellesøy) -* Problem using --scenario and Scenario Outline (#298 Aslak Hellesøy) -* Tag Hook gets executed always there is a background (#301 Aslak Hellesøy) -* Feature which only has a Background with steps causes an exception (#306 Aslak Hellesøy) -* Gem no longer depends on Hoe (Aslak Hellesøy) -* Span html tags appear on HTML results with 0.3.0 (#299 Aslak Hellesøy) -* Fixed incorrect colours in pretty formatter's table headers for outline tables (Aslak Hellesøy) -* Exceptions from steps called within hooks are now reraised. (#294 Ben Mabey) - -=== Removed/changed features -* --scenario handle has been removed and replaced with --name which supports partial matches, regexp special characters, running named backgrounds (#295 Joseph Wilk) - -== 0.3.0 2009-04-14 - -This release has some minor changes to the APIs, but big enough that a new major release is in order. -The biggest change is the new semantics of the #World method. Previously you would call this method -several times, passing a Proc and extending the world object of the previous one with a Ruby module. -The problem was that there was no nice way to ensure the order in which these procs were called, which -led to some unexpected situations. In this release you can only register a single World proc. If you -want to extend a world with certain modules, you simply call the #World method with the module(s) -you wish to extend the World with. The Sinatra example illustrates how to do this. Also check out -the RDoc for Cucumber::StepMother#World. - -The Visitor API (which is used for formatters) has also changed slightly. However, we have tried to -do this in a backwards compatible way, so if you have custom formatters for Cucumber 0.2 they should -still work. - -One of the most significant new features is Tagged Hooks: http://wiki.github.com/aslakhellesoy/cucumber/hooks -This lets you associate Before and After blocks with specific scenarios. - -We are also deprecating the step_list, step_pattern, feature_list, and feature_pattern accessors on -Cucumber::Rake::Task. These accessors will be completely removed in version 0.4. For complex settings -please rely on cucumber profiles in your rake tasks: -http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles - -=== New features -* Use Hooks with @tags (#229 Aslak Hellesøy) -* Rake task supports cucumber.yml profiles (#187 Ben Mabey) -* Field value steps for Webrat (Jack Chen) -* Added translation for Bulgarian (Krasimir Angelov) -* Updated translation for Polish (#273 Grzegorz MarszaÅ‚ek) -* Only a single World proc can be registered. World extension now happens by calling #World with ruby modules. -* Portuguese uses Funcionalidade in stead of Característica and accented words are aliased with unaccented ones (Alexandre da Silva and Felipe Coury). -* The usage formatter also prints unused step definitions (Aslak Hellesøy) -* Better exception if a World proc returns nil. (Aslak Hellesøy) -* Allow Step Definitions to use |*varargs|, but only on Ruby 1.9. (Aslak Hellesøy) -* Snippets for steps that use Step Tables or PyStrings include block param and object type hint comment (#247 Joseph Wilk) -* Support description string for Backgrounds (#271 Joseph Wilk) - -=== Bugfixes -* After methods not being executed when Background fails (#288 Luismi Cavallé) -* Fixed dependency on internal files in rspec breaks cucumber w/ rspec-1.2.4 (#291 Aslak Hellesøy) -* Fix color use when using autotest on Linux. (Hans de Graaff) -* Fixed incorrect calculation of pystring indentation (#279 Eugene Naydanov) -* Fixed --format html leads to an error (#252 Aslak Hellesøy) -* Fixed Background runs twice (#255 Aslak Hellesøy) -* Fixed Background Transactions and :xx (#270 Aslak Hellesøy) -* Fixed Autospec failing with cucumber 0.2 (#254 Aslak Hellesøy) -* Sibling file detecting not working (#278 Aslak Hellesøy) - -=== Removed/changed features -* The visitor API has changed slightly: -** #visit_step_name, #visit_multiline_arg and #visit_exception are no longer official API methods. -** #visit_step_result replaces those 3 methods. -** Table and PyString no longer hold status information. Each visitor subclass should store state in @state if needed. -** #visit_py_string no longer takes a status argument. - -== 0.2.3 2009-03-30 - -This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments -in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables. - -=== New features -* Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth) -* Use skipped_param color for examples table header (#266 Eugene Naydanov) -* Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn) -* Windows/JRuby users can now enjoy colourful output (via http://github.com/aslakhellesoy/ansicolor) (#166 Aslak Hellesøy) -* Ambiguous step errors hint about --guess (unless --guess already on) (Aslak Hellesøy) -* Added translation for Slovak (Ahmed Al Hafoudh) -* Updated translation for Dutch (Bart Zonneveld) -* Updated translation for Italian (Alessandro Baroni) -* Updated translation for Japanese (KAKUTANI Shintaro) - -=== Bugfixes -* Fixed step name after step keyword without space (#265 Aslak Hellesøy) -* Backtrace is back in HTML reports (Aslak Hellesøy) - -== 0.2.2 2009-03-25 - -This release includes some minor changes to make Cucumber work with pure Java. Cucumber -has already worked with Java for a while (using JRuby and step definitions in Ruby), -but now you can write step definitions in pure Java! - -Check out the Cucumber Java project for more details: -http://github.com/aslakhellesoy/cucumber_java/tree/master - -== 0.2.1 2009-03-25 - -This release fixes a few minor bugs and adds a couple of new features. - -== Bugfixes -* Fixed Cucumber, and rails controller error handling (#49 Matt Patterson) -* HTML Formatter doesn't work correctly with scenario Outlines. (#260 Aslak Hellesøy) -* After blocks are run in reverse order of registration. (#113 Aslak Hellesøy) -* Snippets are showing 'Ands' (#249 Aslak Hellesøy) - -=== New features -* Snippets use a regexp and block arguments if the step name has "quoted" arguments. (Aslak Hellesøy) -* Cucumber::Ast::Feature#to_sexp includes the file name. (Aslak Hellesøy) -* support/env.rb is not loaded when --dry-run is specified. This is to increase performance. (Aslak Hellesøy) -* New usage formatter. This is the foundation for editor autocompletion and navigation between steps and step definitions. (#209 Aslak Hellesøy) - -=== Removed features -* -S/--step-definitions option introduced in 0.2.0 is removed. Use --format usage [--dry-run] [--no-color]. - -== 0.2.0 2009-03-18 - -This release sports a bunch of new and exciting features, as well a major rewrite of Cucumber's internals. -The rewrite was done to address technical debt and to have a code base that is easier to evolve and maintain. - -There are some changes to the Gherkin language that breaks backwards compatible with the 0.1.x series. -Most importantly, "GivenScenario" and "More Examples" no longer exist. See the "Removed features" section -below for more details on how to use alternatives. - -Since the grammar has changed, there are some new keywords. We have to rely on the community -to provide updated translations. This is much easier than before - just update languages.yml. -There is no static code generation anymore. To list all languages: - - cucumber --lang help - -And to list the keywords for a particular language: - - cucumber --lang en-lol help - -There are some really awesome new features in this release: Tagging, Autoformatting, automatic -aliasing of keywords in all languages, full Ruby 1.9 support and improved output -for multiline arguments are some of the highlights. - -== Bugfixes -* New StepInvocation breaks console formatter for pending steps. (#241 Jacob Radford) -* Within Scenario Outlines when replacing with a nil in a step name use empty string instead. (#237 Joseph Wilk) -* Fixed bug with Scenario Outlines incorrectly replacing values in step tables with nil. (#237 Joseph Wilk) -* Within Scenario Outlines when replacing with a nil in multiline strings use empty string instead. (#238 Joseph Wilk) -* Re-structure the ast: Feature -> Background -> (Scenario|ScenarioOutline)*. Fixes bug with background being called outside transactions. (#181 Joseph Wilk) -* --strict always exits with status 1 (#230 Tim Cuthbertson) -* Fix error with nil values in tables raising an exception (#227 Joseph Wilk) -* Add support for using << in formatters to ensure the html formatter works (#210 Joseph Wilk) -* Explicitly require env.rb files first to avoid potential load order problems. (#213, Ben Mabey, Randy Harmon) -* Depend on polyglot version (0.2.4) to avoid masking require errors. (Aslak Hellesøy). -* -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy) -* Errors with rspec-rails matchers in cucumber 0.1.99 (#173 David Chelimsky) -* Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy) -* Really skip skipped steps (#90 Aslak Hellesøy) -* No output for multi-line strings (#71 Aslak Hellesøy) -* Fix cucumber/formatter/unicode flaws on Windows (#145 Michael) -* Autotest-related Bugs: YAML missing (#136 Tobias Pape) -* Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother) -* Nested steps don't show mismatch (#116 Aslak Hellesøy) -* Pending steps in > steps called from steps (#65 Aslak Hellesøy) - -=== New features -* Australian translation (Josh Graham) -* Added World#announce(announcment) which lets you output text to the formatted output (#222 Rob Kaufmann) -* Added Table#transpose to to allow use of vertically aligned table keys (Torbjørn Vatn, Aslak Hellesøy) -* Added Table#map_headers to to allow use of more readable headers (Rob Holland) -* New -S/--step-definitions option. Useful (among other things) for tools that implement automcompletion. (#208 Aslak Hellesøy). -* The cucumber.rake file defines a dummy :features task if Cucumber is not installed (#225 Josh Nichols) -* Added Table#map_column! to ease casting of cell values into relevant types (#223 Rob Holland) -* New --no-diff option (#218 Bryan Ash) -* Rails generators supports testunit and rspec option, defaulting to rspec (#217 Josh Nichols) -* Sinatra Example (#204 Rob Holland) -* Keywords can be aliased in languages.yml. See English for an example (examples: Examples|Scenarios) -* Adding support for Background (#153 Joseph Wilk) -* Added ÄŒesky/Czech (Vojtech Salbaba) -* New --no-multiline option to reduce noise in output. Useful if lots of features are failing. (Aslak Hellesøy) -* Added ability to pass URIs to cucumber in addition to files and directories. Useful for troubleshooting! (Aslak Hellesøy) -* Groups of tabular scenarios (#57 Aslak Hellesøy) -* Tagging scenarios and features. Pick the ones to run with --tags (#54 Aslak Hellesøy) -* Make the current scenario available to the steps. (#44 Aslak Hellesøy) -* Step definition snippets contain a 'pending' call (#84 Aslak Hellesøy) -* Call multiline steps from other steps (#144 Aslak Hellesøy) -* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files. (Aslak Hellesøy) -* New --strict option exits with an error code if there are undefined steps. (#52 Aslak Hellesøy) -* Given, When, Then methods (used in step definitions) are automatically aliased to current language. Use $KCODE='u' in env.rb if needed. -* Run cucumber --language help to see all supported languages. (Aslak Hellesøy) -* Run cucumber --language LANG help to see keywords for a given language. (Aslak Hellesøy) -* Multiline arguments (tables and """ strings) are printed in the output. (Aslak Hellesøy) -* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy) -* New --guess option tries to guess the best step definition match instead of raising Cucumber::Multiple. (Jake Howerton) - -=== Removed features -* "GivenScenario" is gone. Instead you can call Steps from Step Definitions, or use the new Background feature (#153) -* "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead. -* Pure Ruby features are no longer supported. -* Remove --color option in autotest. Can be added manually in cucumber.yml (#215 Jean-Michel Garnier) - -== (0.1.16.4 aslakhellesoy-cucumber gem on GitHub) - -Bugfix release. - -IMPORTANT NOTE FOR RAILS USERS. -The template used to generate your features/support/env.rb has changed. You have to apply a minor change -manually for existing Rails projects when you upgrade to this version. Change this: - - require 'webrat/rspec-rails' - -to this: - - require 'webrat/core/matchers' - -=== New features -* Finnish translation (Tero Tilus) -* Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp) - -== Bugfixes -* Escaped quotes - \" - inside multiline strings will be unescaped. -* Flush output in HTML formatter since JRuby doesnt do it automatically (Diego Carrion) -* Better handling of ARGV (#169 David Chelimsky, Ben Mabey) -* Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy) - -== 0.1.16 2009-01-19 - -This is a small bugfix release. The most notable improvement is compatibility with Webrat 0.4. Rails/Webrat users should -upgrade both Cucumber and Webrat gems. - -=== New features -* Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk) -* Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy) -* Add the #binary= method back to the Rake task. It is needed by merb_cucumber for running the features of a merb app with it's bundled gems. (Thomas Marek) -* Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp) - -=== Bugfixes -* Fix to run single scenarios when the line number specified doesn't correspond to a step (i.e. blank lines or rows) (#160 Luismi Cavallé) - -=== Removed features - -== 0.1.15 2009-01-08 - -Bugfix release - -=== New features -* 한국어! (Korean!) (John Hwang) - -=== Bugfixes -* --dry-run skips running before/after/steps (#147 Ian Dees) -* Fix a minor bug in the console formatter's summary (David Chelimsky) -* Better quoting of Scenario names in Autotest (Peter Jaros) -* Added some small workarounds for unicode handling on Windows (Aslak Hellesøy) - -== 0.1.14 2009-01-04 - -This is the first release of Cucumber that runs on Ruby 1.9. There are still some encoding-related issues -with Arabic (ar), Japanese (ja) and Simplified Chinese (zh-CN). Patches are welcome. Other than that - -a couple of minor bug fixes and polishing. - -=== New features -* Pretty formatter shows number of scenarios (#139 Joseph Wilk) -* Rudimentary support for Ruby 1.9. Now it's ok to file Ruby 1.9-related bugs. - -=== Bugfixes -* Fixed "No such file or directory -- cucumber (LoadError)" bug with AutoTest (Aslak Hellesøy) -* Fixed `load_missing_constant': uninitialized constant Dispatcher error with Rails (Aslak Hellesøy) - -=== Removed features -* The #binary= method is gone from the Rake task. It will always point to the binary in the current gem. (Aslak Hellesøy) - -== 0.1.13 2008-12-20 - -It's time for some new features again. Output is now much better since you can use diffing, tweak -the output colours and get the full --backtrace if you want. Managing your support/* files became -a little easier since they are now always loaded before the step definitions. Life became easier -for Windows users in Norway (and other countries using unicode in the features). Plus several other -bug fixes. - -Enjoy! - -=== New features -* Console output is no longer bold, but regular. Step arguments are bold instead of blold+underlined. (Aslak Hellesøy) -* Console output can be configured with CUCUMBER_COLORS in your shell. (Aslak Hellesøy) -* Added new --backtrace option to show full backtrace (Aslak Hellesøy) -* Enable RSpec's diffing automatically if RSpec is loaded (Aslak Hellesøy) -* Files in support directories are loaded before any other file (i.e. step definitions.) (#120, Ben Mabey) -* The Rails features generator got some love and is now tested: http://github.com/aslakhellesoy/cucumber_rails (Aslak Hellesøy) -* --language is aliased to -l instead of -a (-l became available when --line was refactored) (Aslak Hellesøy) -* Scenario Outlines which through placeholders in the steps allow control of how scenario table values are used. (#57 Joseph Wilk) -* Scenario Outlines are now usable in pure ruby (Joseph Wilk) -* Add support for calling 'pending' from step definitions. (#112 Joseph Wilk) - -=== Bugfixes -* Make rails before filters work correctly (#122, #129 Guillermo Ãlvarez Fernández) -* Proper Unicode support for Windows command shells: Just require cucumber/formatter/unicode in env.rb (Aslak Hellesøy) -* Fixed disappearing "a" on Windows (#81 Aslak Hellesøy) -* Fixed a bug where row step outlines were loosing step tables. (#121 Joseph Wilk, Ben Mabey) -* The Cucumber Autotest plugin now launches JRuby if autotest is run with JRuby (Aslak Hellesøy) -* Provide helpful and non-confusing error message when specified profile is blank. (#118, Ben Mabey) -* Improve handling and error messages for malformed cucumber.yml files. (#117, Ben Mabey) -* document :x run option in command line help (#114, Aslak Hellesøy) -* Change 'visits' to 'visit' in features generator to comply with new Webrat API (Darius Roberts) - -=== Removed features - -== 0.1.12 2008-12-04 - -This is the "getting serious with IronRuby release" - largely based on -"Patrick Gannon":http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx's -blog entry. - -== New features -* Cucumber works with IronRuby/.NET - http://github.com/aslakhellesoy/cucumber/wikis/ironruby-and-net (Aslak Hellesøy) - -== Bugfixes -* Fixed bug which was preventing coloring under Autotest (#111, Alan Larkin) - -== Removed features -None - -== 0.1.11 2008-12-02 - -Bugfix release with a couple of minor additional features to the command line options. - -=== New features -* Capture output from cucumber in Autotest (Alan Larkin) -* Update cucumber generator to work with latest Webrat (Bryan Helkamp) -* CUCUMBR LIKEZ 2 SPEEK WIF KATS. KTHXBAI (Aimee Daniells) -* Support for dynamically pluggable formatters (#99 Joseph Wilk) -* --verbose mode to see ruby files and feature files loaded by Cucumber (#106 Joseph Wilk) - -=== Bugfixes -* The jcode library is not loaded on JRuby/Rails. Workaround for http://tinyurl.com/55uu3u. (Aslak Hellesøy) -* Support including modules for class passed to --format (#109 Joseph Wilk) - -=== Removed features -* The cucumber gem no longer depends on the rspec gem. It must be downloaded manually if RSpec is used. (Jeff Rafter) - -== 0.1.10 2008-11-25 - -This release mostly has smaller bugfixes. The most significant new feature is how -line numbers are specified. You can now run multiple features at specific lines numbers like this: - - cucumber foo.feature:15 bar.feature:6:45:111 - -This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111. - -=== New features -* Added example showing how to use Cucumber with Test::Unit + Matchy instead of RSpec (Aslak Hellesøy) -* Yield existing world object to World block (#87 Aslak Hellesøy) -* AUTOFEATURE=tRue works (case insensitive) (Aslak Hellesøy) -* Initial support for .NET via IronRuby. (Aslak Hellesøy) -* Lithuanian translation (sauliusgrigaitis) -* New webrat step defintions to wrap the new selects_time, selects_date, and selects_datetime methods. (Ben Mabey) -* Try to load webrat gem if it's not installed as a plugin (Aslak Hellesøy) -* Support example.feature:20 or example.feature:10:20:30 syntax for running features at specific line number(s). (#88 Joseph Wilk) - -=== Bugfixes -* Windows - all the 'a' characters in the output have gone on strike (#81 Luis Lavena, Joseph Wilk, Aslak Hellesøy) -* Raise a nice error when encountering step definition without block (#95 Aslak Hellesøy) -* Features written using Ruby where breaking due to missing a line number (#91 Joseph Wilk) -* Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk) - -=== Removed features -* $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb. -* Step definition without a block being treated as pending (#64 Joseph Wilk) -* The --line option has been removed. Use the new file.feature:line format instead. - -== 0.1.9 2008-11-12 - -With this release Cucumber supports 19 (!) natural languages: - -* Arabic -* Chinese Simplified -* Danish -* Dutch -* Estonian -* French -* German -* Italian -* Japanese -* Malay -* Norwegian -* Polish -* Portuguese -* Romanian -* Russian -* Spanish -* Swedish -* Texan -* Welsh - -Thanks a lot to everyone who has contributed translations. If you don't see your language here, please -add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages - -Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration -support and how multiline strings work in feature files: - - # In your .feature file - Then I should see - """ - A string - that "indents" - and spans - several lines - - """ - - # In your steps.rb file - Then 'I should see' do |text| - text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n" - end - -The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away -in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first -spaces removed too. - -=== New features -* Added --[no-]color option to force color on or off (Peter Jaros) -* Step definition without a block will be treated as pending (#64 Joseph Wilk) -* Added support for Welsh (improvements welcome) (Joseph Wilk) -* Added --quiet option to hide all development aid output when using Pretty formatter (#69 Joseph Wilk) -* Added --no-snippets option to hide snippets for pending steps when using Pretty formatter (#69 Joseph Wilk) -* Added error messages concerning cucumber.yml. (#70 Ben Mabey) -* Added Autotest support - work in progress... (Peter Jaros) -* Added new --exclude option (Bryan Helkamp) -* Added new --scenario option (Peter Jaros) -* Renamed common_webrat.rb to webrat_steps.rb (Ben Mabey, Aslak Hellesøy) -* Added new feature[:feature_path] task (Roman Gonzalez) -* Added support for Polish (Joseph Wilk) -* Support specifying multiple formatters and multiple outputs (#47 Joseph Wilk) -* Added support for Japanese. (Kakutani Shintaro) -* Added support for Texan (improvements welcome). (Aslak Hellesøy) - -=== Bugfixes -* Pending step snippets should escape special Regexp characters (#82 Joseph Wilk) -* Scenario without a body shouldn't show up as complete (#63 Josh Knowles) -* Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk) -* Fixed next_column_index not resetting after large tables (#60, Barry Mitchelson) -* The HTML formatter was rendering everything twice. Cannot invoke visit_feature on formatters in executor (#72 Joseph Wilk) -* Row Scenarios need to support pending? in order for the Profile formatter to work (Joseph Wilk) -* Snippets are not shown for steps which already have a step definition (#65 Joseph Wilk) -* Prevent feature/scenario/pending step comments from containing '//' when running features by specifying a directory with a trailing '/' (Joseph Wilk) -* Scenario tables need spacing after them (#59 Joseph Wilk) -* Support running scenario table rows when using --line argument (#55 Joseph Wilk) -* Don't load cucumber.yml unless it exists (Aslak Hellesøy) -* Fixing bug where specifying line number 1 in a feature which starts with a scenario with a scenario table was raising an error (#56 Joseph Wilk) - -=== Removed features - - -== 0.1.8 2008-10-18 - -This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL. -In previous releases it has been possible to use tables to define "more examples" of a scenario in -a FIT-style column fixture kind of way. Now you can also use tables as arguments to steps. - -Tables used to define more examples after a scenario must now be prefixed. In English it looks like this: - - Feature: Addition - In order to avoid silly mistakes - As a math idiot - I want to be told the sum of two numbers - - Scenario: Add two numbers - Given I have entered 50 into the calculator - And I have entered 70 into the calculator - When I press add - Then the result should be 120 on the screen - - More Examples: - | input_1 | input_2 | button | output | - | 20 | 30 | add | 50 | - | 2 | 5 | add | 7 | - | 0 | 40 | add | 40 | - -Languages that are not updated yet will have to use "More Examples" until we get the translations. - -Tables can also be used as arguments to individual steps. In fact, steps now support a single argument -that can span several lines. This can be a table or a string. - -Example: - - Given the following people exist: - | name | email | phone | - | Aslak | aslak@email.com | 123 | - | Joe | joe@email.com | 234 | - | Bryan | bryan@email.org | 456 | - When I search for email.com - Then I should see: - | name | email | phone | - | Aslak | aslak@email.com | 123 | - | Joe | joe@email.com | 234 | - And I should see: - "Some text - on several lines" - -The step definitions for such multiline steps must define an extra block argument for the argument: - - Given /the following people exist:/ do |people_table| - # people_table is of type Cucumber::Model::Table - # See RDoc for more info - end - - Then /I should see:/ do |string| - # string is a plain old ruby String with leading spaces on each line removed - end - -=== New features -* Added profile formatter. (#35, Joseph Wilk) -* Added support for Chinese Simplified. (Liming Lian) -* Added support for Dutch. (Sjoerd Tieleman) -* Multiline steps are now supported. (#4, Aslak Hellesøy) -* Tables used to define more examples for a scenario must be prefixed "More Examples" (see languages.yml for other languages) -* Show the file and line number for scenarios as a comment when displaying with the pretty formatter. (#40, Joseph Wilk) -* Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk) -* Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk) - -=== Bugfixes -* Fixed speling errors in Spanish (Daniel Cadenas) -* ActionMailer delivery_method should not be set to test (#41, Luke Melia) -* Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky) -* Support comments above the first scenario (#31, Aslak Hellesøy) -* Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk) - -=== Removed features -* Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value. - -=== New features -* Added new --out option to make it easier to specify output from Rake and cucumber.yml - -== 0.1.7 2008-10-05 - -This release fixes a few bugs and adds some new features. The most notable features are: - -=== Calling steps from steps - -Step definitions are a little bit closer to having regular method semantics. -You define them, but now you can also call them from other steps. Here is an -example: - - Given /I am logged in as an (.*) named (.*)$/ do |role, name| - Given "I am registered as #{role}, #{name}, secret" - When "I log in with #{name}, secret" - end - - Given /I am registered as (.*), (.*), (.*)/ do |role, name, password| - # (Code removed for brevity) - end - - When /I log in with (.*), (.*)/ do |name, password| - # (Code removed for brevity) - end - -This means that steps can be reused in other steps. The GivenScenario feature achieves a similar -effect (on the scenario level), but this feature is something we're not very happy with, mostly -because it's not parameterisable. Calling steps from steps is. - -GivenScenario will still be working several releases, but the plan is to remove it completely in -the 0.3.0 release. - -=== Seeing where a step is defined - -Prior to this release it could be hard to find out where the ruby step definition matching -a plain text step is defined. Not anymore! Cucumber will now output this: - - Scenario: Regular numbers - Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12 - And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12 - When I press divide # features/steps/calculator_steps.rb:16 - Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20 - And the result class should be Float # features/steps/calculator_steps.rb:24 - -=== Bugfixes -* Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk) -* Fixed a bug in Webrat selects (Tim Glen) -* Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy) - -=== New features -* Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy) -* Added But keyword to all languages (#21, Aslak Hellesøy) -* Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy) -* Added more Webrat steps (#25, Tim Glen) - -== 0.1.6 2008-10-01 - -First gem release! diff --git a/vendor/gems/gems/cucumber-0.4.4/LICENSE b/vendor/gems/gems/cucumber-0.4.4/LICENSE deleted file mode 100644 index 621d6e65..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License - -Copyright (c) 2008,2009 Aslak Hellesøy - -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. \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/Manifest.txt b/vendor/gems/gems/cucumber-0.4.4/Manifest.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/gems/cucumber-0.4.4/README.rdoc b/vendor/gems/gems/cucumber-0.4.4/README.rdoc deleted file mode 100644 index f1ec518a..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/README.rdoc +++ /dev/null @@ -1,26 +0,0 @@ -= Cucumber - -The main website is at http://cukes.info/ -The documentation is at http://github.com/aslakhellesoy/cucumber/wikis/home/ - -== Note on Patches/Pull Requests - -* Fork the project. -* Make your feature addition or bug fix. -* Add tests for it. This is important so I don't break it in a - future version unintentionally. -* Commit, do not mess with Rakefile, version, or history. - (if you want to have your own version, that is fine but - bump version in a commit by itself I can ignore when I pull) -* Send me a pull request. Bonus points for topic branches. - -== Running tests - - rake - -If you get errors about missing gems - just install them. - -== Copyright - -Copyright (c) 2008,2009 Aslak Hellesøy. See LICENSE for details. - diff --git a/vendor/gems/gems/cucumber-0.4.4/Rakefile b/vendor/gems/gems/cucumber-0.4.4/Rakefile deleted file mode 100644 index e66e8991..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/Rakefile +++ /dev/null @@ -1,63 +0,0 @@ -# encoding: utf-8 -require 'rubygems' -require 'term/ansicolor' -require 'rake' -$:.unshift(File.dirname(__FILE__) + '/lib') -require 'cucumber/formatter/ansicolor' - -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "cucumber" - gem.summary = %Q{Behaviour Driven Development with elegance and joy} - gem.description = %Q{A BDD tool written in Ruby} - gem.email = "cukes@googlegroups.com" - gem.homepage = "http://cukes.info" - gem.authors = ["Aslak Hellesøy"] - gem.rubyforge_project = "rspec" - - gem.add_dependency 'term-ansicolor', '1.0.4' - gem.add_dependency 'treetop', '1.4.2' - gem.add_dependency 'polyglot', '0.2.9' - gem.add_dependency 'builder', '2.1.2' - gem.add_dependency 'diff-lcs', '1.1.2' - - gem.add_development_dependency 'nokogiri', '1.3.3' - gem.add_development_dependency 'prawn', '0.5.1' - gem.add_development_dependency 'rspec', '1.2.9' - gem.add_development_dependency 'spork', '0.7.3' - - extend Cucumber::Formatter::ANSIColor - gem.post_install_message = <<-POST_INSTALL_MESSAGE - -#{cukes(15)} - - #{cukes(1)} U P G R A D I N G #{cukes(1)} - -Thank you for installing cucumber-#{Cucumber::VERSION}. -Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading -for important information about this release. Happy cuking! - -#{cukes(15)} - -POST_INSTALL_MESSAGE - end - - Jeweler::GemcutterTasks.new - Jeweler::RubyforgeTasks.new do |rubyforge| - rubyforge.doc_task = "sdoc" - end -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" -end - -Dir['gem_tasks/**/*.rake'].each { |rake| load rake } - -if(Cucumber::RUBY_1_9) - task :default => [:check_dependencies, :cucumber] # RSpec doesn't run on 1.9 yet. -else - task :default => [:check_dependencies, :spec, :cucumber] -end - -require 'rake/clean' -CLEAN.include %w(**/*.{log,pyc}) diff --git a/vendor/gems/gems/cucumber-0.4.4/VERSION.yml b/vendor/gems/gems/cucumber-0.4.4/VERSION.yml deleted file mode 100644 index 60e4b941..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/VERSION.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -:patch: 4 -:major: 0 -:minor: 4 -:build: diff --git a/vendor/gems/gems/cucumber-0.4.4/bin/cucumber b/vendor/gems/gems/cucumber-0.4.4/bin/cucumber deleted file mode 100755 index a4621eb1..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/bin/cucumber +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby -$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib') - -require 'cucumber/rspec_neuter' -require 'cucumber/cli/main' -begin - # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn. - failure = Cucumber::Cli::Main.execute(ARGV.dup) - Kernel.exit(failure ? 1 : 0) -rescue SystemExit => e - Kernel.exit(e.status) -rescue Exception => e - STDERR.puts("#{e.message} (#{e.class})") - STDERR.puts(e.backtrace.join("\n")) - Kernel.exit(1) -end \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/cucumber.gemspec b/vendor/gems/gems/cucumber-0.4.4/cucumber.gemspec deleted file mode 100644 index 169c332a..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/cucumber.gemspec +++ /dev/null @@ -1,750 +0,0 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{cucumber} - s.version = "0.4.4" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Aslak Helles\303\270y"] - s.date = %q{2009-11-13} - s.default_executable = %q{cucumber} - s.description = %q{A BDD tool written in Ruby} - s.email = %q{cukes@googlegroups.com} - s.executables = ["cucumber"] - s.extra_rdoc_files = [ - "LICENSE", - "README.rdoc" - ] - s.files = [ - ".gitattributes", - ".gitignore", - "History.txt", - "LICENSE", - "Manifest.txt", - "README.rdoc", - "Rakefile", - "VERSION.yml", - "bin/cucumber", - "cucumber.gemspec", - "cucumber.yml", - "examples/dos_line_endings/Rakefile", - "examples/dos_line_endings/features/dos_line_endings.feature", - "examples/i18n/README.textile", - "examples/i18n/Rakefile", - "examples/i18n/ar/Rakefile", - "examples/i18n/ar/features/addition.feature", - "examples/i18n/ar/features/step_definitons/calculator_steps.rb", - "examples/i18n/ar/lib/calculator.rb", - "examples/i18n/bg/Rakefile", - "examples/i18n/bg/features/addition.feature", - "examples/i18n/bg/features/consecutive_calculations.feature", - "examples/i18n/bg/features/division.feature", - "examples/i18n/bg/features/step_definitons/calculator_steps.rb", - "examples/i18n/bg/features/support/env.rb", - "examples/i18n/bg/features/support/world.rb", - "examples/i18n/bg/lib/calculator.rb", - "examples/i18n/cat/Rakefile", - "examples/i18n/cat/features/step_definitons/calculator_steps.rb", - "examples/i18n/cat/features/suma.feature", - "examples/i18n/cat/lib/calculadora.rb", - "examples/i18n/da/Rakefile", - "examples/i18n/da/features/sammenlaegning.feature", - "examples/i18n/da/features/step_definitons/lommeregner_steps.rb", - "examples/i18n/da/lib/lommeregner.rb", - "examples/i18n/de/.gitignore", - "examples/i18n/de/Rakefile", - "examples/i18n/de/features/addition.feature", - "examples/i18n/de/features/division.feature", - "examples/i18n/de/features/step_definitons/calculator_steps.rb", - "examples/i18n/de/lib/calculator.rb", - "examples/i18n/en-lol/Rakefile", - "examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb", - "examples/i18n/en-lol/features/stuffing.feature", - "examples/i18n/en-lol/features/support/env.rb", - "examples/i18n/en-lol/lib/basket.rb", - "examples/i18n/en-lol/lib/belly.rb", - "examples/i18n/en/.gitignore", - "examples/i18n/en/Rakefile", - "examples/i18n/en/features/addition.feature", - "examples/i18n/en/features/division.feature", - "examples/i18n/en/features/step_definitons/calculator_steps.rb", - "examples/i18n/en/lib/calculator.rb", - "examples/i18n/es/Rakefile", - "examples/i18n/es/features/adicion.feature", - "examples/i18n/es/features/step_definitons/calculador_steps.rb", - "examples/i18n/es/lib/calculador.rb", - "examples/i18n/et/Rakefile", - "examples/i18n/et/features/jagamine.feature", - "examples/i18n/et/features/liitmine.feature", - "examples/i18n/et/features/step_definitions/kalkulaator_steps.rb", - "examples/i18n/et/lib/kalkulaator.rb", - "examples/i18n/fi/.gitignore", - "examples/i18n/fi/Rakefile", - "examples/i18n/fi/features/jakolasku.feature", - "examples/i18n/fi/features/step_definitons/laskin_steps.rb", - "examples/i18n/fi/features/yhteenlasku.feature", - "examples/i18n/fi/lib/laskin.rb", - "examples/i18n/fr/Rakefile", - "examples/i18n/fr/features/addition.feature", - "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb", - "examples/i18n/fr/lib/calculatrice.rb", - "examples/i18n/he/Rakefile", - "examples/i18n/he/features/addition.feature", - "examples/i18n/he/features/division.feature", - "examples/i18n/he/features/step_definitons/calculator_steps.rb", - "examples/i18n/he/lib/calculator.rb", - "examples/i18n/hu/.gitignore", - "examples/i18n/hu/Rakefile", - "examples/i18n/hu/features/addition.feature", - "examples/i18n/hu/features/division.feature", - "examples/i18n/hu/features/step_definitons/calculator_steps.rb", - "examples/i18n/hu/lib/calculator.rb", - "examples/i18n/id/.gitignore", - "examples/i18n/id/Rakefile", - "examples/i18n/id/features/addition.feature", - "examples/i18n/id/features/division.feature", - "examples/i18n/id/features/step_definitons/calculator_steps.rb", - "examples/i18n/id/lib/calculator.rb", - "examples/i18n/it/Rakefile", - "examples/i18n/it/features/somma.feature", - "examples/i18n/it/features/step_definitons/calcolatrice_steps.rb", - "examples/i18n/it/lib/calcolatrice.rb", - "examples/i18n/ja/.gitignore", - "examples/i18n/ja/Rakefile", - "examples/i18n/ja/features/addition.feature", - "examples/i18n/ja/features/division.feature", - "examples/i18n/ja/features/step_definitons/calculator_steps.rb", - "examples/i18n/ja/lib/calculator.rb", - "examples/i18n/ko/.gitignore", - "examples/i18n/ko/Rakefile", - "examples/i18n/ko/features/addition.feature", - "examples/i18n/ko/features/division.feature", - "examples/i18n/ko/features/step_definitons/calculator_steps.rb", - "examples/i18n/ko/lib/calculator.rb", - "examples/i18n/lt/.gitignore", - "examples/i18n/lt/Rakefile", - "examples/i18n/lt/features/addition.feature", - "examples/i18n/lt/features/division.feature", - "examples/i18n/lt/features/step_definitons/calculator_steps.rb", - "examples/i18n/lt/lib/calculator.rb", - "examples/i18n/lv/Rakefile", - "examples/i18n/lv/features/addition.feature", - "examples/i18n/lv/features/division.feature", - "examples/i18n/lv/features/step_definitons/calculator_steps.rb", - "examples/i18n/lv/lib/calculator.rb", - "examples/i18n/no/Rakefile", - "examples/i18n/no/features/step_definitons/kalkulator_steps.rb", - "examples/i18n/no/features/summering.feature", - "examples/i18n/no/features/support/env.rb", - "examples/i18n/no/lib/kalkulator.rb", - "examples/i18n/pl/.gitignore", - "examples/i18n/pl/Rakefile", - "examples/i18n/pl/features/addition.feature", - "examples/i18n/pl/features/division.feature", - "examples/i18n/pl/features/step_definitons/calculator_steps.rb", - "examples/i18n/pl/features/support/env.rb", - "examples/i18n/pl/lib/calculator.rb", - "examples/i18n/pt/Rakefile", - "examples/i18n/pt/features/adicao.feature", - "examples/i18n/pt/features/step_definitions/calculadora_steps.rb", - "examples/i18n/pt/features/support/env.rb", - "examples/i18n/pt/lib/calculadora.rb", - "examples/i18n/ro/Rakefile", - "examples/i18n/ro/features/step_definitons/calculator_steps.rb", - "examples/i18n/ro/features/suma.feature", - "examples/i18n/ro/lib/calculator.rb", - "examples/i18n/ru/Rakefile", - "examples/i18n/ru/features/addition.feature", - "examples/i18n/ru/features/consecutive_calculations.feature", - "examples/i18n/ru/features/division.feature", - "examples/i18n/ru/features/step_definitons/calculator_steps.rb", - "examples/i18n/ru/features/support/env.rb", - "examples/i18n/ru/features/support/world.rb", - "examples/i18n/ru/lib/calculator.rb", - "examples/i18n/se/Rakefile", - "examples/i18n/se/features/step_definitons/kalkulator_steps.rb", - "examples/i18n/se/features/summering.feature", - "examples/i18n/se/lib/kalkulator.rb", - "examples/i18n/sk/.gitignore", - "examples/i18n/sk/Rakefile", - "examples/i18n/sk/features/addition.feature", - "examples/i18n/sk/features/division.feature", - "examples/i18n/sk/features/step_definitons/calculator_steps.rb", - "examples/i18n/sk/lib/calculator.rb", - "examples/i18n/sr-latn/Rakefile", - "examples/i18n/sr-latn/features/sabiranje.feature", - "examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb", - "examples/i18n/sr-latn/lib/calculator.rb", - "examples/i18n/sr/Rakefile", - "examples/i18n/sr/features/sabiranje.feature", - "examples/i18n/sr/features/step_definitons/calculator_steps.rb", - "examples/i18n/sr/lib/calculator.rb", - "examples/i18n/tr/.gitignore", - "examples/i18n/tr/Rakefile", - "examples/i18n/tr/features/bolme.feature", - "examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb", - "examples/i18n/tr/features/toplama.feature", - "examples/i18n/tr/lib/hesap_makinesi.rb", - "examples/i18n/uz/Rakefile", - "examples/i18n/uz/features/addition.feature", - "examples/i18n/uz/features/consecutive_calculations.feature", - "examples/i18n/uz/features/division.feature", - "examples/i18n/uz/features/step_definitons/calculator_steps.rb", - "examples/i18n/uz/features/support/env.rb", - "examples/i18n/uz/features/support/world.rb", - "examples/i18n/uz/lib/calculator.rb", - "examples/i18n/zh-CN/Rakefile", - "examples/i18n/zh-CN/features/addition.feature", - "examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb", - "examples/i18n/zh-CN/lib/calculator.rb", - "examples/i18n/zh-TW/.gitignore", - "examples/i18n/zh-TW/Rakefile", - "examples/i18n/zh-TW/features/addition.feature", - "examples/i18n/zh-TW/features/division.feature", - "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb", - "examples/i18n/zh-TW/lib/calculator.rb", - "examples/junit/features/one_passing_one_failing.feature", - "examples/junit/features/pending.feature", - "examples/junit/features/step_definitions/steps.rb", - "examples/python/features/fibonacci.feature", - "examples/python/features/step_definitions/fib_steps.py", - "examples/python/lib/.gitignore", - "examples/python/lib/fib.py", - "examples/ramaze/README.textile", - "examples/ramaze/Rakefile", - "examples/ramaze/app.rb", - "examples/ramaze/features/add.feature", - "examples/ramaze/features/step_definitions/add_steps.rb", - "examples/ramaze/features/support/env.rb", - "examples/ramaze/layout/default.html.erb", - "examples/ramaze/view/index.html.erb", - "examples/ruby2python/features/fibonacci.feature", - "examples/ruby2python/features/step_definitions/fib_steps.rb", - "examples/ruby2python/features/support/env.rb", - "examples/ruby2python/lib/.gitignore", - "examples/ruby2python/lib/fib.py", - "examples/selenium/Rakefile", - "examples/selenium/features/search.feature", - "examples/selenium/features/step_definitons/search_steps.rb", - "examples/selenium/features/support/env.rb", - "examples/selenium_webrat/Rakefile", - "examples/selenium_webrat/config.ru", - "examples/selenium_webrat/features/search.feature", - "examples/selenium_webrat/features/step_definitons/search_steps.rb", - "examples/selenium_webrat/features/support/env.rb", - "examples/self_test/.gitignore", - "examples/self_test/README.textile", - "examples/self_test/Rakefile", - "examples/self_test/features/background/background_tagged_before_on_outline.feature", - "examples/self_test/features/background/background_with_name.feature", - "examples/self_test/features/background/failing_background.feature", - "examples/self_test/features/background/failing_background_after_success.feature", - "examples/self_test/features/background/multiline_args_background.feature", - "examples/self_test/features/background/passing_background.feature", - "examples/self_test/features/background/pending_background.feature", - "examples/self_test/features/background/scenario_outline_failing_background.feature", - "examples/self_test/features/background/scenario_outline_passing_background.feature", - "examples/self_test/features/call_undefined_step_from_step_def.feature", - "examples/self_test/features/failing_expectation.feature", - "examples/self_test/features/lots_of_undefined.feature", - "examples/self_test/features/multiline_name.feature", - "examples/self_test/features/outline_sample.feature", - "examples/self_test/features/sample.feature", - "examples/self_test/features/search_sample.feature", - "examples/self_test/features/step_definitions/sample_steps.rb", - "examples/self_test/features/support/env.rb", - "examples/self_test/features/tags_sample.feature", - "examples/self_test/features/tons_of_cukes.feature", - "examples/self_test/features/undefined_multiline_args.feature", - "examples/self_test/list-of-features.txt", - "examples/sinatra/README.textile", - "examples/sinatra/Rakefile", - "examples/sinatra/app.rb", - "examples/sinatra/features/add.feature", - "examples/sinatra/features/step_definitions/add_steps.rb", - "examples/sinatra/features/support/env.rb", - "examples/sinatra/views/add.erb", - "examples/sinatra/views/layout.erb", - "examples/steps_library/features/step_definitions/steps_lib1.rb", - "examples/steps_library/features/step_definitions/steps_lib2.rb", - "examples/test_unit/Rakefile", - "examples/test_unit/features/step_definitions/test_unit_steps.rb", - "examples/test_unit/features/test_unit.feature", - "examples/tickets/Rakefile", - "examples/tickets/features.html", - "examples/tickets/features/172.feature", - "examples/tickets/features/177/1.feature", - "examples/tickets/features/177/2.feature", - "examples/tickets/features/177/3.feature", - "examples/tickets/features/180.feature", - "examples/tickets/features/229/tagged_hooks.feature", - "examples/tickets/features/229/tagged_hooks.rb", - "examples/tickets/features/236.feature", - "examples/tickets/features/241.feature", - "examples/tickets/features/246.feature", - "examples/tickets/features/248.feature", - "examples/tickets/features/270/back.feature", - "examples/tickets/features/270/back.steps.rb", - "examples/tickets/features/272/hooks.feature", - "examples/tickets/features/272/hooks_steps.rb", - "examples/tickets/features/279/py_string_indent.feature", - "examples/tickets/features/279/py_string_indent.steps.rb", - "examples/tickets/features/279/wrong.feature_", - "examples/tickets/features/301/filter_background_tagged_hooks.feature", - "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb", - "examples/tickets/features/306/only_background.feature", - "examples/tickets/features/lib/eatting_machine.rb", - "examples/tickets/features/lib/pantry.rb", - "examples/tickets/features/scenario_outline.feature", - "examples/tickets/features/step_definitons/246_steps.rb", - "examples/tickets/features/step_definitons/248_steps.rb", - "examples/tickets/features/step_definitons/scenario_outline_steps.rb", - "examples/tickets/features/step_definitons/tickets_steps.rb", - "examples/tickets/features/table_diffing.feature", - "examples/tickets/features/tickets.feature", - "examples/watir/README.textile", - "examples/watir/Rakefile", - "examples/watir/features/search.feature", - "examples/watir/features/step_definitions/search_steps.rb", - "examples/watir/features/support/env.rb", - "examples/watir/features/support/screenshots.rb", - "examples/webrat/features/search.feature", - "examples/webrat/features/step_definitions/kvasir_steps.rb", - "examples/webrat/features/support/env.rb", - "features/announce.feature", - "features/background.feature", - "features/bug_371.feature", - "features/bug_464.feature", - "features/bug_475.feature", - "features/call_many_steps.feature", - "features/cucumber_cli.feature", - "features/cucumber_cli_diff_disabled.feature", - "features/cucumber_cli_outlines.feature", - "features/custom_formatter.feature", - "features/default_snippets.feature", - "features/drb_server_integration.feature", - "features/exception_in_after_block.feature", - "features/exception_in_after_step_block.feature", - "features/exception_in_before_block.feature", - "features/exclude_files.feature", - "features/expand.feature", - "features/html_formatter.feature", - "features/html_formatter/a.html", - "features/junit_formatter.feature", - "features/language_from_header.feature", - "features/language_help.feature", - "features/listener_debugger_formatter.feature", - "features/multiline_names.feature", - "features/negative_tagged_hooks.feature", - "features/post_configuration_hook.feature", - "features/profiles.feature", - "features/rake_task.feature", - "features/report_called_undefined_steps.feature", - "features/simplest.feature", - "features/snippet.feature", - "features/step_definitions/cucumber_steps.rb", - "features/step_definitions/extra_steps.rb", - "features/step_definitions/simplest_steps.rb", - "features/step_definitions/wire_steps.rb", - "features/support/env.rb", - "features/support/env.rb.simplest", - "features/support/fake_wire_server.rb", - "features/table_diffing.feature", - "features/table_mapping.feature", - "features/tag_logic.feature", - "features/transform.feature", - "features/unicode_table.feature", - "features/usage_and_stepdefs_formatter.feature", - "features/wire_protocol.feature", - "features/work_in_progress.feature", - "gem_tasks/contributors.rake", - "gem_tasks/environment.rake", - "gem_tasks/features.rake", - "gem_tasks/fix_cr_lf.rake", - "gem_tasks/flog.rake", - "gem_tasks/rspec.rake", - "gem_tasks/sass.rake", - "gem_tasks/sdoc.rake", - "lib/README.rdoc", - "lib/autotest/cucumber.rb", - "lib/autotest/cucumber_mixin.rb", - "lib/autotest/cucumber_rails.rb", - "lib/autotest/cucumber_rails_rspec.rb", - "lib/autotest/cucumber_rspec.rb", - "lib/autotest/discover.rb", - "lib/cucumber.rb", - "lib/cucumber/ast.rb", - "lib/cucumber/ast/background.rb", - "lib/cucumber/ast/comment.rb", - "lib/cucumber/ast/examples.rb", - "lib/cucumber/ast/feature.rb", - "lib/cucumber/ast/feature_element.rb", - "lib/cucumber/ast/features.rb", - "lib/cucumber/ast/outline_table.rb", - "lib/cucumber/ast/py_string.rb", - "lib/cucumber/ast/scenario.rb", - "lib/cucumber/ast/scenario_outline.rb", - "lib/cucumber/ast/step.rb", - "lib/cucumber/ast/step_collection.rb", - "lib/cucumber/ast/step_invocation.rb", - "lib/cucumber/ast/table.rb", - "lib/cucumber/ast/tags.rb", - "lib/cucumber/ast/tree_walker.rb", - "lib/cucumber/ast/visitor.rb", - "lib/cucumber/broadcaster.rb", - "lib/cucumber/cli/configuration.rb", - "lib/cucumber/cli/drb_client.rb", - "lib/cucumber/cli/language_help_formatter.rb", - "lib/cucumber/cli/main.rb", - "lib/cucumber/cli/options.rb", - "lib/cucumber/cli/profile_loader.rb", - "lib/cucumber/constantize.rb", - "lib/cucumber/core_ext/instance_exec.rb", - "lib/cucumber/core_ext/proc.rb", - "lib/cucumber/core_ext/string.rb", - "lib/cucumber/feature_file.rb", - "lib/cucumber/filter.rb", - "lib/cucumber/formatter/ansicolor.rb", - "lib/cucumber/formatter/color_io.rb", - "lib/cucumber/formatter/console.rb", - "lib/cucumber/formatter/cucumber.css", - "lib/cucumber/formatter/cucumber.sass", - "lib/cucumber/formatter/debug.rb", - "lib/cucumber/formatter/duration.rb", - "lib/cucumber/formatter/html.rb", - "lib/cucumber/formatter/junit.rb", - "lib/cucumber/formatter/ordered_xml_markup.rb", - "lib/cucumber/formatter/pdf.rb", - "lib/cucumber/formatter/pretty.rb", - "lib/cucumber/formatter/progress.rb", - "lib/cucumber/formatter/rerun.rb", - "lib/cucumber/formatter/stepdefs.rb", - "lib/cucumber/formatter/steps.rb", - "lib/cucumber/formatter/summary.rb", - "lib/cucumber/formatter/tag_cloud.rb", - "lib/cucumber/formatter/unicode.rb", - "lib/cucumber/formatter/usage.rb", - "lib/cucumber/language_support.rb", - "lib/cucumber/language_support/language_methods.rb", - "lib/cucumber/languages.yml", - "lib/cucumber/parser.rb", - "lib/cucumber/parser/common.rb", - "lib/cucumber/parser/common.tt", - "lib/cucumber/parser/feature.rb", - "lib/cucumber/parser/feature.tt", - "lib/cucumber/parser/i18n.tt", - "lib/cucumber/parser/natural_language.rb", - "lib/cucumber/parser/py_string.rb", - "lib/cucumber/parser/py_string.tt", - "lib/cucumber/parser/table.rb", - "lib/cucumber/parser/table.tt", - "lib/cucumber/parser/treetop_ext.rb", - "lib/cucumber/platform.rb", - "lib/cucumber/py_support/py_dsl.py", - "lib/cucumber/py_support/py_language.py", - "lib/cucumber/py_support/py_language.rb", - "lib/cucumber/rails/action_controller.rb", - "lib/cucumber/rails/active_record.rb", - "lib/cucumber/rails/rspec.rb", - "lib/cucumber/rails/test_unit.rb", - "lib/cucumber/rails/world.rb", - "lib/cucumber/rake/task.rb", - "lib/cucumber/rb_support/rb_dsl.rb", - "lib/cucumber/rb_support/rb_hook.rb", - "lib/cucumber/rb_support/rb_language.rb", - "lib/cucumber/rb_support/rb_step_definition.rb", - "lib/cucumber/rb_support/rb_transform.rb", - "lib/cucumber/rb_support/rb_world.rb", - "lib/cucumber/rb_support/regexp_argument_matcher.rb", - "lib/cucumber/rspec_neuter.rb", - "lib/cucumber/step_argument.rb", - "lib/cucumber/step_definition_light.rb", - "lib/cucumber/step_match.rb", - "lib/cucumber/step_mother.rb", - "lib/cucumber/webrat/element_locator.rb", - "lib/cucumber/webrat/table_locator.rb", - "lib/cucumber/wire_support/connection.rb", - "lib/cucumber/wire_support/request_handler.rb", - "lib/cucumber/wire_support/wire_exception.rb", - "lib/cucumber/wire_support/wire_language.rb", - "lib/cucumber/wire_support/wire_packet.rb", - "lib/cucumber/wire_support/wire_protocol.rb", - "lib/cucumber/wire_support/wire_step_definition.rb", - "rails_generators/cucumber/USAGE", - "rails_generators/cucumber/cucumber_generator.rb", - "rails_generators/cucumber/templates/cucumber", - "rails_generators/cucumber/templates/cucumber.rake", - "rails_generators/cucumber/templates/cucumber_environment.rb", - "rails_generators/cucumber/templates/env.rb", - "rails_generators/cucumber/templates/paths.rb", - "rails_generators/cucumber/templates/spork_env.rb", - "rails_generators/cucumber/templates/version_check.rb", - "rails_generators/cucumber/templates/webrat_steps.rb", - "rails_generators/feature/USAGE", - "rails_generators/feature/feature_generator.rb", - "rails_generators/feature/templates/feature.erb", - "rails_generators/feature/templates/steps.erb", - "spec/cucumber/ast/background_spec.rb", - "spec/cucumber/ast/feature_element_spec.rb", - "spec/cucumber/ast/feature_factory.rb", - "spec/cucumber/ast/feature_spec.rb", - "spec/cucumber/ast/outline_table_spec.rb", - "spec/cucumber/ast/py_string_spec.rb", - "spec/cucumber/ast/scenario_outline_spec.rb", - "spec/cucumber/ast/scenario_spec.rb", - "spec/cucumber/ast/step_collection_spec.rb", - "spec/cucumber/ast/step_spec.rb", - "spec/cucumber/ast/table_spec.rb", - "spec/cucumber/ast/tags_spec.rb", - "spec/cucumber/ast/tree_walker_spec.rb", - "spec/cucumber/broadcaster_spec.rb", - "spec/cucumber/cli/configuration_spec.rb", - "spec/cucumber/cli/drb_client_spec.rb", - "spec/cucumber/cli/main_spec.rb", - "spec/cucumber/cli/options_spec.rb", - "spec/cucumber/cli/profile_loader_spec.rb", - "spec/cucumber/core_ext/proc_spec.rb", - "spec/cucumber/formatter/ansicolor_spec.rb", - "spec/cucumber/formatter/color_io_spec.rb", - "spec/cucumber/formatter/console_spec.rb", - "spec/cucumber/formatter/duration_spec.rb", - "spec/cucumber/formatter/html_spec.rb", - "spec/cucumber/formatter/junit_spec.rb", - "spec/cucumber/formatter/progress_spec.rb", - "spec/cucumber/formatter/spec_helper.rb", - "spec/cucumber/parser/feature_parser_spec.rb", - "spec/cucumber/parser/table_parser_spec.rb", - "spec/cucumber/rb_support/rb_step_definition_spec.rb", - "spec/cucumber/rb_support/regexp_argument_matcher_spec.rb", - "spec/cucumber/sell_cucumbers.feature", - "spec/cucumber/step_match_spec.rb", - "spec/cucumber/step_mother_spec.rb", - "spec/cucumber/treetop_parser/empty_feature.feature", - "spec/cucumber/treetop_parser/empty_scenario.feature", - "spec/cucumber/treetop_parser/empty_scenario_outline.feature", - "spec/cucumber/treetop_parser/fit_scenario.feature", - "spec/cucumber/treetop_parser/given_scenario.feature", - "spec/cucumber/treetop_parser/invalid_scenario_outlines.feature", - "spec/cucumber/treetop_parser/multiline_steps.feature", - "spec/cucumber/treetop_parser/multiple_tables.feature", - "spec/cucumber/treetop_parser/scenario_outline.feature", - "spec/cucumber/treetop_parser/spaces.feature", - "spec/cucumber/treetop_parser/test_dos.feature", - "spec/cucumber/treetop_parser/with_comments.feature", - "spec/cucumber/treetop_parser/with_tags.feature", - "spec/cucumber/wire_support/wire_language_spec.rb", - "spec/cucumber/wire_support/wire_packet_spec.rb", - "spec/cucumber/world/pending_spec.rb", - "spec/spec.opts", - "spec/spec_helper.rb" - ] - s.homepage = %q{http://cukes.info} - s.post_install_message = %q{ -(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) - - (::) U P G R A D I N G (::) - -Thank you for installing cucumber-0.4.4. -Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading -for important information about this release. Happy cuking! - -(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) - -} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{rspec} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Behaviour Driven Development with elegance and joy} - s.test_files = [ - "spec/cucumber/ast/background_spec.rb", - "spec/cucumber/ast/feature_element_spec.rb", - "spec/cucumber/ast/feature_factory.rb", - "spec/cucumber/ast/feature_spec.rb", - "spec/cucumber/ast/outline_table_spec.rb", - "spec/cucumber/ast/py_string_spec.rb", - "spec/cucumber/ast/scenario_outline_spec.rb", - "spec/cucumber/ast/scenario_spec.rb", - "spec/cucumber/ast/step_collection_spec.rb", - "spec/cucumber/ast/step_spec.rb", - "spec/cucumber/ast/table_spec.rb", - "spec/cucumber/ast/tags_spec.rb", - "spec/cucumber/ast/tree_walker_spec.rb", - "spec/cucumber/broadcaster_spec.rb", - "spec/cucumber/cli/configuration_spec.rb", - "spec/cucumber/cli/drb_client_spec.rb", - "spec/cucumber/cli/main_spec.rb", - "spec/cucumber/cli/options_spec.rb", - "spec/cucumber/cli/profile_loader_spec.rb", - "spec/cucumber/core_ext/proc_spec.rb", - "spec/cucumber/formatter/ansicolor_spec.rb", - "spec/cucumber/formatter/color_io_spec.rb", - "spec/cucumber/formatter/console_spec.rb", - "spec/cucumber/formatter/duration_spec.rb", - "spec/cucumber/formatter/html_spec.rb", - "spec/cucumber/formatter/junit_spec.rb", - "spec/cucumber/formatter/progress_spec.rb", - "spec/cucumber/formatter/spec_helper.rb", - "spec/cucumber/parser/feature_parser_spec.rb", - "spec/cucumber/parser/table_parser_spec.rb", - "spec/cucumber/rb_support/rb_step_definition_spec.rb", - "spec/cucumber/rb_support/regexp_argument_matcher_spec.rb", - "spec/cucumber/step_match_spec.rb", - "spec/cucumber/step_mother_spec.rb", - "spec/cucumber/wire_support/wire_language_spec.rb", - "spec/cucumber/wire_support/wire_packet_spec.rb", - "spec/cucumber/world/pending_spec.rb", - "spec/spec_helper.rb", - "examples/i18n/ar/features/step_definitons/calculator_steps.rb", - "examples/i18n/ar/lib/calculator.rb", - "examples/i18n/bg/features/step_definitons/calculator_steps.rb", - "examples/i18n/bg/features/support/env.rb", - "examples/i18n/bg/features/support/world.rb", - "examples/i18n/bg/lib/calculator.rb", - "examples/i18n/cat/features/step_definitons/calculator_steps.rb", - "examples/i18n/cat/lib/calculadora.rb", - "examples/i18n/da/features/step_definitons/lommeregner_steps.rb", - "examples/i18n/da/lib/lommeregner.rb", - "examples/i18n/de/features/step_definitons/calculator_steps.rb", - "examples/i18n/de/lib/calculator.rb", - "examples/i18n/en/features/step_definitons/calculator_steps.rb", - "examples/i18n/en/lib/calculator.rb", - "examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb", - "examples/i18n/en-lol/features/support/env.rb", - "examples/i18n/en-lol/lib/basket.rb", - "examples/i18n/en-lol/lib/belly.rb", - "examples/i18n/es/features/step_definitons/calculador_steps.rb", - "examples/i18n/es/lib/calculador.rb", - "examples/i18n/et/features/step_definitions/kalkulaator_steps.rb", - "examples/i18n/et/lib/kalkulaator.rb", - "examples/i18n/fi/features/step_definitons/laskin_steps.rb", - "examples/i18n/fi/lib/laskin.rb", - "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb", - "examples/i18n/fr/lib/calculatrice.rb", - "examples/i18n/he/features/step_definitons/calculator_steps.rb", - "examples/i18n/he/lib/calculator.rb", - "examples/i18n/hu/features/step_definitons/calculator_steps.rb", - "examples/i18n/hu/lib/calculator.rb", - "examples/i18n/id/features/step_definitons/calculator_steps.rb", - "examples/i18n/id/lib/calculator.rb", - "examples/i18n/it/features/step_definitons/calcolatrice_steps.rb", - "examples/i18n/it/lib/calcolatrice.rb", - "examples/i18n/ja/features/step_definitons/calculator_steps.rb", - "examples/i18n/ja/lib/calculator.rb", - "examples/i18n/ko/features/step_definitons/calculator_steps.rb", - "examples/i18n/ko/lib/calculator.rb", - "examples/i18n/lt/features/step_definitons/calculator_steps.rb", - "examples/i18n/lt/lib/calculator.rb", - "examples/i18n/lv/features/step_definitons/calculator_steps.rb", - "examples/i18n/lv/lib/calculator.rb", - "examples/i18n/no/features/step_definitons/kalkulator_steps.rb", - "examples/i18n/no/features/support/env.rb", - "examples/i18n/no/lib/kalkulator.rb", - "examples/i18n/pl/features/step_definitons/calculator_steps.rb", - "examples/i18n/pl/features/support/env.rb", - "examples/i18n/pl/lib/calculator.rb", - "examples/i18n/pt/features/step_definitions/calculadora_steps.rb", - "examples/i18n/pt/features/support/env.rb", - "examples/i18n/pt/lib/calculadora.rb", - "examples/i18n/ro/features/step_definitons/calculator_steps.rb", - "examples/i18n/ro/lib/calculator.rb", - "examples/i18n/ru/features/step_definitons/calculator_steps.rb", - "examples/i18n/ru/features/support/env.rb", - "examples/i18n/ru/features/support/world.rb", - "examples/i18n/ru/lib/calculator.rb", - "examples/i18n/se/features/step_definitons/kalkulator_steps.rb", - "examples/i18n/se/lib/kalkulator.rb", - "examples/i18n/sk/features/step_definitons/calculator_steps.rb", - "examples/i18n/sk/lib/calculator.rb", - "examples/i18n/sr/features/step_definitons/calculator_steps.rb", - "examples/i18n/sr/lib/calculator.rb", - "examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb", - "examples/i18n/sr-latn/lib/calculator.rb", - "examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb", - "examples/i18n/tr/lib/hesap_makinesi.rb", - "examples/i18n/uz/features/step_definitons/calculator_steps.rb", - "examples/i18n/uz/features/support/env.rb", - "examples/i18n/uz/features/support/world.rb", - "examples/i18n/uz/lib/calculator.rb", - "examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb", - "examples/i18n/zh-CN/lib/calculator.rb", - "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb", - "examples/i18n/zh-TW/lib/calculator.rb", - "examples/junit/features/step_definitions/steps.rb", - "examples/ramaze/app.rb", - "examples/ramaze/features/step_definitions/add_steps.rb", - "examples/ramaze/features/support/env.rb", - "examples/ruby2python/features/step_definitions/fib_steps.rb", - "examples/ruby2python/features/support/env.rb", - "examples/selenium/features/step_definitons/search_steps.rb", - "examples/selenium/features/support/env.rb", - "examples/selenium_webrat/features/step_definitons/search_steps.rb", - "examples/selenium_webrat/features/support/env.rb", - "examples/self_test/features/step_definitions/sample_steps.rb", - "examples/self_test/features/support/env.rb", - "examples/self_test/tmp/features/step_definitions/steps.rb", - "examples/sinatra/app.rb", - "examples/sinatra/features/step_definitions/add_steps.rb", - "examples/sinatra/features/support/env.rb", - "examples/steps_library/features/step_definitions/steps_lib1.rb", - "examples/steps_library/features/step_definitions/steps_lib2.rb", - "examples/test_unit/features/step_definitions/test_unit_steps.rb", - "examples/tickets/features/229/tagged_hooks.rb", - "examples/tickets/features/270/back.steps.rb", - "examples/tickets/features/272/hooks_steps.rb", - "examples/tickets/features/279/py_string_indent.steps.rb", - "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb", - "examples/tickets/features/lib/eatting_machine.rb", - "examples/tickets/features/lib/pantry.rb", - "examples/tickets/features/step_definitons/246_steps.rb", - "examples/tickets/features/step_definitons/248_steps.rb", - "examples/tickets/features/step_definitons/scenario_outline_steps.rb", - "examples/tickets/features/step_definitons/tickets_steps.rb", - "examples/watir/features/step_definitions/search_steps.rb", - "examples/watir/features/support/env.rb", - "examples/watir/features/support/screenshots.rb", - "examples/webrat/features/step_definitions/kvasir_steps.rb", - "examples/webrat/features/support/env.rb" - ] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, ["= 1.0.4"]) - s.add_runtime_dependency(%q, ["= 1.4.2"]) - s.add_runtime_dependency(%q, ["= 0.2.9"]) - s.add_runtime_dependency(%q, ["= 2.1.2"]) - s.add_runtime_dependency(%q, ["= 1.1.2"]) - s.add_development_dependency(%q, ["= 1.3.3"]) - s.add_development_dependency(%q, ["= 0.5.1"]) - s.add_development_dependency(%q, ["= 1.2.9"]) - s.add_development_dependency(%q, ["= 0.7.3"]) - else - s.add_dependency(%q, ["= 1.0.4"]) - s.add_dependency(%q, ["= 1.4.2"]) - s.add_dependency(%q, ["= 0.2.9"]) - s.add_dependency(%q, ["= 2.1.2"]) - s.add_dependency(%q, ["= 1.1.2"]) - s.add_dependency(%q, ["= 1.3.3"]) - s.add_dependency(%q, ["= 0.5.1"]) - s.add_dependency(%q, ["= 1.2.9"]) - s.add_dependency(%q, ["= 0.7.3"]) - end - else - s.add_dependency(%q, ["= 1.0.4"]) - s.add_dependency(%q, ["= 1.4.2"]) - s.add_dependency(%q, ["= 0.2.9"]) - s.add_dependency(%q, ["= 2.1.2"]) - s.add_dependency(%q, ["= 1.1.2"]) - s.add_dependency(%q, ["= 1.3.3"]) - s.add_dependency(%q, ["= 0.5.1"]) - s.add_dependency(%q, ["= 1.2.9"]) - s.add_dependency(%q, ["= 0.7.3"]) - end -end - diff --git a/vendor/gems/gems/cucumber-0.4.4/cucumber.yml b/vendor/gems/gems/cucumber-0.4.4/cucumber.yml deleted file mode 100644 index 897a256f..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/cucumber.yml +++ /dev/null @@ -1,4 +0,0 @@ -default: --format progress --strict features -jruby: --format progress --tags ~@spork --strict features -windows_mri: --format progress --tags ~@spork --strict features -wip: --tags @wip --wip features diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/Rakefile b/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/Rakefile deleted file mode 100644 index a5cf96ac..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -$:.unshift(File.dirname(__FILE__) + '/../../lib') -require 'cucumber/rake/task' - -Cucumber::Rake::Task.new do |t| - t.cucumber_opts = %w{--format pretty} -end \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/features/dos_line_endings.feature b/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/features/dos_line_endings.feature deleted file mode 100644 index d9358a56..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/dos_line_endings/features/dos_line_endings.feature +++ /dev/null @@ -1,9 +0,0 @@ -Feature: DOS line endings - In order to have less bug reports - As a windows developer - I want to write features with DOS line endigs - - Scenario: Just lots of DOS - Given I am on DOS - And Any version of Windows is really just DOS - Then Windows still sucks diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/README.textile b/vendor/gems/gems/cucumber-0.4.4/examples/i18n/README.textile deleted file mode 100644 index dc22721a..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/README.textile +++ /dev/null @@ -1,18 +0,0 @@ -h1. Internationalisation (i18n) examples - -Under this directory you'll find examples of Cucumber features written in -many of the natural languages Cucumber supports. - -For a full list of what languages Cucumber supports - run
cucumber --language help
- -h2. Running all the examples - -Open a shell in this directory and run - -
rake i18n
- -h2. Running examples for a specific language - -Open a shell in the directory for the specific language and run - -
rake features
\ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/Rakefile b/vendor/gems/gems/cucumber-0.4.4/examples/i18n/Rakefile deleted file mode 100644 index 339942a2..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/Rakefile +++ /dev/null @@ -1,32 +0,0 @@ -desc 'Run features for all languages' -task :i18n do - dir = File.dirname(__FILE__) - Dir["#{dir}/*"].each do |f| - if File.directory?(f) - lang = f[dir.length+1..-1] - if examples_working?(lang) - Dir.chdir(f) do - rake("cucumber") - end - else - STDERR.puts %{ -!!!!! -!!!!! -!!!!! SKIPPING #{lang} (The examples are out of date - please help update them) -!!!!! -!!!!! -} - end - end - end -end - -task :default => :i18n - -def examples_working?(lang) - !%w{}.index(lang) -end - -def rake(args) - ruby($0, args) -end diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/Rakefile b/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/Rakefile deleted file mode 100644 index 6a417570..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -$:.unshift(File.dirname(__FILE__) + '/../../../lib') -require 'cucumber/rake/task' - -Cucumber::Rake::Task.new do |t| - t.cucumber_opts = %w{--format pretty} -end \ No newline at end of file diff --git a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/features/addition.feature b/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/features/addition.feature deleted file mode 100644 index e2dea445..00000000 --- a/vendor/gems/gems/cucumber-0.4.4/examples/i18n/ar/features/addition.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: ar -خاصية: الجمع - من اجل تجنب الأخطاء السخيÙØ© - كشخص غبي ÙÙŠ الرياضيات - اريد معرÙØ© ناتج جمع عددين - - سيناريو مخطط: جمع عددين - بÙرض كتابة ÙÙŠ الآلة الحاسبة - Ùˆ كتابة ÙÙŠ الآلة الحاسبة - متى يتم الضغط على
".should have_button - end - end - """ - When I run "spec new_model_spec.rb --format specdoc" - Then the stdout should include "1 example, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature b/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature deleted file mode 100644 index 0a204dfc..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature +++ /dev/null @@ -1,27 +0,0 @@ -Feature: mock with flexmock - - As an RSpec user who prefers flexmock - I want to be able to use flexmock without rspec mocks interfering - - Scenario: Mock with flexmock - Given a file named "flexmock_example_spec.rb" with: - """ - Spec::Runner.configure do |config| - config.mock_with :flexmock - end - - describe "plugging in flexmock" do - it "allows flexmock to be used" do - target = Object.new - flexmock(target).should_receive(:foo).once - target.foo - end - - it "does not include rspec mocks" do - Spec.const_defined?(:Mocks).should be_false - end - end - """ - When I run "spec flexmock_example_spec.rb" - Then the exit code should be 0 - And the stdout should include "2 examples, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_mocha.feature b/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_mocha.feature deleted file mode 100644 index d53b967c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_mocha.feature +++ /dev/null @@ -1,27 +0,0 @@ -Feature: mock with mocha - - As an RSpec user who prefers mocha - I want to be able to use mocha without rspec mocks interfering - - Scenario: Mock with mocha - Given a file named "mocha_example_spec.rb" with: - """ - Spec::Runner.configure do |config| - config.mock_with :mocha - end - - describe "plugging in mocha" do - it "allows mocha to be used" do - target = Object.new - target.expects(:foo).once - target.foo - end - - it "does not include rspec mocks" do - Spec.const_defined?(:Mocks).should be_false - end - end - """ - When I run "spec mocha_example_spec.rb" - Then the exit code should be 0 - And the stdout should include "2 examples, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_rr.feature b/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_rr.feature deleted file mode 100644 index aa30882a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_rr.feature +++ /dev/null @@ -1,27 +0,0 @@ -Feature: mock with rr - - As an RSpec user who prefers rr - I want to be able to use rr without rspec mocks interfering - - Scenario: Mock with rr - Given a file named "rr_example_spec.rb" with: - """ - Spec::Runner.configure do |config| - config.mock_with :rr - end - - describe "plugging in rr" do - it "allows rr to be used" do - target = Object.new - mock(target).foo - target.foo - end - - it "does not include rspec mocks" do - Spec.const_defined?(:Mocks).should be_false - end - end - """ - When I run "spec rr_example_spec.rb" - Then the exit code should be 0 - And the stdout should include "2 examples, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/mocks/mix_stubs_and_mocks.feature b/vendor/gems/gems/rspec-1.2.9/features/mocks/mix_stubs_and_mocks.feature deleted file mode 100644 index deaf84ec..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/mocks/mix_stubs_and_mocks.feature +++ /dev/null @@ -1,22 +0,0 @@ -Feature: stub and mock together - - As an RSpec user - I want to use stubs and mocks together - - Scenario: stub in before - Given a file named "stub_and_mocks_spec.rb" with: - """ - describe "a stub in before" do - before(:each) do - @messenger = mock('messenger').as_null_object - end - - it "a" do - @messenger.should_receive(:foo).with('first') - @messenger.foo('second') - @messenger.foo('third') - end - end - """ - When I run "spec stub_and_mocks_spec.rb --format nested" - Then the stdout should include "received :foo with unexpected arguments\n expected: (\"first\")\n got: ([\"second\"], [\"third\"])" diff --git a/vendor/gems/gems/rspec-1.2.9/features/mocks/stub_implementation.feature b/vendor/gems/gems/rspec-1.2.9/features/mocks/stub_implementation.feature deleted file mode 100644 index 269de474..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/mocks/stub_implementation.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: stub implementation - - As an rspec user, I want to stub a complete implementation, not just a - return value. - - Scenario: stub implementation - Given a file named "stub_implementation.rb" with: - """ - describe "a stubbed implementation" do - it "works" do - object = Object.new - object.stub(:foo) do |arg| - if arg == :this - "got this" - elsif arg == :that - "got that" - end - end - - object.foo(:this).should == "got this" - object.foo(:that).should == "got that" - end - end - """ - When I run "spec stub_implementation.rb" - Then the stdout should include "1 example, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/pending/pending_examples.feature b/vendor/gems/gems/rspec-1.2.9/features/pending/pending_examples.feature deleted file mode 100644 index 58273956..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/pending/pending_examples.feature +++ /dev/null @@ -1,81 +0,0 @@ -Feature: pending examples - - RSpec offers three ways to indicate that an example is disabled pending - some action. - - Scenario: pending implementation - Given a file named "example_without_block_spec.rb" with: - """ - describe "an example" do - it "has not yet been implemented" - end - """ - When I run "spec example_without_block_spec.rb" - Then the exit code should be 0 - And the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "Not Yet Implemented" - And the stdout should include "example_without_block_spec.rb:2" - - Scenario: pending implementation with spec/test/unit - Given a file named "example_without_block_spec.rb" with: - """ - require 'spec/test/unit' - describe "an example" do - it "has not yet been implemented" - end - """ - When I run "spec example_without_block_spec.rb" - Then the exit code should be 0 - And the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "Not Yet Implemented" - And the stdout should include "example_without_block_spec.rb:3" - - Scenario: pending any arbitary reason, with no block - Given a file named "pending_without_block_spec.rb" with: - """ - describe "an example" do - it "is implemented but waiting" do - pending("something else getting finished") - end - end - """ - When I run "spec pending_without_block_spec.rb" - Then the exit code should be 0 - And the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "(something else getting finished)" - And the stdout should include "pending_without_block_spec.rb:2" - - Scenario: pending any arbitary reason, with a block that fails - Given a file named "pending_with_failing_block_spec.rb" with: - """ - describe "an example" do - it "is implemented but waiting" do - pending("something else getting finished") do - raise "this is the failure" - end - end - end - """ - When I run "spec pending_with_failing_block_spec.rb" - Then the exit code should be 0 - And the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "(something else getting finished)" - And the stdout should include "pending_with_failing_block_spec.rb:2" - - Scenario: pending any arbitary reason, with a block that passes - Given a file named "pending_with_passing_block_spec.rb" with: - """ - describe "an example" do - it "is implemented but waiting" do - pending("something else getting finished") do - true.should be(true) - end - end - end - """ - When I run "spec pending_with_passing_block_spec.rb" - Then the exit code should be 256 - And the stdout should include "1 example, 1 failure" - And the stdout should include "FIXED" - And the stdout should include "Expected pending 'something else getting finished' to fail. No Error was raised." - And the stdout should include "pending_with_passing_block_spec.rb:3" diff --git a/vendor/gems/gems/rspec-1.2.9/features/runner/specify_line_number.feature b/vendor/gems/gems/rspec-1.2.9/features/runner/specify_line_number.feature deleted file mode 100644 index bf44f2c0..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/runner/specify_line_number.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: run specific examples by line number - - In order to run a single example from command line - RSpec allows you to specify the line number of the example(s) to run - - Scenario: --line syntax on single example - Given a file named "example_spec.rb" with: - """ - describe "an example" do - it "has not yet been implemented" - it "has been implemented" do - true - end - end - """ - When I run "spec example_spec.rb --line 2" - Then the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "example_spec.rb:2" - - Scenario: colon line syntax on single example - Given a file named "example_spec.rb" with: - """ - describe "an example" do - it "has not yet been implemented" - it "has been implemented" do - true - end - end - """ - When I run "spec example_spec.rb:2" - Then the stdout should include "1 example, 0 failures, 1 pending" - And the stdout should include "example_spec.rb:2" diff --git a/vendor/gems/gems/rspec-1.2.9/features/spec_helper/spec_helper.feature b/vendor/gems/gems/rspec-1.2.9/features/spec_helper/spec_helper.feature deleted file mode 100644 index 2711e1a5..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/spec_helper/spec_helper.feature +++ /dev/null @@ -1,25 +0,0 @@ -Feature: spec helper - In order to centralize code needed across most specs - As a spec author - I want to require 'spec_helper' - - Because rspec adds the PROJECT_ROOT/spec directory to the load path, we can - just require 'spec_helper' and it will be found. - - Scenario: spec helper - Given a directory named "spec" - And a file named "spec/spec_helper.rb" with: - """ - SOME_CONSTANT = 'some value' - """ - And a file named "example.rb" with: - """ - require 'spec_helper' - describe SOME_CONSTANT do - it { should == 'some value' } - end - """ - When I run "spec example.rb" - And the stdout should include "1 example, 0 failures" - And the exit code should be 0 - diff --git a/vendor/gems/gems/rspec-1.2.9/features/step_definitions/running_rspec_steps.rb b/vendor/gems/gems/rspec-1.2.9/features/step_definitions/running_rspec_steps.rb deleted file mode 100644 index 60f27fa8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/step_definitions/running_rspec_steps.rb +++ /dev/null @@ -1,43 +0,0 @@ -Given %r{^a file named "([^"]+)" with:$} do |file_name, code| - create_file(file_name, code) -end - -Given /^a directory named "([^\"]*)"$/ do |dirname| - create_directory(dirname) -end - -When %r{^I run "spec ([^"]+)"$} do |file_and_args| - spec(file_and_args) -end - -When %r{^I run "ruby ([^"]+)"$} do |file_and_args| - ruby(file_and_args) -end - -When %r{^I run "cmdline.rb ([^"]+)"$} do |file_and_args| - cmdline(file_and_args) -end - -Then /^the (.*) should include (.*)$/ do |stream, string_or_regex| - written = case(stream) - when 'stdout' then last_stdout - when 'stderr' then last_stderr - else raise "Unknown stream: #{stream}" - end - written.should smart_match(string_or_regex) -end - -Then /^the (.*) should not match (.*)$/ do |stream, string_or_regex| - written = case(stream) - when 'stdout' then last_stdout - when 'stderr' then last_stderr - else raise "Unknown stream: #{stream}" - end - written.should_not smart_match(string_or_regex) -end - -Then /^the exit code should be (\d+)$/ do |exit_code| - if last_exit_code != exit_code.to_i - raise "Did not exit with #{exit_code}, but with #{last_exit_code}. Standard error:\n#{last_stderr}" - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/features/subject/explicit_subject.feature b/vendor/gems/gems/rspec-1.2.9/features/subject/explicit_subject.feature deleted file mode 100644 index 9fb68ad4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/subject/explicit_subject.feature +++ /dev/null @@ -1,31 +0,0 @@ -Feature: explicit subject - - You can override the implicit subject using the subject() method. - - Scenario: subject in top level group - Given a file named "top_level_subject_spec.rb" with: - """ - describe Array, "with some elements" do - subject { [1,2,3] } - it "should have the prescribed elements" do - subject.should == [1,2,3] - end - end - """ - When I run "spec top_level_subject_spec.rb" - Then the stdout should include "1 example, 0 failures" - - Scenario: subject in a nested group - Given a file named "nested_subject_spec.rb" with: - """ - describe Array do - subject { [1,2,3] } - describe "with some elements" do - it "should have the prescribed elements" do - subject.should == [1,2,3] - end - end - end - """ - When I run "spec nested_subject_spec.rb" - Then the stdout should include "1 example, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/subject/implicit_subject.feature b/vendor/gems/gems/rspec-1.2.9/features/subject/implicit_subject.feature deleted file mode 100644 index bc57d2ba..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/subject/implicit_subject.feature +++ /dev/null @@ -1,43 +0,0 @@ -Feature: implicit subject - - The first argument to the outermost example group block is - made available to each example as an implicit subject of - that example. - - Scenario: subject in top level group - Given a file named "top_level_subject_spec.rb" with: - """ - describe Array, "when first created" do - it "should be empty" do - subject.should == [] - end - end - """ - When I run "spec top_level_subject_spec.rb" - Then the stdout should include "1 example, 0 failures" - - Scenario: subject in a nested group - Given a file named "nested_subject_spec.rb" with: - """ - describe Array do - describe "when first created" do - it "should be empty" do - subject.should == [] - end - end - end - """ - When I run "spec nested_subject_spec.rb" - Then the stdout should include "1 example, 0 failures" - - Scenario: subject with getters - Given a file named "subject_with_getter_spec.rb" with: - """ - describe Array do - describe "when first created" do - its(:length) { should == 0 } - end - end - """ - When I run "spec subject_with_getter_spec.rb" - Then the stdout should include "1 example, 0 failures" diff --git a/vendor/gems/gems/rspec-1.2.9/features/support/env.rb b/vendor/gems/gems/rspec-1.2.9/features/support/env.rb deleted file mode 100644 index e11b3db2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/support/env.rb +++ /dev/null @@ -1,82 +0,0 @@ -$:.unshift File.join(File.dirname(__FILE__), "/../../lib") - -require 'spec/expectations' -require 'forwardable' -require 'tempfile' -require 'spec/ruby_forker' -require 'features/support/matchers/smart_match' - -class RspecWorld - include Spec::Expectations - include Spec::Matchers - include RubyForker - - extend Forwardable - def_delegators RspecWorld, :working_dir, :spec_command, :cmdline_file, :rspec_lib - - def self.working_dir - @working_dir ||= File.expand_path(File.join(File.dirname(__FILE__), "/../../tmp/cucumber-generated-files")) - end - - def self.spec_command - @spec_command ||= File.expand_path(File.join(File.dirname(__FILE__), "/../../bin/spec")) - end - - def self.cmdline_file - @cmdline_file ||= File.expand_path(File.join(File.dirname(__FILE__), "/../../resources/helpers/cmdline.rb")) - end - - def self.rspec_lib - @rspec_lib ||= File.join(working_dir, "/../../lib") - end - - def spec(args) - ruby("#{spec_command} #{args}") - end - - def cmdline(args) - ruby("#{cmdline_file} #{args}") - end - - def create_file(file_name, contents) - file_path = File.join(working_dir, file_name) - File.open(file_path, "w") { |f| f << contents } - end - - def create_directory(dirname) - FileUtils.mkdir_p File.join(working_dir, dirname) - end - - def last_stdout - @stdout - end - - def last_stderr - @stderr - end - - def last_exit_code - @exit_code - end - - # it seems like this, and the last_* methods, could be moved into RubyForker-- is that being used anywhere but the features? - def ruby(args) - stderr_file = Tempfile.new('rspec') - stderr_file.close - Dir.chdir(working_dir) do - @stdout = super("-I #{rspec_lib} #{args}", stderr_file.path) - end - @stderr = IO.read(stderr_file.path) - @exit_code = $?.to_i - end - -end - -Before do - FileUtils.rm_rf RspecWorld.working_dir if test ?d, RspecWorld.working_dir - FileUtils.mkdir_p RspecWorld.working_dir -end - -World do - RspecWorld.new -end diff --git a/vendor/gems/gems/rspec-1.2.9/features/support/matchers/smart_match.rb b/vendor/gems/gems/rspec-1.2.9/features/support/matchers/smart_match.rb deleted file mode 100644 index 74c50898..00000000 --- a/vendor/gems/gems/rspec-1.2.9/features/support/matchers/smart_match.rb +++ /dev/null @@ -1,12 +0,0 @@ -Spec::Matchers.define :smart_match do |expected| - match do |actual| - case expected - when /^\/.*\/?$/ - actual =~ eval(expected) - when /^".*"$/ - actual.index(eval(expected)) - else - false - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/init.rb b/vendor/gems/gems/rspec-1.2.9/init.rb deleted file mode 100644 index 6262f036..00000000 --- a/vendor/gems/gems/rspec-1.2.9/init.rb +++ /dev/null @@ -1,9 +0,0 @@ -# Placeholder to satisfy Rails. -# -# Do NOT add any require statements to this file. Doing -# so will cause Rails to load this plugin all of the time. -# -# Running 'ruby script/generate rspec' will -# generate spec/spec_helper.rb, which includes the necessary -# require statements and configuration. This file should -# be required by all of your spec files. \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/autotest/discover.rb b/vendor/gems/gems/rspec-1.2.9/lib/autotest/discover.rb deleted file mode 100644 index 3ac51c13..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/autotest/discover.rb +++ /dev/null @@ -1,3 +0,0 @@ -Autotest.add_discovery do - "rspec" if File.directory?('spec') && ENV['RSPEC'] -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/autotest/rspec.rb b/vendor/gems/gems/rspec-1.2.9/lib/autotest/rspec.rb deleted file mode 100644 index 625e340b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/autotest/rspec.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'autotest' - -Autotest.add_hook :initialize do |at| - at.clear_mappings - # watch out: Ruby bug (1.8.6): - # %r(/) != /\// - at.add_mapping(%r%^spec/.*_spec.rb$%) { |filename, _| - filename - } - at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m| - ["spec/#{m[1]}_spec.rb"] - } - at.add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) { - at.files_matching %r%^spec/.*_spec\.rb$% - } -end - -class RspecCommandError < StandardError; end - -class Autotest::Rspec < Autotest - - def initialize - super - self.failed_results_re = /^\d+\)\n(?:\e\[\d*m)?(?:.*?in )?'([^\n]*)'(?: FAILED)?(?:\e\[\d*m)?\n\n?(.*?(\n\n\(.*?)?)\n\n/m - self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m - end - - def consolidate_failures(failed) - filters = new_hash_of_arrays - failed.each do |spec, trace| - if trace =~ /\n(\.\/)?(.*spec\.rb):[\d]+:/ - filters[$2] << spec - end - end - return filters - end - - def make_test_cmd(files_to_test) - return '' if files_to_test.empty? - spec_program = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec')) - return "#{ruby} #{spec_program} --autospec #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}" - end - - def add_options_if_present # :nodoc: - File.exist?("spec/spec.opts") ? "-O spec/spec.opts " : "" - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec.rb deleted file mode 100644 index 879c373e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'spec/deprecation' -require 'spec/ruby' -require 'spec/matchers' -require 'spec/expectations' -require 'spec/example' -require 'spec/runner' -require 'spec/version' -require 'spec/dsl' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/flexmock.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/flexmock.rb deleted file mode 100644 index 18dd453d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/flexmock.rb +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby -# -# Created by Jim Weirich on 2007-04-10. -# Copyright (c) 2007. All rights reserved. - -require 'rubygems' unless ENV['NO_RUBYGEMS'] -require 'flexmock/rspec' - -module Spec - module Adapters - module MockFramework - include FlexMock::MockContainer - def setup_mocks_for_rspec - # No setup required - end - def verify_mocks_for_rspec - flexmock_verify - end - def teardown_mocks_for_rspec - flexmock_close - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/mocha.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/mocha.rb deleted file mode 100644 index 4c97c139..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/mocha.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'rubygems' unless ENV['NO_RUBYGEMS'] -require 'mocha/standalone' -require 'mocha/object' - -module Spec - module Adapters - module MockFramework - # Mocha::Standalone was deprecated as of Mocha 0.9.7. - begin - include Mocha::API - rescue NameError - include Mocha::Standalone - end - def setup_mocks_for_rspec - mocha_setup - end - def verify_mocks_for_rspec - mocha_verify - end - def teardown_mocks_for_rspec - mocha_teardown - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rr.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rr.rb deleted file mode 100644 index 758ddf61..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rr.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'rubygems' unless ENV['NO_RUBYGEMS'] -require 'rr' - -patterns = ::Spec::Runner::QuietBacktraceTweaker::IGNORE_PATTERNS -patterns.push(RR::Errors::BACKTRACE_IDENTIFIER) - -module Spec - module Adapters - module MockFramework - include RR::Extensions::InstanceMethods - def setup_mocks_for_rspec - RR::Space.instance.reset - end - def verify_mocks_for_rspec - RR::Space.instance.verify_doubles - end - def teardown_mocks_for_rspec - RR::Space.instance.reset - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb deleted file mode 100644 index b159f8bf..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'spec/mocks/framework' -require 'spec/mocks/extensions' - -module Spec - module Adapters - unless defined?(MockFramework) - module MockFramework - include Spec::Mocks::ExampleMethods - def setup_mocks_for_rspec - $rspec_mocks ||= Spec::Mocks::Space.new - end - def verify_mocks_for_rspec - $rspec_mocks.verify_all - end - def teardown_mocks_for_rspec - $rspec_mocks.reset_all - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/autorun.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/autorun.rb deleted file mode 100644 index f29b8196..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/autorun.rb +++ /dev/null @@ -1,3 +0,0 @@ -require 'spec' - -Spec::Runner.autorun diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/deprecation.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/deprecation.rb deleted file mode 100644 index ebab7894..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/deprecation.rb +++ /dev/null @@ -1,40 +0,0 @@ -module Spec - class << self - def deprecate(method, alternate_method=nil) - message = <<-NOTICE - -***************************************************************** -DEPRECATION WARNING: you are using deprecated behaviour that will -be removed from a future version of RSpec. - -#{caller(0)[2]} - -* #{method} is deprecated. -NOTICE - if alternate_method - message << <<-ADDITIONAL -* please use #{alternate_method} instead. -ADDITIONAL - end - - message << "*****************************************************************" - warn(message) - end - - def warn(message) - Kernel.warn(message) - end - - end - - class HashWithDeprecationNotice < Hash - def initialize(method, alternate_method=nil, &block) - @method, @alternate_method = method, alternate_method - end - def []=(k,v) - Spec.deprecate(@method, @alternate_method) - super - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl.rb deleted file mode 100644 index d93e90d8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl.rb +++ /dev/null @@ -1 +0,0 @@ -require 'spec/dsl/main' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl/main.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl/main.rb deleted file mode 100644 index 3459275b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/dsl/main.rb +++ /dev/null @@ -1,92 +0,0 @@ -module Spec - module DSL - module Main - include Spec::Example::ArgsAndOptions - - # Creates and returns a class that includes the ExampleGroupMethods - # module. Which ExampleGroup type is created depends on the directory of the file - # calling this method. For example, Spec::Rails will use different - # classes for specs living in spec/models, - # spec/helpers, spec/views and - # spec/controllers. - # - # It is also possible to override autodiscovery of the example group - # type with an options Hash as the last argument: - # - # describe "name", :type => :something_special do ... - # - # The reason for using different example group classes is to have different - # matcher methods available from within the describe block. - # - # See Spec::Example::ExampleGroupFactory#register for details about how to - # register special implementations. - # - def describe(*args, &block) - raise Spec::Example::NoDescriptionError.new("example group", caller(0)[1]) if args.empty? - add_options(args, :scope => self) - set_location(args.options, caller(0)[1]) - Spec::Example::ExampleGroupFactory.create_example_group(*args, &block) - end - alias :context :describe - - # Creates an example group that can be shared by other example groups - # - # == Examples - # - # share_examples_for "All Editions" do - # it "all editions behaviour" ... - # end - # - # describe SmallEdition do - # it_should_behave_like "All Editions" - # - # it "should do small edition stuff" do - # ... - # end - # end - def share_examples_for(*args, &block) - add_options(args) - set_location(args.options, caller(0)[1]) - Spec::Example::ExampleGroupFactory.create_shared_example_group(*args, &block) - end - alias :shared_examples_for :share_examples_for - - # Creates a Shared Example Group and assigns it to a constant - # - # share_as :AllEditions do - # it "should do all editions stuff" ... - # end - # - # describe SmallEdition do - # it_should_behave_like AllEditions - # - # it "should do small edition stuff" do - # ... - # end - # end - # - # And, for those of you who prefer to use something more like Ruby, you - # can just include the module directly - # - # describe SmallEdition do - # include AllEditions - # - # it "should do small edition stuff" do - # ... - # end - # end - def share_as(name, &block) - begin - args = [name] - add_options(args) - set_location(args.options, caller(0)[1]) - Object.const_set(name, Spec::Example::ExampleGroupFactory.create_shared_example_group(*args, &block)) - rescue NameError => e - raise NameError.new(e.message + "\nThe first argument to share_as must be a legal name for a constant\n") - end - end - end - end -end - -include Spec::DSL::Main diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example.rb deleted file mode 100644 index afbf4128..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example.rb +++ /dev/null @@ -1,164 +0,0 @@ -module Spec - # == Example Groups and Code Examples - # - # A Code Example is an executable example of how a bit of code is expected - # to behave. - # - # An Example Group is a group of code examples. - # - # RSpec exposes a DSL to describe groups of examples. - # - # describe Account do - # it "should have a balance of $0" do - # account = Account.new - # account.balance.should == Money.new(0, :dollars) - # end - # end - # - # == Before and After - # - # You can use the before() and after() methods to extract - # common code within an Example Group. Both methods take an optional scope - # argument so you can run the block before :each example or before :all - # examples - # - # describe "..." do - # before :all do - # ... - # end - # - # before :each do - # ... - # end - # - # it "should do something" do - # ... - # end - # - # it "should do something else" do - # ... - # end - # - # after :each do - # ... - # end - # - # after :all do - # ... - # end - # - # end - # - # The before :each block will run before each of the examples, once - # for each example. Likewise, the after :each block will run after - # each of the examples. - # - # It is also possible to specify a before :all and after - # :all block that will run only once for each example group, before the - # first before :each and after the last after - # :each respectively. The use of these is generally discouraged, - # because it introduces dependencies between the examples. Still, it might - # prove useful for very expensive operations if you know what you are doing. - # - # == Local helper methods - # - # You can include local helper methods by simply expressing them within an - # example group: - # - # describe "..." do - # - # it "..." do - # helper_method - # end - # - # def helper_method - # ... - # end - # - # end - # - # == Included helper methods - # - # You can include helper methods in multiple example groups by expressing - # them within a module, and then including that module in your example - # groups: - # - # module AccountExampleHelperMethods - # def helper_method - # ... - # end - # end - # - # describe "A new account" do - # include AccountExampleHelperMethods - # before do - # @account = Account.new - # end - # - # it "should have a balance of $0" do - # helper_method - # @account.balance.should eql(Money.new(0, :dollars)) - # end - # end - # - # == Shared Example Groups - # - # You can define a shared example group, that may be used on other groups - # - # share_examples_for "All Editions" do - # it "all editions behaviour" ... - # end - # - # describe SmallEdition do - # it_should_behave_like "All Editions" - # - # it "should do small edition stuff" do - # ... - # end - # end - # - # You can also assign the shared group to a module and include that - # - # share_as :AllEditions do - # it "should do all editions stuff" ... - # end - # - # describe SmallEdition do - # it_should_behave_like AllEditions - # - # it "should do small edition stuff" do - # ... - # end - # end - # - # And, for those of you who prefer to use something more like Ruby, you can - # just include the module directly - # - # describe SmallEdition do - # include AllEditions - # - # it "should do small edition stuff" do - # ... - # end - # end - module Example - end -end - -require 'timeout' -require 'spec/example/args_and_options' -require 'spec/example/predicate_matchers' -require 'spec/example/example_group_proxy' -require 'spec/example/example_proxy' -require 'spec/example/subject' -require 'spec/example/before_and_after_hooks' -require 'spec/example/pending' -require 'spec/example/module_reopening_fix' -require 'spec/example/example_group_hierarchy' -require 'spec/example/example_group_methods' -require 'spec/example/example_methods' -require 'spec/example/example_group' -require 'spec/example/shared_example_group' -require 'spec/example/example_group_factory' -require 'spec/example/errors' -require 'spec/example/example_matcher' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/args_and_options.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/args_and_options.rb deleted file mode 100644 index b74fddd8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/args_and_options.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Spec - module Example - module ArgsAndOptions - def args_and_options(*args) # :nodoc: - options = Hash === args.last ? args.pop : {} - return args, options - end - - def add_options(args, options={}) # :nodoc: - args << {} unless Hash === args.last - args.extend WithOptions - args.options.merge!(options) - args.options - end - - def set_location(options, location) # :nodoc: - options[:location] ||= location - end - - module WithOptions # :nodoc: - def options - last - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/before_and_after_hooks.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/before_and_after_hooks.rb deleted file mode 100644 index 9f5039d1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/before_and_after_hooks.rb +++ /dev/null @@ -1,93 +0,0 @@ -module Spec - module Example - module BeforeAndAfterHooks - class << self - def before_suite_parts # :nodoc: - @before_suite_parts ||= [] - end - - def after_suite_parts # :nodoc: - @after_suite_parts ||= [] - end - end - - # Registers a block to be executed before examples. scope can be - # :each (default), :all, or :suite. When - # :each, the block is executed before each example. When - # :all, the block is executed only once before any examples are - # run. - def append_before(scope = :each, &block) - before_parts(scope) << block - end - alias_method :before, :append_before - - # Registers a block to be executed before each example. - # This method prepends +block+ to existing before blocks. - # - # See append_before for scoping semantics. - def prepend_before(scope = :each, &block) - before_parts(scope).unshift(block) - end - - # Registers a block to be executed after each example. - # This method prepends +block+ to existing after blocks. - # - # See append_before for scoping semantics. - def prepend_after(scope = :each, &block) - after_parts(scope).unshift(block) - end - alias_method :after, :prepend_after - - # Registers a block to be executed after each example. - # This method appends +block+ to existing after blocks. - # - # See append_before for scoping semantics. - def append_after(scope = :each, &block) - after_parts(scope) << block - end - - def before_each_parts # :nodoc: - @before_each_parts ||= [] - end - - def after_each_parts # :nodoc: - @after_each_parts ||= [] - end - - def before_all_parts # :nodoc: - @before_all_parts ||= [] - end - - def after_all_parts # :nodoc: - @after_all_parts ||= [] - end - - def before_suite_parts # :nodoc: - BeforeAndAfterHooks.before_suite_parts - end - - def after_suite_parts # :nodoc: - BeforeAndAfterHooks.after_suite_parts - end - - private - - def before_parts(scope) - case scope - when :each; before_each_parts - when :all; before_all_parts - when :suite; before_suite_parts - end - end - - def after_parts(scope) - case scope - when :each; after_each_parts - when :all; after_all_parts - when :suite; after_suite_parts - end - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/errors.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/errors.rb deleted file mode 100644 index 157b669b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/errors.rb +++ /dev/null @@ -1,25 +0,0 @@ -module Spec - module Example - class ExamplePendingError < StandardError; end - - class NotYetImplementedError < ExamplePendingError - MESSAGE = "Not Yet Implemented" - def initialize - super(MESSAGE) - end - end - - class PendingExampleFixedError < StandardError; end - - class NoDescriptionError < ArgumentError - class << self - def message(kind, location) - "No description supplied for #{kind} declared on #{location}" - end - end - def initialize(kind, location) - super(self.class.message(kind, location)) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group.rb deleted file mode 100644 index 983be9a2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group.rb +++ /dev/null @@ -1,10 +0,0 @@ -module Spec - module Example - # Base class for customized example groups. Use this if you - # want to make a custom example group. - class ExampleGroup - extend Spec::Example::ExampleGroupMethods - include Spec::Example::ExampleMethods - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_factory.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_factory.rb deleted file mode 100644 index 1d662782..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_factory.rb +++ /dev/null @@ -1,82 +0,0 @@ -module Spec - module Example - - class ExampleGroupFactory - module ClassMethods - include Spec::Example::ArgsAndOptions - - def reset - @example_group_types = nil - default(ExampleGroup) - end - - def example_group_creation_listeners - @example_group_creation_listeners ||= [] - end - - def register_example_group(klass) - example_group_creation_listeners.each do |listener| - listener.register_example_group(klass) - end - end - - def create_shared_example_group(*args, &example_group_block) # :nodoc: - ::Spec::Example::SharedExampleGroup.register(*args, &example_group_block) - end - - def create_example_group(*args, &block) - raise ArgumentError if args.empty? || block.nil? - add_options(args) - superclass = determine_superclass(args.last) - superclass.describe(*args, &block) - end - - # Registers an example group class +klass+ with the symbol +type+. For - # example: - # - # Spec::Example::ExampleGroupFactory.register(:farm, FarmExampleGroup) - # - # With that you can append a hash with :type => :farm to the describe - # method and it will load an instance of FarmExampleGroup. - # - # describe Pig, :type => :farm do - # ... - # - # If you don't use the hash explicitly, describe will - # implicitly use an instance of FarmExampleGroup for any file loaded - # from the ./spec/farm directory. - def register(key, example_group_class) - @example_group_types[key.to_sym] = example_group_class - end - - # Sets the default ExampleGroup class - def default(example_group_class) - Spec.__send__ :remove_const, :ExampleGroup if Spec.const_defined?(:ExampleGroup) - Spec.const_set(:ExampleGroup, example_group_class) - old = @example_group_types - @example_group_types = Hash.new(example_group_class) - @example_group_types.merge!(old) if old - end - - def [](key) - @example_group_types[key] - end - - protected - - def determine_superclass(opts) - if type = opts[:type] - self[type] - elsif opts[:location] =~ /spec(\\|\/)(#{@example_group_types.keys.sort_by{|k| k.to_s.length}.reverse.join('|')})/ - self[$2 == '' ? nil : $2.to_sym] - else - self[nil] - end - end - - end - extend ClassMethods - self.reset - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_hierarchy.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_hierarchy.rb deleted file mode 100644 index f2c9fb5c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_hierarchy.rb +++ /dev/null @@ -1,53 +0,0 @@ -module Spec - module Example - class ExampleGroupHierarchy < Array - def initialize(example_group_class) - push example_group_class - if example_group_class.respond_to?(:superclass) && example_group_class.superclass.respond_to?(:example_group_hierarchy) - unshift example_group_class.superclass.example_group_hierarchy - flatten! - end - end - - def run_before_all(example) - example.eval_each_fail_fast(before_all_parts) - end - - def run_before_each(example) - example.eval_each_fail_fast(before_each_parts) - end - - def run_after_each(example) - example.eval_each_fail_slow(after_each_parts) - end - - def run_after_all(example) - example.eval_each_fail_slow(after_all_parts) - end - - def before_all_parts - @before_all_parts ||= collect {|klass| klass.before_all_parts}.flatten - end - - def before_each_parts - @before_each_parts ||= collect {|klass| klass.before_each_parts}.flatten - end - - def after_each_parts - @after_each_parts ||= reverse.collect {|klass| klass.after_each_parts}.flatten - end - - def after_all_parts - @after_all_parts ||= reverse.collect {|klass| klass.after_all_parts}.flatten - end - - def nested_descriptions - @nested_descriptions ||= collect {|eg| nested_description_from(eg) == "" ? nil : nested_description_from(eg) }.compact - end - - def nested_description_from(example_group) - example_group.description_args.join - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb deleted file mode 100644 index 3862fdef..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb +++ /dev/null @@ -1,282 +0,0 @@ -module Spec - module Example - - module ExampleGroupMethods - class << self - attr_accessor :matcher_class - - def build_description_from(*args) - text = args.inject("") do |description, arg| - description << " " unless (description == "" || arg.to_s =~ /^(\s|\.|#)/) - description << arg.to_s - end - text == "" ? nil : text - end - end - - include Spec::Example::BeforeAndAfterHooks - include Spec::Example::Subject::ExampleGroupMethods - include Spec::Example::PredicateMatchers - include Spec::Example::ArgsAndOptions - - attr_reader :location - - def options # :nodoc: - @options ||= {} - end - - def inherited(klass) # :nodoc: - super - ExampleGroupFactory.register_example_group(klass) - end - - # Makes the describe/it syntax available from a class. For example: - # - # class StackSpec < Spec::ExampleGroup - # describe Stack, "with no elements" - # - # before - # @stack = Stack.new - # end - # - # it "should raise on pop" do - # lambda{ @stack.pop }.should raise_error - # end - # end - # - def describe(*args, &example_group_block) - raise Spec::Example::NoDescriptionError.new("example group", caller(0)[1]) if args.empty? - if example_group_block - options = add_options(args) - set_location(options, caller(0)[1]) - if options[:shared] - ExampleGroupFactory.create_shared_example_group(*args, &example_group_block) - else - subclass(*args, &example_group_block) - end - else - set_description(*args) - end - end - alias :context :describe - - # Use this to pull in examples from shared example groups. - def it_should_behave_like(*shared_example_groups) - shared_example_groups.each do |group| - include_shared_example_group(group) - end - end - - # Creates an instance of the current example group class and adds it to - # a collection of examples of the current example group. - def example(description=nil, options={}, backtrace=nil, &implementation) - example_proxy = ExampleProxy.new(description, options, backtrace || caller(0)[1]) - example_proxies << example_proxy - example_implementations[example_proxy] = implementation || pending_implementation - example_proxy - end - - def pending_implementation - lambda { raise(Spec::Example::NotYetImplementedError) } - end - - alias_method :it, :example - alias_method :specify, :example - - # Use this to temporarily disable an example. - def xexample(description=nil, opts={}, &block) - Kernel.warn("Example disabled: #{description}") - end - - alias_method :xit, :xexample - alias_method :xspecify, :xexample - - def run(run_options) - examples = examples_to_run(run_options) - notify(run_options.reporter) unless examples.empty? - return true if examples.empty? - return dry_run(examples, run_options) if run_options.dry_run? - - define_methods_from_predicate_matchers - - success, before_all_instance_variables = run_before_all(run_options) - success, after_all_instance_variables = run_examples(success, before_all_instance_variables, examples, run_options) - success = run_after_all(success, after_all_instance_variables, run_options) - end - - def set_description(*args) - @description_args, @options = args_and_options(*args) - @backtrace = caller(1) - @location = File.expand_path(options[:location]) if options[:location] - self - end - - def notify(reporter) # :nodoc: - reporter.example_group_started(ExampleGroupProxy.new(self)) - end - - def description - @description ||= ExampleGroupMethods.build_description_from(*description_parts) || to_s - end - - def described_type - @described_type ||= description_parts.reverse.find {|part| part.is_a?(Module)} - end - - def described_class - @described_class ||= Class === described_type ? described_type : nil - end - - def description_args - @description_args ||= [] - end - - def description_parts #:nodoc: - @description_parts ||= example_group_hierarchy.inject([]) do |parts, example_group_class| - [parts << example_group_class.description_args].flatten - end - end - - def example_proxies # :nodoc: - @example_proxies ||= [] - end - - def example_implementations # :nodoc: - @example_implementations ||= {} - end - - def examples(run_options=nil) #:nodoc: - (run_options && run_options.reverse) ? example_proxies.reverse : example_proxies - end - - def number_of_examples #:nodoc: - example_proxies.length - end - - def example_group_hierarchy - @example_group_hierarchy ||= ExampleGroupHierarchy.new(self) - end - - def nested_descriptions - example_group_hierarchy.nested_descriptions - end - - def include_constants_in(mod) - include mod if (Spec::Ruby.version.to_f >= 1.9) & (Module === mod) & !(Class === mod) - end - - def let(name, &block) - define_method name do - @assignments ||= {} - @assignments[name] ||= instance_eval(&block) - end - end - - private - - def subclass(*args, &example_group_block) - @class_count ||= 0 - @class_count += 1 - klass = const_set("Subclass_#{@class_count}", Class.new(self)) - klass.set_description(*args) - klass.include_constants_in(args.last[:scope]) - klass.module_eval(&example_group_block) - klass - end - - def dry_run(examples, run_options) - examples.each do |example| - run_options.reporter.example_started(example) - run_options.reporter.example_finished(example) - end - end - - def run_before_all(run_options) - return [true,{}] if example_group_hierarchy.before_all_parts.empty? - example_proxy = ExampleProxy.new("before(:all)") - before_all = new(example_proxy) - begin - example_group_hierarchy.run_before_all(before_all) - return [true, before_all.instance_variable_hash] - rescue Exception => e - run_options.reporter.example_failed(example_proxy, e) - return [false, before_all.instance_variable_hash] - end - end - - def run_examples(success, instance_variables, examples, run_options) - return [success, instance_variables] unless success - - after_all_instance_variables = instance_variables - - examples.each do |example| - example_group_instance = new(example, &example_implementations[example]) - success &= example_group_instance.execute(run_options, instance_variables) - after_all_instance_variables = example_group_instance.instance_variable_hash - end - - return [success, after_all_instance_variables] - end - - def run_after_all(success, instance_variables, run_options) - return success if example_group_hierarchy.after_all_parts.empty? - example_proxy = ExampleProxy.new("after(:all)") - after_all = new(example_proxy) - after_all.set_instance_variables_from_hash(instance_variables) - example_group_hierarchy.run_after_all(after_all) - success - rescue Exception => e - run_options.reporter.example_failed(example_proxy, e) - false - end - - def examples_to_run(run_options) - return example_proxies unless examples_were_specified?(run_options) - if run_options.line_number_requested? - if location =~ /:#{run_options.example_line}:?/ - example_proxies - else - example_proxies.select {|proxy| proxy.location =~ /:#{run_options.example_line}:?/} - end - else - example_proxies.reject do |proxy| - matcher = ExampleGroupMethods.matcher_class. - new(description.to_s, proxy.description) - !matcher.matches?(run_options.examples) - end - end - end - - def examples_were_specified?(run_options) - !run_options.examples.empty? - end - - def method_added(name) # :nodoc: - example(name.to_s, {}, caller(0)[1]) {__send__ name.to_s} if example_method?(name.to_s) - end - - def example_method?(method_name) - should_method?(method_name) - end - - def should_method?(method_name) - !(method_name =~ /^should(_not)?$/) && - method_name =~ /^should/ && - instance_method(method_name).arity < 1 - end - - def include_shared_example_group(shared_example_group) - case shared_example_group - when SharedExampleGroup - include shared_example_group - else - unless example_group = SharedExampleGroup.find(shared_example_group) - raise RuntimeError.new("Shared Example Group '#{shared_example_group}' can not be found") - end - include(example_group) - end - end - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_proxy.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_proxy.rb deleted file mode 100644 index 3c258d61..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_group_proxy.rb +++ /dev/null @@ -1,61 +0,0 @@ -module Spec - module Example - # Lightweight proxy for an example group. This is the object that is passed - # to Spec::Runner::Formatter::BaseFormatter#example_group_started - class ExampleGroupProxy - - def initialize(example_group) # :nodoc: - @description = example_group.description - @nested_descriptions = example_group.nested_descriptions - @examples = example_group.example_proxies - @location = example_group.location - @backtrace = example_group.location # deprecated - see the backtrace method below - @options = example_group.options.dup - @options.delete(:location) - @options.delete(:scope) - end - - # Optional hash passed to the example group declaration. Note that RSpec uses - # this hash internally and reserves the keys :location and :scope for its own - # use (and removes them from this hash) - attr_reader :options - - # This is the description passed to the describe() method or any - # of its aliases - attr_reader :description - - # Used by Spec::Runner::Formatter::NestedTextFormatter to access the - # description of each example group in a nested group separately. - attr_reader :nested_descriptions - - # A collection of ExampleGroupProxy objects, one for each example - # declared in this group. - attr_reader :examples - - # The file and line number at which the proxied example group - # was declared. This is extracted from caller, and is therefore - # formatted as an individual line in a backtrace. - attr_reader :location - - # Deprecated - use location() instead - def backtrace - Spec::deprecate("ExampleGroupProxy#backtrace","ExampleGroupProxy#location") - @backtrace - end - - # Deprecated - just use gsub on the description instead. - def filtered_description(regexp) - Spec::deprecate("ExampleGroupProxy#filtered_description","gsub (or similar) to modify ExampleGroupProxy#description") - ExampleGroupMethods.build_description_from( - *nested_descriptions.collect do |description| - description =~ regexp ? description.gsub($1, "") : description - end - ) - end - - def ==(other) # :nodoc: - other.description == description - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_matcher.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_matcher.rb deleted file mode 100644 index 3acd7e14..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_matcher.rb +++ /dev/null @@ -1,43 +0,0 @@ -module Spec - module Example - class ExampleMatcher - def initialize(example_group_description, example_name) - @example_group_description = example_group_description - @example_name = example_name - end - - def matches?(specified_examples) - specified_examples.any? do |specified_example| - matches_literal_example?(specified_example) || matches_example_not_considering_modules?(specified_example) - end - end - - protected - def matches_literal_example?(specified_example) - specified_example =~ /(^#{example_group_regex} #{example_regexp}$|^#{example_group_regex}$|^#{example_group_with_before_all_regexp}$|^#{example_regexp}$)/ - end - - def matches_example_not_considering_modules?(specified_example) - specified_example =~ /(^#{example_group_regex_not_considering_modules} #{example_regexp}$|^#{example_group_regex_not_considering_modules}$|^#{example_regexp}$)/ - end - - def example_group_regex - Regexp.escape(@example_group_description) - end - - def example_group_with_before_all_regexp - Regexp.escape("#{@example_group_description} before(:all)") - end - - def example_group_regex_not_considering_modules - Regexp.escape(@example_group_description.split('::').last) - end - - def example_regexp - Regexp.escape(@example_name) if @example_name - end - end - - ExampleGroupMethods.matcher_class = ExampleMatcher - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb deleted file mode 100644 index ca81a937..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb +++ /dev/null @@ -1,148 +0,0 @@ -module Spec - module Example - module ExampleMethods - - extend Spec::Example::ModuleReopeningFix - include Spec::Example::Subject::ExampleMethods - - def violated(message="") - raise Spec::Expectations::ExpectationNotMetError.new(message) - end - - # Declared description for this example: - # - # describe Account do - # it "should start with a balance of 0" do - # ... - # - # description - # => "should start with a balance of 0" - def description - if description = @_proxy.description || ::Spec::Matchers.generated_description - description - else - Spec.warn Spec::Example::NoDescriptionError.message("example", @_proxy.location) - end - end - - def options # :nodoc: - @_proxy.options - end - - def execute(run_options, instance_variables) # :nodoc: - run_options.reporter.example_started(@_proxy) - set_instance_variables_from_hash(instance_variables) - - execution_error = nil - Timeout.timeout(run_options.timeout) do - begin - before_each_example - instance_eval(&@_implementation) - rescue Exception => e - execution_error ||= e - end - begin - after_each_example - rescue Exception => e - execution_error ||= e - end - end - - run_options.reporter.example_finished(@_proxy.update(description), execution_error) - success = execution_error.nil? || ExamplePendingError === execution_error - end - - module BlockAliases - alias_method :to, :should - alias_method :to_not, :should_not - end - - # Extends the submitted block with aliases to and to_not - # for should and should_not. Allows expectations like this: - # - # expect { this_block }.to change{this.expression}.from(old_value).to(new_value) - # expect { this_block }.to raise_error - def expect(&block) - block.extend BlockAliases - end - - def eval_each_fail_fast(blocks) # :nodoc: - blocks.each {|block| instance_eval(&block)} - end - - def eval_each_fail_slow(blocks) # :nodoc: - first_exception = nil - blocks.each do |block| - begin - instance_eval(&block) - rescue Exception => e - first_exception ||= e - end - end - raise first_exception if first_exception - end - - def instance_variable_hash # :nodoc: - instance_variables.inject({}) do |variable_hash, variable_name| - variable_hash[variable_name] = instance_variable_get(variable_name) - variable_hash - end - end - - def set_instance_variables_from_hash(ivars) # :nodoc: - ivars.each do |variable_name, value| - # Ruby 1.9 requires variable.to_s on the next line - unless ['@_proxy', '@_implementation', '@method_name'].include?(variable_name.to_s) - instance_variable_set variable_name, value - end - end - end - - # Run all the before(:each) blocks for this example - def run_before_each - example_group_hierarchy.run_before_each(self) - end - - # Run all the after(:each) blocks for this example - def run_after_each - example_group_hierarchy.run_after_each(self) - end - - def initialize(example_proxy, &implementation) - @_proxy = example_proxy - @_implementation = implementation - @_backtrace = caller - end - - private - - include Matchers - include Pending - - def before_each_example - setup_mocks_for_rspec - run_before_each - end - - def after_each_example - run_after_each - verify_mocks_for_rspec - ensure - teardown_mocks_for_rspec - end - - def described_class - self.class.described_class - end - - def description_args - self.class.description_args - end - - def example_group_hierarchy - self.class.example_group_hierarchy - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_proxy.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_proxy.rb deleted file mode 100644 index f726d0e7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/example_proxy.rb +++ /dev/null @@ -1,41 +0,0 @@ -module Spec - module Example - # Lightweight proxy for an example. This is the object that is passed to - # example-related methods in Spec::Runner::Formatter::BaseFormatter - class ExampleProxy - - def initialize(description=nil, options={}, location=nil) # :nodoc: - @description, @options, @location = description, options, location - end - - # Optional hash passed to the example declaration - attr_reader :options - - # This is the docstring passed to the it() method or any - # of its aliases - attr_reader :description - - # The file and line number at which the represented example - # was declared. This is extracted from caller, and is therefore - # formatted as an individual line in a backtrace. - attr_reader :location - - # Deprecated - use location() - def backtrace - Spec.deprecate("ExampleProxy#backtrace","ExampleProxy#location") - location - end - - # Convenience method for example group - updates the value of - # description and returns self. - def update(description) # :nodoc: - @description = description - self - end - - def ==(other) # :nodoc: - (other.description == description) & (other.location == location) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/module_reopening_fix.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/module_reopening_fix.rb deleted file mode 100644 index 9ea088a2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/module_reopening_fix.rb +++ /dev/null @@ -1,43 +0,0 @@ -module Spec - module Example - # When you reopen a module that is included in another module that is included in a class, - # the new material you define does not make it to the class. This fixes that. - # - # == Example - # - # module M1; end - # - # module M2 - # def foo; "FOO"; end - # end - # - # class C - # include M1 - # end - # - # module M1 - # include M2 - # end - # - # c = C.new - # c.foo - # NoMethodError: undefined method `foo' for # - # from (irb):12 - module ModuleReopeningFix - def child_modules - @child_modules ||= [] - end - - def included(mod) - child_modules << mod - end - - def include(mod) - super - child_modules.each do |child_module| - child_module.__send__(:include, mod) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/pending.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/pending.rb deleted file mode 100644 index 9aad1aab..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/pending.rb +++ /dev/null @@ -1,18 +0,0 @@ -module Spec - module Example - module Pending - def pending(message = "TODO") - if block_given? - begin - yield - rescue Exception - raise Spec::Example::ExamplePendingError.new(message) - end - raise Spec::Example::PendingExampleFixedError.new("Expected pending '#{message}' to fail. No Error was raised.") - else - raise Spec::Example::ExamplePendingError.new(message) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/predicate_matchers.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/predicate_matchers.rb deleted file mode 100644 index c3c31951..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/predicate_matchers.rb +++ /dev/null @@ -1,46 +0,0 @@ -module Spec - module Example - module PredicateMatchers - # :call-seq: - # predicate_matchers[matcher_name] = method_on_object - # predicate_matchers[matcher_name] = [method1_on_object, method2_on_object] - # - # Dynamically generates a custom matcher that will match - # a predicate on your class. RSpec provides a couple of these - # out of the box: - # - # exist (for state expectations) - # File.should exist("path/to/file") - # - # an_instance_of (for mock argument matchers) - # mock.should_receive(:message).with(an_instance_of(String)) - # - # == Examples - # - # class Fish - # def can_swim? - # true - # end - # end - # - # describe Fish do - # predicate_matchers[:swim] = :can_swim? - # it "should swim" do - # Fish.new.should swim - # end - # end - def predicate_matchers - @predicate_matchers ||= Spec::HashWithDeprecationNotice.new("predicate_matchers", "the new Matcher DSL") - end - - def define_methods_from_predicate_matchers # :nodoc: - predicate_matchers.each_pair do |matcher_method, method_on_object| - define_method matcher_method do |*args| - eval("be_#{method_on_object.to_s.gsub('?','')}(*args)") - end - end - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/shared_example_group.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/shared_example_group.rb deleted file mode 100644 index 33694491..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/shared_example_group.rb +++ /dev/null @@ -1,59 +0,0 @@ -module Spec - module Example - class SharedExampleGroup < Module - module ClassMethods - def register(*args, &block) - new_example_group = new(*args, &block) - shared_example_groups << new_example_group unless already_registered?(new_example_group) - new_example_group - end - - def find(example_group_description) - shared_example_groups.find {|b| b.description == example_group_description} - end - - def clear - shared_example_groups.clear - end - - def include?(group) - shared_example_groups.include?(group) - end - - def count - shared_example_groups.length - end - - private - - def shared_example_groups - @shared_example_groups ||= [] - end - - def already_registered?(new_example_group) - existing_example_group = find(new_example_group.description) - return false unless existing_example_group - return true if new_example_group.equal?(existing_example_group) - return true if expanded_path(new_example_group) == expanded_path(existing_example_group) - raise ArgumentError.new("Shared Example '#{existing_example_group.description}' already exists") - end - - def expanded_path(example_group) - File.expand_path(example_group.location) - end - end - - extend ClassMethods - include ExampleGroupMethods - - def initialize(*args, &example_group_block) - set_description(*args) - @example_group_block = example_group_block - end - - def included(mod) # :nodoc: - mod.module_eval(&@example_group_block) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/subject.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/example/subject.rb deleted file mode 100644 index 944edca4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/example/subject.rb +++ /dev/null @@ -1,108 +0,0 @@ -module Spec - module Example - module Subject - module ExampleGroupMethods - # Defines an explicit subject for an example group which can then be the - # implicit receiver (through delegation) of calls to +should+. - # - # == Examples - # - # describe CheckingAccount, "with $50" do - # subject { CheckingAccount.new(:amount => 50, :currency => :USD) } - # it { should have_a_balance_of(50, :USD) } - # it { should_not be_overdrawn } - # its(:currency) { should == :USD } - # end - # - # See +ExampleMethods#should+ for more information about this approach. - def subject(&block) - block.nil? ? - explicit_subject || implicit_subject : @explicit_subject_block = block - end - - def its(attribute, &block) - describe(attribute) do - define_method(:subject) { super().send(attribute) } - it(&block) - end - end - - attr_reader :explicit_subject_block # :nodoc: - - private - - def explicit_subject - group = self - while group.respond_to?(:explicit_subject_block) - return group.explicit_subject_block if group.explicit_subject_block - group = group.superclass - end - end - - def implicit_subject - (described_class ? lambda {described_class.new} : lambda {description_args.first}) - end - end - - module ExampleMethods - - alias_method :__should_for_example_group__, :should - alias_method :__should_not_for_example_group__, :should_not - - # Returns the subject defined in ExampleGroupMethods#subject. The - # subject block is only executed once per example, the result of which - # is cached and returned by any subsequent calls to +subject+. - # - # If a class is passed to +describe+ and no subject is explicitly - # declared in the example group, then +subject+ will return a new - # instance of that class. - # - # == Examples - # - # # explicit subject defined by the subject method - # describe Person do - # subject { Person.new(:birthdate => 19.years.ago) } - # it "should be eligible to vote" do - # subject.should be_eligible_to_vote - # end - # end - # - # # implicit subject => { Person.new } - # describe Person do - # it "should be eligible to vote" do - # subject.should be_eligible_to_vote - # end - # end - def subject - @subject ||= instance_eval(&self.class.subject) - end - - # When +should+ is called with no explicit receiver, the call is - # delegated to the object returned by +subject+. Combined with - # an implicit subject (see +subject+), this supports very concise - # expressions. - # - # == Examples - # - # describe Person do - # it { should be_eligible_to_vote } - # end - def should(matcher=nil, message=nil) - self == subject ? self.__should_for_example_group__(matcher) : subject.should(matcher,message) - end - - # Just like +should+, +should_not+ delegates to the subject (implicit or - # explicit) of the example group. - # - # == Examples - # - # describe Person do - # it { should_not be_eligible_to_vote } - # end - def should_not(matcher=nil, message=nil) - self == subject ? self.__should_not_for_example_group__(matcher) : subject.should_not(matcher,message) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations.rb deleted file mode 100644 index 13cf59b2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'spec/matchers' -require 'spec/expectations/fail_with' -require 'spec/expectations/errors' -require 'spec/expectations/extensions' -require 'spec/expectations/handler' - -module Spec - - # Spec::Expectations lets you set expectations on your objects. - # - # result.should == 37 - # team.should have(11).players_on_the_field - # - # == How Expectations work. - # - # Spec::Expectations adds two methods to Object: - # - # should(matcher=nil) - # should_not(matcher=nil) - # - # Both methods take an optional Expression Matcher (See Spec::Matchers). - # - # When +should+ receives an Expression Matcher, it calls matches?(self). If - # it returns +true+, the spec passes and execution continues. If it returns - # +false+, then the spec fails with the message returned by matcher.failure_message. - # - # Similarly, when +should_not+ receives a matcher, it calls matches?(self). If - # it returns +false+, the spec passes and execution continues. If it returns - # +true+, then the spec fails with the message returned by matcher.negative_failure_message. - # - # RSpec ships with a standard set of useful matchers, and writing your own - # matchers is quite simple. See Spec::Matchers for details. - module Expectations - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/errors.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/errors.rb deleted file mode 100644 index 1fabd105..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/errors.rb +++ /dev/null @@ -1,12 +0,0 @@ -module Spec - module Expectations - # If Test::Unit is loaed, we'll use its error as baseclass, so that Test::Unit - # will report unmet RSpec expectations as failures rather than errors. - superclass = ['Test::Unit::AssertionFailedError', '::StandardError'].map do |c| - eval(c) rescue nil - end.compact.first - - class ExpectationNotMetError < superclass - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions.rb deleted file mode 100644 index d68212e4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions.rb +++ /dev/null @@ -1 +0,0 @@ -require 'spec/expectations/extensions/kernel' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb deleted file mode 100644 index 7d884922..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb +++ /dev/null @@ -1,52 +0,0 @@ -module Kernel - # :call-seq: - # should(matcher) - # should == expected - # should === expected - # should =~ expected - # - # receiver.should(matcher) - # => Passes if matcher.matches?(receiver) - # - # receiver.should == expected #any value - # => Passes if (receiver == expected) - # - # receiver.should === expected #any value - # => Passes if (receiver === expected) - # - # receiver.should =~ regexp - # => Passes if (receiver =~ regexp) - # - # See Spec::Matchers for more information about matchers - # - # == Warning - # - # NOTE that this does NOT support receiver.should != expected. - # Instead, use receiver.should_not == expected - def should(matcher=nil, message=nil, &block) - Spec::Expectations::PositiveExpectationHandler.handle_matcher(self, matcher, message, &block) - end - - # :call-seq: - # should_not(matcher) - # should_not == expected - # should_not === expected - # should_not =~ expected - # - # receiver.should_not(matcher) - # => Passes unless matcher.matches?(receiver) - # - # receiver.should_not == expected - # => Passes unless (receiver == expected) - # - # receiver.should_not === expected - # => Passes unless (receiver === expected) - # - # receiver.should_not =~ regexp - # => Passes unless (receiver =~ regexp) - # - # See Spec::Matchers for more information about matchers - def should_not(matcher=nil, message=nil, &block) - Spec::Expectations::NegativeExpectationHandler.handle_matcher(self, matcher, message, &block) - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/fail_with.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/fail_with.rb deleted file mode 100644 index 5e01f99d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/fail_with.rb +++ /dev/null @@ -1,45 +0,0 @@ -module Spec - module Expectations - class << self - attr_accessor :differ - - # raises a Spec::Expectations::ExpectationNotMetError with message - # - # When a differ has been assigned and fail_with is passed - # expected and target, passes them - # to the differ to append a diff message to the failure message. - def fail_with(message, expected=nil, target=nil) # :nodoc: - if message.nil? - raise ArgumentError, "Failure message is nil. Does your matcher define the " + - "appropriate failure_message_for_* method to return a string?" - end - if (Array === message) & (message.length == 3) - ::Spec.warn(<<-NOTICE - -***************************************************************** -DEPRECATION WARNING: you are using deprecated behaviour that will -be removed from a future version of RSpec. - -* Support for matchers that return arrays from failure message -methods is deprecated. -* Instead, the matcher should return a string, and expose methods -for the expected() and actual() values. -***************************************************************** -NOTICE - ) - message, expected, target = message[0], message[1], message[2] - end - unless (differ.nil? || expected.nil? || target.nil?) - if expected.is_a?(String) - message << "\n\n Diff:" << self.differ.diff_as_string(target.to_s, expected) - elsif expected.is_a?(Hash) && target.is_a?(Hash) - message << "\n\n Diff:" << self.differ.diff_as_hash(target, expected) - elsif !target.is_a?(Proc) - message << "\n\n Diff:" << self.differ.diff_as_object(target, expected) - end - end - Kernel::raise(Spec::Expectations::ExpectationNotMetError.new(message)) - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/handler.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/handler.rb deleted file mode 100644 index c059637c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/expectations/handler.rb +++ /dev/null @@ -1,50 +0,0 @@ -module Spec - module Expectations - class InvalidMatcherError < ArgumentError; end - - class PositiveExpectationHandler - def self.handle_matcher(actual, matcher, message=nil, &block) - ::Spec::Matchers.last_should = :should - ::Spec::Matchers.last_matcher = matcher - return ::Spec::Matchers::PositiveOperatorMatcher.new(actual) if matcher.nil? - - match = matcher.matches?(actual, &block) - return match if match - - message ||= matcher.respond_to?(:failure_message_for_should) ? - matcher.failure_message_for_should : - matcher.failure_message - - if matcher.respond_to?(:diffable?) && matcher.diffable? - ::Spec::Expectations.fail_with message, matcher.expected.first, matcher.actual - else - ::Spec::Expectations.fail_with message - end - end - end - - class NegativeExpectationHandler - def self.handle_matcher(actual, matcher, message=nil, &block) - ::Spec::Matchers.last_should = :should_not - ::Spec::Matchers.last_matcher = matcher - return ::Spec::Matchers::NegativeOperatorMatcher.new(actual) if matcher.nil? - - match = matcher.respond_to?(:does_not_match?) ? - !matcher.does_not_match?(actual, &block) : - matcher.matches?(actual, &block) - return match unless match - - message ||= matcher.respond_to?(:failure_message_for_should_not) ? - matcher.failure_message_for_should_not : - matcher.negative_failure_message - - if matcher.respond_to?(:diffable?) && matcher.diffable? - ::Spec::Expectations.fail_with message, matcher.expected.first, matcher.actual - else - ::Spec::Expectations.fail_with message - end - end - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test.rb deleted file mode 100644 index 284eb32c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test.rb +++ /dev/null @@ -1,44 +0,0 @@ -require 'spec' - -if Spec::Ruby.version.to_f >= 1.9 - gem 'test-unit','= 1.2.3' -end - -require 'test/unit' - -if Spec::Ruby.version.to_f >= 1.9 - require 'test/unit/version' - if Test::Unit::VERSION > '1.2.3' - raise <<-MESSAGE -#{'*' * 50} -Required: test-unit-1.2.3 -Loaded: test-unit-#{Test::Unit::VERSION} - -With ruby-1.9, rspec-#{Spec::VERSION::STRING} requires test-unit-1.2.3, and -tries to force it with "gem 'test-unit', '= 1.2.3'" in: - - #{__FILE__} - -Unfortunately, test-unit-#{Test::Unit::VERSION} was loaded anyway. While we are -aware of this bug we have not been able to track down its source. -Until we do, you have two alternatives: - -* uninstall test-unit-2.0.3 -* use 'script/spec' instead of 'rake spec' -#{'*' * 50} -MESSAGE - end -end - - -require 'test/unit/testresult' - -require 'spec/interop/test/unit/testcase' -require 'spec/interop/test/unit/testsuite_adapter' -require 'spec/interop/test/unit/autorunner' -require 'spec/interop/test/unit/testresult' -require 'spec/interop/test/unit/ui/console/testrunner' - -Spec::Example::ExampleGroupFactory.default(Test::Unit::TestCase) - -Test::Unit.run = true diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/autorunner.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/autorunner.rb deleted file mode 100644 index 3944e699..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/autorunner.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Test::Unit::AutoRunner - remove_method :process_args - def process_args(argv) - true - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testcase.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testcase.rb deleted file mode 100644 index dc10a2a6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testcase.rb +++ /dev/null @@ -1,56 +0,0 @@ -require 'test/unit/testcase' - -module Test - module Unit - # This extension of the standard Test::Unit::TestCase makes RSpec - # available from within, so that you can do things like: - # - # require 'spec/test/unit' - # - # class MyTest < Test::Unit::TestCase - # it "should work with Test::Unit assertions" do - # assert_equal 4, 2+1 - # end - # - # def test_should_work_with_rspec_expectations - # (3+1).should == 5 - # end - # end - # - # See also Spec::Example::ExampleGroup - class TestCase - extend Spec::Example::ExampleGroupMethods - include Spec::Example::ExampleMethods - - def self.suite - Test::Unit::TestSuiteAdapter.new(self) - end - - def self.example_method?(method_name) - should_method?(method_name) || test_method?(method_name) - end - - def self.test_method?(method_name) - method_name =~ /^test./ && ( - instance_method(method_name).arity == 0 || - instance_method(method_name).arity == -1 - ) - end - - before(:each) {setup} - after(:each) {teardown} - - def initialize(description, &implementation) - super - # Some Test::Unit extensions depend on @method_name being present. - @method_name = description.description - @_result = ::Test::Unit::TestResult.new - end - - def run(ignore_this_argument=nil) - super() - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testresult.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testresult.rb deleted file mode 100644 index dddcfe86..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testresult.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Test::Unit::TestResult - alias_method :tu_passed?, :passed? - def passed? - return tu_passed? & ::Spec::Runner.run - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testsuite_adapter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testsuite_adapter.rb deleted file mode 100644 index 912762f1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/testsuite_adapter.rb +++ /dev/null @@ -1,34 +0,0 @@ -module Test - module Unit - class TestSuiteAdapter < TestSuite - attr_reader :example_group, :examples - alias_method :tests, :examples - def initialize(example_group) - @example_group = example_group - @examples = example_group.examples - end - - def name - example_group.description - end - - def run(*args) - return true unless args.empty? - example_group.run(Spec::Runner.options) - end - - def size - example_group.number_of_examples - end - - def delete(example) - examples.delete example - end - - def empty? - examples.empty? - end - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/ui/console/testrunner.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/ui/console/testrunner.rb deleted file mode 100644 index 8e9995e0..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test/unit/ui/console/testrunner.rb +++ /dev/null @@ -1,61 +0,0 @@ -require 'test/unit/ui/console/testrunner' - -module Test - module Unit - module UI - module Console - class TestRunner - - alias_method :started_without_rspec, :started - def started_with_rspec(result) - @result = result - @need_to_output_started = true - end - alias_method :started, :started_with_rspec - - alias_method :test_started_without_rspec, :test_started - def test_started_with_rspec(name) - if @need_to_output_started - if @rspec_io - @rspec_io.rewind - output(@rspec_io.read) - end - output("Started") - @need_to_output_started = false - end - test_started_without_rspec(name) - end - alias_method :test_started, :test_started_with_rspec - - alias_method :test_finished_without_rspec, :test_finished - def test_finished_with_rspec(name) - test_finished_without_rspec(name) - @ran_test = true - end - alias_method :test_finished, :test_finished_with_rspec - - alias_method :finished_without_rspec, :finished - def finished_with_rspec(elapsed_time) - @ran_test ||= false - if @ran_test - finished_without_rspec(elapsed_time) - end - end - alias_method :finished, :finished_with_rspec - - alias_method :setup_mediator_without_rspec, :setup_mediator - def setup_mediator_with_rspec - orig_io = @io - @io = StringIO.new - setup_mediator_without_rspec - ensure - @rspec_io = @io - @io = orig_io - end - alias_method :setup_mediator, :setup_mediator_with_rspec - - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers.rb deleted file mode 100644 index 4ef83293..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers.rb +++ /dev/null @@ -1,195 +0,0 @@ -require 'spec/matchers/extensions/instance_exec' -require 'spec/matchers/pretty' -require 'spec/matchers/matcher' -require 'spec/matchers/operator_matcher' -require 'spec/matchers/be' -require 'spec/matchers/be_close' -require 'spec/matchers/be_instance_of' -require 'spec/matchers/be_kind_of' -require 'spec/matchers/change' -require 'spec/matchers/eql' -require 'spec/matchers/equal' -require 'spec/matchers/errors' -require 'spec/matchers/exist' -require 'spec/matchers/generated_descriptions' -require 'spec/matchers/has' -require 'spec/matchers/have' -require 'spec/matchers/include' -require 'spec/matchers/match' -require 'spec/matchers/match_array' -require 'spec/matchers/method_missing' -require 'spec/matchers/raise_error' -require 'spec/matchers/respond_to' -require 'spec/matchers/satisfy' -require 'spec/matchers/simple_matcher' -require 'spec/matchers/throw_symbol' -require 'spec/matchers/wrap_expectation' -require 'spec/matchers/compatibility' -require 'spec/matchers/dsl' - -module Spec - - # RSpec ships with a number of useful Expression Matchers. An Expression Matcher - # is any object that responds to the following methods: - # - # matches?(actual) - # failure_message_for_should - # - # These methods are also part of the matcher protocol, but are optional: - # - # does_not_match?(actual) - # failure_message_for_should_not - # description #optional - # - # These methods are from older versions of the protocol. They are still supported, - # but are not recommended: - # - # failure_message (use failure_message_for_should instead) - # negative_failure_message (use failure_message_for_should_not instead) - # - # See Spec::Expectations to learn how to use these as Expectation Matchers. - # - # == Predicates - # - # In addition to those Expression Matchers that are defined explicitly, RSpec will - # create custom Matchers on the fly for any arbitrary predicate, giving your specs - # a much more natural language feel. - # - # A Ruby predicate is a method that ends with a "?" and returns true or false. - # Common examples are +empty?+, +nil?+, and +instance_of?+. - # - # All you need to do is write +should be_+ followed by the predicate without - # the question mark, and RSpec will figure it out from there. For example: - # - # [].should be_empty => [].empty? #passes - # [].should_not be_empty => [].empty? #fails - # - # In addtion to prefixing the predicate matchers with "be_", you can also use "be_a_" - # and "be_an_", making your specs read much more naturally: - # - # "a string".should be_an_instance_of(String) =>"a string".instance_of?(String) #passes - # - # 3.should be_a_kind_of(Fixnum) => 3.kind_of?(Numeric) #passes - # 3.should be_a_kind_of(Numeric) => 3.kind_of?(Numeric) #passes - # 3.should be_an_instance_of(Fixnum) => 3.instance_of?(Fixnum) #passes - # 3.should_not be_instance_of(Numeric) => 3.instance_of?(Numeric) #fails - # - # RSpec will also create custom matchers for predicates like +has_key?+. To - # use this feature, just state that the object should have_key(:key) and RSpec will - # call has_key?(:key) on the target. For example: - # - # {:a => "A"}.should have_key(:a) => {:a => "A"}.has_key?(:a) #passes - # {:a => "A"}.should have_key(:b) => {:a => "A"}.has_key?(:b) #fails - # - # You can use this feature to invoke any predicate that begins with "has_", whether it is - # part of the Ruby libraries (like +Hash#has_key?+) or a method you wrote on your own class. - # - # == Custom Matchers - # - # When you find that none of the stock Expectation Matchers provide a natural - # feeling expectation, you can very easily write your own using RSpec's matcher - # DSL or writing one from scratch. - # - # === Matcher DSL - # - # Imagine that you are writing a game in which players can be in various - # zones on a virtual board. To specify that bob should be in zone 4, you - # could say: - # - # bob.current_zone.should eql(Zone.new("4")) - # - # But you might find it more expressive to say: - # - # bob.should be_in_zone("4") - # - # and/or - # - # bob.should_not be_in_zone("3") - # - # You can create such a matcher like so: - # - # Spec::Matchers.define :be_in_zone do |zone| - # match do |player| - # player.in_zone?(zone) - # end - # end - # - # This will generate a be_in_zone method that returns a matcher - # with logical default messages for failures. You can override the failure - # messages and the generated description as follows: - # - # Spec::Matchers.define :be_in_zone do |zone| - # match do |player| - # player.in_zone?(zone) - # end - # failure_message_for_should do |player| - # # generate and return the appropriate string. - # end - # failure_message_for_should_not do |player| - # # generate and return the appropriate string. - # end - # description do - # # generate and return the appropriate string. - # end - # end - # - # Each of the message-generation methods has access to the block arguments - # passed to the create method (in this case, zone). The - # failure message methods (failure_message_for_should and - # failure_message_for_should_not) are passed the actual value (the - # receiver of should or should_not). - # - # === Custom Matcher from scratch - # - # You could also write a custom matcher from scratch, as follows: - # - # class BeInZone - # def initialize(expected) - # @expected = expected - # end - # def matches?(target) - # @target = target - # @target.current_zone.eql?(Zone.new(@expected)) - # end - # def failure_message_for_should - # "expected #{@target.inspect} to be in Zone #{@expected}" - # end - # def failure_message_for_should_not - # "expected #{@target.inspect} not to be in Zone #{@expected}" - # end - # end - # - # ... and a method like this: - # - # def be_in_zone(expected) - # BeInZone.new(expected) - # end - # - # And then expose the method to your specs. This is normally done - # by including the method and the class in a module, which is then - # included in your spec: - # - # module CustomGameMatchers - # class BeInZone - # ... - # end - # - # def be_in_zone(expected) - # ... - # end - # end - # - # describe "Player behaviour" do - # include CustomGameMatchers - # ... - # end - # - # or you can include in globally in a spec_helper.rb file required - # from your spec file(s): - # - # Spec::Runner.configure do |config| - # config.include(CustomGameMatchers) - # end - # - module Matchers; end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be.rb deleted file mode 100644 index 242f7c5c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be.rb +++ /dev/null @@ -1,210 +0,0 @@ -module Spec - module Matchers - - class Be #:nodoc: - include Spec::Matchers::Pretty - - def initialize(*args) - @expected = args.empty? ? true : set_expected(args.shift) - @args = args - @comparison_method = nil - end - - def matches?(actual) - @actual = actual - handling_predicate? ? run_predicate_on(actual) : match_or_compare(actual) - end - - def run_predicate_on(actual) - begin - return @result = actual.__send__(predicate, *@args) - rescue NameError => predicate_missing_error - "this needs to be here or rcov will not count this branch even though it's executed in a code example" - end - - begin - return @result = actual.__send__(present_tense_predicate, *@args) - rescue NameError - raise predicate_missing_error - end - end - - def failure_message_for_should - if handling_predicate? - if predicate == :nil? - "expected nil, got #{@actual.inspect}" - else - "expected #{predicate}#{args_to_s} to return true, got #{@result.inspect}" - end - else - "expected #{@comparison_method} #{expected}, got #{@actual.inspect}".gsub(' ',' ') - end - end - - def failure_message_for_should_not - if handling_predicate? - if predicate == :nil? - "expected not nil, got nil" - else - "expected #{predicate}#{args_to_s} to return false, got #{@result.inspect}" - end - else - message = <<-MESSAGE -'should_not be #{@comparison_method} #{expected}' not only FAILED, -it is a bit confusing. - MESSAGE - - raise message << ([:===,:==].include?(@comparison_method) ? - "It might be more clearly expressed without the \"be\"?" : - "It might be more clearly expressed in the positive?") - end - end - - def description - "#{prefix_to_sentence}#{comparison} #{expected_to_sentence}#{args_to_sentence}".gsub(/\s+/,' ') - end - - [:==, :<, :<=, :>=, :>, :===].each do |method| - define_method method do |expected| - compare_to(expected, :using => method) - self - end - end - - private - def match_or_compare(actual) - TrueClass === @expected ? @actual : @actual.__send__(comparison_method, @expected) - end - - def comparison_method - @comparison_method || :equal? - end - - def expected - @expected - end - - def compare_to(expected, opts) - @expected, @comparison_method = expected, opts[:using] - end - - def set_expected(expected) - Symbol === expected ? parse_expected(expected) : expected - end - - def parse_expected(expected) - ["be_an_","be_a_","be_"].each do |prefix| - handling_predicate! - if expected.to_s =~ /^#{prefix}/ - set_prefix(prefix) - expected = expected.to_s.sub(prefix,"") - [true, false, nil].each do |val| - return val if val.to_s == expected - end - return expected.to_sym - end - end - end - - def set_prefix(prefix) - @prefix = prefix - end - - def prefix - # FIXME - this is a bit goofy - but we get failures - # if just defining @prefix = nil in initialize - @prefix = nil unless defined?(@prefix) - @prefix - end - - def handling_predicate! - @handling_predicate = true - end - - def handling_predicate? - return false if [true, false, nil].include?(expected) - # FIXME - this is a bit goofy - but we get failures - # if just defining @handling_predicate = nil or false in initialize - return defined?(@handling_predicate) ? @handling_predicate : nil - end - - def predicate - "#{@expected.to_s}?".to_sym - end - - def present_tense_predicate - "#{@expected.to_s}s?".to_sym - end - - def args_to_s - @args.empty? ? "" : parenthesize(inspected_args.join(', ')) - end - - def parenthesize(string) - return "(#{string})" - end - - def inspected_args - @args.collect{|a| a.inspect} - end - - def comparison - @comparison_method.nil? ? " " : "be #{@comparison_method.to_s} " - end - - def expected_to_sentence - split_words(expected) - end - - def prefix_to_sentence - split_words(prefix) - end - - def args_to_sentence - to_sentence(@args) - end - - end - - # :call-seq: - # should be_true - # should be_false - # should be_nil - # should be_[arbitrary_predicate](*args) - # should_not be_nil - # should_not be_[arbitrary_predicate](*args) - # - # Given true, false, or nil, will pass if actual value is - # true, false or nil (respectively). Given no args means - # the caller should satisfy an if condition (to be or not to be). - # - # Predicates are any Ruby method that ends in a "?" and returns true or false. - # Given be_ followed by arbitrary_predicate (without the "?"), RSpec will match - # convert that into a query against the target object. - # - # The arbitrary_predicate feature will handle any predicate - # prefixed with "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) - # or "be_" (e.g. be_empty), letting you choose the prefix that best suits the predicate. - # - # == Examples - # - # target.should be_true - # target.should be_false - # target.should be_nil - # target.should_not be_nil - # - # collection.should be_empty #passes if target.empty? - # target.should_not be_empty #passes unless target.empty? - # target.should_not be_old_enough(16) #passes unless target.old_enough?(16) - def be(*args) - Matchers::Be.new(*args) - end - - # passes if target.kind_of?(klass) - def be_a(klass) - be_a_kind_of(klass) - end - - alias_method :be_an, :be_a - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_close.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_close.rb deleted file mode 100644 index 28015f5f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_close.rb +++ /dev/null @@ -1,32 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should be_close(expected, delta) - # should_not be_close(expected, delta) - # - # Passes if actual == expected +/- delta - # - # == Example - # - # result.should be_close(3.0, 0.5) - def be_close(expected, delta) - Matcher.new :be_close, expected, delta do |_expected_, _delta_| - match do |actual| - (actual - _expected_).abs < _delta_ - end - - failure_message_for_should do |actual| - "expected #{_expected_} +/- (< #{_delta_}), got #{actual}" - end - - failure_message_for_should_not do |actual| - "expected #{_expected_} +/- (< #{_delta_}), got #{actual}" - end - - description do - "be close to #{_expected_} (within +- #{_delta_})" - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_instance_of.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_instance_of.rb deleted file mode 100644 index ffc23840..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_instance_of.rb +++ /dev/null @@ -1,26 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should be_instance_of(expected) - # should be_an_instance_of(expected) - # should_not be_instance_of(expected) - # should_not be_an_instance_of(expected) - # - # Passes if actual.instance_of?(expected) - # - # == Examples - # - # 5.should be_instance_of(Fixnum) - # 5.should_not be_instance_of(Numeric) - # 5.should_not be_instance_of(Float) - def be_an_instance_of(expected) - Matcher.new :be_an_instance_of, expected do |_expected_| - match do |actual| - actual.instance_of?(_expected_) - end - end - end - - alias_method :be_instance_of, :be_an_instance_of - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_kind_of.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_kind_of.rb deleted file mode 100644 index 6a1fddc1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/be_kind_of.rb +++ /dev/null @@ -1,26 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should be_kind_of(expected) - # should be_a_kind_of(expected) - # should_not be_kind_of(expected) - # should_not be_a_kind_of(expected) - # - # Passes if actual.kind_of?(expected) - # - # == Examples - # - # 5.should be_kind_of(Fixnum) - # 5.should be_kind_of(Numeric) - # 5.should_not be_kind_of(Float) - def be_a_kind_of(expected) - Matcher.new :be_a_kind_of, expected do |_expected_| - match do |actual| - actual.kind_of?(_expected_) - end - end - end - - alias_method :be_kind_of, :be_a_kind_of - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/change.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/change.rb deleted file mode 100644 index c8ab9e5c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/change.rb +++ /dev/null @@ -1,151 +0,0 @@ -module Spec - module Matchers - - #Based on patch from Wilson Bilkovich - class Change #:nodoc: - def initialize(receiver=nil, message=nil, &block) - @message = message || "result" - @value_proc = block || lambda {receiver.__send__(message)} - @to = @from = @minimum = @maximum = @amount = nil - end - - def matches?(event_proc) - raise_block_syntax_error if block_given? - - @before = evaluate_value_proc - event_proc.call - @after = evaluate_value_proc - - return (@to = false) if @from unless @from == @before - return false if @to unless @to == @after - return (@before + @amount == @after) if @amount - return ((@after - @before) >= @minimum) if @minimum - return ((@after - @before) <= @maximum) if @maximum - return @before != @after - end - - def raise_block_syntax_error - raise MatcherError.new(<<-MESSAGE -block passed to should or should_not change must use {} instead of do/end -MESSAGE - ) - end - - def evaluate_value_proc - @value_proc.call - end - - def failure_message_for_should - if @to - "#{@message} should have been changed to #{@to.inspect}, but is now #{@after.inspect}" - elsif @from - "#{@message} should have initially been #{@from.inspect}, but was #{@before.inspect}" - elsif @amount - "#{@message} should have been changed by #{@amount.inspect}, but was changed by #{actual_delta.inspect}" - elsif @minimum - "#{@message} should have been changed by at least #{@minimum.inspect}, but was changed by #{actual_delta.inspect}" - elsif @maximum - "#{@message} should have been changed by at most #{@maximum.inspect}, but was changed by #{actual_delta.inspect}" - else - "#{@message} should have changed, but is still #{@before.inspect}" - end - end - - def actual_delta - @after - @before - end - - def failure_message_for_should_not - "#{@message} should not have changed, but did change from #{@before.inspect} to #{@after.inspect}" - end - - def by(amount) - @amount = amount - self - end - - def by_at_least(minimum) - @minimum = minimum - self - end - - def by_at_most(maximum) - @maximum = maximum - self - end - - def to(to) - @to = to - self - end - - def from (from) - @from = from - self - end - - def description - "change ##{@message}" - end - end - - # :call-seq: - # should change(receiver, message, &block) - # should change(receiver, message, &block).by(value) - # should change(receiver, message, &block).from(old).to(new) - # should_not change(receiver, message, &block) - # - # Allows you to specify that a Proc will cause some value to change. - # - # == Examples - # - # lambda { - # team.add_player(player) - # }.should change(roster, :count) - # - # lambda { - # team.add_player(player) - # }.should change(roster, :count).by(1) - # - # lambda { - # team.add_player(player) - # }.should change(roster, :count).by_at_least(1) - # - # lambda { - # team.add_player(player) - # }.should change(roster, :count).by_at_most(1) - # - # string = "string" - # lambda { - # string.reverse! - # }.should change { string }.from("string").to("gnirts") - # - # lambda { - # person.happy_birthday - # }.should change(person, :birthday).from(32).to(33) - # - # lambda { - # employee.develop_great_new_social_networking_app - # }.should change(employee, :title).from("Mail Clerk").to("CEO") - # - # Evaluates receiver.message or block before and after - # it evaluates the c object (generated by the lambdas in the examples - # above). - # - # Then compares the values before and after the receiver.message - # and evaluates the difference compared to the expected difference. - # - # == WARNING - # should_not change only supports the form with no - # subsequent calls to by, by_at_least, - # by_at_most, to or from. - # - # blocks passed to should change and should_not - # change must use the {} form (do/end is not - # supported). - # - def change(receiver=nil, message=nil, &block) - Matchers::Change.new(receiver, message, &block) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb deleted file mode 100644 index 3b3ddb9b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb +++ /dev/null @@ -1,14 +0,0 @@ -Spec::Matchers.constants.each do |c| - if Class === (klass = Spec::Matchers.const_get(c)) - if klass.public_instance_methods.any? {|m| ['failure_message_for_should',:failure_message_for_should].include?(m)} - klass.class_eval do - alias_method :failure_message, :failure_message_for_should - end - end - if klass.public_instance_methods.any? {|m| ['failure_message_for_should_not',:failure_message_for_should_not].include?(m)} - klass.class_eval do - alias_method :negative_failure_message, :failure_message_for_should_not - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/dsl.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/dsl.rb deleted file mode 100644 index 73f36345..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/dsl.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Spec - module Matchers - module DSL - # See Spec::Matchers - def define(name, &declarations) - define_method name do |*expected| - Spec::Matchers::Matcher.new name, *expected, &declarations - end - end - - # Deprecated - use define - def create(name, &declarations) - Spec.deprecate("Spec::Matchers.create","Spec::Matchers.define") - define(name, &declarations) - end - end - end -end - -Spec::Matchers.extend Spec::Matchers::DSL diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/eql.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/eql.rb deleted file mode 100644 index 98ab198d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/eql.rb +++ /dev/null @@ -1,42 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should eql(expected) - # should_not eql(expected) - # - # Passes if actual and expected are of equal value, but not necessarily the same object. - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby. - # - # == Examples - # - # 5.should eql(5) - # 5.should_not eql(3) - def eql(expected) - Matcher.new :eql, expected do |_expected_| - match do |actual| - actual.eql?(_expected_) - end - - failure_message_for_should do |actual| - <<-MESSAGE - -expected #{_expected_.inspect} - got #{actual.inspect} - -(compared using eql?) -MESSAGE - end - - failure_message_for_should_not do |actual| - <<-MESSAGE - -expected #{actual.inspect} not to equal #{_expected_.inspect} - -(compared using eql?) -MESSAGE - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/equal.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/equal.rb deleted file mode 100644 index 3580a95a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/equal.rb +++ /dev/null @@ -1,53 +0,0 @@ -module Spec - module Matchers - - # :call-seq: - # should equal(expected) - # should_not equal(expected) - # - # Passes if actual and expected are the same object (object identity). - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby. - # - # == Examples - # - # 5.should equal(5) #Fixnums are equal - # "5".should_not equal("5") #Strings that look the same are not the same object - def equal(expected) - Matcher.new :equal, expected do |_expected_| - match do |actual| - actual.equal?(_expected_) - end - - def inspect_object(o) - "#<#{o.class}:#{o.object_id}> => #{o.inspect}" - end - - failure_message_for_should do |actual| - <<-MESSAGE - -expected #{inspect_object(_expected_)} - got #{inspect_object(actual)} - -Compared using equal?, which compares object identity, -but expected and actual are not the same object. Use -'actual.should == expected' if you don't care about -object identity in this example. - -MESSAGE - end - - failure_message_for_should_not do |actual| - <<-MESSAGE - -expected not #{inspect_object(actual)} - got #{inspect_object(_expected_)} - -Compared using equal?, which compares object identity. - -MESSAGE - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/errors.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/errors.rb deleted file mode 100644 index 49c26779..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/errors.rb +++ /dev/null @@ -1,5 +0,0 @@ -module Spec - module Matchers - class MatcherError < StandardError; end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb deleted file mode 100644 index dc69c683..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb +++ /dev/null @@ -1,16 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should exist - # should_not exist - # - # Passes if actual.exist? - def exist(arg=nil) - Matcher.new :exist do - match do |actual| - arg ? actual.exist?(arg) : actual.exist? - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/extensions/instance_exec.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/extensions/instance_exec.rb deleted file mode 100644 index ca7e14ea..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/extensions/instance_exec.rb +++ /dev/null @@ -1,31 +0,0 @@ -module Spec - module Matchers - module InstanceExec - unless respond_to?(:instance_exec) - # based on Bounded Spec InstanceExec (Mauricio Fernandez) - # http://eigenclass.org/hiki/bounded+space+instance_exec - # - uses singleton_class of matcher instead of global - # InstanceExecHelper module - # - this keeps it scoped to this class only, which is the - # only place we need it - # - only necessary for ruby 1.8.6 - def instance_exec(*args, &block) - singleton_class = (class << self; self; end) - begin - orig_critical, Thread.critical = Thread.critical, true - n = 0 - n += 1 while respond_to?(method_name="__instance_exec#{n}") - singleton_class.module_eval{ define_method(:__instance_exec, &block) } - ensure - Thread.critical = orig_critical - end - begin - return send(:__instance_exec, *args) - ensure - singleton_class.module_eval{ remove_method(:__instance_exec) } rescue nil - end - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/generated_descriptions.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/generated_descriptions.rb deleted file mode 100644 index 2340f57d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/generated_descriptions.rb +++ /dev/null @@ -1,36 +0,0 @@ -module Spec - module Matchers - class << self - attr_accessor :last_matcher, :last_should # :nodoc: - end - - def self.clear_generated_description - self.last_matcher = nil - self.last_should = nil - end - - def self.generated_description - return nil if last_should.nil? - "#{last_should.to_s.gsub('_',' ')} #{last_description}" - end - - private - - def self.last_description - last_matcher.respond_to?(:description) ? last_matcher.description : <<-MESSAGE -When you call a matcher in an example without a String, like this: - -specify { object.should matcher } - -or this: - -it { should matcher } - -RSpec expects the matcher to have a #description method. You should either -add a String to the example this matcher is being used in, or give it a -description method. Then you won't have to suffer this lengthy warning again. -MESSAGE - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/has.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/has.rb deleted file mode 100644 index 7073e0a8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/has.rb +++ /dev/null @@ -1,35 +0,0 @@ -module Spec - module Matchers - - class Has - - def initialize(expected, *args) - @expected, @args = expected, args - end - - def matches?(actual) - actual.__send__(predicate(@expected), *@args) - end - - def failure_message_for_should - "expected ##{predicate(@expected)}(#{@args[0].inspect}) to return true, got false" - end - - def failure_message_for_should_not - "expected ##{predicate(@expected)}(#{@args[0].inspect}) to return false, got true" - end - - def description - "have key #{@args[0].inspect}" - end - - private - - def predicate(sym) - "#{sym.to_s.sub("have_","has_")}?".to_sym - end - - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/have.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/have.rb deleted file mode 100644 index 2975ee12..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/have.rb +++ /dev/null @@ -1,151 +0,0 @@ -module Spec - module Matchers - class Have #:nodoc: - def initialize(expected, relativity=:exactly) - @expected = (expected == :no ? 0 : expected) - @relativity = relativity - @actual = nil - end - - def relativities - @relativities ||= { - :exactly => "", - :at_least => "at least ", - :at_most => "at most " - } - end - - def matches?(collection_owner) - if collection_owner.respond_to?(@collection_name) - collection = collection_owner.__send__(@collection_name, *@args, &@block) - elsif (@plural_collection_name && collection_owner.respond_to?(@plural_collection_name)) - collection = collection_owner.__send__(@plural_collection_name, *@args, &@block) - elsif (collection_owner.respond_to?(:length) || collection_owner.respond_to?(:size)) - collection = collection_owner - else - collection_owner.__send__(@collection_name, *@args, &@block) - end - @actual = collection.size if collection.respond_to?(:size) - @actual = collection.length if collection.respond_to?(:length) - raise not_a_collection if @actual.nil? - return @actual >= @expected if @relativity == :at_least - return @actual <= @expected if @relativity == :at_most - return @actual == @expected - end - - def not_a_collection - "expected #{@collection_name} to be a collection but it does not respond to #length or #size" - end - - def failure_message_for_should - "expected #{relative_expectation} #{@collection_name}, got #{@actual}" - end - - def failure_message_for_should_not - if @relativity == :exactly - return "expected target not to have #{@expected} #{@collection_name}, got #{@actual}" - elsif @relativity == :at_most - return <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_most(#{@expected}).#{@collection_name} -We recommend that you use this instead: - should have_at_least(#{@expected + 1}).#{@collection_name} -EOF - elsif @relativity == :at_least - return <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_least(#{@expected}).#{@collection_name} -We recommend that you use this instead: - should have_at_most(#{@expected - 1}).#{@collection_name} -EOF - end - end - - def description - "have #{relative_expectation} #{@collection_name}" - end - - def respond_to?(sym) - @expected.respond_to?(sym) || super - end - - private - - def method_missing(sym, *args, &block) - @collection_name = sym - if inflector = (defined?(ActiveSupport::Inflector) ? ActiveSupport::Inflector : (defined?(Inflector) ? Inflector : nil)) - @plural_collection_name = inflector.pluralize(sym.to_s) - end - @args = args - @block = block - self - end - - def relative_expectation - "#{relativities[@relativity]}#{@expected}" - end - end - - # :call-seq: - # should have(number).named_collection__or__sugar - # should_not have(number).named_collection__or__sugar - # - # Passes if receiver is a collection with the submitted - # number of items OR if the receiver OWNS a collection - # with the submitted number of items. - # - # If the receiver OWNS the collection, you must use the name - # of the collection. So if a Team instance has a - # collection named #players, you must use that name - # to set the expectation. - # - # If the receiver IS the collection, you can use any name - # you like for named_collection. We'd recommend using - # either "elements", "members", or "items" as these are all - # standard ways of describing the things IN a collection. - # - # This also works for Strings, letting you set an expectation - # about its length - # - # == Examples - # - # # Passes if team.players.size == 11 - # team.should have(11).players - # - # # Passes if [1,2,3].length == 3 - # [1,2,3].should have(3).items #"items" is pure sugar - # - # # Passes if "this string".length == 11 - # "this string".should have(11).characters #"characters" is pure sugar - def have(n) - Matchers::Have.new(n) - end - alias :have_exactly :have - - # :call-seq: - # should have_at_least(number).items - # - # Exactly like have() with >=. - # - # == Warning - # - # +should_not+ +have_at_least+ is not supported - def have_at_least(n) - Matchers::Have.new(n, :at_least) - end - - # :call-seq: - # should have_at_most(number).items - # - # Exactly like have() with <=. - # - # == Warning - # - # +should_not+ +have_at_most+ is not supported - def have_at_most(n) - Matchers::Have.new(n, :at_most) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb deleted file mode 100644 index a2a7fe3d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb +++ /dev/null @@ -1,44 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should include(expected) - # should_not include(expected) - # - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # == Examples - # - # [1,2,3].should include(3) - # [1,2,3].should include(2,3) #would pass - # [1,2,3].should include(2,3,4) #would fail - # [1,2,3].should_not include(4) - # "spread".should include("read") - # "spread".should_not include("red") - def include(*expected) - Matcher.new :include, *expected do |*_expected_| - match do |actual| - helper(actual, *_expected_) - end - - def helper(actual, *_expected_) - _expected_.each do |expected| - if actual.is_a?(Hash) - if expected.is_a?(Hash) - expected.each_pair do |k,v| - return false unless actual[k] == v - end - else - return false unless actual.has_key?(expected) - end - else - return false unless actual.include?(expected) - end - end - true - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match.rb deleted file mode 100644 index b4b9ea86..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match.rb +++ /dev/null @@ -1,21 +0,0 @@ -module Spec - module Matchers - # :call-seq: - # should match(pattern) - # should_not match(pattern) - # - # Given a Regexp or String, passes if actual.match(pattern) - # - # == Examples - # - # email.should match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # email.should match("@example.com") - def match(expected) - Matcher.new :match, expected do |_expected_| - match do |actual| - actual.match(_expected_) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match_array.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match_array.rb deleted file mode 100644 index 51b4f392..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/match_array.rb +++ /dev/null @@ -1,71 +0,0 @@ -module Spec - module Matchers - - class MatchArray #:nodoc: - include Spec::Matchers::Pretty - - def initialize(expected) - @expected = expected - end - - def matches?(actual) - @actual = actual - @extra_items = difference_between_arrays(@actual, @expected) - @missing_items = difference_between_arrays(@expected, @actual) - @extra_items.empty? & @missing_items.empty? - end - - def failure_message_for_should - message = "expected collection contained: #{safe_sort(@expected).inspect}\n" - message += "actual collection contained: #{safe_sort(@actual).inspect}\n" - message += "the missing elements were: #{safe_sort(@missing_items).inspect}\n" unless @missing_items.empty? - message += "the extra elements were: #{safe_sort(@extra_items).inspect}\n" unless @extra_items.empty? - message - end - - def failure_message_for_should_not - "Matcher does not support should_not" - end - - def description - "contain exactly #{_pretty_print(@expected)}" - end - - private - - def safe_sort(array) - array.all?{|item| item.respond_to?(:<=>)} ? array.sort : array - end - - def difference_between_arrays(array_1, array_2) - difference = array_1.dup - array_2.each do |element| - if index = difference.index(element) - difference.delete_at(index) - end - end - difference - end - - - end - - # :call-seq: - # should =~ expected - # - # Passes if actual contains all of the expected regardless of order. - # This works for collections. Pass in multiple args and it will only - # pass if all args are found in collection. - # - # NOTE: there is no should_not version of array.should =~ other_array - # - # == Examples - # - # [1,2,3].should =~ [1,2,3] # => would pass - # [1,2,3].should =~ [2,3,1] # => would pass - # [1,2,3,4].should =~ [1,2,3] # => would fail - # [1,2,2,3].should =~ [1,2,3] # => would fail - # [1,2,3].should =~ [1,2,3,4] # => would fail - OperatorMatcher.register(Array, '=~', Spec::Matchers::MatchArray) - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/matcher.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/matcher.rb deleted file mode 100644 index 165ddffb..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/matcher.rb +++ /dev/null @@ -1,87 +0,0 @@ -module Spec - module Matchers - class Matcher - include Spec::Matchers::InstanceExec - include Spec::Matchers::Pretty - include Spec::Matchers - - attr_reader :expected, :actual - - def initialize(name, *expected, &declarations) - @name = name - @expected = expected - @actual = nil - @diffable = false - @messages = { - :description => lambda {"#{name_to_sentence}#{expected_to_sentence}"}, - :failure_message_for_should => lambda {|actual| "expected #{actual.inspect} to #{name_to_sentence}#{expected_to_sentence}"}, - :failure_message_for_should_not => lambda {|actual| "expected #{actual.inspect} not to #{name_to_sentence}#{expected_to_sentence}"} - } - making_declared_methods_public do - instance_exec(*@expected, &declarations) - end - end - - def matches?(actual) - instance_exec(@actual = actual, &@match_block) - end - - def description(&block) - cache_or_call_cached(:description, &block) - end - - def failure_message_for_should(&block) - cache_or_call_cached(:failure_message_for_should, actual, &block) - end - - def failure_message_for_should_not(&block) - cache_or_call_cached(:failure_message_for_should_not, actual, &block) - end - - def match(&block) - @match_block = block - end - - def diffable? - @diffable - end - - def diffable - @diffable = true - end - - private - - def making_declared_methods_public # :nodoc: - # Our home-grown instance_exec in ruby 1.8.6 results in any methods - # declared in the block eval'd by instance_exec in the block to which we - # are yielding here are scoped private. This is NOT the case for Ruby - # 1.8.7 or 1.9. - # - # Also, due some crazy scoping that I don't understand, these methods - # are actually available in the specs (something about the matcher being - # defined in the scope of Spec::Matchers or within an example), so not - # doing the following will not cause specs to fail, but they *will* - # cause features to fail and that will make users unhappy. So don't. - orig_private_methods = private_methods - yield - st = (class << self; self; end) - (private_methods - orig_private_methods).each {|m| st.__send__ :public, m} - end - - def cache_or_call_cached(key, actual=nil, &block) - block ? @messages[key] = block : - actual.nil? ? @messages[key].call : @messages[key].call(actual) - end - - def name_to_sentence - split_words(@name) - end - - def expected_to_sentence - to_sentence(@expected) - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb deleted file mode 100644 index ae7f3979..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Spec - module Matchers - def method_missing(sym, *args, &block) # :nodoc: - return Matchers::Be.new(sym, *args) if sym.to_s =~ /^be_/ - return Matchers::Has.new(sym, *args) if sym.to_s =~ /^have_/ - super - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/operator_matcher.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/operator_matcher.rb deleted file mode 100644 index 30295be0..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/operator_matcher.rb +++ /dev/null @@ -1,78 +0,0 @@ -module Spec - module Matchers - - class OperatorMatcher - class << self - def registry - @registry ||= {} - end - - def register(klass, operator, matcher) - registry[klass] ||= {} - registry[klass][operator] = matcher - end - - def get(klass, operator) - registry[klass] && registry[klass][operator] - end - end - - def initialize(actual) - @actual = actual - end - - def self.use_custom_matcher_or_delegate(operator) - define_method(operator) do |expected| - if matcher = OperatorMatcher.get(@actual.class, operator) - @actual.send(::Spec::Matchers.last_should, matcher.new(expected)) - else - eval_match(@actual, operator, expected) - end - end - end - - ['==', '===', '=~', '>', '>=', '<', '<='].each do |operator| - use_custom_matcher_or_delegate operator - end - - def fail_with_message(message) - Spec::Expectations.fail_with(message, @expected, @actual) - end - - def description - "#{@operator} #{@expected.inspect}" - end - - private - - def eval_match(actual, operator, expected) - ::Spec::Matchers.last_matcher = self - @operator, @expected = operator, expected - __delegate_operator(actual, operator, expected) - end - - end - - class PositiveOperatorMatcher < OperatorMatcher #:nodoc: - def __delegate_operator(actual, operator, expected) - if actual.__send__(operator, expected) - true - elsif ['==','===', '=~'].include?(operator) - fail_with_message("expected: #{expected.inspect},\n got: #{actual.inspect} (using #{operator})") - else - fail_with_message("expected: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{actual.inspect}") - end - end - - end - - class NegativeOperatorMatcher < OperatorMatcher #:nodoc: - def __delegate_operator(actual, operator, expected) - return false unless actual.__send__(operator, expected) - return fail_with_message("expected not: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{actual.inspect}") - end - - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/pretty.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/pretty.rb deleted file mode 100644 index 15205837..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/pretty.rb +++ /dev/null @@ -1,37 +0,0 @@ -module Spec - module Matchers - module Pretty - def split_words(sym) - sym.to_s.gsub(/_/,' ') - end - - def to_sentence(words) - words = words.map{|w| w.inspect} - case words.length - when 0 - "" - when 1 - " #{words[0]}" - when 2 - " #{words[0]} and #{words[1]}" - else - " #{words[0...-1].join(', ')}, and #{words[-1]}" - end - end - - def _pretty_print(array) - result = "" - array.each_with_index do |item, index| - if index < (array.length - 2) - result << "#{item.inspect}, " - elsif index < (array.length - 1) - result << "#{item.inspect} and " - else - result << "#{item.inspect}" - end - end - result - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb deleted file mode 100644 index 65bdf237..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb +++ /dev/null @@ -1,129 +0,0 @@ -module Spec - module Matchers - class RaiseError #:nodoc: - def initialize(expected_error_or_message=Exception, expected_message=nil, &block) - @block = block - @actual_error = nil - case expected_error_or_message - when String, Regexp - @expected_error, @expected_message = Exception, expected_error_or_message - else - @expected_error, @expected_message = expected_error_or_message, expected_message - end - end - - def matches?(given_proc) - @raised_expected_error = false - @with_expected_message = false - @eval_block = false - @eval_block_passed = false - begin - given_proc.call - rescue @expected_error => @actual_error - @raised_expected_error = true - @with_expected_message = verify_message - rescue Exception => @actual_error - # This clause should be empty, but rcov will not report it as covered - # unless something (anything) is executed within the clause - rcov_error_report = "http://eigenclass.org/hiki.rb?rcov-0.8.0" - end - - unless negative_expectation? - eval_block if @raised_expected_error && @with_expected_message && @block - end - ensure - return (@raised_expected_error & @with_expected_message) ? (@eval_block ? @eval_block_passed : true) : false - end - - def eval_block - @eval_block = true - begin - @block[@actual_error] - @eval_block_passed = true - rescue Exception => err - @actual_error = err - end - end - - def verify_message - case @expected_message - when nil - true - when Regexp - @expected_message =~ @actual_error.message - else - @expected_message == @actual_error.message - end - end - - def failure_message_for_should - @eval_block ? @actual_error.message : "expected #{expected_error}#{given_error}" - end - - def failure_message_for_should_not - "expected no #{expected_error}#{given_error}" - end - - def description - "raise #{expected_error}" - end - - private - def expected_error - case @expected_message - when nil - @expected_error - when Regexp - "#{@expected_error} with message matching #{@expected_message.inspect}" - else - "#{@expected_error} with #{@expected_message.inspect}" - end - end - - def given_error - @actual_error.nil? ? " but nothing was raised" : ", got #{@actual_error.inspect}" - end - - def negative_expectation? - # YES - I'm a bad person... help me find a better way - ryand - caller.first(3).find { |s| s =~ /should_not/ } - end - end - - # :call-seq: - # should raise_error() - # should raise_error(NamedError) - # should raise_error(NamedError, String) - # should raise_error(NamedError, Regexp) - # should raise_error() { |error| ... } - # should raise_error(NamedError) { |error| ... } - # should raise_error(NamedError, String) { |error| ... } - # should raise_error(NamedError, Regexp) { |error| ... } - # should_not raise_error() - # should_not raise_error(NamedError) - # should_not raise_error(NamedError, String) - # should_not raise_error(NamedError, Regexp) - # - # With no args, matches if any error is raised. - # With a named error, matches only if that specific error is raised. - # With a named error and messsage specified as a String, matches only if both match. - # With a named error and messsage specified as a Regexp, matches only if both match. - # Pass an optional block to perform extra verifications on the exception matched - # - # == Examples - # - # lambda { do_something_risky }.should raise_error - # lambda { do_something_risky }.should raise_error(PoorRiskDecisionError) - # lambda { do_something_risky }.should raise_error(PoorRiskDecisionError) { |error| error.data.should == 42 } - # lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, "that was too risky") - # lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, /oo ri/) - # - # lambda { do_something_risky }.should_not raise_error - # lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError) - # lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, "that was too risky") - # lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, /oo ri/) - def raise_error(error=Exception, message=nil, &block) - Matchers::RaiseError.new(error, message, &block) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/respond_to.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/respond_to.rb deleted file mode 100644 index 9161cb94..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/respond_to.rb +++ /dev/null @@ -1,71 +0,0 @@ -module Spec - module Matchers - - class RespondTo #:nodoc: - def initialize(*names) - @names = names - @expected_arity = nil - @names_not_responded_to = [] - end - - def matches?(actual) - @actual = actual - @names.each do |name| - @names_not_responded_to << name unless actual.respond_to?(name) && matches_arity?(actual, name) - end - return @names_not_responded_to.empty? - end - - def failure_message_for_should - "expected #{@actual.inspect} to respond to #{@names_not_responded_to.collect {|name| name.inspect }.join(', ')}#{with_arity}" - end - - def failure_message_for_should_not - "expected #{@actual.inspect} not to respond to #{@names.collect {|name| name.inspect }.join(', ')}" - end - - def description - "respond to #{pp_names}#{with_arity}" - end - - def with(n) - @expected_arity = n - self - end - - def argument - self - end - alias :arguments :argument - - private - - def matches_arity?(actual, name) - @expected_arity.nil?? true : @expected_arity == actual.method(name).arity - end - - def with_arity - @expected_arity.nil?? "" : - " with #{@expected_arity} argument#{@expected_arity == 1 ? '' : 's'}" - end - - def pp_names - # Ruby 1.9 returns the same thing for array.to_s as array.inspect, so just use array.inspect here - @names.length == 1 ? "##{@names.first}" : @names.inspect - end - end - - # :call-seq: - # should respond_to(*names) - # should_not respond_to(*names) - # - # Matches if the target object responds to all of the names - # provided. Names can be Strings or Symbols. - # - # == Examples - # - def respond_to(*names) - Matchers::RespondTo.new(*names) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/satisfy.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/satisfy.rb deleted file mode 100644 index 58e3f56a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/satisfy.rb +++ /dev/null @@ -1,47 +0,0 @@ -module Spec - module Matchers - - class Satisfy #:nodoc: - def initialize(&block) - @block = block - end - - def matches?(actual, &block) - @block = block if block - @actual = actual - @block.call(actual) - end - - def failure_message_for_should - "expected #{@actual} to satisfy block" - end - - def failure_message_for_should_not - "expected #{@actual} not to satisfy block" - end - end - - # :call-seq: - # should satisfy {} - # should_not satisfy {} - # - # Passes if the submitted block returns true. Yields target to the - # block. - # - # Generally speaking, this should be thought of as a last resort when - # you can't find any other way to specify the behaviour you wish to - # specify. - # - # If you do find yourself in such a situation, you could always write - # a custom matcher, which would likely make your specs more expressive. - # - # == Examples - # - # 5.should satisfy { |n| - # n > 3 - # } - def satisfy(&block) - Matchers::Satisfy.new(&block) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/simple_matcher.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/simple_matcher.rb deleted file mode 100644 index 5ab7f306..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/simple_matcher.rb +++ /dev/null @@ -1,133 +0,0 @@ -module Spec - module Matchers - class SimpleMatcher - attr_writer :failure_message, :negative_failure_message, :description - - def initialize(description, &match_block) - @description = description - @match_block = match_block - @failure_message = @negative_failure_message = nil - end - - def matches?(given) - @given = given - case @match_block.arity - when 2 - @match_block.call(@given, self) - else - @match_block.call(@given) - end - end - - def description - @description || explanation - end - - def failure_message_for_should - @failure_message || (@description.nil? ? explanation : %[expected #{@description.inspect} but got #{@given.inspect}]) - end - - def failure_message_for_should_not - @negative_failure_message || (@description.nil? ? explanation : %[expected not to get #{@description.inspect}, but got #{@given.inspect}]) - end - - def explanation - "No description provided. See RDoc for simple_matcher()" - end - end - - # simple_matcher makes it easy for you to create your own custom matchers - # in just a few lines of code when you don't need all the power of a - # completely custom matcher object. - # - # The description argument will appear as part of any failure - # message, and is also the source for auto-generated descriptions. - # - # The match_block can have an arity of 1 or 2. The first block - # argument will be the given value. The second, if the block accepts it - # will be the matcher itself, giving you access to set custom failure - # messages in favor of the defaults. - # - # The match_block should return a boolean: true - # indicates a match, which will pass if you use should and fail - # if you use should_not. false (or nil) indicates no match, - # which will do the reverse: fail if you use should and pass if - # you use should_not. - # - # An error in the match_block will bubble up, resulting in a - # failure. - # - # == Example with default messages - # - # def be_even - # simple_matcher("an even number") { |given| given % 2 == 0 } - # end - # - # describe 2 do - # it "should be even" do - # 2.should be_even - # end - # end - # - # Given an odd number, this example would produce an error message stating: - # expected "an even number", got 3. - # - # Unfortunately, if you're a fan of auto-generated descriptions, this will - # produce "should an even number." Not the most desirable result. You can - # control that using custom messages: - # - # == Example with custom messages - # - # def rhyme_with(expected) - # simple_matcher("rhyme with #{expected.inspect}") do |given, matcher| - # matcher.failure_message = "expected #{given.inspect} to rhyme with #{expected.inspect}" - # matcher.negative_failure_message = "expected #{given.inspect} not to rhyme with #{expected.inspect}" - # given.rhymes_with? expected - # end - # end - # - # # OR - # - # def rhyme_with(expected) - # simple_matcher do |given, matcher| - # matcher.description = "rhyme with #{expected.inspect}" - # matcher.failure_message = "expected #{given.inspect} to rhyme with #{expected.inspect}" - # matcher.negative_failure_message = "expected #{given.inspect} not to rhyme with #{expected.inspect}" - # given.rhymes_with? expected - # end - # end - # - # describe "pecan" do - # it "should rhyme with 'be gone'" do - # nut = "pecan" - # nut.extend Rhymer - # nut.should rhyme_with("be gone") - # end - # end - # - # The resulting messages would be: - # description: rhyme with "be gone" - # failure_message: expected "pecan" to rhyme with "be gone" - # negative failure_message: expected "pecan" not to rhyme with "be gone" - # - # == Wrapped Expectations - # - # Because errors will bubble up, it is possible to wrap other expectations - # in a SimpleMatcher. - # - # def be_even - # simple_matcher("an even number") { |given| (given % 2).should == 0 } - # end - # - # BE VERY CAREFUL when you do this. Only use wrapped expectations for - # matchers that will always be used in only the positive - # (should) or negative (should_not), but not both. - # The reason is that is you wrap a should and call the wrapper - # with should_not, the correct result (the should - # failing), will fail when you want it to pass. - # - def simple_matcher(description=nil, &match_block) - SimpleMatcher.new(description, &match_block) - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/throw_symbol.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/throw_symbol.rb deleted file mode 100644 index da16bb65..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/throw_symbol.rb +++ /dev/null @@ -1,104 +0,0 @@ -module Spec - module Matchers - - class ThrowSymbol #:nodoc: - def initialize(expected_symbol = nil, expected_arg=nil) - @expected_symbol = expected_symbol - @expected_arg = expected_arg - @caught_symbol = @caught_arg = nil - end - - def matches?(given_proc) - begin - if @expected_symbol.nil? - given_proc.call - else - @caught_arg = catch :proc_did_not_throw_anything do - catch @expected_symbol do - given_proc.call - throw :proc_did_not_throw_anything, :nothing_thrown - end - end - @caught_symbol = @expected_symbol unless @caught_arg == :nothing_thrown - end - - # Ruby 1.8 uses NameError with `symbol' - # Ruby 1.9 uses ArgumentError with :symbol - rescue NameError, ArgumentError => e - raise e unless e.message =~ /uncaught throw (`|\:)([a-zA-Z0-9_]*)(')?/ - @caught_symbol = $2.to_sym - - ensure - if @expected_symbol.nil? - return !@caught_symbol.nil? - else - if @expected_arg.nil? - return @caught_symbol == @expected_symbol - else - return (@caught_symbol == @expected_symbol) & (@caught_arg == @expected_arg) - end - end - end - end - - def failure_message_for_should - if @caught_symbol - "expected #{expected}, got #{@caught_symbol.inspect}" - else - "expected #{expected} but nothing was thrown" - end - end - - def failure_message_for_should_not - if @expected_symbol - "expected #{expected} not to be thrown" - else - "expected no Symbol, got :#{@caught_symbol}" - end - end - - def description - "throw #{expected}" - end - - private - - def expected - @expected_symbol.nil? ? "a Symbol" : "#{@expected_symbol.inspect}#{args}" - end - - def args - @expected_arg.nil? ? "" : " with #{@expected_arg.inspect}" - end - - end - - # :call-seq: - # should throw_symbol() - # should throw_symbol(:sym) - # should throw_symbol(:sym, arg) - # should_not throw_symbol() - # should_not throw_symbol(:sym) - # should_not throw_symbol(:sym, arg) - # - # Given no argument, matches if a proc throws any Symbol. - # - # Given a Symbol, matches if the given proc throws the specified Symbol. - # - # Given a Symbol and an arg, matches if the given proc throws the - # specified Symbol with the specified arg. - # - # == Examples - # - # lambda { do_something_risky }.should throw_symbol - # lambda { do_something_risky }.should throw_symbol(:that_was_risky) - # lambda { do_something_risky }.should throw_symbol(:that_was_risky, culprit) - # - # lambda { do_something_risky }.should_not throw_symbol - # lambda { do_something_risky }.should_not throw_symbol(:that_was_risky) - # lambda { do_something_risky }.should_not throw_symbol(:that_was_risky, culprit) - def throw_symbol(sym=nil) - Matchers::ThrowSymbol.new(sym) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/wrap_expectation.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/wrap_expectation.rb deleted file mode 100644 index 95162cae..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/wrap_expectation.rb +++ /dev/null @@ -1,55 +0,0 @@ -module Spec - module Matchers - # wraps an expectation in a block that will return true if the - # expectation passes and false if it fails (without bubbling up - # the failure). - # - # This is intended to be used in the context of a simple matcher, - # and is especially useful for wrapping multiple expectations or - # one or more assertions from test/unit extensions when running - # with test/unit. - # - # == Examples - # - # def eat_cheese(cheese) - # simple_matcher do |mouse, matcher| - # matcher.failure_message = "expected #{mouse} to eat cheese" - # wrap_expectation do |matcher| - # assert_eats_cheese(mouse) - # end - # end - # end - # - # describe Mouse do - # it "eats cheese" do - # Mouse.new.should eat_cheese - # end - # end - # - # You might be wondering "why would I do this if I could just say" - # assert_eats_cheese?", a fair question, indeed. You might prefer - # to replace the word assert with something more aligned with the - # rest of your code examples. You are using rspec, after all. - # - # The other benefit you get is that you can use the negative version - # of the matcher: - # - # describe Cat do - # it "does not eat cheese" do - # Cat.new.should_not eat_cheese - # end - # end - # - # So in the event there is no assert_does_not_eat_cheese available, - # you're all set! - def wrap_expectation(matcher, &block) - begin - block.call(matcher) - return true - rescue Exception => e - matcher.failure_message = e.message - return false - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks.rb deleted file mode 100644 index 339c0cc5..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks.rb +++ /dev/null @@ -1,200 +0,0 @@ -require 'spec/mocks/framework' -require 'spec/mocks/extensions/object' - -module Spec - # == Mocks and Stubs - # - # RSpec will create Mock Objects and Stubs for you at runtime, or attach stub/mock behaviour - # to any of your real objects (Partial Mock/Stub). Because the underlying implementation - # for mocks and stubs is the same, you can intermingle mock and stub - # behaviour in either dynamically generated mocks or your pre-existing classes. - # There is a semantic difference in how they are created, however, - # which can help clarify the role it is playing within a given spec. - # - # == Mock Objects - # - # Mocks are objects that allow you to set and verify expectations that they will - # receive specific messages during run time. They are very useful for specifying how the subject of - # the spec interacts with its collaborators. This approach is widely known as "interaction - # testing". - # - # Mocks are also very powerful as a design tool. As you are - # driving the implementation of a given class, Mocks provide an anonymous - # collaborator that can change in behaviour as quickly as you can write an expectation in your - # spec. This flexibility allows you to design the interface of a collaborator that often - # does not yet exist. As the shape of the class being specified becomes more clear, so do the - # requirements for its collaborators - often leading to the discovery of new types that are - # needed in your system. - # - # Read Endo-Testing[http://www.mockobjects.com/files/endotesting.pdf] for a much - # more in depth description of this process. - # - # == Stubs - # - # Stubs are objects that allow you to set "stub" responses to - # messages. As Martin Fowler points out on his site, - # mocks_arent_stubs[http://www.martinfowler.com/articles/mocksArentStubs.html]. - # Paraphrasing Fowler's paraphrasing - # of Gerard Meszaros: Stubs provide canned responses to messages they might receive in a test, while - # mocks allow you to specify and, subsquently, verify that certain messages should be received during - # the execution of a test. - # - # == Partial Mocks/Stubs - # - # RSpec also supports partial mocking/stubbing, allowing you to add stub/mock behaviour - # to instances of your existing classes. This is generally - # something to be avoided, because changes to the class can have ripple effects on - # seemingly unrelated specs. When specs fail due to these ripple effects, the fact - # that some methods are being mocked can make it difficult to understand why a - # failure is occurring. - # - # That said, partials do allow you to expect and - # verify interactions with class methods such as +#find+ and +#create+ - # on Ruby on Rails model classes. - # - # == Further Reading - # - # There are many different viewpoints about the meaning of mocks and stubs. If you are interested - # in learning more, here is some recommended reading: - # - # * Mock Objects: http://www.mockobjects.com/ - # * Endo-Testing: http://www.mockobjects.com/files/endotesting.pdf - # * Mock Roles, Not Objects: http://www.mockobjects.com/files/mockrolesnotobjects.pdf - # * Test Double Patterns: http://xunitpatterns.com/Test%20Double%20Patterns.html - # * Mocks aren't stubs: http://www.martinfowler.com/articles/mocksArentStubs.html - # - # == Creating a Mock - # - # You can create a mock in any specification (or setup) using: - # - # mock(name, options={}) - # - # The optional +options+ argument is a +Hash+. Currently the only supported - # option is +:null_object+. Setting this to true instructs the mock to ignore - # any messages it hasn’t been told to expect – and quietly return itself. For example: - # - # mock("person", :null_object => true) - # - # == Creating a Stub - # - # You can create a stub in any specification (or setup) using: - # - # stub(name, stub_methods_and_values_hash) - # - # For example, if you wanted to create an object that always returns - # "More?!?!?!" to "please_sir_may_i_have_some_more" you would do this: - # - # stub("Mr Sykes", :please_sir_may_i_have_some_more => "More?!?!?!") - # - # == Creating a Partial Mock - # - # You don't really "create" a partial mock, you simply add method stubs and/or - # mock expectations to existing classes and objects: - # - # Factory.should_receive(:find).with(id).and_return(value) - # obj.stub!(:to_i).and_return(3) - # etc ... - # - # == Expecting Messages - # - # my_mock.should_receive(:sym) - # my_mock.should_not_receive(:sym) - # - # == Expecting Arguments - # - # my_mock.should_receive(:sym).with(*args) - # my_mock.should_not_receive(:sym).with(*args) - # - # == Argument Matchers - # - # Arguments that are passed to #with are compared with actual arguments received - # using == by default. In cases in which you want to specify things about the arguments - # rather than the arguments themselves, you can use any of RSpec's Expression Matchers. - # They don't all make syntactic sense (they were primarily designed for use with - # Spec::Expectations), but you are free to create your own custom Spec::Matchers. - # - # Spec::Mocks does provide one additional Matcher method named #ducktype. - # - # In addition, Spec::Mocks adds some keyword Symbols that you can use to - # specify certain kinds of arguments: - # - # my_mock.should_receive(:sym).with(no_args()) - # my_mock.should_receive(:sym).with(any_args()) - # my_mock.should_receive(:sym).with(1, kind_of(Numeric), "b") #2nd argument can any kind of Numeric - # my_mock.should_receive(:sym).with(1, boolean(), "b") #2nd argument can true or false - # my_mock.should_receive(:sym).with(1, /abc/, "b") #2nd argument can be any String matching the submitted Regexp - # my_mock.should_receive(:sym).with(1, anything(), "b") #2nd argument can be anything at all - # my_mock.should_receive(:sym).with(1, ducktype(:abs, :div), "b") - # #2nd argument can be object that responds to #abs and #div - # - # == Receive Counts - # - # my_mock.should_receive(:sym).once - # my_mock.should_receive(:sym).twice - # my_mock.should_receive(:sym).exactly(n).times - # my_mock.should_receive(:sym).at_least(:once) - # my_mock.should_receive(:sym).at_least(:twice) - # my_mock.should_receive(:sym).at_least(n).times - # my_mock.should_receive(:sym).at_most(:once) - # my_mock.should_receive(:sym).at_most(:twice) - # my_mock.should_receive(:sym).at_most(n).times - # my_mock.should_receive(:sym).any_number_of_times - # - # == Ordering - # - # my_mock.should_receive(:sym).ordered - # my_mock.should_receive(:other_sym).ordered - # #This will fail if the messages are received out of order - # - # == Setting Reponses - # - # Whether you are setting a mock expectation or a simple stub, you can tell the - # object precisely how to respond: - # - # my_mock.should_receive(:sym).and_return(value) - # my_mock.should_receive(:sym).exactly(3).times.and_return(value1, value2, value3) - # # returns value1 the first time, value2 the second, etc - # my_mock.should_receive(:sym).and_return { ... } #returns value returned by the block - # my_mock.should_receive(:sym).and_raise(error) - # #error can be an instantiated object or a class - # #if it is a class, it must be instantiable with no args - # my_mock.should_receive(:sym).and_throw(:sym) - # my_mock.should_receive(:sym).and_yield(values,to,yield) - # my_mock.should_receive(:sym).and_yield(values,to,yield).and_yield(some,other,values,this,time) - # # for methods that yield to a block multiple times - # - # Any of these responses can be applied to a stub as well, but stubs do - # not support any qualifiers about the message received (i.e. you can't specify arguments - # or receive counts): - # - # my_mock.stub!(:sym).and_return(value) - # my_mock.stub!(:sym).and_return(value1, value2, value3) - # my_mock.stub!(:sym).and_raise(error) - # my_mock.stub!(:sym).and_throw(:sym) - # my_mock.stub!(:sym).and_yield(values,to,yield) - # my_mock.stub!(:sym).and_yield(values,to,yield).and_yield(some,other,values,this,time) - # - # == Arbitrary Handling - # - # Once in a while you'll find that the available expectations don't solve the - # particular problem you are trying to solve. Imagine that you expect the message - # to come with an Array argument that has a specific length, but you don't care - # what is in it. You could do this: - # - # my_mock.should_receive(:sym) do |arg| - # arg.should be_an_istance_of(Array) - # arg.length.should == 7 - # end - # - # Note that this would fail if the number of arguments received was different from - # the number of block arguments (in this case 1). - # - # == Combining Expectation Details - # - # Combining the message name with specific arguments, receive counts and responses - # you can get quite a bit of detail in your expectations: - # - # my_mock.should_receive(:<<).with("illegal value").once.and_raise(ArgumentError) - module Mocks - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_expectation.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_expectation.rb deleted file mode 100644 index b51b7bae..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_expectation.rb +++ /dev/null @@ -1,51 +0,0 @@ -module Spec - module Mocks - - class ArgumentExpectation - attr_reader :args - - def initialize(args, &block) - @args = args - @matchers_block = block - @match_any_args = false - @matchers = nil - - if ArgumentMatchers::AnyArgsMatcher === args.first - @match_any_args = true - elsif ArgumentMatchers::NoArgsMatcher === args.first - @matchers = [] - else - @matchers = args.collect {|arg| matcher_for(arg)} - end - end - - def matcher_for(arg) - return ArgumentMatchers::MatcherMatcher.new(arg) if is_matcher?(arg) - return ArgumentMatchers::RegexpMatcher.new(arg) if arg.is_a?(Regexp) - return ArgumentMatchers::EqualityProxy.new(arg) - end - - def is_matcher?(obj) - return obj.respond_to?(:matches?) & obj.respond_to?(:description) - end - - def args_match?(given_args) - match_any_args? || matchers_block_matches?(given_args) || matchers_match?(given_args) - end - - def matchers_block_matches?(given_args) - @matchers_block ? @matchers_block.call(*given_args) : nil - end - - def matchers_match?(given_args) - @matchers == given_args - end - - def match_any_args? - @match_any_args - end - - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_matchers.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_matchers.rb deleted file mode 100644 index f56551f2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/argument_matchers.rb +++ /dev/null @@ -1,237 +0,0 @@ -module Spec - module Mocks - - # ArgumentMatchers are messages that you can include in message - # expectations to match arguments against a broader check than simple - # equality. - # - # With the exception of any_args() and no_args(), the matchers - # are all positional - they match against the arg in the given position. - module ArgumentMatchers - - class AnyArgsMatcher - def description - "any args" - end - end - - class NoArgsMatcher - def description - "no args" - end - end - - class AnyArgMatcher - def initialize(ignore) - end - - def ==(other) - true - end - - def description - "anything" - end - end - - class RegexpMatcher - def initialize(regexp) - @regexp = regexp - end - - def ==(value) - return value =~ @regexp unless value.is_a?(Regexp) - value == @regexp - end - end - - class BooleanMatcher - def initialize(ignore) - end - - def ==(value) - TrueClass === value || FalseClass === value - end - end - - class HashIncludingMatcher - def initialize(expected) - @expected = expected - end - - def ==(actual) - @expected.each do | key, value | - return false unless actual.has_key?(key) && value == actual[key] - end - true - rescue NoMethodError => ex - return false - end - - def description - "hash_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})" - end - end - - class HashNotIncludingMatcher - def initialize(expected) - @expected = expected - end - - def ==(actual) - @expected.each do | key, value | - return false if actual.has_key?(key) && value == actual[key] - end - true - rescue NoMethodError => ex - return false - end - - def description - "hash_not_including(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})" - end - end - - class DuckTypeMatcher - def initialize(*methods_to_respond_to) - @methods_to_respond_to = methods_to_respond_to - end - - def ==(value) - @methods_to_respond_to.all? { |sym| value.respond_to?(sym) } - end - end - - class MatcherMatcher - def initialize(matcher) - @matcher = matcher - end - - def ==(value) - @matcher.matches?(value) - end - end - - class EqualityProxy - def initialize(given) - @given = given - end - - def ==(expected) - @given == expected - end - end - - class InstanceOf - def initialize(klass) - @klass = klass - end - - def ==(actual) - actual.instance_of?(@klass) - end - end - - class KindOf - def initialize(klass) - @klass = klass - end - - def ==(actual) - actual.kind_of?(@klass) - end - end - - # :call-seq: - # object.should_receive(:message).with(no_args()) - # - # Passes if no arguments are passed along with the message - def no_args - NoArgsMatcher.new - end - - # :call-seq: - # object.should_receive(:message).with(any_args()) - # - # Passes if object receives :message with any args at all. This is - # really a more explicit variation of object.should_receive(:message) - def any_args - AnyArgsMatcher.new - end - - # :call-seq: - # object.should_receive(:message).with(anything()) - # - # Passes as long as there is an argument. - def anything - AnyArgMatcher.new(nil) - end - - # :call-seq: - # object.should_receive(:message).with(duck_type(:hello)) - # object.should_receive(:message).with(duck_type(:hello, :goodbye)) - # - # Passes if the argument responds to the specified messages. - # - # == Examples - # - # array = [] - # display = mock('display') - # display.should_receive(:present_names).with(duck_type(:length, :each)) - # => passes - def duck_type(*args) - DuckTypeMatcher.new(*args) - end - - # :call-seq: - # object.should_receive(:message).with(boolean()) - # - # Passes if the argument is boolean. - def boolean - BooleanMatcher.new(nil) - end - - # :call-seq: - # object.should_receive(:message).with(hash_including(:key => val)) - # object.should_receive(:message).with(hash_including(:key)) - # object.should_receive(:message).with(hash_including(:key, :key2 => val2)) - # Passes if the argument is a hash that includes the specified key(s) or key/value - # pairs. If the hash includes other keys, it will still pass. - def hash_including(*args) - HashIncludingMatcher.new(anythingize_lonely_keys(*args)) - end - - # :call-seq: - # object.should_receive(:message).with(hash_not_including(:key => val)) - # object.should_receive(:message).with(hash_not_including(:key)) - # object.should_receive(:message).with(hash_not_including(:key, :key2 => :val2)) - # - # Passes if the argument is a hash that doesn't include the specified key(s) or key/value - def hash_not_including(*args) - HashNotIncludingMatcher.new(anythingize_lonely_keys(*args)) - end - - # Passes if arg.instance_of?(klass) - def instance_of(klass) - InstanceOf.new(klass) - end - - alias_method :an_instance_of, :instance_of - - # Passes if arg.kind_of?(klass) - def kind_of(klass) - KindOf.new(klass) - end - - alias_method :a_kind_of, :kind_of - - private - - def anythingize_lonely_keys(*args) - hash = args.last.class == Hash ? args.delete_at(-1) : {} - args.each { | arg | hash[arg] = anything } - hash - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/error_generator.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/error_generator.rb deleted file mode 100644 index f63811fe..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/error_generator.rb +++ /dev/null @@ -1,92 +0,0 @@ -module Spec - module Mocks - class ErrorGenerator - attr_writer :opts - - def initialize(target, name, options={}) - @declared_as = options[:__declared_as] || 'Mock' - @target = target - @name = name - end - - def opts - @opts ||= {} - end - - def raise_unexpected_message_error(sym, *args) - __raise "#{intro} received unexpected message :#{sym}#{arg_message(*args)}" - end - - def raise_unexpected_message_args_error(expectation, *args) - expected_args = format_args(*expectation.expected_args) - actual_args = args.empty? ? "(no args)" : format_args(*args) - __raise "#{intro} received #{expectation.sym.inspect} with unexpected arguments\n expected: #{expected_args}\n got: #{actual_args}" - end - - def raise_expectation_error(sym, expected_received_count, actual_received_count, *args) - __raise "#{intro} expected :#{sym}#{arg_message(*args)} #{count_message(expected_received_count)}, but received it #{count_message(actual_received_count)}" - end - - def raise_out_of_order_error(sym) - __raise "#{intro} received :#{sym} out of order" - end - - def raise_block_failed_error(sym, detail) - __raise "#{intro} received :#{sym} but passed block failed with: #{detail}" - end - - def raise_missing_block_error(args_to_yield) - __raise "#{intro} asked to yield |#{arg_list(*args_to_yield)}| but no block was passed" - end - - def raise_wrong_arity_error(args_to_yield, arity) - __raise "#{intro} yielded |#{arg_list(*args_to_yield)}| to block with arity of #{arity}" - end - - private - - def intro - if @name - "#{@declared_as} #{@name.inspect}" - elsif Mock === @target - @declared_as - elsif Class === @target - "<#{@target.inspect} (class)>" - elsif @target - @target - else - "nil" - end - end - - def __raise(message) - message = opts[:message] unless opts[:message].nil? - Kernel::raise(Spec::Mocks::MockExpectationError, message) - end - - def arg_message(*args) - " with " + format_args(*args) - end - - def format_args(*args) - args.empty? ? "(no args)" : "(" + arg_list(*args) + ")" - end - - def arg_list(*args) - args.collect {|arg| arg.respond_to?(:description) ? arg.description : arg.inspect}.join(", ") - end - - def count_message(count) - return "at least #{pretty_print(count.abs)}" if count < 0 - return pretty_print(count) - end - - def pretty_print(count) - return "once" if count == 1 - return "twice" if count == 2 - return "#{count} times" - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/errors.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/errors.rb deleted file mode 100644 index 560b66a9..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/errors.rb +++ /dev/null @@ -1,10 +0,0 @@ -module Spec - module Mocks - class MockExpectationError < Exception - end - - class AmbiguousReturnError < StandardError - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/example_methods.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/example_methods.rb deleted file mode 100644 index f6c68ab6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/example_methods.rb +++ /dev/null @@ -1,69 +0,0 @@ -module Spec - module Mocks - module ExampleMethods - include Spec::Mocks::ArgumentMatchers - - # Shortcut for creating an instance of Spec::Mocks::Mock. - # - # +name+ is used for failure reporting, so you should use the - # role that the double is playing in the example. - # - # +stubs_and_options+ lets you assign options and stub values - # at the same time. The only option available is :null_object. - # Anything else is treated as a stub value. - # - # == Examples - # - # thing = double("thing", :a => "A") - # thing.a == "A" => true - # - # person = double("thing", :name => "Joe", :email => "joe@domain.com") - # person.name => "Joe" - # person.email => "joe@domain.com" - def double(*args) - __declare_double('Double', *args) - end - - # Alias for double - def mock(*args) - __declare_double('Mock', *args) - end - - # Alias for double - def stub(*args) - __declare_double('Stub', *args) - end - - def __declare_double(declared_as, *args) # :nodoc: - args << {} unless Hash === args.last - args.last[:__declared_as] = declared_as - Spec::Mocks::Mock.new(*args) - end - - # DEPRECATED - use double('name').as_null_object instead - # - # Shortcut for creating a mock object that will return itself in response - # to any message it receives that it hasn't been explicitly instructed - # to respond to. - def stub_everything(name = 'stub') - Spec.warn(<<-WARNING) - -DEPRECATION: stub_everything('#{name}') is deprecated and will be removed -from a future version of rspec. Please use double('#{name}').as_null_object -(or stub('#{name}').as_null_object or mock('#{name}').as_null_object instead. - -WARNING - mock(name, :null_object => true) - end - - # Disables warning messages about expectations being set on nil. - # - # By default warning messages are issued when expectations are set on nil. This is to - # prevent false-positives and to catch potential bugs early on. - def allow_message_expectations_on_nil - Proxy.allow_message_expectations_on_nil - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions.rb deleted file mode 100644 index 6fd51a27..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions.rb +++ /dev/null @@ -1 +0,0 @@ -require 'spec/mocks/extensions/object' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions/object.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions/object.rb deleted file mode 100644 index 4b753106..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/extensions/object.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Object - include Spec::Mocks::Methods -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/framework.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/framework.rb deleted file mode 100644 index e2577865..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/framework.rb +++ /dev/null @@ -1,15 +0,0 @@ -# Require everything except the global extensions of class and object. This -# supports wrapping rspec's mocking functionality without invading every -# object in the system. - -require 'spec/mocks/methods' -require 'spec/mocks/argument_matchers' -require 'spec/mocks/example_methods' -require 'spec/mocks/proxy' -require 'spec/mocks/mock' -require 'spec/mocks/argument_expectation' -require 'spec/mocks/message_expectation' -require 'spec/mocks/order_group' -require 'spec/mocks/errors' -require 'spec/mocks/error_generator' -require 'spec/mocks/space' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/message_expectation.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/message_expectation.rb deleted file mode 100644 index 8a8133f6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/message_expectation.rb +++ /dev/null @@ -1,329 +0,0 @@ -module Spec - module Mocks - - class BaseExpectation - attr_reader :sym - attr_writer :expected_received_count, :method_block, :expected_from - protected :expected_received_count=, :method_block=, :expected_from= - attr_accessor :error_generator - protected :error_generator, :error_generator= - - def initialize(error_generator, expectation_ordering, expected_from, sym, method_block, expected_received_count=1, opts={}, &implementation) - @error_generator = error_generator - @error_generator.opts = opts - @expected_from = expected_from - @sym = sym - @method_block = method_block - @actual_received_count = 0 - @expected_received_count = expected_received_count - @args_expectation = ArgumentExpectation.new([ArgumentMatchers::AnyArgsMatcher.new]) - @consecutive = false - @exception_to_raise = nil - @symbol_to_throw = nil - @order_group = expectation_ordering - @at_least = nil - @at_most = nil - @args_to_yield = [] - @failed_fast = nil - @args_to_yield_were_cloned = false - @return_block = implementation - end - - def build_child(expected_from, method_block, expected_received_count, opts={}) - child = clone - child.expected_from = expected_from - child.method_block = method_block - child.expected_received_count = expected_received_count - child.clear_actual_received_count! - new_gen = error_generator.clone - new_gen.opts = opts - child.error_generator = new_gen - child.clone_args_to_yield @args_to_yield - child - end - - def expected_args - @args_expectation.args - end - - def and_return(*values, &return_block) - Kernel::raise AmbiguousReturnError unless @method_block.nil? - case values.size - when 0 then value = nil - when 1 then value = values[0] - else - value = values - @consecutive = true - @expected_received_count = values.size if !ignoring_args? && - @expected_received_count < values.size - end - @return_block = block_given? ? return_block : lambda { value } - end - - # :call-seq: - # and_raise() - # and_raise(Exception) #any exception class - # and_raise(exception) #any exception object - # - # == Warning - # - # When you pass an exception class, the MessageExpectation will - # raise an instance of it, creating it with +new+. If the exception - # class initializer requires any parameters, you must pass in an - # instance and not the class. - def and_raise(exception=Exception) - @exception_to_raise = exception - end - - def and_throw(symbol) - @symbol_to_throw = symbol - end - - def and_yield(*args) - if @args_to_yield_were_cloned - @args_to_yield.clear - @args_to_yield_were_cloned = false - end - - @args_to_yield << args - self - end - - def matches(sym, args) - @sym == sym and @args_expectation.args_match?(args) - end - - def invoke(*args, &block) - if @expected_received_count == 0 - @failed_fast = true - @actual_received_count += 1 - @error_generator.raise_expectation_error @sym, @expected_received_count, @actual_received_count, *args - end - - @order_group.handle_order_constraint self - - begin - Kernel::raise @exception_to_raise unless @exception_to_raise.nil? - Kernel::throw @symbol_to_throw unless @symbol_to_throw.nil? - - - if !@method_block.nil? - default_return_val = invoke_method_block(*args) - elsif @args_to_yield.size > 0 - default_return_val = invoke_with_yield(&block) - else - default_return_val = nil - end - - if @consecutive - return invoke_consecutive_return_block(*args, &block) - elsif @return_block - return invoke_return_block(*args, &block) - else - return default_return_val - end - ensure - @actual_received_count += 1 - end - end - - def called_max_times? - @expected_received_count != :any && @expected_received_count > 0 && - @actual_received_count >= @expected_received_count - end - - def invoke_return_block(*args, &block) - args << block unless block.nil? - # Ruby 1.9 - when we set @return_block to return values - # regardless of arguments, any arguments will result in - # a "wrong number of arguments" error - @return_block.arity == 0 ? @return_block.call : @return_block.call(*args) - end - - protected - - def invoke_method_block(*args) - begin - @method_block.call(*args) - rescue => detail - @error_generator.raise_block_failed_error @sym, detail.message - end - end - - def invoke_with_yield(&block) - if block.nil? - @error_generator.raise_missing_block_error @args_to_yield - end - value = nil - @args_to_yield.each do |args_to_yield_this_time| - if block.arity > -1 && args_to_yield_this_time.length != block.arity - @error_generator.raise_wrong_arity_error args_to_yield_this_time, block.arity - end - value = block.call(*args_to_yield_this_time) - end - value - end - - def invoke_consecutive_return_block(*args, &block) - value = invoke_return_block(*args, &block) - index = [@actual_received_count, value.size-1].min - value[index] - end - - def clone_args_to_yield(args) - @args_to_yield = args.clone - @args_to_yield_were_cloned = true - end - - def failed_fast? - @failed_fast - end - end - - class MessageExpectation < BaseExpectation - - def matches_name?(sym) - @sym == sym - end - - def matches_name_but_not_args(sym, args) - matches_name?(sym) and not @args_expectation.args_match?(args) - end - - def verify_messages_received - return if expected_messages_received? || failed_fast? - - generate_error - rescue Spec::Mocks::MockExpectationError => error - error.backtrace.insert(0, @expected_from) - Kernel::raise error - end - - def expected_messages_received? - ignoring_args? || matches_exact_count? || - matches_at_least_count? || matches_at_most_count? - end - - def ignoring_args? - @expected_received_count == :any - end - - def matches_at_least_count? - @at_least && @actual_received_count >= @expected_received_count - end - - def matches_at_most_count? - @at_most && @actual_received_count <= @expected_received_count - end - - def matches_exact_count? - @expected_received_count == @actual_received_count - end - - def similar_messages - @similar_messages ||= [] - end - - def advise(args, block) - similar_messages << args - end - - def generate_error - if similar_messages.empty? - @error_generator.raise_expectation_error(@sym, @expected_received_count, @actual_received_count, *@args_expectation.args) - else - @error_generator.raise_unexpected_message_args_error(self, *@similar_messages) - end - end - - def with(*args, &block) - @args_expectation = ArgumentExpectation.new(args, &block) - self - end - - def exactly(n) - set_expected_received_count :exactly, n - self - end - - def at_least(n) - set_expected_received_count :at_least, n - self - end - - def at_most(n) - set_expected_received_count :at_most, n - self - end - - def times(&block) - @method_block = block if block - self - end - - def any_number_of_times(&block) - @method_block = block if block - @expected_received_count = :any - self - end - - def never - @expected_received_count = 0 - self - end - - def once(&block) - @method_block = block if block - @expected_received_count = 1 - self - end - - def twice(&block) - @method_block = block if block - @expected_received_count = 2 - self - end - - def ordered(&block) - @method_block = block if block - @order_group.register(self) - @ordered = true - self - end - - def negative_expectation_for?(sym) - return false - end - - protected - def set_expected_received_count(relativity, n) - @at_least = (relativity == :at_least) - @at_most = (relativity == :at_most) - @expected_received_count = case n - when Numeric - n - when :once - 1 - when :twice - 2 - end - end - - def clear_actual_received_count! - @actual_received_count = 0 - end - - end - - class NegativeMessageExpectation < MessageExpectation - def initialize(message, expectation_ordering, expected_from, sym, method_block) - super(message, expectation_ordering, expected_from, sym, method_block, 0) - end - - def negative_expectation_for?(sym) - return @sym == sym - end - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/methods.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/methods.rb deleted file mode 100644 index 16dd6e84..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/methods.rb +++ /dev/null @@ -1,89 +0,0 @@ -module Spec - module Mocks - module Methods - def should_receive(sym, opts={}, &block) - __mock_proxy.add_message_expectation(opts[:expected_from] || caller(1)[0], sym.to_sym, opts, &block) - end - - def should_not_receive(sym, &block) - __mock_proxy.add_negative_message_expectation(caller(1)[0], sym.to_sym, &block) - end - - def stub!(sym_or_hash, opts={}, &block) - if Hash === sym_or_hash - sym_or_hash.each {|method, value| stub!(method).and_return value } - else - __mock_proxy.add_stub(caller(1)[0], sym_or_hash.to_sym, opts, &block) - end - end - - alias_method :stub, :stub! - - def unstub!(message) - __mock_proxy.remove_stub(message) - end - - alias_method :unstub, :unstub! - - # :call-seq: - # object.stub_chain(:first, :second, :third).and_return(:this) - # - # Supports stubbing a chain of methods. Each argument represents - # a method name to stub, and each one returns a proxy object that - # can accept more stubs, until the last, which returns whatever - # is passed to +and_return_. - # - # == Examples - # - # # with this in an example ... - # article = double('article') - # Article.stub_chain(:authored_by, :published, :recent).and_return([article]) - # # then this will return an Array with the article double in it: - # Article.authored_by(params[:author_id]).published.recent - def stub_chain(*methods) - if methods.length > 1 - if matching_stub = __mock_proxy.find_matching_method_stub(methods[0]) - methods.shift - matching_stub.invoke_return_block.stub_chain(*methods) - else - next_in_chain = Object.new - stub!(methods.shift) {next_in_chain} - next_in_chain.stub_chain(*methods) - end - else - stub!(methods.shift) - end - end - - def received_message?(sym, *args, &block) #:nodoc: - __mock_proxy.received_message?(sym.to_sym, *args, &block) - end - - def rspec_verify #:nodoc: - __mock_proxy.verify - end - - def rspec_reset #:nodoc: - __mock_proxy.reset - end - - def as_null_object - __mock_proxy.as_null_object - end - - def null_object? - __mock_proxy.null_object? - end - - private - - def __mock_proxy - if Mock === self - @mock_proxy ||= Proxy.new(self, @name, @options) - else - @mock_proxy ||= Proxy.new(self) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/mock.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/mock.rb deleted file mode 100644 index 35a6c798..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/mock.rb +++ /dev/null @@ -1,71 +0,0 @@ -module Spec - module Mocks - class Mock - include Methods - - # Creates a new mock with a +name+ (that will be used in error messages - # only) == Options: - # * :null_object - if true, the mock object acts as a forgiving - # null object allowing any message to be sent to it. - def initialize(name=nil, stubs_and_options={}) - if name.is_a?(Hash) && stubs_and_options.empty? - stubs_and_options = name - @name = nil - else - @name = name - end - @options = extract_options(stubs_and_options) - assign_stubs(stubs_and_options) - end - - # This allows for comparing the mock to other objects that proxy such as - # ActiveRecords belongs_to proxy objects. By making the other object run - # the comparison, we're sure the call gets delegated to the proxy - # target. - def ==(other) - other == __mock_proxy - end - - def inspect - "#<#{self.class}:#{sprintf '0x%x', self.object_id} @name=#{@name.inspect}>" - end - - def to_s - inspect.gsub('<','[').gsub('>',']') - end - - private - - def method_missing(sym, *args, &block) - __mock_proxy.record_message_received(sym, args, block) - begin - return self if __mock_proxy.null_object? - super(sym, *args, &block) - rescue NameError - __mock_proxy.raise_unexpected_message_error sym, *args - end - end - - def extract_options(stubs_and_options) - options = {} - extract_option(stubs_and_options, options, :null_object) - extract_option(stubs_and_options, options, :__declared_as, 'Mock') - options - end - - def extract_option(source, target, key, default=nil) - if source[key] - target[key] = source.delete(key) - elsif default - target[key] = default - end - end - - def assign_stubs(stubs) - stubs.each_pair do |message, response| - stub!(message).and_return(response) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/order_group.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/order_group.rb deleted file mode 100644 index 9983207e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/order_group.rb +++ /dev/null @@ -1,29 +0,0 @@ -module Spec - module Mocks - class OrderGroup - def initialize error_generator - @error_generator = error_generator - @ordering = Array.new - end - - def register(expectation) - @ordering << expectation - end - - def ready_for?(expectation) - return @ordering.first == expectation - end - - def consume - @ordering.shift - end - - def handle_order_constraint expectation - return unless @ordering.include? expectation - return consume if ready_for?(expectation) - @error_generator.raise_out_of_order_error expectation.sym - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/proxy.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/proxy.rb deleted file mode 100644 index acf72e0f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/proxy.rb +++ /dev/null @@ -1,245 +0,0 @@ -module Spec - module Mocks - class Proxy - DEFAULT_OPTIONS = { - :null_object => false, - } - - @@warn_about_expectations_on_nil = true - - def self.allow_message_expectations_on_nil - @@warn_about_expectations_on_nil = false - - # ensure nil.rspec_verify is called even if an expectation is not set in the example - # otherwise the allowance would effect subsequent examples - $rspec_mocks.add(nil) unless $rspec_mocks.nil? - end - - def initialize(target, name=nil, options={}) - @target = target - @name = name - @error_generator = ErrorGenerator.new target, name, options - @expectation_ordering = OrderGroup.new @error_generator - @expectations = [] - @messages_received = [] - @stubs = [] - @proxied_methods = [] - @options = options ? DEFAULT_OPTIONS.dup.merge(options) : DEFAULT_OPTIONS - @already_proxied_respond_to = false - end - - def null_object? - @options[:null_object] - end - - def as_null_object - @options[:null_object] = true - @target - end - - def add_message_expectation(expected_from, sym, opts={}, &block) - __add sym - warn_if_nil_class sym - if existing_stub = @stubs.detect {|s| s.sym == sym } - expectation = existing_stub.build_child(expected_from, block_given?? block : nil, 1, opts) - else - expectation = MessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, block_given? ? block : nil, 1, opts) - end - @expectations << expectation - @expectations.last - end - - def add_negative_message_expectation(expected_from, sym, &block) - __add sym - warn_if_nil_class sym - @expectations << NegativeMessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, block_given? ? block : nil) - @expectations.last - end - - def add_stub(expected_from, sym, opts={}, &implementation) - __add sym - @stubs.unshift MessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, nil, :any, opts, &implementation) - @stubs.first - end - - def remove_stub(message) - message = message.to_sym - - if stub_to_remove = @stubs.detect { |s| s.matches_name?(message) } - reset_proxied_method(message) - @stubs.delete(stub_to_remove) - else - raise MockExpectationError, "The method `#{message}` was not stubbed or was already unstubbed" - end - end - - def verify #:nodoc: - verify_expectations - ensure - reset - end - - def reset - clear_expectations - clear_stubs - reset_proxied_methods - clear_proxied_methods - reset_nil_expectations_warning - end - - def received_message?(sym, *args, &block) - @messages_received.any? {|array| array == [sym, args, block]} - end - - def has_negative_expectation?(sym) - @expectations.detect {|expectation| expectation.negative_expectation_for?(sym)} - end - - def record_message_received(sym, args, block) - @messages_received << [sym, args, block] - end - - def message_received(sym, *args, &block) - expectation = find_matching_expectation(sym, *args) - stub = find_matching_method_stub(sym, *args) - - if (stub && expectation && expectation.called_max_times?) || (stub && !expectation) - if expectation = find_almost_matching_expectation(sym, *args) - expectation.advise(args, block) unless expectation.expected_messages_received? - end - stub.invoke(*args, &block) - elsif expectation - expectation.invoke(*args, &block) - elsif expectation = find_almost_matching_expectation(sym, *args) - expectation.advise(args, block) if null_object? unless expectation.expected_messages_received? - raise_unexpected_message_args_error(expectation, *args) unless (has_negative_expectation?(sym) or null_object?) - else - @target.__send__ :method_missing, sym, *args, &block - end - end - - def raise_unexpected_message_args_error(expectation, *args) - @error_generator.raise_unexpected_message_args_error expectation, *args - end - - def raise_unexpected_message_error(sym, *args) - @error_generator.raise_unexpected_message_error sym, *args - end - - def find_matching_method_stub(sym, *args) - @stubs.find {|stub| stub.matches(sym, args)} - end - - private - - def __add(sym) - $rspec_mocks.add(@target) unless $rspec_mocks.nil? - define_expected_method(sym) - end - - def warn_if_nil_class(sym) - if proxy_for_nil_class? & @@warn_about_expectations_on_nil - Kernel.warn("An expectation of :#{sym} was set on nil. Called from #{caller[2]}. Use allow_message_expectations_on_nil to disable warnings.") - end - end - - def define_expected_method(sym) - unless @proxied_methods.include?(sym) - visibility_string = "#{visibility(sym)} :#{sym}" - if target_responds_to?(sym) - munged_sym = munge(sym) - target_metaclass.instance_eval do - alias_method munged_sym, sym if method_defined?(sym) - end - @proxied_methods << sym - end - target_metaclass.class_eval(<<-EOF, __FILE__, __LINE__) - def #{sym}(*args, &block) - __mock_proxy.message_received :#{sym}, *args, &block - end - #{visibility_string} - EOF - end - end - - def target_responds_to?(sym) - return @target.__send__(munge(:respond_to?),sym) if @already_proxied_respond_to - return @already_proxied_respond_to = true if sym == :respond_to? - return @target.respond_to?(sym, true) - end - - def visibility(sym) - if Mock === @target - 'public' - elsif target_metaclass.private_method_defined?(sym) - 'private' - elsif target_metaclass.protected_method_defined?(sym) - 'protected' - else - 'public' - end - end - - def munge(sym) - "proxied_by_rspec__#{sym}" - end - - def clear_expectations - @expectations.clear - end - - def clear_stubs - @stubs.clear - end - - def clear_proxied_methods - @proxied_methods.clear - end - - def target_metaclass - class << @target; self; end - end - - def verify_expectations - @expectations.each do |expectation| - expectation.verify_messages_received - end - end - - def reset_proxied_methods - @proxied_methods.each do |sym| - reset_proxied_method(sym) - end - end - - def reset_proxied_method(sym) - munged_sym = munge(sym) - target_metaclass.instance_eval do - remove_method sym - if method_defined?(munged_sym) - alias_method sym, munged_sym - remove_method munged_sym - end - end - end - - def proxy_for_nil_class? - @target.nil? - end - - def reset_nil_expectations_warning - @@warn_about_expectations_on_nil = true if proxy_for_nil_class? - end - - def find_matching_expectation(sym, *args) - @expectations.find {|expectation| expectation.matches(sym, args) && !expectation.called_max_times?} || - @expectations.find {|expectation| expectation.matches(sym, args)} - end - - def find_almost_matching_expectation(sym, *args) - @expectations.find {|expectation| expectation.matches_name_but_not_args(sym, args)} - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb deleted file mode 100644 index 3e13224c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Spec - module Mocks - class Space - def add(obj) - mocks << obj unless mocks.detect {|m| m.equal? obj} - end - - def verify_all - mocks.each do |mock| - mock.rspec_verify - end - end - - def reset_all - mocks.each do |mock| - mock.rspec_reset - end - mocks.clear - end - - private - - def mocks - @mocks ||= [] - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/spectask.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/spectask.rb deleted file mode 100644 index 9049fd08..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/spectask.rb +++ /dev/null @@ -1,230 +0,0 @@ -#!/usr/bin/env ruby - -# Define a task library for running RSpec contexts. - -require 'rake' -require 'rake/tasklib' - -module Spec - module Rake - - # A Rake task that runs a set of specs. - # - # Example: - # - # Spec::Rake::SpecTask.new do |t| - # t.warning = true - # t.rcov = true - # end - # - # This will create a task that can be run with: - # - # rake spec - # - # If rake is invoked with a "SPEC=filename" command line option, - # then the list of spec files will be overridden to include only the - # filename specified on the command line. This provides an easy way - # to run just one spec. - # - # If rake is invoked with a "SPEC_OPTS=options" command line option, - # then the given options will override the value of the +spec_opts+ - # attribute. - # - # If rake is invoked with a "RCOV_OPTS=options" command line option, - # then the given options will override the value of the +rcov_opts+ - # attribute. - # - # Examples: - # - # rake spec # run specs normally - # rake spec SPEC=just_one_file.rb # run just one spec file. - # rake spec SPEC_OPTS="--diff" # enable diffing - # rake spec RCOV_OPTS="--aggregate myfile.txt" # see rcov --help for details - # - # Each attribute of this task may be a proc. This allows for lazy evaluation, - # which is sometimes handy if you want to defer the evaluation of an attribute value - # until the task is run (as opposed to when it is defined). - # - # This task can also be used to run existing Test::Unit tests and get RSpec - # output, for example like this: - # - # require 'spec/rake/spectask' - # Spec::Rake::SpecTask.new do |t| - # t.ruby_opts = ['-rtest/unit'] - # t.spec_files = FileList['test/**/*_test.rb'] - # end - # - class SpecTask < ::Rake::TaskLib - def self.attr_accessor(*names) - super(*names) - names.each do |name| - module_eval "def #{name}() evaluate(@#{name}) end" # Allows use of procs - end - end - - # Name of spec task. (default is :spec) - attr_accessor :name - - # Array of directories to be added to $LOAD_PATH before running the - # specs. Defaults to [''] - attr_accessor :libs - - # If true, requests that the specs be run with the warning flag set. - # E.g. warning=true implies "ruby -w" used to run the specs. Defaults to false. - attr_accessor :warning - - # Glob pattern to match spec files. (default is 'spec/**/*_spec.rb') - # Setting the SPEC environment variable overrides this. - attr_accessor :pattern - - # Array of commandline options to pass to RSpec. Defaults to []. - # Setting the SPEC_OPTS environment variable overrides this. - attr_accessor :spec_opts - - # Whether or not to use RCov (default is false) - # See http://eigenclass.org/hiki.rb?rcov - attr_accessor :rcov - - # Array of commandline options to pass to RCov. Defaults to ['--exclude', 'lib\/spec,bin\/spec']. - # Ignored if rcov=false - # Setting the RCOV_OPTS environment variable overrides this. - attr_accessor :rcov_opts - - # Directory where the RCov report is written. Defaults to "coverage" - # Ignored if rcov=false - attr_accessor :rcov_dir - - # Array of commandline options to pass to ruby. Defaults to []. - attr_accessor :ruby_opts - - # Whether or not to fail Rake when an error occurs (typically when specs fail). - # Defaults to true. - attr_accessor :fail_on_error - - # A message to print to stderr when there are failures. - attr_accessor :failure_message - - # Where RSpec's output is written. Defaults to $stdout. - # DEPRECATED. Use --format FORMAT:WHERE in spec_opts. - attr_accessor :out - - # Explicitly define the list of spec files to be included in a - # spec. +spec_files+ is expected to be an array of file names (a - # FileList is acceptable). If both +pattern+ and +spec_files+ are - # used, then the list of spec files is the union of the two. - # Setting the SPEC environment variable overrides this. - attr_accessor :spec_files - - # Use verbose output. If this is set to true, the task will print - # the executed spec command to stdout. Defaults to false. - attr_accessor :verbose - - # Explicitly define the path to the ruby binary, or its proxy (e.g. multiruby) - attr_accessor :ruby_cmd - - # Defines a new task, using the name +name+. - def initialize(name=:spec) - @name = name - @libs = ['lib'] - @pattern = nil - @spec_files = nil - @spec_opts = [] - @warning = false - @ruby_opts = [] - @fail_on_error = true - @rcov = false - @rcov_opts = ['--exclude', 'lib\/spec,bin\/spec,config\/boot.rb'] - @rcov_dir = "coverage" - - yield self if block_given? - @pattern = 'spec/**/*_spec.rb' if pattern.nil? && spec_files.nil? - define - end - - def define # :nodoc: - spec_script = File.expand_path(File.join(File.dirname(__FILE__),"..","..","..","bin","spec")) - - lib_path = libs.join(File::PATH_SEPARATOR) - actual_name = Hash === name ? name.keys.first : name - unless ::Rake.application.last_comment - desc "Run specs" + (rcov ? " using RCov" : "") - end - task name do - RakeFileUtils.verbose(verbose) do - unless spec_file_list.empty? - # ruby [ruby_opts] -Ilib -S rcov [rcov_opts] bin/spec -- examples [spec_opts] - # or - # ruby [ruby_opts] -Ilib bin/spec examples [spec_opts] - cmd_parts = [ruby_cmd || RUBY] - cmd_parts += ruby_opts - cmd_parts << %[-I"#{lib_path}"] - cmd_parts << "-S rcov" if rcov - cmd_parts << "-w" if warning - cmd_parts << rcov_option_list - cmd_parts << %[-o "#{rcov_dir}"] if rcov - cmd_parts << %["#{spec_script}"] - cmd_parts << "--" if rcov - cmd_parts += spec_file_list.collect { |fn| %["#{fn}"] } - cmd_parts << spec_option_list - if out - cmd_parts << %[> "#{out}"] - STDERR.puts "The Spec::Rake::SpecTask#out attribute is DEPRECATED and will be removed in a future version. Use --format FORMAT:WHERE instead." - end - cmd = cmd_parts.join(" ") - puts cmd if verbose - unless system(cmd) - STDERR.puts failure_message if failure_message - raise("Command #{cmd} failed") if fail_on_error - end - end - end - end - - if rcov - desc "Remove rcov products for #{actual_name}" - task paste("clobber_", actual_name) do - rm_r rcov_dir rescue nil - end - - clobber_task = paste("clobber_", actual_name) - task :clobber => [clobber_task] - - task actual_name => clobber_task - end - self - end - - def rcov_option_list # :nodoc: - if rcov - ENV['RCOV_OPTS'] || rcov_opts.join(" ") || "" - else - "" - end - end - - def spec_option_list # :nodoc: - STDERR.puts "RSPECOPTS is DEPRECATED and will be removed in a future version. Use SPEC_OPTS instead." if ENV['RSPECOPTS'] - ENV['SPEC_OPTS'] || ENV['RSPECOPTS'] || spec_opts.join(" ") || "" - end - - def evaluate(o) # :nodoc: - case o - when Proc then o.call - else o - end - end - - def spec_file_list # :nodoc: - if ENV['SPEC'] - FileList[ ENV['SPEC'] ] - else - result = [] - result += spec_files.to_a if spec_files - result += FileList[ pattern ].to_a if pattern - FileList[result] - end - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/verify_rcov.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/verify_rcov.rb deleted file mode 100644 index 199bd854..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/rake/verify_rcov.rb +++ /dev/null @@ -1,52 +0,0 @@ -module RCov - # A task that can verify that the RCov coverage doesn't - # drop below a certain threshold. It should be run after - # running Spec::Rake::SpecTask. - class VerifyTask < Rake::TaskLib - # Name of the task. Defaults to :verify_rcov - attr_accessor :name - - # Path to the index.html file generated by RCov, which - # is the file containing the total coverage. - # Defaults to 'coverage/index.html' - attr_accessor :index_html - - # Whether or not to output details. Defaults to true. - attr_accessor :verbose - - # The threshold value (in percent) for coverage. If the - # actual coverage is not equal to this value, the task will raise an - # exception. - attr_accessor :threshold - - # Require the threshold value be met exactly. This is the default. - attr_accessor :require_exact_threshold - - def initialize(name=:verify_rcov) - @name = name - @index_html = 'coverage/index.html' - @verbose = true - @require_exact_threshold = true - yield self if block_given? - raise "Threshold must be set" if @threshold.nil? - define - end - - def define - desc "Verify that rcov coverage is at least #{threshold}%" - task @name do - total_coverage = 0 - - File.open(index_html).each_line do |line| - if line =~ /\s*(\d+\.\d+)%\s*<\/tt>/ - total_coverage = $1.to_f - break - end - end - puts "Coverage: #{total_coverage}% (threshold: #{threshold}%)" if verbose - raise "Coverage must be at least #{threshold}% but was #{total_coverage}%" if total_coverage < threshold - raise "Coverage has increased above the threshold of #{threshold}% to #{total_coverage}%. You should update your threshold value." if (total_coverage > threshold) and require_exact_threshold - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/ruby.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/ruby.rb deleted file mode 100644 index 863877c7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/ruby.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Spec - module Ruby - class << self - def version - RUBY_VERSION - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner.rb deleted file mode 100644 index 519b536e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner.rb +++ /dev/null @@ -1,66 +0,0 @@ -require 'spec/runner/configuration' -require 'spec/runner/options' -require 'spec/runner/option_parser' -require 'spec/runner/example_group_runner' -require 'spec/runner/command_line' -require 'spec/runner/drb_command_line' -require 'spec/runner/backtrace_tweaker' -require 'spec/runner/reporter' -require 'spec/runner/line_number_query' -require 'spec/runner/class_and_arguments_parser' -require 'spec/runner/extensions/kernel' - -module Spec - module Runner - - class ExampleGroupCreationListener - def register_example_group(klass) - Spec::Runner.options.add_example_group klass - end - end - - Spec::Example::ExampleGroupFactory.example_group_creation_listeners << ExampleGroupCreationListener.new - - class << self - def configuration # :nodoc: - @configuration ||= Spec::Runner::Configuration.new - end - - # Use this to configure various configurable aspects of - # RSpec: - # - # Spec::Runner.configure do |configuration| - # # Configure RSpec here - # end - # - # The yielded configuration object is a - # Spec::Runner::Configuration instance. See its RDoc - # for details about what you can do with it. - # - def configure - yield configuration - end - - def autorun # :nodoc: - at_exit {exit run unless $!} - end - - def options # :nodoc: - @options ||= begin - parser = ::Spec::Runner::OptionParser.new($stderr, $stdout) - parser.order!(ARGV) - parser.options - end - end - - def use options - @options = options - end - - def run - options.examples_run? || options.run_examples - end - - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/backtrace_tweaker.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/backtrace_tweaker.rb deleted file mode 100644 index a3cb7d9b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/backtrace_tweaker.rb +++ /dev/null @@ -1,77 +0,0 @@ -module Spec - module Runner - class BacktraceTweaker - def initialize(*patterns) - @ignore_patterns = [] - end - - def clean_up_double_slashes(line) - line.gsub!('//','/') - end - - def ignore_patterns(*patterns) - # do nothing. Only QuietBacktraceTweaker ignores patterns. - end - - def ignored_patterns - [] - end - - def tweak_backtrace(error) - return if error.backtrace.nil? - tweaked = error.backtrace.collect do |message| - clean_up_double_slashes(message) - kept_lines = message.split("\n").select do |line| - ignored_patterns.each do |ignore| - break if line =~ ignore - end - end - kept_lines.empty?? nil : kept_lines.join("\n") - end - error.set_backtrace(tweaked.select {|line| line}) - end - end - - class NoisyBacktraceTweaker < BacktraceTweaker - end - - # Tweaks raised Exceptions to mask noisy (unneeded) parts of the backtrace - class QuietBacktraceTweaker < BacktraceTweaker - unless defined?(IGNORE_PATTERNS) - spec_files = Dir["lib/*"].map do |path| - subpath = path[1..-1] - /#{subpath}/ - end - IGNORE_PATTERNS = spec_files + [ - /\/rspec-[^\/]*\/lib\/spec\//, - /\/spork-[^\/]*\/lib\/spork\//, - /\/lib\/ruby\//, - /bin\/spec:/, - /bin\/spork:/, - /bin\/rcov:/, - /lib\/rspec-rails/, - /vendor\/rails/, - # TextMate's Ruby and RSpec plugins - /Ruby\.tmbundle\/Support\/tmruby.rb:/, - /RSpec\.tmbundle\/Support\/lib/, - /temp_textmate\./, - /mock_frameworks\/rspec/, - /spec_server/ - ] - end - - def initialize(*patterns) - super - ignore_patterns(*patterns) - end - - def ignore_patterns(*patterns) - @ignore_patterns += patterns.flatten.map { |pattern| Regexp.new(pattern) } - end - - def ignored_patterns - IGNORE_PATTERNS + @ignore_patterns - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/class_and_arguments_parser.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/class_and_arguments_parser.rb deleted file mode 100644 index a49ade26..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/class_and_arguments_parser.rb +++ /dev/null @@ -1,14 +0,0 @@ -module Spec - module Runner - class ClassAndArgumentsParser - def self.parse(s) - if s =~ /([a-zA-Z_]+(?:::[a-zA-Z_]+)*):?(.*)/ - arg = $2 == "" ? nil : $2 - [$1, arg] - else - raise "Couldn't parse #{s.inspect}" - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb deleted file mode 100644 index 35a7e315..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec/runner/option_parser' - -module Spec - module Runner - class CommandLine - def self.run(tmp_options=Spec::Runner.options) - orig_options = Spec::Runner.options - Spec::Runner.use tmp_options - tmp_options.run_examples - ensure - Spec::Runner.use orig_options - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/configuration.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/configuration.rb deleted file mode 100644 index d211565d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/configuration.rb +++ /dev/null @@ -1,194 +0,0 @@ -module Spec - module Runner - class Configuration - include Spec::Example::ArgsAndOptions - - # Chooses what mock framework to use. Example: - # - # Spec::Runner.configure do |config| - # config.mock_with :rspec, :mocha, :flexmock, or :rr - # end - # - # To use any other mock framework, you'll have to provide your own - # adapter. This is simply a module that responds to the following - # methods: - # - # setup_mocks_for_rspec - # verify_mocks_for_rspec - # teardown_mocks_for_rspec. - # - # These are your hooks into the lifecycle of a given example. RSpec will - # call setup_mocks_for_rspec before running anything else in each - # Example. After executing the #after methods, RSpec will then call - # verify_mocks_for_rspec and teardown_mocks_for_rspec (this is - # guaranteed to run even if there are failures in - # verify_mocks_for_rspec). - # - # Once you've defined this module, you can pass that to mock_with: - # - # Spec::Runner.configure do |config| - # config.mock_with MyMockFrameworkAdapter - # end - # - def mock_with(mock_framework) - @mock_framework = case mock_framework - when Symbol - mock_framework_path(mock_framework.to_s) - else - mock_framework - end - end - - def mock_framework # :nodoc: - @mock_framework ||= mock_framework_path("rspec") - end - - # :call-seq: - # include(Some::Helpers) - # include(Some::Helpers, More::Helpers) - # include(My::Helpers, :type => :key) - # - # Declares modules to be included in multiple example groups - # (describe blocks). With no :type, the modules listed - # will be included in all example groups. - # - # Use :type to restrict - # the inclusion to a subset of example groups. The value assigned to - # :type should be a key that maps to a class that is either a - # subclass of Spec::Example::ExampleGroup or extends - # Spec::Example::ExampleGroupMethods and includes - # Spec::Example::ExampleMethods. - # - # For example, the rspec-rails gem/plugin extends Test::Unit::TestCase - # with Spec::Example::ExampleGroupMethods and includes - # Spec::Example::ExampleMethods in it. So if you have a module of helper - # methods for controller examples, you could do this: - # - # config.include(ControllerExampleHelpers, :type => :controller) - # - # Only example groups that have that type will get the modules included: - # - # describe Account, :type => :model do - # # Will *not* include ControllerExampleHelpers - # end - # - # describe AccountsController, :type => :controller do - # # *Will* include ControllerExampleHelpers - # end - # - def include(*modules_and_options) - include_or_extend(:include, *modules_and_options) - end - - # :call-seq: - # extend(Some::Helpers) - # extend(Some::Helpers, More::Helpers) - # extend(My::Helpers, :type => :key) - # - # Works just like #include, but extends the example groups - # with the modules rather than including them. - def extend(*modules_and_options) - include_or_extend(:extend, *modules_and_options) - end - - # Appends a global before block to all example groups. - # scope can be any of :each (default), :all, or - # :suite. When :each, the block is executed before each - # example. When :all, the block is executed once per example - # group, before any of its examples are run. When :suite the - # block is run once before the entire suite is run. - def append_before(scope = :each, options={}, &proc) - add_callback(:append_before, scope, options, &proc) - end - alias_method :before, :append_before - - # Prepends a global before block to all example groups. - # - # See append_before for scoping semantics. - def prepend_before(scope = :each, options={}, &proc) - add_callback(:prepend_before, scope, options, &proc) - end - - # Prepends a global after block to all example groups. - # - # See append_before for scoping semantics. - def prepend_after(scope = :each, options={}, &proc) - add_callback(:prepend_after, scope, options, &proc) - end - alias_method :after, :prepend_after - - # Appends a global after block to all example groups. - # - # See append_before for scoping semantics. - def append_after(scope = :each, options={}, &proc) - add_callback(:append_after, scope, options, &proc) - end - - # DEPRECATED - use Spec::Matchers::DSL instead - # - # Defines global predicate matchers. Example: - # - # config.predicate_matchers[:swim] = :can_swim? - # - # This makes it possible to say: - # - # person.should swim # passes if person.can_swim? returns true - # - def predicate_matchers - @predicate_matchers ||= Spec::HashWithDeprecationNotice.new("predicate_matchers", "the new Matcher DSL") - end - - # Adds patterns to the list of patterns ignored in the backtrace when a - # failure is output by rspec. Example: - # - # config.ignore_backtrace_patterns /spork/, /shoulda/, "/some/weird/path/" - # - # When quiet backtraces are turned on (default), this will exclude any - # lines that match any of the Regexps and Strings passed. - # - def ignore_backtrace_patterns(*patterns) - @ignored_backtrace_patterns ||= [] - @ignored_backtrace_patterns += patterns - end - - def ignored_backtrace_patterns # :nodoc: - @ignored_backtrace_patterns ||= [] - end - - private - - def include_or_extend(action, *args) - modules, options = args_and_options(*args) - [get_type_from_options(options)].flatten.each do |required_example_group| - required_example_group = required_example_group.to_sym if required_example_group - modules.each do |mod| - Spec::Example::ExampleGroupFactory[required_example_group].__send__(action, mod) - end - end - end - - def add_callback(sym, *args, &proc) - scope, options = scope_and_options(*args) - example_group = Spec::Example::ExampleGroupFactory[get_type_from_options(options)] - example_group.__send__(sym, scope, &proc) - end - - def get_type_from_options(options) - options[:type] || options[:behaviour_type] - end - - def mock_framework_path(framework_name) - "spec/adapters/mock_frameworks/#{framework_name}" - end - - def scope_and_options(*args) # :nodoc: - args, options = args_and_options(*args) - return scope_from(*args), options - end - - def scope_from(*args) # :nodoc: - args[0] || :each - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/default.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/default.rb deleted file mode 100644 index 7f0a7e64..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/default.rb +++ /dev/null @@ -1,93 +0,0 @@ -require 'spec/runner/differs/load-diff-lcs' -require 'pp' - -module Spec - module Expectations - module Differs - unless defined?(Default) - class Default - def initialize(options) - @options = options - end - - # This is snagged from diff/lcs/ldiff.rb (which is a commandline tool) - def diff_as_string(data_new, data_old) - data_old = data_old.split(/\n/).map! { |e| e.chomp } - data_new = data_new.split(/\n/).map! { |e| e.chomp } - output = "" - diffs = Diff::LCS.diff(data_old, data_new) - return output if diffs.empty? - oldhunk = hunk = nil - file_length_difference = 0 - diffs.each do |piece| - begin - hunk = Diff::LCS::Hunk.new(data_old, data_new, piece, context_lines, - file_length_difference) - file_length_difference = hunk.file_length_difference - next unless oldhunk - # Hunks may overlap, which is why we need to be careful when our - # diff includes lines of context. Otherwise, we might print - # redundant lines. - if (context_lines > 0) and hunk.overlaps?(oldhunk) - hunk.unshift(oldhunk) - else - output << oldhunk.diff(format) - end - ensure - oldhunk = hunk - output << "\n" - end - end - #Handle the last remaining hunk - output << oldhunk.diff(format) << "\n" - end - - def diff_as_object(target,expected) - diff_as_string(PP.pp(target,""), PP.pp(expected,"")) - end - - def diff_as_hash(target, expected) - contains_hash = false - contains_array = false - - extra_expected_keys = expected.keys - target.keys - extra_target_keys = target.keys - expected.keys - - o = "\n" - - o << "Expected hash contains keys that target hash does not: " << extra_expected_keys.inspect << "\n" if !extra_expected_keys.empty? - o << "Target hash contains keys that expected hash does not: " << extra_target_keys.inspect << "\n" if !extra_target_keys.empty? - - expected.delete_if do |key, value| - contains_hash = true if value.is_a?(Hash) - contains_array = true if value.is_a?(Array) - target[key] == value - end - - expected.keys.sort { |a,b| a.to_s <=> b.to_s }.each do |key| - o << "Expected the key #{key.inspect} to be #{expected[key].inspect}, but was #{target[key].inspect}\n" - end - - o << "\n" - - if contains_hash || contains_array - o << diff_as_object(target, expected) - else - o - end - end - - protected - def format - @options.diff_format - end - - def context_lines - @options.context_lines - end - end - - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/load-diff-lcs.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/load-diff-lcs.rb deleted file mode 100644 index f708bc9b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/differs/load-diff-lcs.rb +++ /dev/null @@ -1,12 +0,0 @@ -begin - require 'diff/lcs' -rescue LoadError - begin - require 'rubygems' unless ENV['NO_RUBYGEMS'] - require 'diff/lcs' - rescue LoadError - raise "You must gem install diff-lcs to use diffing" - end -end - -require 'diff/lcs/hunk' diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/drb_command_line.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/drb_command_line.rb deleted file mode 100644 index 058a8e1d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/drb_command_line.rb +++ /dev/null @@ -1,26 +0,0 @@ -require "drb/drb" - -module Spec - module Runner - # Facade to run specs by connecting to a DRB server - class DrbCommandLine - # Runs specs on a DRB server. Note that this API is similar to that of - # CommandLine - making it possible for clients to use both interchangeably. - def self.run(options) - begin - begin; \ - DRb.start_service("druby://localhost:0"); \ - rescue SocketError; \ - DRb.start_service("druby://:0"); \ - end - spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989") - spec_server.run(options.argv, options.error_stream, options.output_stream) - true - rescue DRb::DRbConnError - options.error_stream.puts "No server is running" - false - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb deleted file mode 100644 index 67dc9950..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb +++ /dev/null @@ -1,59 +0,0 @@ -module Spec - module Runner - class ExampleGroupRunner - def initialize(options) - @options = options - end - - def load_files(files) - $KCODE = 'u' if RUBY_VERSION.to_f < 1.9 - # It's important that loading files (or choosing not to) stays the - # responsibility of the ExampleGroupRunner. Some implementations (like) - # the one using DRb may choose *not* to load files, but instead tell - # someone else to do it over the wire. - files.each do |file| - load file - end - end - - def run - prepare - success = true - example_groups.each do |example_group| - success = success & example_group.run(@options) - end - return success - ensure - finish - end - - protected - - def prepare - reporter.start(number_of_examples) - example_groups.reverse! if reverse - end - - def finish - reporter.end - reporter.dump - end - - def reporter - @options.reporter - end - - def reverse - @options.reverse - end - - def example_groups - @options.example_groups - end - - def number_of_examples - @options.number_of_examples - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/extensions/kernel.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/extensions/kernel.rb deleted file mode 100644 index 4e23cdf2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/extensions/kernel.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Kernel - unless respond_to?(:debugger) - # Start a debugging session if ruby-debug is loaded with the -u/--debugger option - def debugger(steps=1) - # If not then just comment and proceed - $stderr.puts "debugger statement ignored, use -u or --debugger option on rspec to enable debugging" - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_formatter.rb deleted file mode 100644 index 0fbc12ce..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_formatter.rb +++ /dev/null @@ -1,139 +0,0 @@ -module Spec - module Runner - module Formatter - # Formatter base-class, which implements all required methods as no-ops, with the exception - class BaseFormatter - # Formatters are initialized with options and output - # arguments. RSpec's built-in formatters already expect this, and any - # custom formatters should as well. - # - # ==== Parameters - # options:: - # A struct containing boolean values for colour, autospec, - # and dry_run - # output:: - # Used by RSpec's built-in formatters to determine where to - # write the output. Default is STDOUT, otherwise a - # filename is expected. - # - # === Example - # If you invoke the spec command with: - # - # --format progress:progress_report.txt - # - # ... the value of output will be progress_report.txt. If you - # don't identify an output destination, the default is STDOUT. - def initialize(options, output) - end - - # This method is invoked before any examples are run, right after - # they have all been collected. This can be useful for special - # formatters that need to provide progress on feedback (graphical ones) - # - # This method will only be invoked once, and the next one to be invoked - # is #example_group_started - # - # ==== Parameters - # example_count:: the total number of examples to be run - def start(example_count) - end - - # This method is invoked at the beginning of the execution of each - # example_group. The next method to be invoked after this is - # #example_started - # - # ==== Parameters - # example_group_proxy:: instance of Spec::Example::ExampleGroupProxy - def example_group_started(example_group_proxy) - end - - # Deprecated - use example_group_started instead - def add_example_group(example_group_proxy) - Spec.deprecate("BaseFormatter#add_example_group", "BaseFormatter#example_group_started") - example_group_started(example_group_proxy) - end - - # This method is invoked when an +example+ starts. The next method to be - # invoked after this is #example_passed, #example_failed, or - # #example_pending - # - # ==== Parameters - # example_proxy:: instance of Spec::Example::ExampleProxy - def example_started(example_proxy) - end - - # This method is invoked when an +example+ passes. - # +example_proxy+ is the same instance of Spec::Example::ExampleProxy - # that was passed to example_started - # - # ==== Parameters - # example_proxy:: instance of Spec::Example::ExampleProxy - def example_passed(example_proxy) - end - - # This method is invoked when an +example+ fails, i.e. an exception occurred - # inside it (such as a failed should or other exception). - # - # ==== Parameters - # example_proxy:: - # The same instance of Spec::Example::ExampleProxy that was passed - # to example_started - # - # counter:: the sequential number of this failure - # - # failure:: instance of Spec::Runner::Reporter::Failure - def example_failed(example_proxy, counter, failure) - end - - # This method is invoked when an example is not yet implemented (i.e. has not - # been provided a block), or when an ExamplePendingError is raised. - # +message+ is the message from the ExamplePendingError, if it exists, or the - # default value of "Not Yet Implemented". +deprecated_pending_location+ is - # deprecated - use example_proxy.location instead - # - # ==== Parameters - # example_proxy:: instance of Spec::Example::ExampleProxy - # message:: - # the message passed to the pending message, or an internal - # default - # - def example_pending(example_proxy, message, deprecated_pending_location=nil) - end - - # This method is invoked after all of the examples have executed. The next method - # to be invoked after this one is #dump_failure (once for each failed example) - def start_dump - end - - # Dumps detailed information about an example failure. - # This method is invoked for each failed example after all examples have run. +counter+ is the sequence number - # of the associated example. +failure+ is a Failure object, which contains detailed - # information about the failure. - # - # ==== Parameters - # counter:: the sequential number of this failure - # failure:: instance of Spec::Runner::Reporter::Failure - def dump_failure(counter, failure) - end - - # This method is invoked after the dumping of examples and failures. - # - # ==== Parameters - # duration:: the total time for the entire run - # example_count:: the number of examples run - # failure_count:: the number of examples that failed - # pending_count:: the number of examples that are pending - def dump_summary(duration, example_count, failure_count, pending_count) - end - - # This gets invoked after the summary - def dump_pending - end - - # This method is invoked at the very end. Allows the formatter to clean up, like closing open streams. - def close - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_text_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_text_formatter.rb deleted file mode 100644 index ee8db75a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/base_text_formatter.rb +++ /dev/null @@ -1,142 +0,0 @@ -require 'spec/runner/formatter/base_formatter' -require 'fileutils' - -module Spec - module Runner - module Formatter - # Baseclass for text-based formatters. Can in fact be used for - # non-text based ones too - just ignore the +output+ constructor - # argument. - class BaseTextFormatter < BaseFormatter - attr_reader :output, :example_group - # Creates a new instance that will write to +output+. If +output+ is a - # String, output will be written to the File with that name, otherwise - # +output+ is exected to be an IO (or an object that responds to #puts - # and #write). - def initialize(options, output) - @options = options - if String === output - FileUtils.mkdir_p(File.dirname(output)) - @output = File.open(output, 'w') - else - @output = output - end - @pending_examples = [] - end - - def example_group_started(example_group_proxy) - @example_group = example_group_proxy - end - - def example_pending(example, message, deprecated_pending_location=nil) - @pending_examples << ["#{@example_group.description} #{example.description}", message, example.location] - end - - def dump_failure(counter, failure) - @output.puts - @output.puts "#{counter.to_s})" - @output.puts colorize_failure("#{failure.header}\n#{failure.exception.message}", failure) - @output.puts format_backtrace(failure.exception.backtrace) - @output.flush - end - - def colorize_failure(message, failure) - failure.pending_fixed? ? blue(message) : red(message) - end - - def colourise(message, failure) - Spec::deprecate("BaseTextFormatter#colourise", "colorize_failure") - colorize_failure(message, failure) - end - - def dump_summary(duration, example_count, failure_count, pending_count) - return if dry_run? - @output.puts - @output.puts "Finished in #{duration} seconds" - @output.puts - - summary = "#{example_count} example#{'s' unless example_count == 1}, #{failure_count} failure#{'s' unless failure_count == 1}" - summary << ", #{pending_count} pending" if pending_count > 0 - - if failure_count == 0 - if pending_count > 0 - @output.puts yellow(summary) - else - @output.puts green(summary) - end - else - @output.puts red(summary) - end - @output.flush - end - - def dump_pending - unless @pending_examples.empty? - @output.puts - @output.puts "Pending:" - @pending_examples.each do |pending_example| - @output.puts "\n#{pending_example[0]} (#{pending_example[1]})" - @output.puts "#{pending_example[2]}\n" - end - end - @output.flush - end - - def close - @output.close if (IO === @output) & (@output != $stdout) - end - - def format_backtrace(backtrace) - return "" if backtrace.nil? - backtrace.map { |line| backtrace_line(line) }.join("\n") - end - - protected - - def colour? - !!@options.colour - end - - def dry_run? - !!@options.dry_run - end - - def autospec? - !!@options.autospec || ENV.has_key?("AUTOTEST") - end - - def backtrace_line(line) - line.sub(/\A([^:]+:\d+)$/, '\\1:') - end - - def colour(text, colour_code) - return text if output_to_file? - return text unless ENV['RSPEC_COLOR'] || (colour? & (autospec? || output_to_tty?)) - "#{colour_code}#{text}\e[0m" - end - - def output_to_file? - File === @output - end - - def output_to_tty? - begin - @output.tty? - rescue NoMethodError - false - end - end - - def green(text); colour(text, "\e[32m"); end - def red(text); colour(text, "\e[31m"); end - def yellow(text); colour(text, "\e[33m"); end - def blue(text); colour(text, "\e[34m"); end - - def magenta(text) - Spec::deprecate("BaseTextFormatter#magenta") - red(text) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_example_groups_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_example_groups_formatter.rb deleted file mode 100644 index 31729438..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_example_groups_formatter.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'spec/runner/formatter/base_text_formatter' - -module Spec - module Runner - module Formatter - class FailingExampleGroupsFormatter < BaseTextFormatter - def example_failed(example, counter, failure) - if @example_group - @output.puts @example_group.description.gsub(/ \(druby.*\)/,"") - - @output.flush - @example_group = nil - end - end - - def dump_failure(counter, failure) - end - - def dump_summary(duration, example_count, failure_count, pending_count) - end - - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_examples_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_examples_formatter.rb deleted file mode 100644 index e3a271c8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/failing_examples_formatter.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'spec/runner/formatter/base_text_formatter' - -module Spec - module Runner - module Formatter - class FailingExamplesFormatter < BaseTextFormatter - def example_failed(example, counter, failure) - @output.puts "#{example_group.description} #{example.description}" - @output.flush - end - - def dump_failure(counter, failure) - end - - def dump_summary(duration, example_count, failure_count, pending_count) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/html_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/html_formatter.rb deleted file mode 100644 index 2d0c65d1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/html_formatter.rb +++ /dev/null @@ -1,338 +0,0 @@ -require 'erb' -require 'spec/runner/formatter/base_text_formatter' -require 'spec/runner/formatter/no_op_method_missing' - -module Spec - module Runner - module Formatter - class HtmlFormatter < BaseTextFormatter - include ERB::Util # for the #h method - include NOOPMethodMissing - - def initialize(options, output) - super - @example_group_number = 0 - @example_number = 0 - @header_red = nil - end - - # The number of the currently running example_group - def example_group_number - @example_group_number - end - - # The number of the currently running example (a global counter) - def example_number - @example_number - end - - def start(example_count) - @example_count = example_count - - @output.puts html_header - @output.puts report_header - @output.flush - end - - def example_group_started(example_group) - super - @example_group_red = false - @example_group_number += 1 - unless example_group_number == 1 - @output.puts " " - @output.puts "" - end - @output.puts "
" - @output.puts "
" - @output.puts "
#{h(example_group.description)}
" - @output.flush - end - - def start_dump - @output.puts "
" - @output.puts "
" - @output.flush - end - - def example_started(example) - @example_number += 1 - end - - def example_passed(example) - move_progress - @output.puts "
#{h(example.description)}
" - @output.flush - end - - def example_failed(example, counter, failure) - extra = extra_failure_content(failure) - failure_style = failure.pending_fixed? ? 'pending_fixed' : 'failed' - @output.puts " " unless @header_red - @header_red = true - @output.puts " " unless @example_group_red - @example_group_red = true - move_progress - @output.puts "
" - @output.puts " #{h(example.description)}" - @output.puts "
" - @output.puts "
#{h(failure.exception.message)}
" unless failure.exception.nil? - @output.puts "
#{format_backtrace(failure.exception.backtrace)}
" unless failure.exception.nil? - @output.puts extra unless extra == "" - @output.puts "
" - @output.puts "
" - @output.flush - end - - def example_pending(example, message, deprecated_pending_location=nil) - @output.puts " " unless @header_red - @output.puts " " unless @example_group_red - move_progress - @output.puts "
#{h(example.description)} (PENDING: #{h(message)})
" - @output.flush - end - - # Override this method if you wish to output extra HTML for a failed spec. For example, you - # could output links to images or other files produced during the specs. - # - def extra_failure_content(failure) - require 'spec/runner/formatter/snippet_extractor' - @snippet_extractor ||= SnippetExtractor.new - "
#{@snippet_extractor.snippet(failure.exception)}
" - end - - def move_progress - @output.puts " " - @output.flush - end - - def percent_done - result = 100.0 - if @example_count != 0 - result = ((example_number).to_f / @example_count.to_f * 1000).to_i / 10.0 - end - result - end - - def dump_failure(counter, failure) - end - - def dump_summary(duration, example_count, failure_count, pending_count) - if dry_run? - totals = "This was a dry-run" - else - totals = "#{example_count} example#{'s' unless example_count == 1}, #{failure_count} failure#{'s' unless failure_count == 1}" - totals << ", #{pending_count} pending" if pending_count > 0 - end - @output.puts "" - @output.puts "" - @output.puts "" - @output.puts "" - @output.puts "" - @output.puts "" - @output.flush - end - - def html_header - <<-EOF - - - - - RSpec results - - - - - - - - -EOF - end - - def report_header - <<-EOF -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-EOF - end - - def global_scripts - <<-EOF -function moveProgressBar(percentDone) { - document.getElementById("rspec-header").style.width = percentDone +"%"; -} -function makeRed(element_id) { - document.getElementById(element_id).style.background = '#C40D0D'; - document.getElementById(element_id).style.color = '#FFFFFF'; -} - -function makeYellow(element_id) { - if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D') - { - document.getElementById(element_id).style.background = '#FAF834'; - document.getElementById(element_id).style.color = '#000000'; - } - else - { - document.getElementById(element_id).style.background = '#FAF834'; - document.getElementById(element_id).style.color = '#000000'; - } -} -EOF - end - - def global_styles - <<-EOF -#rspec-header { - background: #65C400; color: #fff; height: 4em; -} - -.rspec-report h1 { - margin: 0px 10px 0px 10px; - padding: 10px; - font-family: "Lucida Grande", Helvetica, sans-serif; - font-size: 1.8em; - position: absolute; -} - -#summary { - margin: 0; padding: 5px 10px; - font-family: "Lucida Grande", Helvetica, sans-serif; - text-align: right; - top: 0px; - right: 0px; - float:right; -} - -#summary p { - margin: 0 0 0 2px; -} - -#summary #totals { - font-size: 1.2em; -} - -.example_group { - margin: 0 10px 5px; - background: #fff; -} - -dl { - margin: 0; padding: 0 0 5px; - font: normal 11px "Lucida Grande", Helvetica, sans-serif; -} - -dt { - padding: 3px; - background: #65C400; - color: #fff; - font-weight: bold; -} - -dd { - margin: 5px 0 5px 5px; - padding: 3px 3px 3px 18px; -} - -dd.spec.passed { - border-left: 5px solid #65C400; - border-bottom: 1px solid #65C400; - background: #DBFFB4; color: #3D7700; -} - -dd.spec.failed { - border-left: 5px solid #C20000; - border-bottom: 1px solid #C20000; - color: #C20000; background: #FFFBD3; -} - -dd.spec.not_implemented { - border-left: 5px solid #FAF834; - border-bottom: 1px solid #FAF834; - background: #FCFB98; color: #131313; -} - -dd.spec.pending_fixed { - border-left: 5px solid #0000C2; - border-bottom: 1px solid #0000C2; - color: #0000C2; background: #D3FBFF; -} - -.backtrace { - color: #000; - font-size: 12px; -} - -a { - color: #BE5C00; -} - -/* Ruby code, style similar to vibrant ink */ -.ruby { - font-size: 12px; - font-family: monospace; - color: white; - background-color: black; - padding: 0.1em 0 0.2em 0; -} - -.ruby .keyword { color: #FF6600; } -.ruby .constant { color: #339999; } -.ruby .attribute { color: white; } -.ruby .global { color: white; } -.ruby .module { color: white; } -.ruby .class { color: white; } -.ruby .string { color: #66FF00; } -.ruby .ident { color: white; } -.ruby .method { color: #FFCC00; } -.ruby .number { color: white; } -.ruby .char { color: white; } -.ruby .comment { color: #9933CC; } -.ruby .symbol { color: white; } -.ruby .regex { color: #44B4CC; } -.ruby .punct { color: white; } -.ruby .escape { color: white; } -.ruby .interp { color: white; } -.ruby .expr { color: white; } - -.ruby .offending { background-color: gray; } -.ruby .linenum { - width: 75px; - padding: 0.1em 1em 0.2em 0; - color: #000000; - background-color: #FFFBD3; -} -EOF - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/nested_text_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/nested_text_formatter.rb deleted file mode 100644 index 5caec5a4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/nested_text_formatter.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'spec/runner/formatter/base_text_formatter' - -module Spec - module Runner - module Formatter - class NestedTextFormatter < BaseTextFormatter - def initialize(options, where) - super - @last_nested_descriptions = [] - end - - def example_group_started(example_group) - super - - example_group.nested_descriptions.each_with_index do |nested_description, i| - unless nested_description == @last_nested_descriptions[i] - output.puts "#{' ' * i}#{nested_description}" - end - end - - @last_nested_descriptions = example_group.nested_descriptions - end - - def example_failed(example, counter, failure) - output.puts(red("#{current_indentation}#{example.description} (FAILED - #{counter})")) - output.flush - end - - def example_passed(example) - message = "#{current_indentation}#{example.description}" - output.puts green(message) - output.flush - end - - def example_pending(example, message, deprecated_pending_location=nil) - super - output.puts yellow("#{current_indentation}#{example.description} (PENDING: #{message})") - output.flush - end - - def current_indentation - ' ' * @last_nested_descriptions.length - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/no_op_method_missing.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/no_op_method_missing.rb deleted file mode 100644 index 350e29f7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/no_op_method_missing.rb +++ /dev/null @@ -1,21 +0,0 @@ -module Spec - module Runner - module Formatter - module NOOPMethodMissing - def respond_to?(message, include_private = false) - if include_private - true - else - !private_methods.any? {|m| [message.to_s, message.to_sym].include?(m)} - end - end - - private - - def method_missing(sym, *args) - # a no-op - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/profile_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/profile_formatter.rb deleted file mode 100644 index 3784f3ac..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/profile_formatter.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'spec/runner/formatter/progress_bar_formatter' - -module Spec - module Runner - module Formatter - class ProfileFormatter < ProgressBarFormatter - - def initialize(options, where) - super - @example_times = [] - end - - def start(count) - @output.puts "Profiling enabled." - end - - def example_started(example) - @time = Time.now - end - - def example_passed(example) - super - @example_times << [ - example_group.description, - example.description, - Time.now - @time - ] - end - - def start_dump - super - @output.puts "\n\nTop 10 slowest examples:\n" - - @example_times = @example_times.sort_by do |description, example, time| - time - end.reverse - - @example_times[0..9].each do |description, example, time| - @output.print red(sprintf("%.7f", time)) - @output.puts " #{description} #{example}" - end - @output.flush - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/progress_bar_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/progress_bar_formatter.rb deleted file mode 100644 index 862f87a4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/progress_bar_formatter.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec/runner/formatter/base_text_formatter' -require 'spec/runner/formatter/no_op_method_missing' - -module Spec - module Runner - module Formatter - class ProgressBarFormatter < BaseTextFormatter - include NOOPMethodMissing - - def example_failed(example, counter, failure) - @output.print colorize_failure('F', failure) - @output.flush - end - - def example_passed(example) - @output.print green('.') - @output.flush - end - - def example_pending(example, message, deprecated_pending_location=nil) - super - @output.print yellow('*') - @output.flush - end - - def start_dump - @output.puts - @output.flush - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/silent_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/silent_formatter.rb deleted file mode 100644 index 43cce33b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/silent_formatter.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec/runner/formatter/base_formatter' - -module Spec - module Runner - module Formatter - class SilentFormatter < BaseFormatter - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/snippet_extractor.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/snippet_extractor.rb deleted file mode 100644 index 4f34e5fe..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/snippet_extractor.rb +++ /dev/null @@ -1,52 +0,0 @@ -module Spec - module Runner - module Formatter - # This class extracts code snippets by looking at the backtrace of the passed error - class SnippetExtractor #:nodoc: - class NullConverter; def convert(code, pre); code; end; end #:nodoc: - begin; require 'syntax/convertors/html'; @@converter = Syntax::Convertors::HTML.for_syntax "ruby"; rescue LoadError => e; @@converter = NullConverter.new; end - - def snippet(error) - raw_code, line = snippet_for(error.backtrace[0]) - highlighted = @@converter.convert(raw_code, false) - highlighted << "\n# gem install syntax to get syntax highlighting" if @@converter.is_a?(NullConverter) - post_process(highlighted, line) - end - - def snippet_for(error_line) - if error_line =~ /(.*):(\d+)/ - file = $1 - line = $2.to_i - [lines_around(file, line), line] - else - ["# Couldn't get snippet for #{error_line}", 1] - end - end - - def lines_around(file, line) - if File.file?(file) - lines = File.open(file).read.split("\n") - min = [0, line-3].max - max = [line+1, lines.length-1].min - selected_lines = [] - selected_lines.join("\n") - lines[min..max].join("\n") - else - "# Couldn't get snippet for #{file}" - end - end - - def post_process(highlighted, offending_line) - new_lines = [] - highlighted.split("\n").each_with_index do |line, i| - new_line = "#{offending_line+i-2}#{line}" - new_line = "#{new_line}" if i == 2 - new_lines << new_line - end - new_lines.join("\n") - end - - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/specdoc_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/specdoc_formatter.rb deleted file mode 100644 index 7204f214..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/specdoc_formatter.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec/runner/formatter/base_text_formatter' - -module Spec - module Runner - module Formatter - class SpecdocFormatter < BaseTextFormatter - def example_group_started(example_group) - super - output.puts - output.puts example_group.description - output.flush - end - - def example_failed(example, counter, failure) - output.puts(red("- #{example.description} (FAILED - #{counter})")) - output.flush - end - - def example_passed(example) - message = "- #{example.description}" - output.puts green(message) - output.flush - end - - def example_pending(example, message, deprecated_pending_location=nil) - super - output.puts yellow("- #{example.description} (PENDING: #{message})") - output.flush - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/text_mate_formatter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/text_mate_formatter.rb deleted file mode 100644 index 4c0a9c7d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/text_mate_formatter.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'spec/runner/formatter/html_formatter' - -module Spec - module Runner - module Formatter - # Formats backtraces so they're clickable by TextMate - class TextMateFormatter < HtmlFormatter - def backtrace_line(line) - line.gsub(/([^:]*\.rb):(\d*)/) do - "#{$1}:#{$2} " - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner.rb deleted file mode 100644 index 5c81ea84..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner.rb +++ /dev/null @@ -1,72 +0,0 @@ -if Spec::Ruby.version.to_f < 1.9 - begin - require 'rubygems' unless ENV['NO_RUBYGEMS'] - require 'heckle' - rescue LoadError ; raise "You must gem install heckle to use --heckle" ; end - - module Spec - module Runner - # Creates a new Heckler configured to heckle all methods in the classes - # whose name matches +filter+ - class HeckleRunner - def initialize(filter, heckle_class=Heckler) - @filter = filter - @heckle_class = heckle_class - end - - # Runs all the example groups held by +rspec_options+ once for each of the - # methods in the matched classes. - def heckle_with - if @filter =~ /(.*)[#\.](.*)/ - heckle_method($1, $2) - else - heckle_class_or_module(@filter) - end - end - - def heckle_method(class_name, method_name) - verify_constant(class_name) - heckle = @heckle_class.new(class_name, method_name, Spec::Runner.options) - heckle.validate - end - - def heckle_class_or_module(class_or_module_name) - verify_constant(class_or_module_name) - pattern = /^#{class_or_module_name}/ - classes = [] - ObjectSpace.each_object(Class) do |klass| - classes << klass if klass.name =~ pattern - end - - classes.each do |klass| - klass.instance_methods(false).each do |method_name| - heckle = @heckle_class.new(klass.name, method_name, Spec::Runner.options) - heckle.validate - end - end - end - - def verify_constant(name) - begin - # This is defined in Heckle - name.to_class - rescue - raise "Heckling failed - \"#{name}\" is not a known class or module" - end - end - end - - class Heckler < Heckle - def initialize(klass_name, method_name, rspec_options) - super(klass_name, method_name) - @rspec_options = rspec_options - end - - def tests_pass? - @rspec_options.run_examples - end - - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner_unsupported.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner_unsupported.rb deleted file mode 100644 index 35ff86e1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/heckle_runner_unsupported.rb +++ /dev/null @@ -1,10 +0,0 @@ -module Spec - module Runner - # Dummy implementation for Windows that just fails (Heckle is not supported on Windows) - class HeckleRunner - def initialize(filter) - raise "Heckle is not supported on Windows or Ruby 1.9" - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/line_number_query.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/line_number_query.rb deleted file mode 100644 index 0a907d3f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/line_number_query.rb +++ /dev/null @@ -1,78 +0,0 @@ -module Spec - module Runner - # Parses a spec file and finds the nearest example for a given line number. - class LineNumberQuery - attr_reader :best_match - - def initialize(run_options) - @best_match = {} - @run_options = run_options - end - - def spec_name_for(file, line_number) - best_match.clear - file = File.expand_path(file) - determine_best_match(file, line_number) - if best_match[:example_group] - if best_match[:example] - "#{best_match[:example_group].description} #{best_match[:example].description}" - else - best_match[:example_group].description - end - else - nil - end - end - - def example_line_for(file, line_number) - determine_best_match(file, line_number) - best_match[:line] - end - - protected - - def determine_best_match(file, line_number) - best_match.clear - file = File.expand_path(file) - @run_options.example_groups.each do |example_group| - next unless example_group.location - consider_example_group_for_best_match(example_group, file, line_number) - - example_group.examples.each do |example| - consider_example_for_best_match(example, example_group, file, line_number) - end - end - end - - def consider_example_group_for_best_match(example_group, file, line_number) - example_group_file, example_group_line = parse_location(example_group.location) - if is_best_match?(file, line_number, example_group_file, example_group_line) - best_match.clear - best_match[:example_group] = example_group - best_match[:line] = example_group_line - end - end - - def consider_example_for_best_match(example, example_group, file, line_number) - example_file, example_line = parse_location(example.location) - if is_best_match?(file, line_number, example_file, example_line) - best_match.clear - best_match[:example_group] = example_group - best_match[:example] = example - best_match[:line] = example_line - end - end - - def is_best_match?(file, line_number, example_file, example_line) - file == File.expand_path(example_file) && - example_line <= line_number && - example_line > best_match[:line].to_i - end - - def parse_location(location) - location =~ /(.*)\:(\d*)(\:|$)/ - return $1, Integer($2) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb deleted file mode 100644 index fbbf444a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb +++ /dev/null @@ -1,223 +0,0 @@ -require 'optparse' -require 'stringio' - -module Spec - module Runner - class OptionParser < ::OptionParser - class << self - def parse(args, err, out) - parser = new(err, out) - parser.parse(args) - parser.options - end - - def spec_command? - $0.split('/').last == 'spec' - end - end - - attr_reader :options - - OPTIONS = { - :pattern => ["-p", "--pattern [PATTERN]","Limit files loaded to those matching this pattern. Defaults to '**/*_spec.rb'", - "Separate multiple patterns with commas.", - "Applies only to directories named on the command line (files", - "named explicitly on the command line will be loaded regardless)."], - :diff => ["-D", "--diff [FORMAT]","Show diff of objects that are expected to be equal when they are not", - "Builtin formats: unified|u|context|c", - "You can also specify a custom differ class", - "(in which case you should also specify --require)"], - :colour => ["-c", "--colour", "--color", "Show coloured (red/green) output"], - :example => ["-e", "--example [NAME|FILE_NAME]", "Execute example(s) with matching name(s). If the argument is", - "the path to an existing file (typically generated by a previous", - "run using --format failing_examples:file.txt), then the examples", - "on each line of that file will be executed. If the file is empty,", - "all examples will be run (as if --example was not specified).", - " ", - "If the argument is not an existing file, then it is treated as", - "an example name directly, causing RSpec to run just the example", - "matching that name"], - :specification => ["-s", "--specification [NAME]", "DEPRECATED - use -e instead", "(This will be removed when autotest works with -e)"], - :line => ["-l", "--line LINE_NUMBER", Integer, "Execute example group or example at given line.", - "(does not work for dynamically generated examples)"], - :format => ["-f", "--format FORMAT[:WHERE]","Specifies what format to use for output. Specify WHERE to tell", - "the formatter where to write the output. All built-in formats", - "expect WHERE to be a file name, and will write to $stdout if it's", - "not specified. The --format option may be specified several times", - "if you want several outputs", - " ", - "Builtin formats:", - "silent|l : No output", "progress|p : Text-based progress bar", - "profile|o : Text-based progress bar with profiling of 10 slowest examples", - "specdoc|s : Code example doc strings", - "nested|n : Code example doc strings with nested groups indented", - "html|h : A nice HTML report", - "failing_examples|e : Write all failing examples - input for --example", - "failing_example_groups|g : Write all failing example groups - input for --example", - " ", - "FORMAT can also be the name of a custom formatter class", - "(in which case you should also specify --require to load it)"], - :require => ["-r", "--require FILE", "Require FILE before running specs", - "Useful for loading custom formatters or other extensions.", - "If this option is used it must come before the others"], - :backtrace => ["-b", "--backtrace", "Output full backtrace"], - :loadby => ["-L", "--loadby STRATEGY", "Specify the strategy by which spec files should be loaded.", - "STRATEGY can currently only be 'mtime' (File modification time)", - "By default, spec files are loaded in alphabetical order if --loadby", - "is not specified."], - :reverse => ["-R", "--reverse", "Run examples in reverse order"], - :timeout => ["-t", "--timeout FLOAT", "Interrupt and fail each example that doesn't complete in the", - "specified time"], - :heckle => ["-H", "--heckle CODE", "If all examples pass, this will mutate the classes and methods", - "identified by CODE little by little and run all the examples again", - "for each mutation. The intent is that for each mutation, at least", - "one example *should* fail, and RSpec will tell you if this is not the", - "case. CODE should be either Some::Module, Some::Class or", - "Some::Fabulous#method}"], - :dry_run => ["-d", "--dry-run", "Invokes formatters without executing the examples."], - :options_file => ["-O", "--options PATH", "Read options from a file"], - :generate_options => ["-G", "--generate-options PATH", "Generate an options file for --options"], - :runner => ["-U", "--runner RUNNER", "Use a custom Runner."], - :debug => ["-u", "--debugger", "Enable ruby-debugging."], - :drb => ["-X", "--drb", "Run examples via DRb. (For example against script/spec_server)"], - :version => ["-v", "--version", "Show version"], - :help => ["-h", "--help", "You're looking at it"] - } - - def initialize(err, out) - super() - @error_stream = err - @out_stream = out - @options = Options.new(@error_stream, @out_stream) - - @file_factory = File - - self.banner = "Usage: spec (FILE(:LINE)?|DIRECTORY|GLOB)+ [options]" - self.separator "" - on(*OPTIONS[:pattern]) {|pattern| @options.filename_pattern = pattern} - on(*OPTIONS[:diff]) {|diff| @options.parse_diff(diff)} - on(*OPTIONS[:colour]) {@options.colour = true} - on(*OPTIONS[:example]) {|example| @options.parse_example(example)} - on(*OPTIONS[:specification]) {|example| @options.parse_example(example)} - on(*OPTIONS[:line]) {|line_number| @options.line_number = line_number.to_i} - on(*OPTIONS[:format]) {|format| @options.parse_format(format)} - on(*OPTIONS[:require]) {|requires| invoke_requires(requires)} - on(*OPTIONS[:backtrace]) {@options.backtrace_tweaker = NoisyBacktraceTweaker.new} - on(*OPTIONS[:loadby]) {|loadby| @options.loadby = loadby} - on(*OPTIONS[:reverse]) {@options.reverse = true} - on(*OPTIONS[:timeout]) {|timeout| @options.timeout = timeout.to_f} - on(*OPTIONS[:heckle]) {|heckle| @options.load_heckle_runner(heckle)} - on(*OPTIONS[:dry_run]) {@options.dry_run = true} - on(*OPTIONS[:options_file]) {|options_file|} - on(*OPTIONS[:generate_options]) {|options_file|} - on(*OPTIONS[:runner]) {|runner| @options.user_input_for_runner = runner} - on(*OPTIONS[:debug]) {@options.debug = true} - on(*OPTIONS[:drb]) {} - on(*OPTIONS[:version]) {parse_version} - on("--autospec") {@options.autospec = true} - on_tail(*OPTIONS[:help]) {parse_help} - end - - def order!(argv, &blk) - @argv = argv.dup - @argv = (@argv.empty? & self.class.spec_command?) ? ['--help'] : @argv - - # Parse options file first - parse_file_options(:options_file, :parse_options_file) - - @options.argv = @argv.dup - return if parse_file_options(:generate_options, :write_options_file) - return if parse_drb - - super(@argv) do |file| - if file =~ /^(.+):(\d+)$/ - file = $1 - @options.line_number = $2.to_i - end - - @options.files << file - blk.call(file) if blk - end - - @options - end - - protected - - def invoke_requires(requires) - requires.split(",").each do |file| - require file - end - end - - def parse_file_options(option_name, action) - # Remove the file option and the argument before handling the file - options_file = nil - options_list = OPTIONS[option_name][0..1] - options_list[1].gsub!(" PATH", "") - options_list.each do |option| - if index = @argv.index(option) - @argv.delete_at(index) - options_file = @argv.delete_at(index) - end - end - - if options_file.nil? && - File.exist?('spec/spec.opts') && - !@argv.any?{|a| a =~ /^\-/ } - options_file = 'spec/spec.opts' - end - - if options_file - send(action, options_file) - return true - else - return false - end - end - - def parse_options_file(options_file) - option_file_args = File.readlines(options_file).map {|l| l.chomp.split " "}.flatten - @argv.push(*option_file_args) - end - - def write_options_file(options_file) - File.open(options_file, 'w') do |io| - io.puts @argv.join("\n") - end - @out_stream.puts "\nOptions written to #{options_file}. You can now use these options with:" - @out_stream.puts "spec --options #{options_file}" - @options.examples_should_not_be_run - end - - def parse_drb - argv = @options.argv - is_drb = false - is_drb ||= argv.delete(OPTIONS[:drb][0]) - is_drb ||= argv.delete(OPTIONS[:drb][1]) - return false unless is_drb - if DrbCommandLine.run(self.class.parse(argv, @error_stream, @out_stream)) - @options.examples_should_not_be_run - true - else - @error_stream.puts "Running specs locally:" - false - end - end - - def parse_version - @out_stream.puts ::Spec::VERSION::SUMMARY - exit if stdout? - end - - def parse_help - @out_stream.puts self - exit if stdout? - end - - def stdout? - @out_stream == $stdout - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/options.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/options.rb deleted file mode 100644 index e0179e80..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/options.rb +++ /dev/null @@ -1,400 +0,0 @@ -require 'ostruct' - -module Spec - module Runner - class Options - FILE_SORTERS = { - 'mtime' => lambda {|file_a, file_b| File.mtime(file_b) <=> File.mtime(file_a)} - } - - EXAMPLE_FORMATTERS = { # Load these lazily for better speed - 'silent' => ['spec/runner/formatter/silent_formatter', 'Formatter::SilentFormatter'], - 'l' => ['spec/runner/formatter/silent_formatter', 'Formatter::SilentFormatter'], - 'specdoc' => ['spec/runner/formatter/specdoc_formatter', 'Formatter::SpecdocFormatter'], - 's' => ['spec/runner/formatter/specdoc_formatter', 'Formatter::SpecdocFormatter'], - 'nested' => ['spec/runner/formatter/nested_text_formatter', 'Formatter::NestedTextFormatter'], - 'n' => ['spec/runner/formatter/nested_text_formatter', 'Formatter::NestedTextFormatter'], - 'html' => ['spec/runner/formatter/html_formatter', 'Formatter::HtmlFormatter'], - 'h' => ['spec/runner/formatter/html_formatter', 'Formatter::HtmlFormatter'], - 'progress' => ['spec/runner/formatter/progress_bar_formatter', 'Formatter::ProgressBarFormatter'], - 'p' => ['spec/runner/formatter/progress_bar_formatter', 'Formatter::ProgressBarFormatter'], - 'failing_examples' => ['spec/runner/formatter/failing_examples_formatter', 'Formatter::FailingExamplesFormatter'], - 'e' => ['spec/runner/formatter/failing_examples_formatter', 'Formatter::FailingExamplesFormatter'], -'failing_example_groups' => ['spec/runner/formatter/failing_example_groups_formatter', 'Formatter::FailingExampleGroupsFormatter'], - 'g' => ['spec/runner/formatter/failing_example_groups_formatter', 'Formatter::FailingExampleGroupsFormatter'], - 'profile' => ['spec/runner/formatter/profile_formatter', 'Formatter::ProfileFormatter'], - 'o' => ['spec/runner/formatter/profile_formatter', 'Formatter::ProfileFormatter'], - 'textmate' => ['spec/runner/formatter/text_mate_formatter', 'Formatter::TextMateFormatter'] - } - - attr_accessor( - :autospec, # hack to tell - :filename_pattern, - :backtrace_tweaker, - :context_lines, - :diff_format, - :dry_run, - :profile, - :heckle_runner, - :debug, - :line_number, - :loadby, - :reporter, - :reverse, - :timeout, - :verbose, - :user_input_for_runner, - :error_stream, - :output_stream, - # TODO: BT - Figure out a better name - :argv - ) - attr_reader :colour, :differ_class, :files, :examples, :example_groups - - def initialize(error_stream, output_stream) - @error_stream = error_stream - @output_stream = output_stream - @filename_pattern = "**/*_spec.rb" - @backtrace_tweaker = QuietBacktraceTweaker.new - @examples = [] - @colour = false - @profile = false - @dry_run = false - @debug = false - @reporter = Reporter.new(self) - @context_lines = 3 - @diff_format = :unified - @files = [] - @example_groups = [] - @result = nil - @examples_run = false - @examples_should_be_run = nil - @user_input_for_runner = nil - @after_suite_parts = [] - @files_loaded = false - @out_used = nil - end - - def add_example_group(example_group) - @example_groups << example_group - end - - def line_number_requested? - !!line_number - end - - def example_line - Spec::Runner::LineNumberQuery.new(self).example_line_for(files.first, line_number) - end - - def remove_example_group(example_group) - @example_groups.delete(example_group) - end - - def require_ruby_debug - require 'rubygems' unless ENV['NO_RUBYGEMS'] - require 'ruby-debug' - end - - def project_root # :nodoc: - require 'pathname' - @project_root ||= determine_project_root - end - - def determine_project_root # :nodoc: - # This is borrowed (slightly modified) from Scott Taylors - # project_path project: - # http://github.com/smtlaissezfaire/project_path - Pathname(File.expand_path('.')).ascend do |path| - if File.exists?(File.join(path, "spec")) - return path - end - end - end - - def add_dir_from_project_root_to_load_path(dir, load_path=$LOAD_PATH) # :nodoc: - return if project_root.nil? - full_dir = File.join(project_root, dir) - load_path.unshift full_dir unless load_path.include?(full_dir) - end - - def run_examples - require_ruby_debug if debug - return true unless examples_should_be_run? - success = true - begin - runner = custom_runner || ExampleGroupRunner.new(self) - - unless @files_loaded - ['spec','lib'].each do |dir| - add_dir_from_project_root_to_load_path(dir) - end - runner.load_files(files_to_load) - @files_loaded = true - end - - define_predicate_matchers - plugin_mock_framework - ignore_backtrace_patterns - - # TODO - this has to happen after the files get loaded, - # otherwise the before_suite_parts are not populated - # from the configuration. There is no spec for this - # directly, but features/before_and_after_blocks/before_and_after_blocks.story - # will fail if this happens before the files are loaded. - before_suite_parts.each { |part| part.call } - - if example_groups.empty? - true - else - set_spec_from_line_number if line_number - success = runner.run - @examples_run = true - heckle if heckle_runner - success - end - ensure - after_suite_parts.each do |part| - part.arity < 1 ? part.call : part.call(success) - end - end - end - - def before_suite_parts - Spec::Example::BeforeAndAfterHooks.before_suite_parts - end - - def after_suite_parts - Spec::Example::BeforeAndAfterHooks.after_suite_parts - end - - def examples_run? - @examples_run - end - - def examples_should_not_be_run - @examples_should_be_run = false - end - - def mock_framework - # TODO - don't like this dependency - perhaps store this in here instead? - Spec::Runner.configuration.mock_framework - end - - def colour=(colour) - @colour = colour - if @colour && RUBY_PLATFORM =~ /mswin|mingw/ ;\ - begin ;\ - replace_output = @output_stream.equal?($stdout) ;\ - require 'rubygems' unless ENV['NO_RUBYGEMS'] ;\ - require 'Win32/Console/ANSI' ;\ - @output_stream = $stdout if replace_output ;\ - rescue LoadError ;\ - warn "You must 'gem install win32console' to use colour on Windows" ;\ - @colour = false ;\ - end - end - end - - def parse_diff(format) - case format - when :context, 'context', 'c' - @diff_format = :context - default_differ - when :unified, 'unified', 'u', '', nil - @diff_format = :unified - default_differ - else - @diff_format = :custom - self.differ_class = load_class(format, 'differ', '--diff') - end - end - - def parse_example(example) - if(File.file?(example)) - @examples = [File.open(example).read.split("\n")].flatten - else - @examples = [example] - end - end - - def parse_format(format_arg) - format, where = ClassAndArgumentsParser.parse(format_arg) - unless where - raise "When using several --format options only one of them can be without a file" if @out_used - where = @output_stream - @out_used = true - end - @format_options ||= [] - @format_options << [format, where] - end - - def formatters - @format_options ||= [['progress', @output_stream]] - @formatters ||= load_formatters(@format_options, EXAMPLE_FORMATTERS) - end - - def load_formatters(format_options, formatters) - format_options.map do |format, where| - formatter_type = if formatters[format] - require formatters[format][0] - eval(formatters[format][1], binding, __FILE__, __LINE__) - else - load_class(format, 'formatter', '--format') - end - formatter_type.new(formatter_options, where) - end - end - - def formatter_options - @formatter_options ||= OpenStruct.new( - :colour => colour, - :autospec => autospec, - :dry_run => dry_run - ) - end - - def which_heckle_runner - ([/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM} || Spec::Ruby.version.to_f == 1.9) ? "spec/runner/heckle_runner_unsupported" : "spec/runner/heckle_runner" - end - - def load_heckle_runner(heckle) - @format_options ||= [['silent', @output_stream]] - require which_heckle_runner - @heckle_runner = ::Spec::Runner::HeckleRunner.new(heckle) - end - - def number_of_examples - return examples.size unless examples.empty? - @example_groups.inject(0) {|sum, group| sum + group.number_of_examples} - end - - def files_to_load - result = [] - sorted_files.each do |file| - if File.directory?(file) - filename_pattern.split(",").each do |pattern| - result += Dir[File.expand_path("#{file}/#{pattern.strip}")] - end - elsif File.file?(file) - result << file - else - raise "File or directory not found: #{file}" - end - end - result - end - - def dry_run? - @dry_run == true - end - - protected - - def define_predicate_matchers - Spec::Runner.configuration.predicate_matchers.each_pair do |matcher_method, method_on_object| - Spec::Example::ExampleMethods::__send__ :define_method, matcher_method do |*args| - eval("be_#{method_on_object.to_s.gsub('?','')}(*args)") - end - end - end - - def plugin_mock_framework - case mock_framework - when Module - Spec::Example::ExampleMethods.__send__ :include, mock_framework - else - require mock_framework - Spec::Example::ExampleMethods.__send__ :include, Spec::Adapters::MockFramework - end - end - - def ignore_backtrace_patterns - @backtrace_tweaker.ignore_patterns Spec::Runner.configuration.ignored_backtrace_patterns - end - - def examples_should_be_run? - return @examples_should_be_run unless @examples_should_be_run.nil? - @examples_should_be_run = true - end - - def differ_class=(klass) - return unless klass - @differ_class = klass - Spec::Expectations.differ = self.differ_class.new(self) - end - - def load_class(name, kind, option) - if name =~ /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ - arg = $2 == "" ? nil : $2 - [$1, arg] - else - m = "#{name.inspect} is not a valid class name" - @error_stream.puts m - raise m - end - begin - eval(name, binding, __FILE__, __LINE__) - rescue NameError => e - @error_stream.puts "Couldn't find #{kind} class #{name}" - @error_stream.puts "Make sure the --require option is specified *before* #{option}" - if $_spec_spec ; raise e ; else exit(1) ; end - end - end - - def custom_runner - return nil unless custom_runner? - klass_name, arg = ClassAndArgumentsParser.parse(user_input_for_runner) - runner_type = load_class(klass_name, 'example group runner', '--runner') - return runner_type.new(self, arg) - end - - def custom_runner? - return user_input_for_runner ? true : false - end - - def heckle - heckle_runner = self.heckle_runner - self.heckle_runner = nil - heckle_runner.heckle_with - end - - def sorted_files - return sorter ? files.sort(&sorter) : files - end - - def sorter - FILE_SORTERS[loadby] - end - - def default_differ - require 'spec/runner/differs/default' - self.differ_class = ::Spec::Expectations::Differs::Default - end - - def set_spec_from_line_number - if examples.empty? - if files.length == 1 - if File.directory?(files[0]) - error_stream.puts "You must specify one file, not a directory when providing a line number" - exit(1) if stderr? - else - example = LineNumberQuery.new(self).spec_name_for(files[0], line_number) - @examples = [example] - end - else - error_stream.puts "Only one file can be specified when providing a line number: #{files.inspect}" - exit(3) if stderr? - end - else - error_stream.puts "You cannot use --example and specify a line number" - exit(4) if stderr? - end - end - - def stderr? - @error_stream == $stderr - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/reporter.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/reporter.rb deleted file mode 100644 index 0fae7d13..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/runner/reporter.rb +++ /dev/null @@ -1,171 +0,0 @@ -module Spec - module Runner - class Reporter - attr_reader :options - - def initialize(options) - @options = options - @options.reporter = self - @failures = [] - @pending_count = 0 - @example_count = 0 - @start_time = nil - @end_time = nil - end - - def example_group_started(example_group) - @example_group = example_group - formatters.each do |f| - f.example_group_started(example_group) - end - end - - def example_started(example) - formatters.each{|f| f.example_started(example)} - end - - def example_finished(example, error=nil) - @example_count += 1 - - if error.nil? - example_passed(example) - elsif Spec::Example::ExamplePendingError === error - example_pending(example, example.location, error.message) - else - example_failed(example, error) - end - end - - def example_failed(example, error) - backtrace_tweaker.tweak_backtrace(error) - failure = Failure.new(@example_group.description, example.description, error) - @failures << failure - formatters.each do |f| - f.example_failed(example, @failures.length, failure) - end - end - - def start(number_of_examples) - @start_time = Time.new - formatters.each{|f| f.start(number_of_examples)} - end - - def end - @end_time = Time.new - end - - # Dumps the summary and returns the total number of failures - def dump - formatters.each{|f| f.start_dump} - dump_pending - dump_failures - formatters.each do |f| - f.dump_summary(duration, @example_count, @failures.length, @pending_count) - f.close - end - @failures.length - end - - class Failure - def initialize(group_description, example_description, exception) # :nodoc: - @example_name = "#{group_description} #{example_description}" - @exception = exception - end - - # The Exception object raised - attr_reader :exception - - # Header messsage for reporting this failure, including the name of the - # example and an indicator of the type of failure. FAILED indicates a - # failed expectation. FIXED indicates a pending example that passes, and - # no longer needs to be pending. RuntimeError indicates that a - # RuntimeError occured. - # - # == Examples - # - # 'A new account should have a zero balance' FAILED - # 'A new account should have a zero balance' FIXED - # RuntimeError in 'A new account should have a zero balance' - def header - if expectation_not_met? - "'#{@example_name}' FAILED" - elsif pending_fixed? - "'#{@example_name}' FIXED" - else - "#{@exception.class.name} in '#{@example_name}'" - end - end - - def pending_fixed? # :nodoc: - @exception.is_a?(Spec::Example::PendingExampleFixedError) - end - - def expectation_not_met? # :nodoc: - @exception.is_a?(Spec::Expectations::ExpectationNotMetError) - end - end - - private - - def formatters - @options.formatters - end - - def backtrace_tweaker - @options.backtrace_tweaker - end - - def dump_failures - return if @failures.empty? - @failures.inject(1) do |index, failure| - formatters.each{|f| f.dump_failure(index, failure)} - index + 1 - end - end - - def dump_pending - formatters.each{|f| f.dump_pending} - end - - def duration - return @end_time - @start_time unless (@end_time.nil? or @start_time.nil?) - return "0.0" - end - - def example_passed(example) - formatters.each{|f| f.example_passed(example)} - end - - EXAMPLE_PENDING_DEPRECATION_WARNING = <<-WARNING - -********************************************************************* -DEPRECATION WARNING: RSpec's formatters have changed example_pending -to accept two arguments instead of three. Please see the rdoc -for Spec::Runner::Formatter::BaseFormatter#example_pending -for more information. - -Please update any custom formatters to accept only two arguments -to example_pending. Support for example_pending with two arguments -and this warning message will be removed after the RSpec 2.0 release. -********************************************************************* -WARNING - - def example_pending(example, ignore, message="Not Yet Implemented") - @pending_count += 1 - formatters.each do |formatter| - if formatter_uses_deprecated_example_pending_method?(formatter) - Spec.warn EXAMPLE_PENDING_DEPRECATION_WARNING - formatter.example_pending(example, message, example.location) - else - formatter.example_pending(example, message) - end - end - end - - def formatter_uses_deprecated_example_pending_method?(formatter) - formatter.method(:example_pending).arity == 3 - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/stubs/cucumber.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/stubs/cucumber.rb deleted file mode 100644 index b801ef44..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/stubs/cucumber.rb +++ /dev/null @@ -1,5 +0,0 @@ -# This plugs RSpec's mocking/stubbing framework into cucumber -require 'spec/mocks' -Before {$rspec_stubs ||= Spec::Mocks::Space.new} -After {$rspec_stubs.reset_all} -World(Spec::Mocks::ExampleMethods) diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/test/unit.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/test/unit.rb deleted file mode 100644 index fb4eb493..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/test/unit.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec/interop/test' - -# Hack to stop active_support/dependencies from complaining about -# 'spec/test/unit' not defining Spec::Test::Unit -module Spec - module Test - module Unit - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/lib/spec/version.rb b/vendor/gems/gems/rspec-1.2.9/lib/spec/version.rb deleted file mode 100644 index b1088cd6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/lib/spec/version.rb +++ /dev/null @@ -1,14 +0,0 @@ -module Spec # :nodoc: - module VERSION # :nodoc: - unless defined? MAJOR - MAJOR = 1 - MINOR = 2 - TINY = 9 - PRE = nil - - STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') - - SUMMARY = "rspec #{STRING}" - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/resources/helpers/cmdline.rb b/vendor/gems/gems/rspec-1.2.9/resources/helpers/cmdline.rb deleted file mode 100644 index 0e337579..00000000 --- a/vendor/gems/gems/rspec-1.2.9/resources/helpers/cmdline.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'spec' - -# Uncommenting next line will break the output feature (no output!!) -# rspec_options -options = Spec::Runner::OptionParser.parse( - ARGV, $stderr, $stdout -) -Spec::Runner::CommandLine.run(options) diff --git a/vendor/gems/gems/rspec-1.2.9/resources/rake/examples.rake b/vendor/gems/gems/rspec-1.2.9/resources/rake/examples.rake deleted file mode 100644 index 32d0ad0e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/resources/rake/examples.rake +++ /dev/null @@ -1,7 +0,0 @@ -require 'rake' -require 'spec/rake/spectask' - -desc "Run all examples" -Spec::Rake::SpecTask.new('examples') do |t| - t.spec_files = FileList['examples/**/*.rb'] -end diff --git a/vendor/gems/gems/rspec-1.2.9/resources/rake/examples_with_rcov.rake b/vendor/gems/gems/rspec-1.2.9/resources/rake/examples_with_rcov.rake deleted file mode 100644 index 4bf35c6b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/resources/rake/examples_with_rcov.rake +++ /dev/null @@ -1,9 +0,0 @@ -require 'rake' -require 'spec/rake/spectask' - -desc "Run all examples with RCov" -Spec::Rake::SpecTask.new('examples_with_rcov') do |t| - t.spec_files = FileList['examples/**/*.rb'] - t.rcov = true - t.rcov_opts = ['--exclude', 'examples'] -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/resources/rake/failing_examples_with_html.rake b/vendor/gems/gems/rspec-1.2.9/resources/rake/failing_examples_with_html.rake deleted file mode 100644 index 6e53551f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/resources/rake/failing_examples_with_html.rake +++ /dev/null @@ -1,9 +0,0 @@ -require 'rake' -require 'spec/rake/spectask' - -desc "Generate HTML report for failing examples" -Spec::Rake::SpecTask.new('failing_examples_with_html') do |t| - t.spec_files = FileList['failing_examples/**/*.rb'] - t.spec_opts = ["--format", "html:doc/reports/tools/failing_examples.html", "--diff"] - t.fail_on_error = false -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/resources/rake/verify_rcov.rake b/vendor/gems/gems/rspec-1.2.9/resources/rake/verify_rcov.rake deleted file mode 100644 index a2fab00b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/resources/rake/verify_rcov.rake +++ /dev/null @@ -1,7 +0,0 @@ -require 'rake' -require 'spec/rake/verify_rcov' - -RCov::VerifyTask.new(:verify_rcov => 'spec:rcov') do |t| - t.threshold = 100.0 - t.index_html = 'coverage/index.html' -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/README.jruby b/vendor/gems/gems/rspec-1.2.9/spec/README.jruby deleted file mode 100644 index 7eddb567..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/README.jruby +++ /dev/null @@ -1,15 +0,0 @@ -= Running specs on JRuby = - -svn co http://svn.codehaus.org/jruby/trunk jruby -cd jruby/jruby -ant clean -ant -# put JRuby's bin dir on your PATH -jruby -S gem install rake --no-ri --no-rdoc -jruby -S gem install diff-lcs -jruby -S gem install syntax -cd ../testsuites/rspec -mkdir target -jruby -S rake checkout_code -cd target/rspec -jruby bin/spec spec -c diff --git a/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_helper.rb b/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_helper.rb deleted file mode 100644 index b7b873d9..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'spec_helper' -begin - require 'autotest' -rescue LoadError - raise "You must install ZenTest to use autotest" -end -require 'autotest/rspec' -require 'spec/autotest/autotest_matchers' diff --git a/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_matchers.rb b/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_matchers.rb deleted file mode 100644 index 2bfca4ac..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/autotest/autotest_matchers.rb +++ /dev/null @@ -1,38 +0,0 @@ -module Spec - module Matchers - class AutotestMappingMatcher - def initialize(specs) - @specs = specs - end - - def to(file) - @file = file - self - end - - def matches?(autotest) - @autotest = prepare(autotest) - @actual = autotest.test_files_for(@file) - @actual == @specs - end - - def failure_message - "expected #{@autotest.class} to map #{@specs.inspect} to #{@file.inspect}\ngot #{@actual.inspect}" - end - - private - - def prepare(autotest) - find_order = @specs.dup << @file - autotest.instance_eval { @find_order = find_order } - autotest - end - - end - - def map_specs(specs) - AutotestMappingMatcher.new(specs) - end - - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/autotest/discover_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/autotest/discover_spec.rb deleted file mode 100644 index fc8d483a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/autotest/discover_spec.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'spec/autotest/autotest_helper' - -describe Autotest::Rspec, "discovery" do - it "adds the rspec autotest plugin" do - Autotest.should_receive(:add_discovery) - load File.expand_path(File.dirname(__FILE__) + "/../../lib/autotest/discover.rb") - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/autotest/failed_results_re_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/autotest/failed_results_re_spec.rb deleted file mode 100644 index f4a1488e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/autotest/failed_results_re_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'spec/autotest/autotest_helper' - -describe "failed_results_re" do - it "should match a failure" do - re = Autotest::Rspec.new.failed_results_re - re =~ "1)\n'this example' FAILED\nreason\n/path.rb:37:\n\n" - $1.should == "this example" - $2.should == "reason\n/path.rb:37:" - end - - it "should match a failure when matcher outputs multiple lines" do - re = Autotest::Rspec.new.failed_results_re - re =~ "1)\n'other example' FAILED\n\nreason line 1\nreason line 2\n\n(additional info)\n/path.rb:37:\n\n" - $1.should == "other example" - $2.should == "reason line 1\nreason line 2\n\n(additional info)\n/path.rb:37:" - end - - it "should match an Error" do - re = Autotest::Rspec.new.failed_results_re - re =~ "1)\nRuntimeError in 'this example'\nreason\n/path.rb:37:\n\n" - $1.should == "this example" - $2.should == "reason\n/path.rb:37:" - end - - it "should match an Error that doesn't end in Error" do - re = Autotest::Rspec.new.failed_results_re - re =~ "1)\nInvalidArgument in 'this example'\nreason\n/path.rb:37:\n\n" - $1.should == "this example" - $2.should == "reason\n/path.rb:37:" - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/autotest/rspec_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/autotest/rspec_spec.rb deleted file mode 100644 index 6dea29dd..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/autotest/rspec_spec.rb +++ /dev/null @@ -1,111 +0,0 @@ -require 'spec/autotest/autotest_helper' - -describe Autotest::Rspec do - describe "adding spec.opts --options" do - before(:each) do - @rspec_autotest = Autotest::Rspec.new - end - - it "should return the command line option to add spec.opts if the options file exists" do - File.stub!(:exist?).and_return true - @rspec_autotest.add_options_if_present.should == "-O spec/spec.opts " - end - - it "should return an empty string if no spec.opts exists" do - File.stub!(:exist?).and_return false - Autotest::Rspec.new.add_options_if_present.should == "" - end - end - - describe "commands" do - before(:each) do - @rspec_autotest = Autotest::Rspec.new - @rspec_autotest.stub!(:ruby).and_return "ruby" - @rspec_autotest.stub!(:add_options_if_present).and_return "-O spec/spec.opts" - - @ruby = @rspec_autotest.ruby - @spec_cmd = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec')) - @options = @rspec_autotest.add_options_if_present - @files_to_test = { - :spec => ["file_one", "file_two"] - } - # this is not the inner representation of Autotest! - @rspec_autotest.stub!(:files_to_test).and_return @files_to_test - @files_to_test.stub!(:keys).and_return @files_to_test[:spec] - @to_test = @files_to_test.keys.flatten.join ' ' - end - - it "should make the appropriate test command" do - @rspec_autotest.make_test_cmd(@files_to_test).should == "#{@ruby} #{@spec_cmd} --autospec #{@to_test} #{@options}" - end - - it "should return a blank command for no files" do - @rspec_autotest.make_test_cmd({}).should == '' - end - end - - describe "mappings" do - - before(:each) do - @lib_file = "lib/something.rb" - @spec_file = "spec/something_spec.rb" - @rspec_autotest = Autotest::Rspec.new - @rspec_autotest.hook :initialize - end - - it "should find the spec file for a given lib file" do - @rspec_autotest.should map_specs([@spec_file]).to(@lib_file) - end - - it "should find the spec file if given a spec file" do - @rspec_autotest.should map_specs([@spec_file]).to(@spec_file) - end - - it "should ignore files in spec dir that aren't specs" do - @rspec_autotest.should map_specs([]).to("spec/spec_helper.rb") - end - - it "should ignore untracked files (in @file)" do - @rspec_autotest.should map_specs([]).to("lib/untracked_file") - end - end - - describe "consolidating failures" do - before(:each) do - @rspec_autotest = Autotest::Rspec.new - - @spec_file = "spec/autotest/some_spec.rb" - @rspec_autotest.instance_variable_set("@files", {@spec_file => Time.now}) - @rspec_autotest.stub!(:find_files_to_test).and_return true - end - - it "should return no failures if no failures were given in the output" do - @rspec_autotest.consolidate_failures([[]]).should == {} - end - - it "should return a hash with the spec filename => spec name for each failure or error" do - @rspec_autotest.stub!(:test_files_for).and_return "spec/autotest/some_spec.rb" - failures = [ - [ - "false should be false", - "expected: true,\n got: false (using ==)\n#{@spec_file}:203:" - ] - ] - @rspec_autotest.consolidate_failures(failures).should == { - @spec_file => ["false should be false"] - } - end - - it "should not include the subject file" do - subject_file = "lib/autotest/some.rb" - @rspec_autotest.stub!(:test_files_for).and_return "spec/autotest/some_spec.rb" - failures = [ - [ - "false should be false", - "expected: true,\n got: false (using ==)\n#{subject_file}:143:\n#{@spec_file}:203:" - ] - ] - @rspec_autotest.consolidate_failures(failures).keys.should_not include(subject_file) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/ruby_forker.rb b/vendor/gems/gems/rspec-1.2.9/spec/ruby_forker.rb deleted file mode 100644 index 6ab03875..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/ruby_forker.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'rbconfig' - -module RubyForker - # Forks a ruby interpreter with same type as ourself. - # juby will fork jruby, ruby will fork ruby etc. - def ruby(args, stderr=nil) - config = ::Config::CONFIG - interpreter = File::join(config['bindir'], config['ruby_install_name']) + config['EXEEXT'] - cmd = "#{interpreter} #{args}" - cmd << " 2> #{stderr}" unless stderr.nil? - `#{cmd}` - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec.opts b/vendor/gems/gems/rspec-1.2.9/spec/spec.opts deleted file mode 100644 index 48e51f93..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec.opts +++ /dev/null @@ -1,6 +0,0 @@ ---colour ---format -profile ---timeout -20 ---diff \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/dsl/main_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/dsl/main_spec.rb deleted file mode 100644 index 752b07f8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/dsl/main_spec.rb +++ /dev/null @@ -1,95 +0,0 @@ -require 'spec_helper' - -module Spec - module DSL - describe Main do - before(:each) do - @main = Class.new do; include Spec::DSL::Main; end - end - - [:describe, :context].each do |method| - describe "##{method}" do - it "should delegate to Spec::Example::ExampleGroupFactory.create_example_group" do - block = lambda {|a,b|} - Spec::Example::ExampleGroupFactory.should_receive(:create_example_group).with( - "The ExampleGroup", hash_including(:location), &block - ) - @main.__send__ method, "The ExampleGroup", &block - end - - it "raises with no description" do - block = lambda {|a,b|} - lambda do - @main.__send__ method, &block - end.should raise_error(ArgumentError, /No description supplied for example group declared on #{__FILE__}:#{__LINE__ - 1}/) - end - end - end - - [:share_examples_for, :shared_examples_for].each do |method| - describe "##{method}" do - it "should create a shared ExampleGroup" do - block = lambda {|a,b|} - Spec::Example::ExampleGroupFactory.should_receive(:create_shared_example_group).with( - "shared group", hash_including(:location), &block - ) - @main.__send__ method, "shared group", &block - end - end - end - - describe "#describe; with RUBY_VERSION = 1.9" do - it "includes an enclosing module into the block's scope" do - Spec::Ruby.stub!(:version).and_return("1.9") - - module Foo; module Bar; end; end - - Foo::Bar.should_receive(:included).with do |*args| - included_by = args.last - included_by.description.should == "this example group" - end - - module Foo - module Bar - describe("this example group") do; end - end - end - end - end - - - describe "#share_as" do - def self.next_group_name - @group_number ||= 0 - @group_number += 1 - "Group#{@group_number}" - end - - def group_name - @group_name ||= self.class.next_group_name - end - - it "registers a shared ExampleGroup" do - block = lambda {|a,b|} - Spec::Example::ExampleGroupFactory.should_receive(:create_shared_example_group).with( - group_name, hash_including(:location), &block - ) - @main.share_as group_name, &block - end - - it "creates a constant that points to a Module" do - group = @main.share_as group_name do end - Object.const_get(group_name).should equal(group) - end - - it "complains if you pass it a not-constantizable name" do - lambda do - @group = @main.share_as "Non Constant" do end - end.should raise_error(NameError, /The first argument to share_as must be a legal name for a constant/) - end - - end - end - end -end - \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_class_definition_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_class_definition_spec.rb deleted file mode 100644 index 96bd2111..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_class_definition_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - class ExampleGroupSubclass < ExampleGroup - class << self - attr_accessor :examples_ran - end - - @@class_variable = :class_variable - CONSTANT = :constant - - before(:each) do - @instance_variable = :instance_variable - end - - after(:all) do - self.class.examples_ran = true - end - - def a_method - 22 - end - - it "can access instance variables defined before(:each)" do - @instance_variable.should == :instance_variable - end - - it "can access class variables (Ruby 1.8 only)" do - with_ruby 1.8 do - @@class_variable.should == :class_variable - end - end - - it "can access constants" do - CONSTANT.should == :constant - end - - it "can access methods defined in the Example Group" do - a_method.should == 22 - end - - end - - describe ExampleGroupSubclass do - it "should run" do - ExampleGroupSubclass.examples_ran.should be_true - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_factory_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_factory_spec.rb deleted file mode 100644 index 0819d3a3..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_factory_spec.rb +++ /dev/null @@ -1,180 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe ExampleGroupFactory do - describe "#get" do - attr_reader :example_group - before(:each) do - @example_group_class = Class.new(ExampleGroupDouble) - ExampleGroupFactory.register(:registered_type, @example_group_class) - end - - after(:each) do - ExampleGroupFactory.reset - end - - it "should return the default ExampleGroup type for nil" do - ExampleGroupFactory[nil].should == ExampleGroup - end - - it "should return the default ExampleGroup for an unregistered non-nil value" do - ExampleGroupFactory[:does_not_exist].should == ExampleGroup - end - - it "should return custom type if registered" do - ExampleGroupFactory[:registered_type].should == @example_group_class - end - - it "should get the custom type after setting the default" do - @alternate_example_group_class = Class.new(ExampleGroupDouble) - ExampleGroupFactory.default(@alternate_example_group_class) - ExampleGroupFactory[:registered_type].should == @example_group_class - end - end - - describe "#create_example_group" do - attr_reader :parent_example_group - before do - @parent_example_group = Class.new(ExampleGroupDouble) do - def initialize(*args, &block) - ; - end - end - end - - it "should create a uniquely named class" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group("example_group") {} - example_group.name.should =~ /Spec::Example::ExampleGroup::Subclass_\d+/ - end - - it "should create a Spec::Example::Example subclass by default" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group("example_group") {} - example_group.superclass.should == Spec::Example::ExampleGroup - end - - it "should raise when no description is given" do - lambda { - Spec::Example::ExampleGroupFactory.create_example_group do; end - }.should raise_error(ArgumentError) - end - - it "should raise when no block is given" do - lambda { Spec::Example::ExampleGroupFactory.create_example_group "foo" }.should raise_error(ArgumentError) - end - - it "should run registered ExampleGroups" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group "The ExampleGroup" do end - Spec::Runner.options.example_groups.should include(example_group) - end - - it "should not run unregistered ExampleGroups" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group "The ExampleGroup" do Spec::Runner.options.remove_example_group self; end - Spec::Runner.options.example_groups.should_not include(example_group) - end - - describe "with :type => :default" do - it "should create a Spec::Example::ExampleGroup" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", :type => :default - ) {} - example_group.superclass.should == Spec::Example::ExampleGroup - end - end - - describe "with :type => :something_other_than_default" do - it "should create the specified type" do - Spec::Example::ExampleGroupFactory.register(:something_other_than_default, parent_example_group) - non_default_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", :type => :something_other_than_default - ) {} - non_default_example_group.superclass.should == parent_example_group - end - end - - it "should create a type indicated by :location" do - Spec::Example::ExampleGroupFactory.register(:something_other_than_default, parent_example_group) - custom_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", :location => "./spec/something_other_than_default/some_spec.rb" - ) {} - custom_example_group.superclass.should == parent_example_group - end - - it "should create a type indicated by :location (with location generated by caller on windows)" do - Spec::Example::ExampleGroupFactory.register(:something_other_than_default, parent_example_group) - custom_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", - :location => "./spec\\something_other_than_default\\some_spec.rb" - ) {} - custom_example_group.superclass.should == parent_example_group - end - - it "should create a type indicated by location for a path-like key" do - Spec::Example::ExampleGroupFactory.register('path/to/custom/', parent_example_group) - custom_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", :location => "./spec/path/to/custom/some_spec.rb" - ) {} - custom_example_group.superclass.should == parent_example_group - end - - it "should use the longest key that matches when creating a type indicated by location" do - longer = Class.new parent_example_group - Spec::Example::ExampleGroupFactory.register(:longer, longer) - long = Class.new parent_example_group - Spec::Example::ExampleGroupFactory.register(:long, long) - custom_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "example_group", :location => "./spec/longer/some_spec.rb" - ) {} - custom_example_group.superclass.should == longer - end - - describe "with :shared => true" do - def shared_example_group - @shared_example_group ||= Spec::Example::ExampleGroupFactory.create_example_group( - "name", :location => '/blah/spec/models/blah.rb', :type => :controller, :shared => true - ) {} - end - - it "should create and register a Spec::Example::SharedExampleGroup" do - shared_example_group.should be_an_instance_of(Spec::Example::SharedExampleGroup) - SharedExampleGroup.should include(shared_example_group) - end - end - - it "should favor the :type over the :location" do - Spec::Example::ExampleGroupFactory.register(:something_other_than_default, parent_example_group) - custom_example_group = Spec::Example::ExampleGroupFactory.create_example_group( - "name", :location => '/blah/spec/models/blah.rb', :type => :something_other_than_default - ) {} - custom_example_group.superclass.should == parent_example_group - end - - it "should register ExampleGroup by default" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group("The ExampleGroup") do - end - Spec::Runner.options.example_groups.should include(example_group) - end - - it "should enable unregistering of ExampleGroups" do - example_group = Spec::Example::ExampleGroupFactory.create_example_group("The ExampleGroup") do - Spec::Runner.options.remove_example_group self - end - Spec::Runner.options.example_groups.should_not include(example_group) - end - - after(:each) do - Spec::Example::ExampleGroupFactory.reset - end - end - - describe "#create_shared_example_group" do - it "registers a new shared example group" do - shared_example_group = Spec::Example::ExampleGroupFactory.create_shared_example_group("something shared") {} - shared_example_group.should be_an_instance_of(Spec::Example::SharedExampleGroup) - SharedExampleGroup.should include(shared_example_group) - end - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_methods_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_methods_spec.rb deleted file mode 100644 index c9f10b8c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_methods_spec.rb +++ /dev/null @@ -1,758 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe 'ExampleGroupMethods' do - with_sandboxed_options do - attr_reader :example_group, :result, :reporter - before(:each) do - # See http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/525-arity-changed-on-partial-mocks#ticket-525-2 - method_with_three_args = lambda { |arg1, arg2, arg3| } - options.formatters << mock("formatter", :null_object => true, :example_pending => method_with_three_args) - options.backtrace_tweaker = mock("backtrace_tweaker", :null_object => true) - @reporter = FakeReporter.new(@options) - options.reporter = reporter - @example_group = Class.new(ExampleGroupDouble) do - describe("ExampleGroup") - it "does nothing" - end - end - - after(:each) do - ExampleGroupDouble.reset - end - - ["describe","context"].each do |method| - describe "##{method}" do - describe "when creating an ExampleGroup" do - before(:each) do - @parent_example_group = Class.new(ExampleGroupDouble) do - example "first example" do; end - end - @child_example_group = @parent_example_group.__send__ method, "Child" do - example "second example" do; end - end - end - - it "should create a subclass of the ExampleGroup when passed a block" do - @child_example_group.superclass.should == @parent_example_group - options.example_groups.should include(@child_example_group) - end - - it "should not inherit examples" do - @child_example_group.should have(1).examples - end - - it "records the spec path" do - @child_example_group.location.should =~ /#{__FILE__}:#{__LINE__ - 15}/ - end - end - - describe "when creating an example group with no description" do - it "raises an ArgumentError" do - lambda do - Class.new(ExampleGroupDouble).describe - end.should raise_error(Spec::Example::NoDescriptionError, /No description supplied for example group declared on #{__FILE__}:#{__LINE__ - 1}/) - end - end - - describe "when creating a SharedExampleGroup" do - before(:each) do - @shared_example_group = @example_group.__send__ method, "A Shared ExampleGroup", :shared => true do; end - end - - after(:each) do - SharedExampleGroup.instance_eval{@shared_example_groups}.delete @shared_example_group - end - - it "should create a SharedExampleGroup" do - @shared_example_group.should_not be_nil - SharedExampleGroup.find("A Shared ExampleGroup").should == @shared_example_group - end - end - - end - end - - [:example, :specify, :it].each do |method| - describe "##{method.to_s}" do - it "should add an example" do - lambda { - @example_group.__send__(method, "") - }.should change { @example_group.examples.length }.by(1) - end - - describe "with no location supplied" do - describe "creates an ExampleProxy" do - before(:all) do - @example_group = Class.new(ExampleGroupDouble).describe("bar") - @example_proxy = @example_group.__send__(method, "foo", {:this => :that}) {} - @location = "#{__FILE__}:#{__LINE__ - 1}" - end - - specify "with a description" do - @example_proxy.description.should == "foo" - end - - specify "with options" do - @example_proxy.options.should == {:this => :that} - end - - specify "with a default backtrace (DEPRECATED)" do - Spec.stub!(:deprecate) - @example_proxy.backtrace.should =~ /#{@location}/ - end - - specify "with a default location" do - @example_proxy.location.should =~ /#{@location}/ - end - end - end - - describe "with a location supplied" do - describe "creates an ExampleProxy" do - before(:all) do - @example_group = Class.new(ExampleGroupDouble).describe("bar") - @example_proxy = @example_group.__send__(method, "foo", {:this => :that}, "the location") {} - end - - specify "with the supplied location as #backtrace (DEPRECATED)" do - Spec.stub!(:deprecate) - @example_proxy.backtrace.should == "the location" - end - - specify "with the supplied location as #location" do - @example_proxy.location.should == "the location" - end - end - end - - - end - end - - [:xexample, :xit, :xspecify].each do |method| - describe "##{method.to_s}" do - before(:each) do - Kernel.stub!(:warn) - end - - it "should NOT create an example" do - lambda { - @example_group.__send__(method,"") - }.should_not change(@example_group.examples, :length) - end - - it "should warn that the example is disabled" do - Kernel.should_receive(:warn).with("Example disabled: foo") - @example_group.__send__(method,"foo") - end - end - end - - describe "#examples" do - it "should have Examples" do - example_group = Class.new(ExampleGroupDouble) do - it "should exist" do; end - end - example_group.examples.length.should == 1 - example_group.examples.first.description.should == "should exist" - end - - it "should not include methods that begin with test (only when TU interop is loaded)" do - example_group = Class.new(ExampleGroupDouble) do - def test_any_args(*args) - true.should be_true - end - def test_something - 1.should == 1 - end - def test - raise "This is not a real test" - end - def testify - raise "This is not a real test" - end - def should_something - # forces the run - end - end - - example_group.examples.length.should == 1 - example_group.run(options).should be_true - end - - it "should include methods that begin with should and has an arity of 0 in suite" do - example_group = Class.new(ExampleGroupDouble) do - def shouldCamelCase - true.should be_true - end - def should_any_args(*args) - true.should be_true - end - def should_something - 1.should == 1 - end - def should_not_something - 1.should_not == 2 - end - def should - raise "This is not a real example" - end - def should_not - raise "This is not a real example" - end - end - example_group.should have(4).examples - descriptions = example_group.examples.collect {|e| e.description} - descriptions.should include( - "shouldCamelCase", - "should_any_args", - "should_something", - "should_not_something") - descriptions.should_not include( - "should", - "should_not" - ) - end - - it "should not include methods that begin with test_ and has an arity > 0 in suite" do - example_group = Class.new(ExampleGroupDouble) do - def test_invalid(foo) - 1.should == 1 - end - def testInvalidCamelCase(foo) - 1.should == 1 - end - end - example_group.should have(:no).examples - end - - it "should not include methods that begin with should_ and has an arity > 0 in suite" do - example_group = Class.new(ExampleGroupDouble) do - def should_invalid(foo) - 1.should == 2 - end - def shouldInvalidCamelCase(foo) - 1.should == 3 - end - def should_not_invalid(foo) - 1.should == 4 - end - def should_valid - 1.should == 1 - end - end - example_group.should have(1).examples - example_group.run(options).should be_true - end - - it "should run should_methods" do - example_group = Class.new(ExampleGroupDouble) do - def should_valid - 1.should == 2 - end - end - example_group.should have(1).examples - example_group.run(options).should be_false - end - end - - describe "#set_description" do - attr_reader :example_group - before do - class << example_group - public :set_description - end - end - - describe "given a String" do - before(:each) do - example_group.set_description("abc") - end - - specify ".description should return the String passed into .set_description" do - example_group.description.should == "abc" - end - - specify ".described_type should provide nil as its type" do - example_group.described_type.should be_nil - end - end - - describe "given a Class" do - before(:each) do - example_group.set_description(ExampleGroup) - end - - specify ".description should return a String representation of that type (fully qualified) as its name" do - example_group.description.should == "Spec::Example::ExampleGroup" - end - - specify ".described_type should return the passed in type" do - example_group.described_type.should == Spec::Example::ExampleGroup - end - end - - describe "given a String and a Class" do - before(:each) do - example_group.set_description("behaving", ExampleGroup) - end - - specify ".description should return String then space then Type" do - example_group.description.should == "behaving Spec::Example::ExampleGroup" - end - - specify ".described_type should return the passed in type" do - example_group.described_type.should == Spec::Example::ExampleGroup - end - end - - describe "given a Class and a String (starting with an alpha char)" do - before(:each) do - example_group.set_description(ExampleGroup, "behaving") - end - - specify ".description should return the Type then space then String" do - example_group.description.should == "Spec::Example::ExampleGroup behaving" - end - end - - describe "given a Class and a String (starting with a '.')" do - before(:each) do - example_group.set_description(ExampleGroup, ".behaving") - end - - specify ".description should return the Type then String" do - example_group.description.should == "Spec::Example::ExampleGroup.behaving" - end - end - - describe "#set_description(Class, String starting with #)" do - before(:each) do - example_group.set_description(ExampleGroup, "#behaving") - end - - specify "should return the Class then String" do - example_group.description.should == "Spec::Example::ExampleGroup#behaving" - end - end - - describe "#set_description(Class, String containing .)" do - before(:each) do - example_group.set_description(ExampleGroup, "calling a.b") - end - - specify ".description should return the Type then space then String" do - example_group.description.should == "Spec::Example::ExampleGroup calling a.b" - end - end - - describe "#set_description(Class, String containing #)" do - before(:each) do - example_group.set_description(ExampleGroup, "is #1") - end - - specify ".description should return the Type then space then String" do - example_group.description.should == "Spec::Example::ExampleGroup is #1" - end - end - - describe "#set_description(String, Type, String)" do - before(:each) do - example_group.set_description("A", Hash, "with one entry") - end - - specify ".description should return the first String then space then Type then second String" do - example_group.description.should == "A Hash with one entry" - end - end - - describe "#set_description(Hash representing options)" do - before(:each) do - example_group.set_description(:a => "b", :location => "blah") - end - - it ".location should expand the passed in :location option passed into the constructor" do - example_group.location.should == File.expand_path("blah") - end - - it ".options should return all the options passed in" do - example_group.options.should == {:a => "b", :location => "blah"} - end - - end - end - - describe "#description" do - it "should return the same description instance for each call" do - example_group.description.should eql(example_group.description) - end - - it "should not add a space when description begins with #" do - child_example_group = Class.new(example_group) do - describe("#foobar", "Does something") - end - child_example_group.description.should == "ExampleGroup#foobar Does something" - end - - it "should not add a space when description begins with ." do - child_example_group = Class.new(example_group) do - describe(".foobar", "Does something") - end - child_example_group.description.should == "ExampleGroup.foobar Does something" - end - - it "should return the class name if nil" do - example_group.set_description(nil) - example_group.description.should =~ /Class:/ - end - - it "should return the class name if nil" do - example_group.set_description("") - example_group.description.should =~ /Class:/ - end - - it "is cached" do - example_group.set_description("describe me") - example_group.description.should be(example_group.description) - end - end - - describe "#description_parts" do - it "should return an Array of the current class description args" do - example_group.description_parts.should == [example_group.description] - end - - it "should return an Array of the description args from each class in the hierarchy" do - parent_example_group = Class.new(ExampleGroupDouble) do - describe("Parent") - end - - child_example_group = Class.new(parent_example_group) - child_example_group.describe("Child", ExampleGroup) - child_example_group.description.should_not be_empty - - grand_child_example_group = Class.new(child_example_group) - grand_child_example_group.describe("GrandChild", ExampleGroup) - grand_child_example_group.description.should_not be_empty - - grand_child_example_group.description_parts.should == [ - "Parent", - "Child", - Spec::Example::ExampleGroup, - "GrandChild", - Spec::Example::ExampleGroup - ] - end - - it "caches the description parts" do - example_group.description_parts.should equal(example_group.description_parts) - end - end - - describe "#described_type" do - it "should return passed in type" do - child_example_group = Class.new(example_group) do - describe Object - end - child_example_group.described_type.should == Object - end - - it "should return #described_type of superclass when no passed in type" do - parent_example_group = Class.new(ExampleGroupDouble) do - describe Object, "#foobar" - end - child_example_group = Class.new(parent_example_group) do - describe "not a type" - end - child_example_group.described_type.should == Object - end - - it "is cached per example group" do - klass = Class.new - group = Class.new(ExampleGroupDouble) do - describe(klass) - end - group.should_receive(:description_parts).once.and_return([klass]) - group.described_type - group.described_type - end - end - - describe "#include" do - it "should have accessible class methods from included module" do - mod_method_called = false - mod = Module.new do - class_methods = Module.new do - define_method :mod_method do - mod_method_called = true - end - end - - self.class.class_eval do - define_method(:included) do |receiver| - receiver.extend class_methods - end - end - end - - @example_group.__send__ :include, mod - - @example_group.mod_method - mod_method_called.should be_true - end - end - - describe "#number_of_examples" do - it "should count number of examples" do - proc do - @example_group.it("one") {} - @example_group.it("two") {} - @example_group.it("three") {} - @example_group.it("four") {} - end.should change {@example_group.number_of_examples}.by(4) - end - end - - describe "#class_eval" do - it "should allow constants to be defined" do - example_group = Class.new(ExampleGroupDouble) do - FOO = 1 - it "should reference FOO" do - FOO.should == 1 - end - end - success = example_group.run(options) - success.should be_true - Object.const_defined?(:FOO).should == false - end - end - - describe '#register' do - after(:each) do - Spec::Runner.options.remove_example_group example_group - end - it "should add ExampleGroup to set of ExampleGroups to be run" do - Spec::Runner.options.add_example_group example_group - options.example_groups.should include(example_group) - end - end - - describe '#remove_example_group' do - before(:each) do - Spec::Runner.options.add_example_group example_group - end - it "should remove ExampleGroup from set of ExampleGroups to be run" do - Spec::Runner.options.remove_example_group example_group - options.example_groups.should_not include(example_group) - end - end - - describe "#run" do - describe "given an example group with at least one example" do - it "should call add_example_group" do - example_group = Class.new(ExampleGroupDouble) do - example("anything") {} - end - reporter.should_receive(:add_example_group) - example_group.run(options) - end - end - - describe "given an example group with no examples" do - it "should NOT call add_example_group" do - example_group = Class.new(ExampleGroupDouble) do end - reporter.should_not_receive(:add_example_group) - example_group.run(options) - end - end - end - - describe "#matcher_class=" do - it "should call new and matches? on the class used for matching examples" do - example_group = Class.new(ExampleGroupDouble) do - it "should do something" do end - def self.specified_examples - ["something"] - end - def self.to_s - "TestMatcher" - end - end - - matcher = mock("matcher") - matcher.should_receive(:matches?).with(["something"]).any_number_of_times - - matcher_class = Class.new - matcher_class.should_receive(:new).with("TestMatcher", "should do something").and_return(matcher) - - begin - ExampleGroupMethods.matcher_class = matcher_class - - example_group.run(options) - ensure - ExampleGroupMethods.matcher_class = ExampleMatcher - end - end - end - - describe "#options" do - it "should expose the options hash" do - group = describe("group", :this => 'hash') {} - group.options[:this].should == 'hash' - end - end - - describe "#before" do - it "stores before(:each) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - block = lambda {} - example_group.before(:each, &block) - example_group.before_each_parts.should include(block) - end - - it "stores before(:all) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - block = lambda {} - example_group.before(:all, &block) - example_group.before_all_parts.should include(block) - end - - it "stores before(:suite) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - parts = [] - ExampleGroupMethods.stub!(:before_suite_parts).and_return(parts) - block = lambda {} - example_group.before(:suite, &block) - example_group.before_suite_parts.should include(block) - end - end - - - describe "#after" do - it "stores after(:each) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - block = lambda {} - example_group.after(:each, &block) - example_group.after_each_parts.should include(block) - end - - it "stores after(:all) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - block = lambda {} - example_group.after(:all, &block) - example_group.after_all_parts.should include(block) - end - - it "stores after(:suite) blocks" do - example_group = Class.new(ExampleGroupDouble) {} - parts = [] - ExampleGroupMethods.stub!(:after_suite_parts).and_return(parts) - block = lambda {} - example_group.after(:suite, &block) - example_group.after_suite_parts.should include(block) - end - end - - describe "#run_before_all" do - it "does not create an instance if before_all_parts are empty" do - example_group = Class.new(ExampleGroupDouble) { example("one example") {} } - example_group.should_not_receive(:new) - example_group.__send__ :run_before_all, nil - end - end - - describe "#run_after_all" do - it "does not create an instance if after_all_parts are empty" do - example_group = Class.new(ExampleGroupDouble) { example("one example") {} } - example_group.should_not_receive(:new) - example_group.__send__ :run_after_all, true, {}, nil - end - end - - describe "#examples_to_run" do - it "runs only the example identified by a line number" do - example_group = Class.new(ExampleGroupDouble).describe("this") do - it { 3.should == 3 } - it "has another example which raises" do - raise "this shouldn't have run" - end - end - options.examples << :ignore - options.line_number = __LINE__ - 6 - options.files << __FILE__ - example_group.run(options).should be_true - end - - it "runs the example identified by a line number even if it's not the example line number" do - example_group = Class.new(ExampleGroupDouble).describe("this") do - - it { raise "foo" } - - end - options.examples << :ignore - options.line_number = __LINE__ - 3 - options.files << __FILE__ - example_group.run(options).should be_false - end - - it "runs all the examples in the group " do - first_example_ran = false - second_example_ran = false - example_group = Class.new(ExampleGroupDouble).describe("this") do - - it { first_example_ran = true } - it { second_example_ran = true } - - end - options.line_number = __LINE__ - 6 - options.files << __FILE__ - options.examples << :ignore - example_group.run(options) - first_example_ran.should be_true - second_example_ran.should be_true - end - - it "doesn't run any examples in another group" do - example_ran = false - example_group_1 = Class.new(ExampleGroupDouble).describe("this") do - it "ignore" do - example_ran = true - end - end - example_group_2 = Class.new(ExampleGroupDouble).describe("that") do - end - options.examples << :ignore - options.line_number = __LINE__ - 3 - options.files << __FILE__ - example_group_1.run(options) - example_group_2.run(options) - example_ran.should be_false - end - end - - describe "#define" do - let(:counter) do - Class.new do - def initialize - @count = 0 - end - def count - @count += 1 - end - end.new - end - it "generates an instance method" do - counter.count.should == 1 - end - - it "caches the value" do - counter.count.should == 1 - counter.count.should == 2 - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_proxy_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_proxy_spec.rb deleted file mode 100644 index 6af4ef18..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_proxy_spec.rb +++ /dev/null @@ -1,107 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe ExampleGroupProxy do - before(:each) do - @group = stub("example group").as_null_object - end - - attr_reader :group - def proxy - @proxy ||= ExampleGroupProxy.new(@group) - end - - describe "#description" do - it "provides the example group's description" do - group.stub!(:description => "the description") - proxy.description.should == "the description" - end - end - - describe "#nested_descriptions" do - it "provides the example group's nested_descriptions" do - group.stub!(:nested_descriptions => ["the description"]) - proxy.nested_descriptions.should == ["the description"] - end - end - - describe "#filtered_description (DEPRECATED)" do - before(:each) do - Spec.stub!(:deprecate) - end - - it "is deprecated" do - Spec.should_receive(:deprecate) - proxy.filtered_description(/(ignore)/) - end - - it "builds the description from the group's nested_descriptions" do - group.stub!(:nested_descriptions => ["ignore","the","description"]) - proxy.filtered_description(/(ignore)/).should == "the description" - end - - it "filters out description parts that match the supplied regexp" do - group.stub!(:nested_descriptions => ["ignore the","description"]) - proxy.filtered_description(/(ignore )/).should == "the description" - end - end - - describe "#examples" do - it "provides a collection of example group proxies" do - group.stub!(:example_proxies => ["array","of","proxies"]) - proxy.examples.should == ["array","of","proxies"] - end - end - - describe "#backtrace (deprecated - use #location)" do - before(:each) do - Spec.stub!(:deprecate) - end - - it "provides the location of the declaration of this group" do - group.stub!(:location => "path/to/location:37") - proxy.backtrace.should == "path/to/location:37" - end - - it "warns deprecation" do - Spec.should_receive(:deprecate) - group.stub!(:location => "path/to/location:37") - proxy.backtrace - end - end - - describe "#location" do - it "provides the location of the declaration of this group" do - group.stub!(:location => "path/to/location:37") - proxy.location.should == "path/to/location:37" - end - end - - describe "#options" do - it "provides the options passed to the example group declaration" do - group.stub!(:options => {:a => 'b'}) - proxy.options.should == {:a => 'b'} - end - - it "excludes :location" do - group.stub!(:options => {:location => 'b'}) - proxy.options.should == {} - end - - it "excludes :scope" do - group.stub!(:options => {:scope => 'b'}) - proxy.options.should == {} - end - - it "preserves the original hash" do - hash = {:a => 'b', :location => 'here', :scope => 'tiny'} - group.stub!(:options => hash) - proxy.options.should == {:a => 'b'} - hash.should == {:a => 'b', :location => 'here', :scope => 'tiny'} - end - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_spec.rb deleted file mode 100644 index 086c166c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_group_spec.rb +++ /dev/null @@ -1,643 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - class ExampleModuleScopingSpec < ExampleGroup - describe ExampleGroup, "via a class definition" - - module Foo - module Bar - def self.loaded?; true; end - end - end - include Foo - - it "should understand module scoping" do - Bar.should be_loaded - end - - @@class_variable = "a class variable" - - it "can access class variables in examples in Ruby 1.8" do - with_ruby 1.8 do - @@class_variable.should == "a class variable" - end - end - - it "can NOT access class variables in examples in Ruby 1.9" do - with_ruby 1.9 do - lambda do - @@class_variable.should == "a class variable" - end.should raise_error(NameError) - end - end - - - end - - class ExampleClassVariablePollutionSpec < ExampleGroup - describe ExampleGroup, "via a class definition without a class variable" - - it "should not retain class variables from other Example classes" do - proc do - @@class_variable - end.should raise_error - end - end - - describe ExampleGroup, "#pending" do - it "should raise a Pending error when its block fails" do - block_ran = false - lambda { - pending("something") do - block_ran = true - raise "something wrong with my example" - end - }.should raise_error(Spec::Example::ExamplePendingError, "something") - block_ran.should == true - end - - it "should raise Spec::Example::PendingExampleFixedError when its block does not fail" do - block_ran = false - lambda { - pending("something") do - block_ran = true - end - }.should raise_error(Spec::Example::PendingExampleFixedError, "Expected pending 'something' to fail. No Error was raised.") - block_ran.should == true - end - end - - describe ExampleGroup, "#run with failure in example", :shared => true do - it "should add an example failure to the TestResult" do - example_group.run(options).should be_false - end - end - - describe ExampleGroup, "#run" do - with_sandboxed_options do - attr_reader :example_group, :formatter, :reporter - before :each do - method_with_three_args = lambda { |arg1, arg2, arg3| } - @formatter = mock("formatter", :null_object => true, :example_pending => method_with_three_args) - options.formatters << formatter - options.backtrace_tweaker = mock("backtrace_tweaker", :null_object => true) - @reporter = FakeReporter.new(options) - options.reporter = reporter - @example_group = Class.new(ExampleGroupDouble) do - describe("example") - it "does nothing" do - end - end - class << example_group - public :include - end - end - - after :each do - ExampleGroup.reset - end - - it "should not run when there are no examples" do - example_group = Class.new(ExampleGroupDouble) do - describe("Foobar") - end - example_group.examples.should be_empty - - reporter = mock("Reporter") - reporter.should_not_receive(:add_example_group) - example_group.run(options) - end - - it "should report the start of an example run" do - reporter.should_receive(:example_started) do |example| - example.should equal(example_group.examples[0]) - end - example_group.run(options) - end - - it "should report the end of an example run" do - reporter.should_receive(:example_finished) do |example, execution_error| - example.should equal(example_group.examples[0]) - execution_error.should be_nil - end - example_group.run(options) - end - - describe "when before_each fails" do - before(:each) do - $example_ran = $after_each_ran = false - @example_group = describe("Foobar") do - before(:each) {raise} - it "should not be run" do - $example_ran = true - end - after(:each) do - $after_each_ran = true - end - end - end - - it "should not run example block" do - example_group.run(options) - $example_ran.should be_false - end - - it "should run after_each" do - example_group.run(options) - $after_each_ran.should be_true - end - - it "should report failure location when in before_each" do - reporter.should_receive(:example_finished) do |example_group, error| - error.message.should eql("in before_each") - end - example_group.run(options) - end - end - - describe ExampleGroup, "#run on dry run" do - before do - @options.dry_run = true - end - - it "should not run before(:all) or after(:all)" do - before_all_ran = false - after_all_ran = false - ExampleGroup.before(:all) { before_all_ran = true } - ExampleGroup.after(:all) { after_all_ran = true } - example_group.it("should") {} - example_group.run(options) - before_all_ran.should be_false - after_all_ran.should be_false - end - - it "should not run example" do - example_ran = false - example_group.it("should") {example_ran = true} - example_group.run(options) - example_ran.should be_false - end - end - - describe ExampleGroup, "#run with specified examples" do - attr_reader :examples_that_were_run - before do - @examples_that_were_run = [] - end - - describe "when specified_examples matches entire ExampleGroup" do - before do - examples_that_were_run = @examples_that_were_run - @example_group = Class.new(ExampleGroupDouble) do - describe("the ExampleGroup") - it("should be run") do - examples_that_were_run << 'should be run' - end - - it("should also be run") do - examples_that_were_run << 'should also be run' - end - end - options.parse_example "the ExampleGroup" - end - - it "should not run the Examples in the ExampleGroup" do - example_group.run(options) - examples_that_were_run.should == ['should be run', 'should also be run'] - end - end - - describe ExampleGroup, "#run when specified_examples matches only Example description" do - before do - examples_that_were_run = @examples_that_were_run - @example_group = Class.new(ExampleGroupDouble) do - describe("example") - it("should be run") do - examples_that_were_run << 'should be run' - end - end - options.parse_example "should be run" - end - - it "should not run the example" do - example_group.run(options) - examples_that_were_run.should == ['should be run'] - end - end - - describe ExampleGroup, "#run when specified_examples does not match an Example description" do - before do - examples_that_were_run = @examples_that_were_run - @example_group = Class.new(ExampleGroupDouble) do - describe("example") - it("should be something else") do - examples_that_were_run << 'should be something else' - end - end - options.parse_example "does not match anything" - end - - it "should not run the example" do - example_group.run(options) - examples_that_were_run.should == [] - end - end - - describe ExampleGroup, "#run when specified_examples matches an Example description" do - before do - examples_that_were_run = @examples_that_were_run - @example_group = Class.new(ExampleGroupDouble) do - describe("example") - it("should be run") do - examples_that_were_run << 'should be run' - end - it("should not be run") do - examples_that_were_run << 'should not be run' - end - end - options.parse_example "should be run" - end - - it "should run only the example" do - example_group.run(options) - examples_that_were_run.should == ["should be run"] - end - end - end - - describe ExampleGroup, "#run with success" do - before do - @special_example_group = Class.new(ExampleGroupDouble) - ExampleGroupFactory.register(:special, @special_example_group) - @not_special_example_group = Class.new(ExampleGroupDouble) - ExampleGroupFactory.register(:not_special, @not_special_example_group) - end - - after do - ExampleGroupFactory.reset - end - - it "should send reporter example_group_started" do - reporter.should_receive(:example_group_started) - example_group.run(options) - end - - it "should run example on run" do - example_ran = false - example_group.it("should") {example_ran = true} - example_group.run(options) - example_ran.should be_true - end - - it "should run before(:all) block only once" do - before_all_run_count_run_count = 0 - example_group.before(:all) {before_all_run_count_run_count += 1} - example_group.it("test") {true} - example_group.it("test2") {true} - example_group.run(options) - before_all_run_count_run_count.should == 1 - end - - it "should run after(:all) block only once" do - after_all_run_count = 0 - example_group.after(:all) {after_all_run_count += 1} - example_group.it("test") {true} - example_group.it("test2") {true} - example_group.run(options) - after_all_run_count.should == 1 - @reporter.rspec_verify - end - - it "after(:all) should have access to all instance variables defined in before(:all)" do - context_instance_value_in = "Hello there" - context_instance_value_out = "" - example_group.before(:all) { @instance_var = context_instance_value_in } - example_group.after(:all) { context_instance_value_out = @instance_var } - example_group.it("test") {true} - example_group.run(options) - context_instance_value_in.should == context_instance_value_out - end - - it "should copy instance variables from before(:all)'s execution context into spec's execution context" do - context_instance_value_in = "Hello there" - context_instance_value_out = "" - example_group.before(:all) { @instance_var = context_instance_value_in } - example_group.it("test") {context_instance_value_out = @instance_var} - example_group.run(options) - context_instance_value_in.should == context_instance_value_out - end - - it "should not add global before callbacks for untargetted example_group" do - fiddle = [] - - ExampleGroup.before(:all) { fiddle << "Example.before(:all)" } - ExampleGroup.prepend_before(:all) { fiddle << "Example.prepend_before(:all)" } - @special_example_group.before(:each) { fiddle << "Example.before(:each, :type => :special)" } - @special_example_group.prepend_before(:each) { fiddle << "Example.prepend_before(:each, :type => :special)" } - @special_example_group.before(:all) { fiddle << "Example.before(:all, :type => :special)" } - @special_example_group.prepend_before(:all) { fiddle << "Example.prepend_before(:all, :type => :special)" } - - example_group = Class.new(ExampleGroupDouble) do - describe("I'm not special", :type => :not_special) - it "does nothing" - end - example_group.run(options) - fiddle.should == [ - 'Example.prepend_before(:all)', - 'Example.before(:all)', - ] - end - - it "should add global before callbacks for targetted example_groups" do - fiddle = [] - - ExampleGroup.before(:all) { fiddle << "Example.before(:all)" } - ExampleGroup.prepend_before(:all) { fiddle << "Example.prepend_before(:all)" } - @special_example_group.before(:each) { fiddle << "special.before(:each, :type => :special)" } - @special_example_group.prepend_before(:each) { fiddle << "special.prepend_before(:each, :type => :special)" } - @special_example_group.before(:all) { fiddle << "special.before(:all, :type => :special)" } - @special_example_group.prepend_before(:all) { fiddle << "special.prepend_before(:all, :type => :special)" } - @special_example_group.append_before(:each) { fiddle << "special.append_before(:each, :type => :special)" } - - example_group = Class.new(@special_example_group).describe("I'm a special example_group") {} - example_group.it("test") {true} - example_group.run(options) - fiddle.should == [ - 'Example.prepend_before(:all)', - 'Example.before(:all)', - 'special.prepend_before(:all, :type => :special)', - 'special.before(:all, :type => :special)', - 'special.prepend_before(:each, :type => :special)', - 'special.before(:each, :type => :special)', - 'special.append_before(:each, :type => :special)', - ] - end - - it "should order before callbacks from global to local" do - fiddle = [] - ExampleGroup.prepend_before(:all) { fiddle << "Example.prepend_before(:all)" } - ExampleGroup.before(:all) { fiddle << "Example.before(:all)" } - example_group.prepend_before(:all) { fiddle << "prepend_before(:all)" } - example_group.before(:all) { fiddle << "before(:all)" } - example_group.prepend_before(:each) { fiddle << "prepend_before(:each)" } - example_group.before(:each) { fiddle << "before(:each)" } - example_group.run(options) - fiddle.should == [ - 'Example.prepend_before(:all)', - 'Example.before(:all)', - 'prepend_before(:all)', - 'before(:all)', - 'prepend_before(:each)', - 'before(:each)' - ] - end - - it "should order after callbacks from local to global" do - fiddle = [] - example_group.after(:each) { fiddle << "after(:each)" } - example_group.append_after(:each) { fiddle << "append_after(:each)" } - example_group.after(:all) { fiddle << "after(:all)" } - example_group.append_after(:all) { fiddle << "append_after(:all)" } - ExampleGroup.after(:all) { fiddle << "Example.after(:all)" } - ExampleGroup.append_after(:all) { fiddle << "Example.append_after(:all)" } - example_group.run(options) - fiddle.should == [ - 'after(:each)', - 'append_after(:each)', - 'after(:all)', - 'append_after(:all)', - 'Example.after(:all)', - 'Example.append_after(:all)' - ] - end - - it "should have accessible instance methods from included module" do - mod1_method_called = false - mod1 = Module.new do - define_method :mod1_method do - mod1_method_called = true - end - end - - mod2_method_called = false - mod2 = Module.new do - define_method :mod2_method do - mod2_method_called = true - end - end - - example_group.include mod1, mod2 - - example_group.it("test") do - mod1_method - mod2_method - end - example_group.run(options) - mod1_method_called.should be_true - mod2_method_called.should be_true - end - - it "should include targetted modules included using configuration" do - mod1 = Module.new - mod2 = Module.new - mod3 = Module.new - Spec::Runner.configuration.include(mod1, mod2) - Spec::Runner.configuration.include(mod3, :type => :not_special) - - example_group = Class.new(@special_example_group).describe("I'm special", :type => :special) do - it "does nothing" - end - example_group.run(options) - - example_group.included_modules.should include(mod1) - example_group.included_modules.should include(mod2) - example_group.included_modules.should_not include(mod3) - end - - end - - describe ExampleGroup, "#run with pending example that has a failing assertion" do - before do - example_group.it("should be pending") do - pending("Example fails") {false.should be_true} - end - end - - it "should send example_pending to formatter" do - @formatter.should_receive(:example_pending).with("example", "should be pending", "Example fails") - example_group.run(options) - end - end - - describe ExampleGroup, "#run with pending example that does not have a failing assertion" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - example_group.it("should be pending") do - pending("Example passes") {true.should be_true} - end - end - - it "should send example_pending to formatter" do - @formatter.should_receive(:example_pending).with("example", "should be pending", "Example passes") - example_group.run(options) - end - end - - describe ExampleGroup, "#run when before(:all) fails" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - ExampleGroup.before(:all) { raise NonStandardError, "before(:all) failure" } - end - - it "should not run any example" do - spec_ran = false - example_group.it("test") {spec_ran = true} - example_group.run(options) - spec_ran.should be_false - end - - it "should run ExampleGroup after(:all)" do - after_all_ran = false - ExampleGroup.after(:all) { after_all_ran = true } - example_group.run(options) - after_all_ran.should be_true - end - - it "should run example_group after(:all)" do - after_all_ran = false - example_group.after(:all) { after_all_ran = true } - example_group.run(options) - after_all_ran.should be_true - end - - it "should supply before(:all) as description" do - @reporter.should_receive(:example_failed) do |example, error| - example.description.should eql("before(:all)") - error.message.should eql("before(:all) failure") - end - - example_group.it("test") {true} - example_group.run(options) - end - end - - describe ExampleGroup, "#run when before(:each) fails" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - ExampleGroup.before(:each) { raise NonStandardError } - end - - it "should run after(:all)" do - after_all_ran = false - ExampleGroup.after(:all) { after_all_ran = true } - example_group.run(options) - after_all_ran.should be_true - end - end - - describe ExampleGroup, "#run when any example fails" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - example_group.it("should") { raise NonStandardError } - end - - it "should run after(:all)" do - after_all_ran = false - ExampleGroup.after(:all) { after_all_ran = true } - example_group.run(options) - after_all_ran.should be_true - end - end - - describe ExampleGroup, "#run when first after(:each) block fails" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - class << example_group - attr_accessor :first_after_ran, :second_after_ran - end - example_group.first_after_ran = false - example_group.second_after_ran = false - - example_group.after(:each) do - self.class.second_after_ran = true - end - example_group.after(:each) do - self.class.first_after_ran = true - raise "first" - end - end - - it "should run second after(:each) block" do - reporter.should_receive(:example_finished) do |example, error| - example.should equal(example) - error.message.should eql("first") - end - example_group.run(options) - example_group.first_after_ran.should be_true - example_group.second_after_ran.should be_true - end - end - - describe ExampleGroup, "#run when first before(:each) block fails" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - class << example_group - attr_accessor :first_before_ran, :second_before_ran - end - example_group.first_before_ran = false - example_group.second_before_ran = false - - example_group.before(:each) do - self.class.first_before_ran = true - raise "first" - end - example_group.before(:each) do - self.class.second_before_ran = true - end - end - - it "should not run second before(:each)" do - reporter.should_receive(:example_finished) do |name, error| - error.message.should eql("first") - end - example_group.run(options) - example_group.first_before_ran.should be_true - example_group.second_before_ran.should be_false - end - end - - describe ExampleGroup, "#run when failure in after(:all)" do - it_should_behave_like "Spec::Example::ExampleGroup#run with failure in example" - - before do - ExampleGroup.after(:all) { raise NonStandardError, "in after(:all)" } - end - - it "should return false" do - example_group.run(options).should be_false - end - end - end - end - - describe ExampleGroup, "subclasses" do - it "should have access to the described_type" do - example_group = Class.new(ExampleGroupDouble).describe(Array) - example_group.__send__(:described_type).should == Array - end - - it "should concat descriptions when nested" do - example_group = Class.new(ExampleGroupDouble).describe(Array) - nested_group = example_group.describe("when empty") do; end - nested_group.description.to_s.should == "Array when empty" - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_matcher_spec.rb deleted file mode 100644 index 1a7e5da2..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_matcher_spec.rb +++ /dev/null @@ -1,86 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe ExampleMatcher, "#matches?" do - def match_examples(examples) - simple_matcher do |actual, matcher| - matcher.failure_message = "expected matcher.matches?(#{description.inspect}) to return true, got false" - matcher.negative_failure_message = "expected matcher.matches?(#{description.inspect}) to return false, got true" - actual.matches?(examples) - end - end - - it "should match correct example_group and example" do - matcher = ExampleMatcher.new("example_group", "example") - matcher.should match_examples(["example_group example"]) - end - - it "should not match wrong example" do - matcher = ExampleMatcher.new("example_group", "other example") - matcher.should_not match_examples(["example_group example"]) - end - - it "should not match wrong example_group" do - matcher = ExampleMatcher.new("other example_group", "example") - matcher.should_not match_examples(["example_group example"]) - end - - it "should match example only" do - matcher = ExampleMatcher.new("example_group", "example") - matcher.should match_examples(["example"]) - end - - it "should match example_group only" do - matcher = ExampleMatcher.new("example_group", "example") - matcher.should match_examples(["example_group"]) - end - - it "should match example_group ending with before(:all)" do - matcher = ExampleMatcher.new("example_group", "example") - matcher.should match_examples(["example_group before(:all)"]) - end - - it "should escape regexp chars" do - matcher = ExampleMatcher.new("(con|text)", "[example]") - matcher.should_not match_examples(["con p"]) - end - - it "should match when example_group is modularized" do - matcher = ExampleMatcher.new("MyModule::MyClass", "example") - matcher.should match_examples(["MyClass example"]) - end - end - - describe ExampleMatcher, "#matches? normal case" do - it "matches when passed in example matches" do - matcher = ExampleMatcher.new("Foo", "bar") - matcher.matches?(["no match", "Foo bar"]).should == true - end - - it "does not match when no passed in examples match" do - matcher = ExampleMatcher.new("Foo", "bar") - matcher.matches?(["no match1", "no match2"]).should == false - end - end - - describe ExampleMatcher, "#matches? where description has '::' in it" do - it "matches when passed in example matches" do - matcher = ExampleMatcher.new("Foo::Bar", "baz") - matcher.matches?(["no match", "Foo::Bar baz"]).should == true - end - - it "does not match when no passed in examples match" do - matcher = ExampleMatcher.new("Foo::Bar", "baz") - matcher.matches?(["no match1", "no match2"]).should == false - end - end - - describe ExampleMatcher, "called with nil example" do - it "does not puke" do - matcher = ExampleMatcher.new("Foo::Bar", nil) - matcher.matches?(["anything"]).should == false - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_methods_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_methods_spec.rb deleted file mode 100644 index 9a681095..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_methods_spec.rb +++ /dev/null @@ -1,162 +0,0 @@ -require 'spec_helper' - -class Thing - attr_reader :arg - def initialize(arg=nil) - @arg = arg || :default - end - def ==(other) - @arg == other.arg - end - def eql?(other) - @arg == other.arg - end -end - -module Spec - module Example - describe ExampleMethods do - module ModuleThatIsReopened; end - - module Spec::Example::ExampleMethods - include ModuleThatIsReopened - end - - module ModuleThatIsReopened - def module_that_is_reopened_method; end - end - - describe "with an included module that is reopened" do - it "should have reopened methods" do - method(:module_that_is_reopened_method).should_not be_nil - end - end - - describe "#should" do - before(:each) do - @example_group = Class.new(ExampleGroupDouble) - @options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new) - end - - context "in an ExampleGroup with an implicit subject" do - it "delegates matcher to the implied subject" do - @example_group.describe(::Thing) - @example_group.example { should == ::Thing.new(:default) } - @example_group.example { should eql(::Thing.new(:default)) } - @example_group.run(@options).should be_true - end - end - - context "in an ExampleGroup using an explicit subject" do - it "delegates matcher to the declared subject" do - @example_group.describe(::Thing) - @example_group.subject { ::Thing.new(:other) } - @example_group.example { should == ::Thing.new(:other) } - @example_group.example { should eql(::Thing.new(:other)) } - @example_group.run(@options).should be_true - end - end - - context "in an ExampleGroup using 'self' as an explicit subject" do - it "delegates matcher to the ExampleGroup" do - @example_group.describe(::Thing) - @example_group.subject { self } - @example_group.example { should == self } - @example_group.example { should eql(self) } - @example_group.example do - self.instance_eval("def method_ok?; true end") - should be_method_ok - end - @example_group.run(@options).should be_true - end - end - end - - describe "#should_not" do - before(:each) do - @example_group = Class.new(ExampleGroupDouble) - @options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new) - end - - context "in an ExampleGroup with an implicit subject" do - it "delegates matcher to the implied subject" do - @example_group.describe(::Thing) - @example_group.example { should_not == ::Thing.new(:other) } - @example_group.example { should_not eql(::Thing.new(:other)) } - @example_group.run(@options).should be_true - end - end - - context "in an ExampleGroup using an explicit subject" do - it "delegates matcher to the declared subject" do - @example_group.describe(::Thing) - @example_group.subject { ::Thing.new(:other) } - @example_group.example { should_not == ::Thing.new(:default) } - @example_group.example { should_not eql(::Thing.new(:default)) } - @example_group.run(@options).should be_true - end - end - - context "in an ExampleGroup using 'self' as an explicit subject" do - it "delegates matcher to the ExampleGroup" do - @example_group.describe(::Thing) - @example_group.subject { self } - @example_group.example { should_not == ::Thing.new(:default) } - @example_group.example { should_not eql(::Thing.new(:default)) } - @example_group.example do - self.instance_eval("def method_ok?; false end") - should_not be_method_ok - end - @example_group.run(@options).should be_true - end - end - end - end - - describe "#options" do - it "should expose the options hash" do - example = ExampleGroupDouble.new ExampleProxy.new("name", :this => 'that') do; end - example.options[:this].should == 'that' - end - end - - describe "#set_instance_variables_from_hash" do - it "preserves the options" do - example = ExampleGroupDouble.new ExampleProxy.new("name", :this => 'that') do; end - example.set_instance_variables_from_hash({:@_options => {}}) - example.options[:this].should == 'that' - end - end - - describe "#description" do - it "returns the supplied description" do - example = ExampleGroupDouble.new ExampleProxy.new("name") do; end - example.description.should == "name" - end - it "returns the generated description if there is no description supplied" do - example = ExampleGroupDouble.new ExampleProxy.new do; end - Spec::Matchers.stub!(:generated_description).and_return('this message') - example.description.should == "this message" - end - it "warns if there is no supplied or generated description" do - example = ExampleGroupDouble.new ExampleProxy.new(nil, {}, "this backtrace") do; end - Spec::Matchers.stub!(:generated_description).and_return(nil) - Spec.should_receive(:warn).with("No description supplied for example declared on this backtrace") - example.description - end - end - - describe "#expect" do - it "aliases #should with #to on the proc" do - a = 3 - expect { a += 1 }.to change{a}.from(3).to(4) - end - - it "aliases #should_not with #to_not on the proc" do - a = 3 - expect { nil }.to_not change{a} - end - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_proxy_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_proxy_spec.rb deleted file mode 100644 index de845c9e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/example_proxy_spec.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - - describe ExampleProxy do - - describe "#description" do - it "provides the submitted description" do - proxy = ExampleProxy.new("the description") - proxy.description.should == "the description" - end - end - - describe "#update" do - it "updates the description" do - proxy = ExampleProxy.new("old description") - proxy.update("new description") - proxy.description.should == "new description" - end - end - - describe "#options" do - it "provides the submitted options" do - proxy = ExampleProxy.new(:ignore, {:these => :options}) - proxy.options.should == {:these => :options} - end - end - - describe "#backtrace (DEPRECATED - use #location)" do - before(:each) do - Spec.stub!(:deprecate) - end - - it "is deprecated" do - Spec.should_receive(:deprecate) - proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37") - proxy.backtrace - end - - it "provides the location of the declaration of this group" do - proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37") - proxy.backtrace.should == "path/to/location:37" - end - end - - describe "#location" do - it "provides the location of the declaration of this group" do - proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37") - proxy.location.should == "path/to/location:37" - end - end - - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/helper_method_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/helper_method_spec.rb deleted file mode 100644 index 3653aec7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/helper_method_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'spec_helper' - -# This was added to prove that http://rspec.lighthouseapp.com/projects/5645/tickets/211 -# was fixed in ruby 1.9.1 - -module HelperMethodExample - describe "a helper method" do - def helper_method - "received call" - end - - it "is available to examples in the same group" do - helper_method.should == "received call" - end - - describe "from a nested group" do - it "is available to examples in a nested group" do - helper_method.should == "received call" - end - end - - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/nested_example_group_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/nested_example_group_spec.rb deleted file mode 100644 index 83e4a9d7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/nested_example_group_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe 'Nested Example Groups' do - parent = self - - def count - @count ||= 0 - @count = @count + 1 - @count - end - - before(:all) do - count.should == 1 - end - - before(:all) do - count.should == 2 - end - - before(:each) do - count.should == 3 - end - - before(:each) do - count.should == 4 - end - - it "should run before(:all), before(:each), example, after(:each), after(:all) in order" do - count.should == 5 - end - - after(:each) do - count.should == 7 - end - - after(:each) do - count.should == 6 - end - - after(:all) do - count.should == 9 - end - - after(:all) do - count.should == 8 - end - - describe 'nested example group' do - self.superclass.should == parent - - it "should run all before and after callbacks" do - count.should == 5 - end - end - end - - describe "Nested Example Groups" do - describe "description options", :other_options => "other options" do - it "includes :location" do - self.class.options[:location].should match(/#{__FILE__}/) - end - - it "includes any other options" do - self.class.options[:other_options].should == "other options" - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/pending_module_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/pending_module_spec.rb deleted file mode 100644 index 275abc7d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/pending_module_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -module Spec - module Example - describe Pending do - - context "when no block is supplied" do - it "raises an ExamplePendingError if no block is supplied" do - lambda { - pending "TODO" - }.should raise_error(ExamplePendingError, /TODO/) - end - end - - context "when the supplied block fails" do - it "raises an ExamplePendingError if a supplied block fails as expected" do - lambda { - pending "TODO" do - raise "oops" - end - }.should raise_error(ExamplePendingError, /TODO/) - end - end - - context "when the supplied block fails with a mock" do - it "raises an ExamplePendingError if a supplied block fails as expected with a mock" do - lambda { - pending "TODO" do - m = mock("thing") - m.should_receive(:foo) - m.rspec_verify - end - }.should raise_error(ExamplePendingError, /TODO/) - end - end - - context "when the supplied block passes" do - it "raises a PendingExampleFixedError" do - lambda { - pending "TODO" do - # success! - end - }.should raise_error(PendingExampleFixedError, /TODO/) - end - end - end - - describe ExamplePendingError do - it "should have the message provided" do - ExamplePendingError.new("a message").message.should == "a message" - end - end - - describe NotYetImplementedError do - it "should have the message 'Not Yet Implemented'" do - NotYetImplementedError.new.message.should == "Not Yet Implemented" - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/predicate_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/predicate_matcher_spec.rb deleted file mode 100644 index a0185850..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/predicate_matcher_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - class Fish - def can_swim?(distance_in_yards) - distance_in_yards < 1000 - end - end - - describe "predicate_matcher[method_on_object] = matcher_method" do - before(:each) do - Spec.stub!(:deprecate) - end - - it "is deprecated" do - Spec.should_receive(:deprecate) - group = ExampleGroupDouble.describe("foo") do - predicate_matchers[:swim] = :can_swim? - end - group.run(Spec::Runner::Options.new(StringIO.new, StringIO.new)) - end - - it "should match matcher_method if method_on_object returns true" do - group = ExampleGroupDouble.describe(Fish) do - predicate_matchers[:swim] = :can_swim? - it { should swim(100) } - end - group.run(Spec::Runner::Options.new(StringIO.new, StringIO.new)) - end - - it "should not match matcher_method if method_on_object returns false" do - group = ExampleGroupDouble.describe(Fish) do - predicate_matchers[:swim] = :can_swim? - it { should_not swim(1000) } - end - group.run(Spec::Runner::Options.new(StringIO.new, StringIO.new)) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/shared_example_group_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/shared_example_group_spec.rb deleted file mode 100644 index bbebbf15..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/shared_example_group_spec.rb +++ /dev/null @@ -1,257 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe ExampleGroup, "with :shared => true" do - with_sandboxed_options do - attr_reader :formatter, :example_group - before(:each) do - @formatter = Spec::Mocks::Mock.new("formatter", :null_object => true) - options.formatters << formatter - @example_group = Class.new(ExampleGroupDouble).describe("example_group") - class << example_group - public :include - end - end - - after(:each) do - @formatter.rspec_verify - @example_group = nil - Spec::Example::SharedExampleGroup.clear - end - - describe "#register" do - it "creates a new shared example group with the submitted args" do - block = lambda {|a|} - group = SharedExampleGroup.new("shared group") do end - Spec::Example::SharedExampleGroup.should_receive(:new).with("share me", &block).and_return(group) - Spec::Example::SharedExampleGroup.register("share me", &block) - end - - it "registers the shared example group" do - lambda do - Spec::Example::SharedExampleGroup.register "share me" do end - end.should change {Spec::Example::SharedExampleGroup.count}.by(1) - end - end - - it "complains when adding a second shared example_group with the same description" do - describe "shared example_group", :shared => true do - end - lambda do - describe "shared example_group", :shared => true do - end - end.should raise_error(ArgumentError) - end - - it "does NOT add the same group twice" do - lambda do - 2.times do - describe "shared example_group which gets loaded twice", :shared => true do - end - end - end.should change {Spec::Example::SharedExampleGroup.count}.by(1) - end - - it "does NOT complain when adding the same shared example_group again (i.e. file gets reloaded)" do - lambda do - 2.times do - describe "shared example_group which gets loaded twice", :shared => true do - end - end - end.should_not raise_error(ArgumentError) - end - - it "does NOT complain when adding the same shared example_group in same file with different absolute path" do - SharedExampleGroup.register( - "shared example_group", - :shared => true, - :location => "/my/spec/a/../shared.rb" - ) - SharedExampleGroup.register( - "shared example_group", - :shared => true, - :location => "/my/spec/b/../shared.rb" - ) - end - - it "complains when adding a different shared example_group with the same name in a different file with the same basename" do - SharedExampleGroup.register( - "shared example_group", - :shared => true, - :location => "/my/spec/a/shared.rb" - ) - lambda do - SharedExampleGroup.register( - "shared example_group", - :shared => true, - :location => "/my/spec/b/shared.rb" - ) - end.should raise_error(ArgumentError, /already exists/) - end - - it "adds examples to current example_group using it_should_behave_like" do - shared_example_group = SharedExampleGroup.register("shared example_group") do - it("shared example") {} - it("shared example 2") {} - end - - example_group.it("example") {} - example_group.number_of_examples.should == 1 - example_group.it_should_behave_like("shared example_group") - example_group.number_of_examples.should == 3 - end - - it "adds examples to from two shared groups" do - shared_example_group_1 = SharedExampleGroup.register("shared example_group 1") do - it("shared example 1") {} - end - - shared_example_group_1 = SharedExampleGroup.register("shared example_group 2") do - it("shared example 2") {} - end - - example_group.it("example") {} - example_group.number_of_examples.should == 1 - example_group.it_should_behave_like("shared example_group 1", "shared example_group 2") - example_group.number_of_examples.should == 3 - end - - it "adds examples to current example_group using include" do - shared_example_group = describe "all things", :shared => true do - it "should do stuff" do end - end - - example_group = describe "one thing" do - include shared_example_group - end - - example_group.number_of_examples.should == 1 - end - - it "adds examples to current example_group using it_should_behave_like with a module" do - ::AllThings = describe "all things", :shared => true do - it "should do stuff" do end - end - - example_group = describe "one thing" do - it_should_behave_like ::AllThings - end - - example_group.number_of_examples.should == 1 - end - - it "runs shared examples" do - shared_example_ran = false - shared_example_group = SharedExampleGroup.register("shared example_group") do - it("shared example") { shared_example_ran = true } - end - - example_ran = false - - example_group.it_should_behave_like("shared example_group") - example_group.it("example") {example_ran = true} - example_group.run(options) - example_ran.should be_true - shared_example_ran.should be_true - end - - it "runs before(:each) and after(:each) from shared example_group" do - shared_setup_ran = false - shared_teardown_ran = false - shared_example_group = SharedExampleGroup.register("shared example_group") do - before(:each) { shared_setup_ran = true } - after(:each) { shared_teardown_ran = true } - it("shared example") { shared_example_ran = true } - end - - example_ran = false - - example_group.it_should_behave_like("shared example_group") - example_group.it("example") {example_ran = true} - example_group.run(options) - example_ran.should be_true - shared_setup_ran.should be_true - shared_teardown_ran.should be_true - end - - it "should run before(:all) and after(:all) only once from shared example_group" do - shared_before_all_run_count = 0 - shared_after_all_run_count = 0 - shared_example_group = SharedExampleGroup.register("shared example_group") do - before(:all) { shared_before_all_run_count += 1} - after(:all) { shared_after_all_run_count += 1} - it("shared example") { shared_example_ran = true } - end - - example_ran = false - - example_group.it_should_behave_like("shared example_group") - example_group.it("example") {example_ran = true} - example_group.run(options) - example_ran.should be_true - shared_before_all_run_count.should == 1 - shared_after_all_run_count.should == 1 - end - - it "should include modules, included into shared example_group, into current example_group" do - @formatter.should_receive(:add_example_group).with(any_args) - - shared_example_group = SharedExampleGroup.register("shared example_group") do - it("shared example") { shared_example_ran = true } - end - - mod1_method_called = false - mod1 = Module.new do - define_method :mod1_method do - mod1_method_called = true - end - end - - mod2_method_called = false - mod2 = Module.new do - define_method :mod2_method do - mod2_method_called = true - end - end - - shared_example_group.__send__ :include, mod2 - - example_group.it_should_behave_like("shared example_group") - example_group.include mod1 - - example_group.it("test") do - mod1_method - mod2_method - end - example_group.run(options) - mod1_method_called.should be_true - mod2_method_called.should be_true - end - - it "should make methods defined in the shared example_group available in consuming example_group" do - shared_example_group = SharedExampleGroup.register("shared example_group xyz") do - def a_shared_helper_method - "this got defined in a shared example_group" - end - end - example_group.it_should_behave_like("shared example_group xyz") - success = false - example_group.it("should access a_shared_helper_method") do - a_shared_helper_method - success = true - end - example_group.run(options) - success.should be_true - end - - it "should raise when named shared example_group can not be found" do - lambda { - example_group.it_should_behave_like("non-existent shared example group") - violated - }.should raise_error("Shared Example Group 'non-existent shared example group' can not be found") - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subclassing_example_group_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subclassing_example_group_spec.rb deleted file mode 100644 index 969014a7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subclassing_example_group_spec.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - class GrandParentExampleGroup < Spec::Example::ExampleGroup - describe "Grandparent ExampleGroup" - end - - class ParentExampleGroup < GrandParentExampleGroup - describe "Parent ExampleGroup" - it "should bar" do - end - end - - class ChildExampleGroup < ParentExampleGroup - describe "Child ExampleGroup" - it "should bam" do - end - end - - describe ChildExampleGroup do - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subject_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subject_spec.rb deleted file mode 100644 index c0e4fd80..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/example/subject_spec.rb +++ /dev/null @@ -1,103 +0,0 @@ -require 'spec_helper' - -module Spec - module Example - describe "implicit subject" do - describe "with a class" do - it "returns an instance of the class" do - group = Class.new(ExampleGroupDouble).describe(Array) - example = group.new(ExampleProxy.new) - example.subject.should == [] - end - end - - describe "with a Module" do - it "returns the Module" do - group = Class.new(ExampleGroupDouble).describe(Enumerable) - example = group.new(ExampleProxy.new) - example.subject.should == Enumerable - end - end - - describe "with a string" do - it "return the string" do - group = Class.new(ExampleGroupDouble).describe('foo') - example = group.new(ExampleProxy.new) - example.subject.should == 'foo' - end - end - - describe "with a number" do - it "returns the number" do - group = Class.new(ExampleGroupDouble).describe(15) - example = group.new(ExampleProxy.new) - example.subject.should == 15 - end - end - - end - - describe "explicit subject" do - describe "defined in a top level group" do - it "replaces the implicit subject in that group" do - group = Class.new(ExampleGroupDouble).describe(Array) - group.subject { [1,2,3] } - example = group.new(ExampleProxy.new) - example.subject.should == [1,2,3] - end - end - - describe "defined in a top level group" do - before(:each) do - @group = Class.new do - extend Spec::Example::Subject::ExampleGroupMethods - include Spec::Example::Subject::ExampleMethods - class << self - def described_class - Array - end - end - def described_class - self.class.described_class - end - - subject { - [1,2,3] - } - end - end - - it "is available in a nested group (subclass)" do - nested_group = Class.new(@group) - - example = nested_group.new - example.subject.should == [1,2,3] - end - - it "is available in a doubly nested group (subclass)" do - nested_group = Class.new(@group) - doubly_nested_group = Class.new(nested_group) - - example = doubly_nested_group.new - example.subject.should == [1,2,3] - end - end - end - - describe ".its (to access subject's attributes)" do - with_sandboxed_options do - it "passes when expectation should pass" do - group = Class.new(ExampleGroupDouble).describe(Array) - child = group.its(:length) { should == 0 } - child.run(options).should == true - end - - it "fails when expectation should fail" do - group = Class.new(ExampleGroupDouble).describe(Array) - child = group.its(:length) { should == 1 } - child.run(options).should == false - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/differs/default_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/differs/default_spec.rb deleted file mode 100644 index 3bc3c45a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/differs/default_spec.rb +++ /dev/null @@ -1,194 +0,0 @@ -require 'spec_helper' - -module Spec - module Fixtures - class Animal - def initialize(name,species) - @name,@species = name,species - end - - def inspect - <<-EOA - - EOA - end - end - end -end - -describe "Diff" do - before(:each) do - @options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new) - @differ = Spec::Expectations::Differs::Default.new(@options) - end - - it "should output unified diff of two strings" do - expected="foo\nbar\nzap\nthis\nis\nsoo\nvery\nvery\nequal\ninsert\na\nline\n" - actual="foo\nzap\nbar\nthis\nis\nsoo\nvery\nvery\nequal\ninsert\na\nanother\nline\n" - expected_diff= <<'EOD' - - -@@ -1,6 +1,6 @@ - foo --zap - bar -+zap - this - is - soo -@@ -9,6 +9,5 @@ - equal - insert - a --another - line -EOD - - diff = @differ.diff_as_string(expected, actual) - diff.should eql(expected_diff) - end - - it "should output unified diff message of two arrays" do - expected = [ :foo, 'bar', :baz, 'quux', :metasyntactic, 'variable', :delta, 'charlie', :width, 'quite wide' ] - actual = [ :foo, 'bar', :baz, 'quux', :metasyntactic, 'variable', :delta, 'tango' , :width, 'very wide' ] - - expected_diff = <<'EOD' - - -@@ -5,7 +5,7 @@ - :metasyntactic, - "variable", - :delta, -- "tango", -+ "charlie", - :width, -- "very wide"] -+ "quite wide"] -EOD - - - diff = @differ.diff_as_object(expected,actual) - diff.should == expected_diff - end - - it "should output a friendly message if comparing simple hashes" do - expected = { "foo" => "bar" } - actual = { "foo" => "baz" } - - expected_diff = <<'EOD' - -Expected the key "foo" to be "bar", but was "baz" - -EOD - - - diff = @differ.diff_as_hash(actual, expected) - diff.should == expected_diff - end - - - it "should output a friendly message if comparing simple hashes that contain different keys" do - expected = { "bar" => "foo" } - actual = { "foo" => "baz" } - - expected_diff = <<'EOD' - -Expected hash contains keys that target hash does not: ["bar"] -Target hash contains keys that expected hash does not: ["foo"] -Expected the key "bar" to be "foo", but was nil - -EOD - - - diff = @differ.diff_as_hash(actual, expected) - diff.should == expected_diff - end - - it "should output diff message if the hash is complex (containing Array or Hash)" do - expected = { "foo" => "bar", "fizz" => [1, 2, 3] } - actual = { "foo" => "baz", "fizz" => [1, 2] } - - # UGH - 1.8.7 seems to order hash keys differently than the others - if RUBY_VERSION =~ /^1.8.7/ - expected_diff = <<'EOD' - -Expected the key "fizz" to be [1, 2, 3], but was [1, 2] -Expected the key "foo" to be "bar", but was "baz" - - -@@ -1,2 +1,2 @@ --{"fizz"=>[1, 2, 3], "foo"=>"bar"} -+{"fizz"=>[1, 2], "foo"=>"baz"} -EOD - else - expected_diff = <<'EOD' - -Expected the key "fizz" to be [1, 2, 3], but was [1, 2] -Expected the key "foo" to be "bar", but was "baz" - - -@@ -1,2 +1,2 @@ --{"foo"=>"bar", "fizz"=>[1, 2, 3]} -+{"foo"=>"baz", "fizz"=>[1, 2]} -EOD - end - - diff = @differ.diff_as_hash(actual, expected) - diff.should == expected_diff - end - - - it "should output unified diff message of two objects" do - expected = Spec::Fixtures::Animal.new "bob", "giraffe" - actual = Spec::Fixtures::Animal.new "bob", "tortoise" - - expected_diff = <<'EOD' - -@@ -1,5 +1,5 @@ - -EOD - - diff = @differ.diff_as_object(expected,actual) - diff.should == expected_diff - end - -end - - -describe "Diff in context format" do - before(:each) do - @options = Spec::Runner::Options.new(StringIO.new, StringIO.new) - @options.diff_format = :context - @differ = Spec::Expectations::Differs::Default.new(@options) - end - - it "should output unified diff message of two objects" do - expected = Spec::Fixtures::Animal.new "bob", "giraffe" - actual = Spec::Fixtures::Animal.new "bob", "tortoise" - - expected_diff = <<'EOD' - -*************** -*** 1,5 **** - ---- 1,5 ---- - -EOD - - diff = @differ.diff_as_object(expected,actual) - diff.should == expected_diff - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/extensions/kernel_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/extensions/kernel_spec.rb deleted file mode 100644 index 9a0ed3ce..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/extensions/kernel_spec.rb +++ /dev/null @@ -1,45 +0,0 @@ -require 'spec_helper' - -describe Object, "#should" do - before(:each) do - @target = "target" - @matcher = mock("matcher") - @matcher.stub!(:matches?).and_return(true) - @matcher.stub!(:failure_message_for_should) - end - - it "accepts and interacts with a matcher" do - @matcher.should_receive(:matches?).with(@target).and_return(true) - @target.should @matcher - end - - it "asks for a failure_message_for_should when matches? returns false" do - @matcher.should_receive(:matches?).with(@target).and_return(false) - @matcher.should_receive(:failure_message_for_should).and_return("the failure message") - lambda { - @target.should @matcher - }.should fail_with("the failure message") - end -end - -describe Object, "#should_not" do - before(:each) do - @target = "target" - @matcher = mock("matcher") - end - - it "accepts and interacts with a matcher" do - @matcher.should_receive(:matches?).with(@target).and_return(false) - @matcher.stub!(:failure_message_for_should_not) - - @target.should_not @matcher - end - - it "asks for a failure_message_for_should_not when matches? returns true" do - @matcher.should_receive(:matches?).with(@target).and_return(true) - @matcher.should_receive(:failure_message_for_should_not).and_return("the failure message for should not") - lambda { - @target.should_not @matcher - }.should fail_with("the failure message for should not") - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/fail_with_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/fail_with_spec.rb deleted file mode 100644 index 639b7f95..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/fail_with_spec.rb +++ /dev/null @@ -1,96 +0,0 @@ -require 'spec_helper' - -describe Spec::Expectations, "#fail_with with no diff" do - before(:each) do - @old_differ = Spec::Expectations.differ - Spec::Expectations.differ = nil - end - - it "should handle just a message" do - lambda { - Spec::Expectations.fail_with "the message" - }.should fail_with("the message") - end - - after(:each) do - Spec::Expectations.differ = @old_differ - end -end - -describe Spec::Expectations, "#fail_with with Array" do - before(:each) do - Spec.stub!(:warn) - end - - it "is deprecated" do - Spec.should_receive(:warn) - lambda { - Spec::Expectations.fail_with ["message", "expected", "actual"] - }.should raise_error - end -end - -describe Spec::Expectations, "#fail_with with diff" do - before(:each) do - @old_differ = Spec::Expectations.differ - @differ = mock("differ") - Spec::Expectations.differ = @differ - end - - it "should not call differ if no expected/actual" do - lambda { - Spec::Expectations.fail_with "the message" - }.should fail_with("the message") - end - - it "should call differ if expected/actual are presented separately" do - @differ.should_receive(:diff_as_string).and_return("diff") - lambda { - Spec::Expectations.fail_with "the message", "expected", "actual" - }.should fail_with("the message\n\n Diff:diff") - end - - it "should call differ if expected/actual are not strings" do - @differ.should_receive(:diff_as_object).and_return("diff") - lambda { - Spec::Expectations.fail_with "the message", :expected, :actual - }.should fail_with("the message\n\n Diff:diff") - end - - it "should call differ if expected/actual are both hashes" do - @differ.should_receive(:diff_as_hash).and_return("diff") - lambda { - Spec::Expectations.fail_with "the message", {:a => :b}, {:a => 'b'} - }.should fail_with("the message\n\n Diff:diff") - end - - it "should not call differ if expected or actual are procs" do - @differ.should_not_receive(:diff_as_string) - @differ.should_not_receive(:diff_as_object) - @differ.should_not_receive(:diff_as_hash) - lambda { - Spec::Expectations.fail_with "the message", lambda {}, lambda {} - }.should fail_with("the message") - end - - after(:each) do - Spec::Expectations.differ = @old_differ - end -end - -describe Spec::Expectations, "#fail_with with a nil message" do - before(:each) do - @old_differ = Spec::Expectations.differ - Spec::Expectations.differ = nil - end - - it "should handle just a message" do - lambda { - Spec::Expectations.fail_with nil - }.should raise_error(ArgumentError, /Failure message is nil\. Does your matcher define the appropriate failure_message_for_\* method to return a string\?/) - end - - after(:each) do - Spec::Expectations.differ = @old_differ - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/handler_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/handler_spec.rb deleted file mode 100644 index e7d6a6ed..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/handler_spec.rb +++ /dev/null @@ -1,206 +0,0 @@ -require 'spec_helper' - -module ExampleExpectations - - class ArbitraryMatcher - def initialize(*args, &block) - if args.last.is_a? Hash - @expected = args.last[:expected] - end - @expected = block.call if block - @block = block - end - - def matches?(target) - @target = target - return @expected == target - end - - def with(new_value) - @expected = new_value - self - end - - def failure_message - "expected #{@expected}, got #{@target}" - end - - def negative_failure_message - "expected not #{@expected}, got #{@target}" - end - end - - class PositiveOnlyMatcher < ArbitraryMatcher - undef negative_failure_message rescue nil - end - - def arbitrary_matcher(*args, &block) - ArbitraryMatcher.new(*args, &block) - end - - def positive_only_matcher(*args, &block) - PositiveOnlyMatcher.new(*args, &block) - end - -end - -module Spec - module Expectations - describe PositiveExpectationHandler do - describe "#handle_matcher" do - it "asks the matcher if it matches" do - matcher = mock("matcher") - actual = Object.new - matcher.should_receive(:matches?).with(actual).and_return(true) - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher) - end - - it "returns the match value" do - matcher = mock("matcher") - actual = Object.new - matcher.should_receive(:matches?).with(actual).and_return(:this_value) - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher).should == :this_value - end - - it "calls failure_message_for_should if the matcher implements it" do - matcher = mock("matcher", :failure_message_for_should => "message", :matches? => false) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message") - - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher) - end - - it "calls fail if matcher.diffable?" do - matcher = mock("matcher", - :diffable? => true, - :failure_message_for_should => "message", - :matches? => false, - :expected => [1], - :actual => 2 - ) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message", 1, 2) - - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher) - end - - it "calls failure_message if the matcher does not implement failure_message_for_should" do - matcher = mock("matcher", :failure_message => "message", :matches? => false) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message") - - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher) - - end - - it "appends the :or message in the options hash passed to should" do - matcher = mock("matcher", :failure_message_for_should => "message", :matches? => false) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("custom") - - Spec::Expectations::PositiveExpectationHandler.handle_matcher(actual, matcher, "custom") - end - end - end - - describe NegativeExpectationHandler do - describe "#handle_matcher" do - it "asks the matcher if it doesn't match when the matcher responds to #does_not_match?" do - matcher = mock("matcher", :does_not_match? => true, :negative_failure_message => nil) - actual = Object.new - matcher.should_receive(:does_not_match?).with(actual).and_return(true) - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher) - end - - it "asks the matcher if it matches when the matcher doesn't respond to #does_not_match?" do - matcher = mock("matcher") - actual = Object.new - matcher.stub!(:negative_failure_message) - matcher.should_receive(:matches?).with(actual).and_return(false) - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher) - end - - it "returns the match value" do - matcher = mock("matcher") - actual = Object.new - matcher.should_receive(:matches?).with(actual).and_return(false) - matcher.stub!(:negative_failure_message).and_return("ignore") - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher).should be_false - end - - - it "calls failure_message_for_should_not if the matcher implements it" do - matcher = mock("matcher", :failure_message_for_should_not => "message", :matches? => true) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message") - - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher) - - end - - it "calls negative_failure_message if the matcher does not implement failure_message_for_should_not" do - matcher = mock("matcher", :negative_failure_message => "message", :matches? => true) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message") - - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher) - - end - - - it "calls fail if matcher.diffable?" do - matcher = mock("matcher", - :diffable? => true, - :failure_message_for_should_not => "message", - :matches? => true, - :expected => [1], - :actual => 2 - ) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("message", 1, 2) - - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher) - end - - it "appends the :or message in the options hash passed to should" do - matcher = mock("matcher", :failure_message_for_should_not => "message", :matches? => true) - actual = Object.new - - ::Spec::Expectations.should_receive(:fail_with).with("custom") - - Spec::Expectations::NegativeExpectationHandler.handle_matcher(actual, matcher, "custom") - end - - end - end - - describe PositiveExpectationHandler do - include ExampleExpectations - - it "should handle submitted args" do - 5.should arbitrary_matcher(:expected => 5) - 5.should arbitrary_matcher(:expected => "wrong").with(5) - lambda { 5.should arbitrary_matcher(:expected => 4) }.should fail_with("expected 4, got 5") - lambda { 5.should arbitrary_matcher(:expected => 5).with(4) }.should fail_with("expected 4, got 5") - 5.should_not arbitrary_matcher(:expected => 4) - 5.should_not arbitrary_matcher(:expected => 5).with(4) - lambda { 5.should_not arbitrary_matcher(:expected => 5) }.should fail_with("expected not 5, got 5") - lambda { 5.should_not arbitrary_matcher(:expected => 4).with(5) }.should fail_with("expected not 5, got 5") - end - - it "should handle the submitted block" do - 5.should arbitrary_matcher { 5 } - 5.should arbitrary_matcher(:expected => 4) { 5 } - 5.should arbitrary_matcher(:expected => 4).with(5) { 3 } - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/wrap_expectation_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/wrap_expectation_spec.rb deleted file mode 100644 index 9ef7d007..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/expectations/wrap_expectation_spec.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - describe "wrap_expectation" do - - def stub_matcher - @_stub_matcher ||= simple_matcher do - end - end - - def failing_matcher - @_failing_matcher ||= simple_matcher do - 1.should == 2 - end - end - - it "should return true if there is no error" do - wrap_expectation stub_matcher do - end.should be_true - end - - it "should return false if there is an error" do - wrap_expectation failing_matcher do - raise "error" - end.should be_false - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_fails.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_fails.rb deleted file mode 100644 index b2c48410..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_fails.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -describe "example group with failures" do - it "should fail" do - false.should be_true - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_passes.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_passes.rb deleted file mode 100644 index 4203af3a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_that_passes.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -describe "example group with passing examples" do - it "should pass" do - true.should be_true - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_errors.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_errors.rb deleted file mode 100644 index a18ce72f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_errors.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -describe "example group with errors" do - it "should raise errors" do - raise "error raised in example group with errors" - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb deleted file mode 100644 index 7dc344bd..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +++ /dev/null @@ -1,13 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -describe "options hash" do - describe "#options" do - it "should expose the options hash" do - group = describe("group", :this => 'hash') {} - group.options[:this].should == 'hash' - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_fails.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_fails.rb deleted file mode 100644 index 0a977cb1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -class TestCaseThatFails < Test::Unit::TestCase - def test_that_fails - false.should be_true - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_passes.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_passes.rb deleted file mode 100644 index 078a5f77..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -class TestCaseThatPasses < Test::Unit::TestCase - def test_that_passes - true.should be_true - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_errors.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_errors.rb deleted file mode 100644 index dc5f52e4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +++ /dev/null @@ -1,10 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -class TestCaseWithErrors < Test::Unit::TestCase - def test_with_error - raise "error raised in TestCaseWithErrors" - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb deleted file mode 100644 index 186db49d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb +++ /dev/null @@ -1,22 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -class TestCaseThatPasses < Test::Unit::TestCase - def test_should_allow_underscore - assert true - end - - def testShouldAllowUppercaseLetter - assert true - end - - def testshouldallowlowercaseletter - assert true - end - - define_method :"test: should allow punctuation" do - assert true - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb deleted file mode 100644 index 5182b820..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +++ /dev/null @@ -1,38 +0,0 @@ -rspec_lib = File.dirname(__FILE__) + "/../../../../../../lib" -$:.unshift rspec_lib unless $:.include?(rspec_lib) -require 'spec/autorun' -require 'spec/test/unit' - -module Test - module Unit - describe TestSuiteAdapter do - def create_adapter(group) - TestSuiteAdapter.new(group) - end - - describe "#size" do - it "should return the number of examples in the example group" do - group = Class.new(Spec::ExampleGroup) do - describe("some examples") - it("bar") {} - it("baz") {} - end - adapter = create_adapter(group) - adapter.size.should == 2 - end - end - - describe "#delete" do - it "should do nothing" do - group = Class.new(Spec::ExampleGroup) do - describe("Some Examples") - it("does something") {} - end - adapter = create_adapter(group) - adapter.delete(adapter.examples.first) - adapter.should be_empty - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/spec_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/spec_spec.rb deleted file mode 100644 index 83ff5226..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/spec_spec.rb +++ /dev/null @@ -1,48 +0,0 @@ -require 'spec/interop/test/unit/test_unit_spec_helper' - -describe "ExampleGroup with test/unit/interop" do - include TestUnitSpecHelper - - describe "with passing examples" do - it "should output 0 failures" do - output = ruby("#{resources}/spec_that_passes.rb") - output.should include("1 example, 0 failures") - end - - it "should return an exit code of 0" do - ruby("#{resources}/spec_that_passes.rb") - $?.should == 0 - end - end - - describe "with failing examples" do - it "should output 1 failure" do - output = ruby("#{resources}/spec_that_fails.rb") - output.should include("1 example, 1 failure") - end - - it "should return an exit code of 256" do - ruby("#{resources}/spec_that_fails.rb") - $?.should == 256 - end - end - - describe "with example that raises an error" do - it "should output 1 failure" do - output = ruby("#{resources}/spec_with_errors.rb") - output.should include("1 example, 1 failure") - end - - it "should return an exit code of 256" do - ruby("#{resources}/spec_with_errors.rb") - $?.should == 256 - end - end - - describe "options hash" do - it "should be exposed" do - output = ruby("#{resources}/spec_with_options_hash.rb") - output.should include("1 example, 0 failures") - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/test_unit_spec_helper.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/test_unit_spec_helper.rb deleted file mode 100644 index 1f6c223e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/test_unit_spec_helper.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'spec_helper' -require 'ruby_forker' - -module TestUnitSpecHelper - include RubyForker - - def resources - File.dirname(__FILE__) + "/resources" - end - - def run_script(file_name) - output = ruby(file_name) - if !$?.success? || output.include?("FAILED") || output.include?("Error") - raise output - end - output - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testcase_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testcase_spec.rb deleted file mode 100644 index c1b25260..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testcase_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -require 'spec/interop/test/unit/test_unit_spec_helper' - -describe "Test::Unit::TestCase" do - include TestUnitSpecHelper - - before(:each) do - @dir = File.dirname(__FILE__) + "/resources" - end - - describe "with passing test case" do - it "should output 0 failures" do - output = ruby("#{@dir}/test_case_that_passes.rb") - output.should include("1 example, 0 failures") - end - - it "should return an exit code of 0" do - ruby("#{@dir}/test_case_that_passes.rb") - $?.should == 0 - end - end - - describe "with failing test case" do - it "should output 1 failure" do - output = ruby("#{@dir}/test_case_that_fails.rb") - output.should include("1 example, 1 failure") - end - - it "should return an exit code of 256" do - ruby("#{@dir}/test_case_that_fails.rb") - $?.should == 256 - end - end - - describe "with test case that raises an error" do - it "should output 1 failure" do - output = ruby("#{@dir}/test_case_with_errors.rb") - output.should include("1 example, 1 failure") - end - - it "should return an exit code of 256" do - ruby("#{@dir}/test_case_with_errors.rb") - $?.should == 256 - end - end - - it "should find all Test::Unit test methods" do - output = ruby("#{@dir}/test_case_with_various_names.rb") - output.should include("4 examples, 0 failures") - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testsuite_adapter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testsuite_adapter_spec.rb deleted file mode 100644 index 59743039..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'spec/interop/test/unit/test_unit_spec_helper' - -describe "TestSuiteAdapter" do - include TestUnitSpecHelper - it "should pass" do - dir = File.dirname(__FILE__) - run_script "#{dir}/resources/testsuite_adapter_spec_with_test_unit.rb" - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_close_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_close_spec.rb deleted file mode 100644 index cc0e5bd4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_close_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -require 'spec_helper' -module Spec - module Matchers - describe "[actual.should] be_close(expected, delta)" do - it "matches when actual == expected" do - be_close(5.0, 0.5).matches?(5.0).should be_true - end - it "matches when actual < (expected + delta)" do - be_close(5.0, 0.5).matches?(5.49).should be_true - end - it "matches when actual > (expected - delta)" do - be_close(5.0, 0.5).matches?(4.51).should be_true - end - it "does not match when actual == (expected - delta)" do - be_close(5.0, 0.5).matches?(4.5).should be_false - end - it "does not match when actual < (expected - delta)" do - be_close(5.0, 0.5).matches?(4.49).should be_false - end - it "does not match when actual == (expected + delta)" do - be_close(5.0, 0.5).matches?(5.5).should be_false - end - it "does not match when actual > (expected + delta)" do - be_close(5.0, 0.5).matches?(5.51).should be_false - end - it "provides a failure message for should" do - #given - matcher = be_close(5.0, 0.5) - #when - matcher.matches?(5.51) - #then - matcher.failure_message_for_should.should == "expected 5.0 +/- (< 0.5), got 5.51" - end - - it "provides a failure message for should tno" do - #given - matcher = be_close(5.0, 0.5) - #when - matcher.matches?(5.49) - #then - matcher.failure_message_for_should_not.should == "expected 5.0 +/- (< 0.5), got 5.49" - end - it "provides a description" do - matcher = be_close(5.0, 0.5) - matcher.matches?(5.1) - matcher.description.should == "be close to 5.0 (within +- 0.5)" - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_instance_of_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_instance_of_spec.rb deleted file mode 100644 index e6abd0b1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_instance_of_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - [:be_an_instance_of, :be_instance_of].each do |method| - describe "actual.should #{method}(expected)" do - it "passes if actual is instance of expected class" do - 5.should send(method, Fixnum) - end - - it "fails if actual is instance of subclass of expected class" do - lambda { 5.should send(method, Numeric) }.should fail_with(%Q{expected 5 to be an instance of Numeric}) - end - - it "fails with failure message for should unless actual is instance of expected class" do - lambda { "foo".should send(method, Array) }.should fail_with(%Q{expected "foo" to be an instance of Array}) - end - - it "provides a description" do - matcher = be_an_instance_of(Fixnum) - matcher.matches?(Numeric) - matcher.description.should == "be an instance of Fixnum" - end - end - - describe "actual.should_not #{method}(expected)" do - - it "fails with failure message for should_not if actual is instance of expected class" do - lambda { "foo".should_not send(method, String) }.should fail_with(%Q{expected "foo" not to be an instance of String}) - end - - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_kind_of_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_kind_of_spec.rb deleted file mode 100644 index d3f05e80..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_kind_of_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - [:be_a_kind_of, :be_kind_of].each do |method| - describe "actual.should #{method}(expected)" do - it "passes if actual is instance of expected class" do - 5.should send(method, Fixnum) - end - - it "passes if actual is instance of subclass of expected class" do - 5.should send(method, Numeric) - end - - it "fails with failure message for should unless actual is kind of expected class" do - lambda { "foo".should send(method, Array) }.should fail_with(%Q{expected "foo" to be a kind of Array}) - end - - it "provides a description" do - matcher = be_a_kind_of(String) - matcher.matches?("this") - matcher.description.should == "be a kind of String" - end - end - - describe "actual.should_not #{method}(expected)" do - it "fails with failure message for should_not if actual is kind of expected class" do - lambda { "foo".should_not send(method, String) }.should fail_with(%Q{expected "foo" not to be a kind of String}) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_spec.rb deleted file mode 100644 index db6258ab..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/be_spec.rb +++ /dev/null @@ -1,311 +0,0 @@ -require 'spec_helper' - -describe "should be_predicate" do - it "should pass when actual returns true for :predicate?" do - actual = stub("actual", :happy? => true) - actual.should be_happy - end - - it "should pass when actual returns true for :predicates? (present tense)" do - actual = stub("actual", :exists? => true, :exist? => true) - actual.should be_exist - end - - it "should fail when actual returns false for :predicate?" do - actual = stub("actual", :happy? => false) - lambda { - actual.should be_happy - }.should fail_with("expected happy? to return true, got false") - end - - it "should fail when actual returns false for :predicate?" do - actual = stub("actual", :happy? => nil) - lambda { - actual.should be_happy - }.should fail_with("expected happy? to return true, got nil") - end - - it "should fail when actual does not respond to :predicate?" do - lambda { - Object.new.should be_happy - }.should raise_error(NameError, /happy\?/) - end - - it "should fail on error other than NameError" do - actual = stub("actual") - actual.should_receive(:foo?).and_raise("aaaah") - lambda { - actual.should be_foo - }.should raise_error(/aaaah/) - end - - it "should fail on error other than NameError (with the present tense predicate)" do - actual = Object.new - actual.should_receive(:foos?).and_raise("aaaah") - lambda { - actual.should be_foo - }.should raise_error(/aaaah/) - end -end - -describe "should_not be_predicate" do - it "should pass when actual returns false for :sym?" do - actual = stub("actual", :happy? => false) - actual.should_not be_happy - end - - it "should pass when actual returns nil for :sym?" do - actual = stub("actual", :happy? => nil) - actual.should_not be_happy - end - - it "should fail when actual returns true for :sym?" do - actual = stub("actual", :happy? => true) - lambda { - actual.should_not be_happy - }.should fail_with("expected happy? to return false, got true") - end - - it "should fail when actual does not respond to :sym?" do - lambda { - Object.new.should_not be_happy - }.should raise_error(NameError) - end -end - -describe "should be_predicate(*args)" do - it "should pass when actual returns true for :predicate?(*args)" do - actual = mock("actual") - actual.should_receive(:older_than?).with(3).and_return(true) - actual.should be_older_than(3) - end - - it "should fail when actual returns false for :predicate?(*args)" do - actual = mock("actual") - actual.should_receive(:older_than?).with(3).and_return(false) - lambda { - actual.should be_older_than(3) - }.should fail_with("expected older_than?(3) to return true, got false") - end - - it "should fail when actual does not respond to :predicate?" do - lambda { - Object.new.should be_older_than(3) - }.should raise_error(NameError) - end -end - -describe "should_not be_predicate(*args)" do - it "should pass when actual returns false for :predicate?(*args)" do - actual = mock("actual") - actual.should_receive(:older_than?).with(3).and_return(false) - actual.should_not be_older_than(3) - end - - it "should fail when actual returns true for :predicate?(*args)" do - actual = mock("actual") - actual.should_receive(:older_than?).with(3).and_return(true) - lambda { - actual.should_not be_older_than(3) - }.should fail_with("expected older_than?(3) to return false, got true") - end - - it "should fail when actual does not respond to :predicate?" do - lambda { - Object.new.should_not be_older_than(3) - }.should raise_error(NameError) - end -end - -describe "should be_true" do - it "should pass when actual equal(true)" do - true.should be_true - end - - it "should fail when actual equal(false)" do - lambda { - false.should be_true - }.should fail_with("expected true, got false") - end -end - -describe "should be_false" do - it "should pass when actual equal(false)" do - false.should be_false - end - - it "should fail when actual equal(true)" do - lambda { - true.should be_false - }.should fail_with("expected false, got true") - end -end - -describe "should be_nil" do - it "should pass when actual is nil" do - nil.should be_nil - end - - it "should fail when actual is not nil" do - lambda { - :not_nil.should be_nil - }.should fail_with("expected nil, got :not_nil") - end -end - -describe "should_not be_nil" do - it "should pass when actual is not nil" do - :not_nil.should_not be_nil - end - - it "should fail when actual is nil" do - lambda { - nil.should_not be_nil - }.should fail_with("expected not nil, got nil") - end -end - -describe "should be <" do - it "should pass when < operator returns true" do - 3.should be < 4 - end - - it "should fail when < operator returns false" do - lambda { 3.should be < 3 }.should fail_with("expected < 3, got 3") - end -end - -describe "should be <=" do - it "should pass when <= operator returns true" do - 3.should be <= 4 - 4.should be <= 4 - end - - it "should fail when <= operator returns false" do - lambda { 3.should be <= 2 }.should fail_with("expected <= 2, got 3") - end -end - -describe "should be >=" do - it "should pass when >= operator returns true" do - 4.should be >= 4 - 5.should be >= 4 - end - - it "should fail when >= operator returns false" do - lambda { 3.should be >= 4 }.should fail_with("expected >= 4, got 3") - end -end - -describe "should be >" do - it "should pass when > operator returns true" do - 5.should be > 4 - end - - it "should fail when > operator returns false" do - lambda { 3.should be > 4 }.should fail_with("expected > 4, got 3") - end -end - -describe "should be ==" do - it "should pass when == operator returns true" do - 5.should be == 5 - end - - it "should fail when == operator returns false" do - lambda { 3.should be == 4 }.should fail_with("expected == 4, got 3") - end -end - -describe "should be ===" do - it "should pass when === operator returns true" do - Hash.should be === Hash.new - end - - it "should fail when === operator returns false" do - lambda { Hash.should be === "not a hash" }.should fail_with(%[expected === not a hash, got Hash]) - end -end - -describe "should_not with operators" do - it "should coach user to stop using operators with should_not" do - lambda { - 5.should_not be < 6 - }.should raise_error(/not only FAILED,\nit is a bit confusing./m) - end -end - -describe "should be" do - it "should pass if actual is true or a set value" do - true.should be - 1.should be - end - - it "should fail if actual is false" do - lambda {false.should be}.should fail_with("expected true, got false") - end - - it "should fail if actual is nil" do - lambda {nil.should be}.should fail_with("expected true, got nil") - end -end - -describe "should be(value)" do - it "should pass if actual.equal?(value)" do - 5.should be(5) - end - it "should fail if !actual.equal?(value)" do - lambda { 5.should be(6) }.should fail_with("expected 6, got 5") - end -end - -describe "'should be' with operator" do - it "should include 'be' in the description" do - (be > 6).description.should =~ /be > 6/ - (be >= 6).description.should =~ /be >= 6/ - (be <= 6).description.should =~ /be <= 6/ - (be < 6).description.should =~ /be < 6/ - end -end - - -describe "arbitrary predicate with DelegateClass" do - it "should access methods defined in the delegating class (LH[#48])" do - require 'delegate' - class ArrayDelegate < DelegateClass(Array) - def initialize(array) - @internal_array = array - super(@internal_array) - end - - def large? - @internal_array.size >= 5 - end - end - - delegate = ArrayDelegate.new([1,2,3,4,5,6]) - delegate.should be_large - end -end - -describe "be_a, be_an" do - it "should pass when class matches" do - "foobar".should be_a(String) - [1,2,3].should be_an(Array) - end - - it "should fail when class does not match" do - "foobar".should_not be_a(Hash) - [1,2,3].should_not be_an(Integer) - end -end - -describe "be_an_instance_of" do - it "passes when direct class matches" do - 5.should be_an_instance_of(Fixnum) - end - - it "fails when class is higher up hierarchy" do - 5.should_not be_an_instance_of(Numeric) - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/change_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/change_spec.rb deleted file mode 100644 index e70daf37..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/change_spec.rb +++ /dev/null @@ -1,349 +0,0 @@ -#Based on patch from Wilson Bilkovich - -require 'spec_helper' -class SomethingExpected - attr_accessor :some_value -end - -describe "should change(actual, message)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when actual is modified by the block" do - expect {@instance.some_value = 6}.to change(@instance, :some_value) - end - - it "should fail when actual is not modified by the block" do - expect do - expect {}.to change(@instance, :some_value) - end.to fail_with("some_value should have changed, but is still 5") - end - - it "provides a #description" do - change(@instance, :some_value).description.should == "change #some_value" - end -end - -describe "should_not change(actual, message)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when actual is not modified by the block" do - expect { }.to_not change(@instance, :some_value) - end - - it "should fail when actual is not modified by the block" do - expect do - expect {@instance.some_value = 6}.to_not change(@instance, :some_value) - end.to fail_with("some_value should not have changed, but did change from 5 to 6") - end -end - -describe "should change { block }" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when actual is modified by the block" do - expect {@instance.some_value = 6}.to change { @instance.some_value } - end - - it "should fail when actual is not modified by the block" do - expect do - expect {}.to change{ @instance.some_value } - end.to fail_with("result should have changed, but is still 5") - end - - it "should warn if passed a block using do/end instead of {}" do - expect do - expect {}.to change do; end - end.to raise_error(Spec::Matchers::MatcherError, /block passed to should or should_not/) - end - - it "provides a #description" do - change { @instance.some_value }.description.should == "change #result" - end -end - -describe "should_not change { block }" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when actual is modified by the block" do - expect {}.to_not change{ @instance.some_value } - end - - it "should fail when actual is not modified by the block" do - expect do - expect {@instance.some_value = 6}.to_not change { @instance.some_value } - end.to fail_with("result should not have changed, but did change from 5 to 6") - end - - it "should warn if passed a block using do/end instead of {}" do - expect do - expect {}.to_not change do; end - end.to raise_error(Spec::Matchers::MatcherError, /block passed to should or should_not/) - end -end - -describe "should change(actual, message).by(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by expected amount" do - expect { @instance.some_value += 1 }.to change(@instance, :some_value).by(1) - end - - it "should fail when the attribute is changed by unexpected amount" do - expect do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by(1) - end.to fail_with("some_value should have been changed by 1, but was changed by 2") - end - - it "should fail when the attribute is changed by unexpected amount in the opposite direction" do - expect do - expect { @instance.some_value -= 1 }.to change(@instance, :some_value).by(1) - end.to fail_with("some_value should have been changed by 1, but was changed by -1") - end -end - -describe "should change{ block }.by(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by expected amount" do - expect { @instance.some_value += 1 }.to change{@instance.some_value}.by(1) - end - - it "should fail when the attribute is changed by unexpected amount" do - expect do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by(1) - end.to fail_with("result should have been changed by 1, but was changed by 2") - end - - it "should fail when the attribute is changed by unexpected amount in the opposite direction" do - expect do - expect { @instance.some_value -= 1 }.to change{@instance.some_value}.by(1) - end.to fail_with("result should have been changed by 1, but was changed by -1") - end -end - -describe "should change(actual, message).by_at_least(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by greater than the expected amount" do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by_at_least(1) - end - - it "should pass when attribute is changed by the expected amount" do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by_at_least(2) - end - - it "should fail when the attribute is changed by less than the expected amount" do - expect do - expect { @instance.some_value += 1 }.to change(@instance, :some_value).by_at_least(2) - end.to fail_with("some_value should have been changed by at least 2, but was changed by 1") - end - -end - -describe "should change{ block }.by_at_least(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by greater than expected amount" do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by_at_least(1) - end - - it "should pass when attribute is changed by the expected amount" do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by_at_least(2) - end - - it "should fail when the attribute is changed by less than the unexpected amount" do - expect do - expect { @instance.some_value += 1 }.to change{@instance.some_value}.by_at_least(2) - end.to fail_with("result should have been changed by at least 2, but was changed by 1") - end -end - - -describe "should change(actual, message).by_at_most(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by less than the expected amount" do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by_at_most(3) - end - - it "should pass when attribute is changed by the expected amount" do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by_at_most(2) - end - - it "should fail when the attribute is changed by greater than the expected amount" do - expect do - expect { @instance.some_value += 2 }.to change(@instance, :some_value).by_at_most(1) - end.to fail_with("some_value should have been changed by at most 1, but was changed by 2") - end - -end - -describe "should change{ block }.by_at_most(expected)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 5 - end - - it "should pass when attribute is changed by less than expected amount" do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by_at_most(3) - end - - it "should pass when attribute is changed by the expected amount" do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by_at_most(2) - end - - it "should fail when the attribute is changed by greater than the unexpected amount" do - expect do - expect { @instance.some_value += 2 }.to change{@instance.some_value}.by_at_most(1) - end.to fail_with("result should have been changed by at most 1, but was changed by 2") - end -end - -describe "should change(actual, message).from(old)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when attribute is == to expected value before executing block" do - expect { @instance.some_value = "astring" }.to change(@instance, :some_value).from("string") - end - - it "should fail when attribute is not == to expected value before executing block" do - expect do - expect { @instance.some_value = "knot" }.to change(@instance, :some_value).from("cat") - end.to fail_with("some_value should have initially been \"cat\", but was \"string\"") - end -end - -describe "should change{ block }.from(old)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when attribute is == to expected value before executing block" do - expect { @instance.some_value = "astring" }.to change{@instance.some_value}.from("string") - end - - it "should fail when attribute is not == to expected value before executing block" do - expect do - expect { @instance.some_value = "knot" }.to change{@instance.some_value}.from("cat") - end.to fail_with("result should have initially been \"cat\", but was \"string\"") - end -end - -describe "should change(actual, message).to(new)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when attribute is == to expected value after executing block" do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).to("cat") - end - - it "should fail when attribute is not == to expected value after executing block" do - expect do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).from("string").to("dog") - end.to fail_with("some_value should have been changed to \"dog\", but is now \"cat\"") - end -end - -describe "should change{ block }.to(new)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when attribute is == to expected value after executing block" do - expect { @instance.some_value = "cat" }.to change{@instance.some_value}.to("cat") - end - - it "should fail when attribute is not == to expected value after executing block" do - expect do - expect { @instance.some_value = "cat" }.to change{@instance.some_value}.from("string").to("dog") - end.to fail_with("result should have been changed to \"dog\", but is now \"cat\"") - end -end - -describe "should change(actual, message).from(old).to(new)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when #to comes before #from" do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).to("cat").from("string") - end - - it "should pass when #from comes before #to" do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).from("string").to("cat") - end - - it "should show the correct messaging when #after and #to are different" do - expect do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).from("string").to("dog") - end.to fail_with("some_value should have been changed to \"dog\", but is now \"cat\"") - end - - it "should show the correct messaging when #before and #from are different" do - expect do - expect { @instance.some_value = "cat" }.to change(@instance, :some_value).from("not_string").to("cat") - end.to fail_with("some_value should have initially been \"not_string\", but was \"string\"") - end -end - -describe "should change{ block }.from(old).to(new)" do - before(:each) do - @instance = SomethingExpected.new - @instance.some_value = 'string' - end - - it "should pass when #to comes before #from" do - expect { @instance.some_value = "cat" }.to change{@instance.some_value}.to("cat").from("string") - end - - it "should pass when #from comes before #to" do - expect { @instance.some_value = "cat" }.to change{@instance.some_value}.from("string").to("cat") - end -end - -describe Spec::Matchers::Change do - it "should work when the receiver has implemented #send" do - @instance = SomethingExpected.new - @instance.some_value = "string" - def @instance.send(*args); raise "DOH! Library developers shouldn't use #send!" end - - expect { - expect { @instance.some_value = "cat" }.to change(@instance, :some_value) - }.to_not raise_error - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/compatibility_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/compatibility_spec.rb deleted file mode 100644 index 3987e590..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/compatibility_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'spec_helper' - -Spec::Matchers.define :have_public_instance_method do |method| - match do |klass| - klass.public_instance_methods.any? {|m| [method, method.to_sym].include?(m)} - end -end - -(Spec::Matchers.constants.sort).each do |c| - if (Class === (klass = Spec::Matchers.const_get(c))) - describe klass do - if klass.public_instance_methods.any? {|m| ['failure_message_for_should',:failure_message_for_should].include?(m)} - describe "called with should" do - subject { klass } - it { should have_public_instance_method('failure_message_for_should')} - it { should have_public_instance_method('failure_message')} - end - end - if klass.public_instance_methods.any? {|m| ['failure_message_for_should_not',:failure_message_for_should_not].include?(m)} - describe "called with should not" do - subject { klass } - it { should have_public_instance_method('failure_message_for_should_not')} - it { should have_public_instance_method('negative_failure_message')} - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/description_generation_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/description_generation_spec.rb deleted file mode 100644 index 51b483c7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/description_generation_spec.rb +++ /dev/null @@ -1,160 +0,0 @@ -require 'spec_helper' - -describe "Matchers should be able to generate their own descriptions" do - after(:each) do - Spec::Matchers.clear_generated_description - end - - it "should == expected" do - "this".should == "this" - Spec::Matchers.generated_description.should == "should == \"this\"" - end - - it "should not == expected" do - "this".should_not == "that" - Spec::Matchers.generated_description.should == "should not == \"that\"" - end - - it "should be empty (arbitrary predicate)" do - [].should be_empty - Spec::Matchers.generated_description.should == "should be empty" - end - - it "should not be empty (arbitrary predicate)" do - [1].should_not be_empty - Spec::Matchers.generated_description.should == "should not be empty" - end - - it "should be true" do - true.should be_true - Spec::Matchers.generated_description.should == "should be true" - end - - it "should be false" do - false.should be_false - Spec::Matchers.generated_description.should == "should be false" - end - - it "should be nil" do - nil.should be_nil - Spec::Matchers.generated_description.should == "should be nil" - end - - it "should be > n" do - 5.should be > 3 - Spec::Matchers.generated_description.should == "should be > 3" - end - - it "should be predicate arg1, arg2 and arg3" do - 5.0.should be_between(0,10) - Spec::Matchers.generated_description.should == "should be between 0 and 10" - end - - it "should equal" do - expected = "expected" - expected.should equal(expected) - Spec::Matchers.generated_description.should == "should equal \"expected\"" - end - - it "should_not equal" do - 5.should_not equal(37) - Spec::Matchers.generated_description.should == "should not equal 37" - end - - it "should eql" do - "string".should eql("string") - Spec::Matchers.generated_description.should == "should eql \"string\"" - end - - it "should not eql" do - "a".should_not eql(:a) - Spec::Matchers.generated_description.should == "should not eql :a" - end - - it "should have_key" do - {:a => "a"}.should have_key(:a) - Spec::Matchers.generated_description.should == "should have key :a" - end - - it "should have n items" do - team.should have(3).players - Spec::Matchers.generated_description.should == "should have 3 players" - end - - it "should have at least n items" do - team.should have_at_least(2).players - Spec::Matchers.generated_description.should == "should have at least 2 players" - end - - it "should have at most n items" do - team.should have_at_most(4).players - Spec::Matchers.generated_description.should == "should have at most 4 players" - end - - it "should include" do - [1,2,3].should include(3) - Spec::Matchers.generated_description.should == "should include 3" - end - - it "array.should =~ [1,2,3]" do - [1,2,3].should =~ [1,2,3] - Spec::Matchers.generated_description.should == "should contain exactly 1, 2 and 3" - end - - it "should match" do - "this string".should match(/this string/) - Spec::Matchers.generated_description.should == "should match /this string/" - end - - it "should raise_error" do - lambda { raise }.should raise_error - Spec::Matchers.generated_description.should == "should raise Exception" - end - - it "should raise_error with type" do - lambda { raise }.should raise_error(RuntimeError) - Spec::Matchers.generated_description.should == "should raise RuntimeError" - end - - it "should raise_error with type and message" do - lambda { raise "there was an error" }.should raise_error(RuntimeError, "there was an error") - Spec::Matchers.generated_description.should == "should raise RuntimeError with \"there was an error\"" - end - - it "should respond_to" do - [].should respond_to(:insert) - Spec::Matchers.generated_description.should == "should respond to #insert" - end - - it "should throw symbol" do - lambda { throw :what_a_mess }.should throw_symbol - Spec::Matchers.generated_description.should == "should throw a Symbol" - end - - it "should throw symbol (with named symbol)" do - lambda { throw :what_a_mess }.should throw_symbol(:what_a_mess) - Spec::Matchers.generated_description.should == "should throw :what_a_mess" - end - - def team - Class.new do - def players - [1,2,3] - end - end.new - end -end - -describe "a Matcher with no description" do - def matcher - Class.new do - def matches?(ignore); true; end - def failure_message; ""; end - end.new - end - - it "should provide a helpful message when used in a string-less example block" do - 5.should matcher - Spec::Matchers.generated_description.should =~ /When you call.*description method/m - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/dsl_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/dsl_spec.rb deleted file mode 100644 index 9c280e5a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/dsl_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - module DSL - describe "#create" do - it "is deprecated" do - Spec.should_receive(:deprecate) - mod = Module.new - mod.extend Spec::Matchers::DSL - mod.create(:foo) - end - end - - describe "#define" do - it "creates a method that initializes a new matcher with the submitted name and expected arg" do - # FIXME - this expects new to be called, but we need something - # more robust - that expects new to be called with a specific - # block (lambda, proc, whatever) - mod = Module.new - mod.extend Spec::Matchers::DSL - mod.define(:foo) - - obj = Object.new - obj.extend mod - - Spec::Matchers::Matcher.should_receive(:new).with(:foo, 3) - - obj.foo(3) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/eql_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/eql_spec.rb deleted file mode 100644 index 5cdf541e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/eql_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - describe "eql" do - it "should match when actual.eql?(expected)" do - 1.should eql(1) - end - - it "should not match when !actual.eql?(expected)" do - 1.should_not eql(2) - end - - it "should describe itself" do - matcher = eql(1) - matcher.matches?(1) - matcher.description.should == "eql 1" - end - - it "should provide message, expected and actual on #failure_message" do - matcher = eql("1") - matcher.matches?(1) - matcher.failure_message_for_should.should == "\nexpected \"1\"\n got 1\n\n(compared using eql?)\n" - end - - it "should provide message, expected and actual on #negative_failure_message" do - matcher = eql(1) - matcher.matches?(1) - matcher.failure_message_for_should_not.should == "\nexpected 1 not to equal 1\n\n(compared using eql?)\n" - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/equal_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/equal_spec.rb deleted file mode 100644 index cb2fc1e5..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/equal_spec.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'spec_helper' -module Spec - module Matchers - describe "equal" do - - def inspect_object(o) - "#<#{o.class}:#{o.object_id}> => #{o.inspect}" - end - - it "should match when actual.equal?(expected)" do - 1.should equal(1) - end - - it "should not match when !actual.equal?(expected)" do - 1.should_not equal("1") - end - - it "should describe itself" do - matcher = equal(1) - matcher.matches?(1) - matcher.description.should == "equal 1" - end - - it "should provide message on #failure_message" do - expected, actual = "1", "1" - matcher = equal(expected) - matcher.matches?(actual) - - matcher.failure_message_for_should.should == <<-MESSAGE - -expected #{inspect_object(expected)} - got #{inspect_object(actual)} - -Compared using equal?, which compares object identity, -but expected and actual are not the same object. Use -'actual.should == expected' if you don't care about -object identity in this example. - -MESSAGE - end - - it "should provide message on #negative_failure_message" do - expected = actual = "1" - matcher = equal(expected) - matcher.matches?(actual) - matcher.failure_message_for_should_not.should == <<-MESSAGE - -expected not #{inspect_object(expected)} - got #{inspect_object(actual)} - -Compared using equal?, which compares object identity. - -MESSAGE - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/exist_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/exist_spec.rb deleted file mode 100644 index f95c86ff..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/exist_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -require 'spec_helper' - -class Substance - def initialize exists, description - @exists = exists - @description = description - end - def exist?(arg=nil) - @exists - end - def inspect - @description - end -end - -class SubstanceTester - include Spec::Matchers - def initialize substance - @substance = substance - end - def should_exist - @substance.should exist - end -end - -describe "should exist" do - - before(:each) do - @real = Substance.new true, 'something real' - @imaginary = Substance.new false, 'something imaginary' - end - - describe "within an example group" do - - it "passes if target exists" do - @real.should exist - end - - it "passes if target exists with args" do - @real.should exist('this arg') - end - - it "fails if target does not exist" do - lambda { @imaginary.should exist }.should fail - end - - it "describes itself" do - exist.description.should == "exist" - end - - it "passes should_not exist if target doesn't exist" do - lambda { @real.should_not exist }.should fail - end - end - - describe "outside of an example group" do - - it "should pass if target exists" do - real_tester = SubstanceTester.new @real - real_tester.should_exist - end - - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/has_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/has_spec.rb deleted file mode 100644 index b6f25991..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/has_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -require 'spec_helper' - -describe "should have_sym(*args)" do - it "should pass if #has_sym?(*args) returns true" do - {:a => "A"}.should have_key(:a) - end - - it "should fail if #has_sym?(*args) returns false" do - lambda { - {:b => "B"}.should have_key(:a) - }.should fail_with("expected #has_key?(:a) to return true, got false") - end - - it "should fail if #has_sym?(*args) returns nil" do - klass = Class.new do - def has_foo? - end - end - lambda { - klass.new.should have_foo - }.should fail_with("expected #has_foo?(nil) to return true, got false") - end - - it "should fail if target does not respond to #has_sym?" do - lambda { - Object.new.should have_key(:a) - }.should raise_error(NoMethodError) - end - - it "should reraise an exception thrown in #has_sym?(*args)" do - o = Object.new - def o.has_sym?(*args) - raise "Funky exception" - end - lambda { o.should have_sym(:foo) }.should raise_error("Funky exception") - end -end - -describe "should_not have_sym(*args)" do - it "should pass if #has_sym?(*args) returns false" do - {:a => "A"}.should_not have_key(:b) - end - - it "should pass if #has_sym?(*args) returns nil" do - klass = Class.new do - def has_foo? - end - end - klass.new.should_not have_foo - end - - it "should fail if #has_sym?(*args) returns true" do - lambda { - {:a => "A"}.should_not have_key(:a) - }.should fail_with("expected #has_key?(:a) to return false, got true") - end - - it "should fail if target does not respond to #has_sym?" do - lambda { - Object.new.should have_key(:a) - }.should raise_error(NoMethodError) - end - - it "should reraise an exception thrown in #has_sym?(*args)" do - o = Object.new - def o.has_sym?(*args) - raise "Funky exception" - end - lambda { o.should_not have_sym(:foo) }.should raise_error("Funky exception") - end -end - -describe "has" do - it "should work when the target implements #send" do - o = {:a => "A"} - def o.send(*args); raise "DOH! Library developers shouldn't use #send!" end - lambda { - o.should have_key(:a) - }.should_not raise_error - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/have_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/have_spec.rb deleted file mode 100644 index 07c29497..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/have_spec.rb +++ /dev/null @@ -1,396 +0,0 @@ -require 'spec_helper' - -share_as :HaveSpecHelper do - def create_collection_owner_with(n) - owner = Spec::Expectations::Helper::CollectionOwner.new - (1..n).each do |number| - owner.add_to_collection_with_length_method(number) - owner.add_to_collection_with_size_method(number) - end - owner - end - before(:each) do - if defined?(::ActiveSupport::Inflector) - @active_support_was_defined = true - else - @active_support_was_defined = false - module ::ActiveSupport - class Inflector - def self.pluralize(string) - string.to_s + 's' - end - end - end - end - end -end - - -describe "should have(n).items" do - include HaveSpecHelper - - it "should pass if target has a collection of items with n members" do - owner = create_collection_owner_with(3) - owner.should have(3).items_in_collection_with_length_method - owner.should have(3).items_in_collection_with_size_method - end - - it "should convert :no to 0" do - owner = create_collection_owner_with(0) - owner.should have(:no).items_in_collection_with_length_method - owner.should have(:no).items_in_collection_with_size_method - end - - it "should fail if target has a collection of items with < n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have(4).items_in_collection_with_length_method - }.should fail_with("expected 4 items_in_collection_with_length_method, got 3") - lambda { - owner.should have(4).items_in_collection_with_size_method - }.should fail_with("expected 4 items_in_collection_with_size_method, got 3") - end - - it "should fail if target has a collection of items with > n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have(2).items_in_collection_with_length_method - }.should fail_with("expected 2 items_in_collection_with_length_method, got 3") - lambda { - owner.should have(2).items_in_collection_with_size_method - }.should fail_with("expected 2 items_in_collection_with_size_method, got 3") - end -end - -describe 'should have(1).item when ActiveSupport::Inflector is defined' do - include HaveSpecHelper - - it 'should pluralize the collection name' do - owner = create_collection_owner_with(1) - owner.should have(1).item - end - - after(:each) do - unless @active_support_was_defined - Object.__send__ :remove_const, :ActiveSupport - end - end -end - -describe 'should have(1).item when Inflector is defined' do - include HaveSpecHelper - - before(:each) do - if defined?(Inflector) - @inflector_was_defined = true - else - @inflector_was_defined = false - class ::Inflector - def self.pluralize(string) - string.to_s + 's' - end - end - end - end - - it 'should pluralize the collection name' do - owner = create_collection_owner_with(1) - owner.should have(1).item - end - - after(:each) do - unless @inflector_was_defined - Object.__send__ :remove_const, :Inflector - end - end -end - -describe "should have(n).items where result responds to items but returns something other than a collection" do - it "should provide a meaningful error" do - owner = Class.new do - def items - Object.new - end - end.new - lambda do - owner.should have(3).items - end.should raise_error("expected items to be a collection but it does not respond to #length or #size") - end -end - -describe "should_not have(n).items" do - include HaveSpecHelper - - it "should pass if target has a collection of items with < n members" do - owner = create_collection_owner_with(3) - owner.should_not have(4).items_in_collection_with_length_method - owner.should_not have(4).items_in_collection_with_size_method - end - - it "should pass if target has a collection of items with > n members" do - owner = create_collection_owner_with(3) - owner.should_not have(2).items_in_collection_with_length_method - owner.should_not have(2).items_in_collection_with_size_method - end - - it "should fail if target has a collection of items with n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should_not have(3).items_in_collection_with_length_method - }.should fail_with("expected target not to have 3 items_in_collection_with_length_method, got 3") - lambda { - owner.should_not have(3).items_in_collection_with_size_method - }.should fail_with("expected target not to have 3 items_in_collection_with_size_method, got 3") - end -end - -describe "should have_exactly(n).items" do - include HaveSpecHelper - - it "should pass if target has a collection of items with n members" do - owner = create_collection_owner_with(3) - owner.should have_exactly(3).items_in_collection_with_length_method - owner.should have_exactly(3).items_in_collection_with_size_method - end - - it "should convert :no to 0" do - owner = create_collection_owner_with(0) - owner.should have_exactly(:no).items_in_collection_with_length_method - owner.should have_exactly(:no).items_in_collection_with_size_method - end - - it "should fail if target has a collection of items with < n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have_exactly(4).items_in_collection_with_length_method - }.should fail_with("expected 4 items_in_collection_with_length_method, got 3") - lambda { - owner.should have_exactly(4).items_in_collection_with_size_method - }.should fail_with("expected 4 items_in_collection_with_size_method, got 3") - end - - it "should fail if target has a collection of items with > n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have_exactly(2).items_in_collection_with_length_method - }.should fail_with("expected 2 items_in_collection_with_length_method, got 3") - lambda { - owner.should have_exactly(2).items_in_collection_with_size_method - }.should fail_with("expected 2 items_in_collection_with_size_method, got 3") - end -end - -describe "should have_at_least(n).items" do - include HaveSpecHelper - - it "should pass if target has a collection of items with n members" do - owner = create_collection_owner_with(3) - owner.should have_at_least(3).items_in_collection_with_length_method - owner.should have_at_least(3).items_in_collection_with_size_method - end - - it "should pass if target has a collection of items with > n members" do - owner = create_collection_owner_with(3) - owner.should have_at_least(2).items_in_collection_with_length_method - owner.should have_at_least(2).items_in_collection_with_size_method - end - - it "should fail if target has a collection of items with < n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have_at_least(4).items_in_collection_with_length_method - }.should fail_with("expected at least 4 items_in_collection_with_length_method, got 3") - lambda { - owner.should have_at_least(4).items_in_collection_with_size_method - }.should fail_with("expected at least 4 items_in_collection_with_size_method, got 3") - end - - it "should provide educational negative failure messages" do - #given - owner = create_collection_owner_with(3) - length_matcher = have_at_least(3).items_in_collection_with_length_method - size_matcher = have_at_least(3).items_in_collection_with_size_method - - #when - length_matcher.matches?(owner) - size_matcher.matches?(owner) - - #then - length_matcher.failure_message_for_should_not.should == <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_least(3).items_in_collection_with_length_method -We recommend that you use this instead: - should have_at_most(2).items_in_collection_with_length_method -EOF - - size_matcher.failure_message_for_should_not.should == <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_least(3).items_in_collection_with_size_method -We recommend that you use this instead: - should have_at_most(2).items_in_collection_with_size_method -EOF - end -end - -describe "should have_at_most(n).items" do - include HaveSpecHelper - - it "should pass if target has a collection of items with n members" do - owner = create_collection_owner_with(3) - owner.should have_at_most(3).items_in_collection_with_length_method - owner.should have_at_most(3).items_in_collection_with_size_method - end - - it "should fail if target has a collection of items with > n members" do - owner = create_collection_owner_with(3) - lambda { - owner.should have_at_most(2).items_in_collection_with_length_method - }.should fail_with("expected at most 2 items_in_collection_with_length_method, got 3") - lambda { - owner.should have_at_most(2).items_in_collection_with_size_method - }.should fail_with("expected at most 2 items_in_collection_with_size_method, got 3") - end - - it "should pass if target has a collection of items with < n members" do - owner = create_collection_owner_with(3) - owner.should have_at_most(4).items_in_collection_with_length_method - owner.should have_at_most(4).items_in_collection_with_size_method - end - - it "should provide educational negative failure messages" do - #given - owner = create_collection_owner_with(3) - length_matcher = have_at_most(3).items_in_collection_with_length_method - size_matcher = have_at_most(3).items_in_collection_with_size_method - - #when - length_matcher.matches?(owner) - size_matcher.matches?(owner) - - #then - length_matcher.failure_message_for_should_not.should == <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_most(3).items_in_collection_with_length_method -We recommend that you use this instead: - should have_at_least(4).items_in_collection_with_length_method -EOF - - size_matcher.failure_message_for_should_not.should == <<-EOF -Isn't life confusing enough? -Instead of having to figure out the meaning of this: - should_not have_at_most(3).items_in_collection_with_size_method -We recommend that you use this instead: - should have_at_least(4).items_in_collection_with_size_method -EOF - end -end - -describe "have(n).items(args, block)" do - it "should pass args to target" do - target = mock("target") - target.should_receive(:items).with("arg1","arg2").and_return([1,2,3]) - target.should have(3).items("arg1","arg2") - end - - it "should pass block to target" do - target = mock("target") - block = lambda { 5 } - target.should_receive(:items).with("arg1","arg2", block).and_return([1,2,3]) - target.should have(3).items("arg1","arg2", block) - end -end - -describe "have(n).items where target IS a collection" do - it "should reference the number of items IN the collection" do - [1,2,3].should have(3).items - end - - it "should fail when the number of items IN the collection is not as expected" do - lambda { [1,2,3].should have(7).items }.should fail_with("expected 7 items, got 3") - end -end - -describe "have(n).characters where target IS a String" do - it "should pass if the length is correct" do - "this string".should have(11).characters - end - - it "should fail if the length is incorrect" do - lambda { "this string".should have(12).characters }.should fail_with("expected 12 characters, got 11") - end -end - -describe "have(n).things on an object which is not a collection nor contains one" do - it "should fail" do - lambda { Object.new.should have(2).things }.should raise_error(NoMethodError, /undefined method `things' for # false - - describe "respond_to?" do - before :each do - @have = Have.new(:foo) - @a_method_which_have_defines = Have.instance_methods.first - @a_method_which_object_defines = Object.instance_methods.first - end - - it "should be true for a method which Have defines" do - @have.should respond_to(@a_method_which_have_defines) - end - - it "should be true for a method that it's superclass (Object) defines" do - @have.should respond_to(@a_method_which_object_defines) - end - - it "should be false for a method which neither Object nor nor Have defines" do - @have.should_not respond_to(:foo_bar_baz) - end - - it "should be false if the owner doesn't respond to the method" do - have = Have.new(99) - have.should_not respond_to(:problems) - end - - it "should be true if the owner responds to the method" do - have = Have.new(:a_symbol) - have.should respond_to(:to_sym) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/include_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/include_spec.rb deleted file mode 100644 index 2b959b58..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/include_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'spec_helper' - -describe "should include(expected)" do - it "should pass if target includes expected" do - [1,2,3].should include(3) - "abc".should include("a") - end - - it 'should pass if target is a Hash and has the expected as a key' do - {:key => 'value'}.should include(:key) - end - - it "should fail if target does not include expected" do - lambda { - [1,2,3].should include(4) - }.should fail_with("expected [1, 2, 3] to include 4") - lambda { - "abc".should include("d") - }.should fail_with("expected \"abc\" to include \"d\"") - lambda { - {:key => 'value'}.should include(:other) - }.should fail_with(%Q|expected {:key=>"value"} to include :other|) - end -end - -describe "should include(with, multiple, args)" do - it "should pass if target includes all items" do - [1,2,3].should include(1,2,3) - end - - it 'should pass if target is a Hash including all items as keys' do - {:key => 'value', :other => 'value'}.should include(:key, :other) - end - - it "should fail if target does not include any one of the items" do - lambda { - [1,2,3].should include(1,2,4) - }.should fail_with("expected [1, 2, 3] to include 1, 2, and 4") - end - - it 'should pass if target is a Hash missing any item as a key' do - lambda { - {:key => 'value'}.should include(:key, :other) - }.should fail_with(%Q|expected {:key=>"value"} to include :key and :other|) - end -end - -describe "should_not include(expected)" do - it "should pass if target does not include expected" do - [1,2,3].should_not include(4) - "abc".should_not include("d") - end - - it 'should pass if target is a Hash and does not have the expected as a key' do - {:other => 'value'}.should_not include(:key) - end - - it "should fail if target includes expected" do - lambda { - [1,2,3].should_not include(3) - }.should fail_with("expected [1, 2, 3] not to include 3") - lambda { - "abc".should_not include("c") - }.should fail_with("expected \"abc\" not to include \"c\"") - lambda { - {:key => 'value'}.should_not include(:key) - }.should fail_with(%Q|expected {:key=>"value"} not to include :key|) - end -end - -describe "should include(:key => value)" do - it "should pass if target is a Hash and includes the key/value pair" do - {:key => 'value'}.should include(:key => 'value') - end - it "should pass if target is a Hash and includes the key/value pair among others" do - {:key => 'value', :other => 'different'}.should include(:key => 'value') - end - it "should fail if target is a Hash and has a different value for key" do - lambda { - {:key => 'different'}.should include(:key => 'value') - }.should fail_with(%Q|expected {:key=>"different"} to include {:key=>"value"}|) - end - it "should fail if target is a Hash and has a different key" do - lambda { - {:other => 'value'}.should include(:key => 'value') - }.should fail_with(%Q|expected {:other=>"value"} to include {:key=>"value"}|) - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_array_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_array_spec.rb deleted file mode 100644 index be75ec16..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_array_spec.rb +++ /dev/null @@ -1,108 +0,0 @@ -require 'spec_helper' - -class UnsortableObject - def initialize(id) - @id = id - end - - def inspect - @id.to_s - end - - def ==(other) - false - end -end - -describe "array.should =~ other_array" do - it "should pass if target contains all items" do - [1,2,3].should =~ [1,2,3] - end - - it "should pass if target contains all items out of order" do - [1,3,2].should =~ [1,2,3] - end - - it "should fail if target includes extra items" do - lambda { - [1,2,3,4].should =~ [1,2,3] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 2, 3] -actual collection contained: [1, 2, 3, 4] -the extra elements were: [4] -MESSAGE - end - - it "should fail if target is missing items" do - lambda { - [1,2].should =~ [1,2,3] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 2, 3] -actual collection contained: [1, 2] -the missing elements were: [3] -MESSAGE - end - - it "should fail if target is missing items and has extra items" do - - lambda { - [1,2,4].should =~ [1,2,3] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 2, 3] -actual collection contained: [1, 2, 4] -the missing elements were: [3] -the extra elements were: [4] -MESSAGE - end - - it "should sort items in the error message if they all respond to <=>" do - lambda { - [6,2,1,5].should =~ [4,1,2,3] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 2, 3, 4] -actual collection contained: [1, 2, 5, 6] -the missing elements were: [3, 4] -the extra elements were: [5, 6] -MESSAGE - end - - it "should not sort items in the error message if they don't all respond to <=>" do - lambda { - [UnsortableObject.new(2), UnsortableObject.new(1)].should =~ [UnsortableObject.new(4), UnsortableObject.new(3)] - }.should fail_with(<<-MESSAGE) -expected collection contained: [4, 3] -actual collection contained: [2, 1] -the missing elements were: [4, 3] -the extra elements were: [2, 1] -MESSAGE - end - - it "should accurately report extra elements when there are duplicates" do - lambda { - [1,1,1,5].should =~ [1,5] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 5] -actual collection contained: [1, 1, 1, 5] -the extra elements were: [1, 1] -MESSAGE - end - - it "should accurately report missing elements when there are duplicates" do - lambda { - [1,5].should =~ [1,1,5] - }.should fail_with(<<-MESSAGE) -expected collection contained: [1, 1, 5] -actual collection contained: [1, 5] -the missing elements were: [1] -MESSAGE - end - -end - -describe "should_not =~ [:with, :multiple, :args]" do - it "should not be supported" do - lambda { - [1,2,3].should_not =~ [1,2,3] - }.should fail_with(/Matcher does not support should_not/) - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_spec.rb deleted file mode 100644 index e5dc800a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/match_spec.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'spec_helper' - -describe "should match(expected)" do - it "should pass when target (String) matches expected (Regexp)" do - "string".should match(/tri/) - end - - it "should pass when target (String) matches expected (String)" do - "string".should match("tri") - end - - it "should fail when target (String) does not match expected (Regexp)" do - lambda { - "string".should match(/rings/) - }.should fail - end - - it "should fail when target (String) does not match expected (String)" do - lambda { - "string".should match("rings") - }.should fail - end - - it "should provide message, expected and actual on failure" do - matcher = match(/rings/) - matcher.matches?("string") - matcher.failure_message_for_should.should == "expected \"string\" to match /rings/" - end -end - -describe "should_not match(expected)" do - it "should pass when target (String) matches does not match (Regexp)" do - "string".should_not match(/rings/) - end - - it "should pass when target (String) matches does not match (String)" do - "string".should_not match("rings") - end - - it "should fail when target (String) matches expected (Regexp)" do - lambda { - "string".should_not match(/tri/) - }.should fail - end - - it "should fail when target (String) matches expected (String)" do - lambda { - "string".should_not match("tri") - }.should fail - end - - it "should provide message, expected and actual on failure" do - matcher = match(/tri/) - matcher.matches?("string") - matcher.failure_message_for_should_not.should == "expected \"string\" not to match /tri/" - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_methods_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_methods_spec.rb deleted file mode 100644 index 291a2afa..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_methods_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - context %Q{The Spec::Matchers module gets included in the execution context of every spec. -This module should provide the following methods, each of which returns a Matcher object.} do - it "be_true" do - be_true.should be_an_instance_of(Be) - end - it "be_false" do - be_false.should be_an_instance_of(Be) - end - it "be_nil" do - be_nil.should be_an_instance_of(Be) - end - it "be_arbitrary_predicate" do - be_arbitrary_predicate.should be_an_instance_of(Be) - end - it "change" do - change("target", :message).should be_an_instance_of(Change) - end - it "have" do - have(0).should be_an_instance_of(Have) - end - it "have_exactly" do - have_exactly(0).should be_an_instance_of(Have) - end - it "have_at_least" do - have_at_least(0).should be_an_instance_of(Have) - end - it "have_at_most" do - have_at_most(0).should be_an_instance_of(Have) - end - it "raise_error" do - raise_error.should be_an_instance_of(RaiseError) - raise_error(NoMethodError).should be_an_instance_of(RaiseError) - raise_error(NoMethodError, "message").should be_an_instance_of(RaiseError) - end - it "satisfy" do - satisfy{}.should be_an_instance_of(Satisfy) - end - it "throw_symbol" do - throw_symbol.should be_an_instance_of(ThrowSymbol) - throw_symbol(:sym).should be_an_instance_of(ThrowSymbol) - end - it "respond_to" do - respond_to(:sym).should be_an_instance_of(RespondTo) - end - end - - describe "Spec::Matchers#method_missing" do - it "should convert be_xyz to Be(:be_xyz)" do - Be.should_receive(:new).with(:be_whatever) - be_whatever - end - - it "should convert have_xyz to Has(:have_xyz)" do - Has.should_receive(:new).with(:have_whatever) - have_whatever - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_spec.rb deleted file mode 100644 index 76b2e260..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matcher_spec.rb +++ /dev/null @@ -1,228 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - describe Matcher do - context "without overrides" do - before(:each) do - @matcher = Spec::Matchers::Matcher.new(:be_a_multiple_of, 3) do |multiple| - match do |actual| - actual % multiple == 0 - end - end - end - - it "provides a default description" do - @matcher.description.should == "be a multiple of 3" - end - - it "provides a default failure message for #should" do - @matcher.matches?(8) - @matcher.failure_message_for_should.should == "expected 8 to be a multiple of 3" - end - - it "provides a default failure message for #should_not" do - @matcher.matches?(9) - @matcher.failure_message_for_should_not.should == "expected 9 not to be a multiple of 3" - end - end - - it "is not diffable by default" do - matcher = Spec::Matchers::Matcher.new(:name) {} - matcher.should_not be_diffable - end - - it "is diffable when told to be" do - matcher = Spec::Matchers::Matcher.new(:name) { diffable } - matcher.should be_diffable - end - - it "provides expected" do - matcher = Spec::Matchers::Matcher.new(:name, 'expected string') {} - matcher.expected.should == ['expected string'] - end - - it "provides actual" do - matcher = Spec::Matchers::Matcher.new(:name, 'expected string') do - match {|actual|} - end - - matcher.matches?('actual string') - - matcher.actual.should == 'actual string' - end - - context "with overrides" do - before(:each) do - @matcher = Spec::Matchers::Matcher.new(:be_boolean, true) do |boolean| - match do |actual| - actual - end - description do - "be the boolean #{boolean}" - end - failure_message_for_should do |actual| - "expected #{actual} to be the boolean #{boolean}" - end - failure_message_for_should_not do |actual| - "expected #{actual} not to be the boolean #{boolean}" - end - end - end - - it "does not hide result of match block when true" do - @matcher.matches?(true).should be_true - end - - it "does not hide result of match block when false" do - @matcher.matches?(false).should be_false - end - - it "overrides the description" do - @matcher.description.should == "be the boolean true" - end - - it "overrides the failure message for #should" do - @matcher.matches?(false) - @matcher.failure_message_for_should.should == "expected false to be the boolean true" - end - - it "overrides the failure message for #should_not" do - @matcher.matches?(true) - @matcher.failure_message_for_should_not.should == "expected true not to be the boolean true" - end - end - - context "#new" do - it "passes matches? arg to match block" do - matcher = Spec::Matchers::Matcher.new(:ignore) do - match do |actual| - actual == 5 - end - end - matcher.matches?(5).should be_true - end - - it "exposes arg submitted through #new to matcher block" do - matcher = Spec::Matchers::Matcher.new(:ignore, 4) do |expected| - match do |actual| - actual > expected - end - end - matcher.matches?(5).should be_true - end - end - - context "with no args" do - before(:each) do - @matcher = Spec::Matchers::Matcher.new(:matcher_name) do - match do |actual| - actual == 5 - end - end - end - - it "matches" do - @matcher.matches?(5).should be_true - end - - it "describes" do - @matcher.description.should == "matcher name" - end - end - - context "with 1 arg" do - before(:each) do - @matcher = Spec::Matchers::Matcher.new(:matcher_name, 1) do |expected| - match do |actual| - actual == 5 && expected == 1 - end - end - end - - it "matches" do - @matcher.matches?(5).should be_true - end - - it "describes" do - @matcher.description.should == "matcher name 1" - end - end - - context "with multiple args" do - before(:each) do - @matcher = Spec::Matchers::Matcher.new(:matcher_name, 1, 2, 3, 4) do |a,b,c,d| - match do |sum| - a + b + c + d == sum - end - end - end - - it "matches" do - @matcher.matches?(10).should be_true - end - - it "describes" do - @matcher.description.should == "matcher name 1, 2, 3, and 4" - end - end - - it "supports helper methods" do - matcher = Spec::Matchers::Matcher.new(:be_similar_to, [1,2,3]) do |sample| - match do |actual| - similar?(sample, actual) - end - - def similar?(a, b) - a.sort == b.sort - end - end - - matcher.matches?([2,3,1]).should be_true - end - - it "supports fluent interface" do - matcher = Spec::Matchers::Matcher.new(:first_word) do - def second_word - self - end - end - - matcher.second_word.should == matcher - end - - it "treats method missing normally for undeclared methods" do - matcher = Spec::Matchers::Matcher.new(:ignore) { } - expect { matcher.non_existent_method }.to raise_error(NoMethodError) - end - - it "has access to other matchers" do - matcher = Spec::Matchers::Matcher.new(:ignore, 3) do |expected| - match do |actual| - extend Spec::Matchers - actual.should eql(5 + expected) - end - end - - matcher.matches?(8).should be_true - end - - it "lets you override the actual() in messages" do - matcher = Spec::Matchers::Matcher.new(:be_foo) do - match do |actual| - @submitted = actual - false - end - - def actual - "replaced" - end - end - - matcher.matches?("foo") - matcher.failure_message_for_should.should =~ /replaced/ - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matchers_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matchers_spec.rb deleted file mode 100644 index 51f5efc4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/matchers_spec.rb +++ /dev/null @@ -1,2 +0,0 @@ -require 'spec_helper' - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/operator_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/operator_matcher_spec.rb deleted file mode 100644 index 86e637e0..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/operator_matcher_spec.rb +++ /dev/null @@ -1,191 +0,0 @@ -require 'spec_helper' - -require 'spec/runner/differs/default' - -describe "should ==" do - - it "should delegate message to target" do - subject = "apple" - subject.should_receive(:==).with("apple").and_return(true) - subject.should == "apple" - end - - it "should return true on success" do - subject = "apple" - (subject.should == "apple").should be_true - end - - it "should fail when target.==(actual) returns false" do - subject = "apple" - Spec::Expectations.should_receive(:fail_with).with(%[expected: "orange",\n got: "apple" (using ==)], "orange", "apple") - subject.should == "orange" - end - -end - -describe "should_not ==" do - - it "should delegate message to target" do - subject = "orange" - subject.should_receive(:==).with("apple").and_return(false) - subject.should_not == "apple" - end - - it "should return true on success" do - subject = "apple" - (subject.should_not == "orange").should be_false - end - - it "should fail when target.==(actual) returns false" do - subject = "apple" - Spec::Expectations.should_receive(:fail_with).with(%[expected not: == "apple",\n got: "apple"], "apple", "apple") - subject.should_not == "apple" - end - -end - -describe "should ===" do - - it "should delegate message to target" do - subject = "apple" - subject.should_receive(:===).with("apple").and_return(true) - subject.should === "apple" - end - - it "should fail when target.===(actual) returns false" do - subject = "apple" - subject.should_receive(:===).with("orange").and_return(false) - Spec::Expectations.should_receive(:fail_with).with(%[expected: "orange",\n got: "apple" (using ===)], "orange", "apple") - subject.should === "orange" - end - -end - -describe "should_not ===" do - - it "should delegate message to target" do - subject = "orange" - subject.should_receive(:===).with("apple").and_return(false) - subject.should_not === "apple" - end - - it "should fail when target.===(actual) returns false" do - subject = "apple" - subject.should_receive(:===).with("apple").and_return(true) - Spec::Expectations.should_receive(:fail_with).with(%[expected not: === "apple",\n got: "apple"], "apple", "apple") - subject.should_not === "apple" - end - -end - -describe "should =~" do - - it "should delegate message to target" do - subject = "foo" - subject.should_receive(:=~).with(/oo/).and_return(true) - subject.should =~ /oo/ - end - - it "should fail when target.=~(actual) returns false" do - subject = "fu" - subject.should_receive(:=~).with(/oo/).and_return(false) - Spec::Expectations.should_receive(:fail_with).with(%[expected: /oo/,\n got: "fu" (using =~)], /oo/, "fu") - subject.should =~ /oo/ - end - -end - -describe "should_not =~" do - - it "should delegate message to target" do - subject = "fu" - subject.should_receive(:=~).with(/oo/).and_return(false) - subject.should_not =~ /oo/ - end - - it "should fail when target.=~(actual) returns false" do - subject = "foo" - subject.should_receive(:=~).with(/oo/).and_return(true) - Spec::Expectations.should_receive(:fail_with).with(%[expected not: =~ /oo/,\n got: "foo"], /oo/, "foo") - subject.should_not =~ /oo/ - end - -end - -describe "should >" do - - it "should pass if > passes" do - 4.should > 3 - end - - it "should fail if > fails" do - Spec::Expectations.should_receive(:fail_with).with(%[expected: > 5,\n got: 4], 5, 4) - 4.should > 5 - end - -end - -describe "should >=" do - - it "should pass if >= passes" do - 4.should > 3 - 4.should >= 4 - end - - it "should fail if > fails" do - Spec::Expectations.should_receive(:fail_with).with(%[expected: >= 5,\n got: 4], 5, 4) - 4.should >= 5 - end - -end - -describe "should <" do - - it "should pass if < passes" do - 4.should < 5 - end - - it "should fail if > fails" do - Spec::Expectations.should_receive(:fail_with).with(%[expected: < 3,\n got: 4], 3, 4) - 4.should < 3 - end - -end - -describe "should <=" do - - it "should pass if <= passes" do - 4.should <= 5 - 4.should <= 4 - end - - it "should fail if > fails" do - Spec::Expectations.should_receive(:fail_with).with(%[expected: <= 3,\n got: 4], 3, 4) - 4.should <= 3 - end - -end - -describe Spec::Matchers::PositiveOperatorMatcher do - - it "should work when the target has implemented #send" do - o = Object.new - def o.send(*args); raise "DOH! Library developers shouldn't use #send!" end - lambda { - o.should == o - }.should_not raise_error - end - -end - -describe Spec::Matchers::NegativeOperatorMatcher do - - it "should work when the target has implemented #send" do - o = Object.new - def o.send(*args); raise "DOH! Library developers shouldn't use #send!" end - lambda { - o.should_not == :foo - }.should_not raise_error - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/raise_error_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/raise_error_spec.rb deleted file mode 100644 index 785065ad..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/raise_error_spec.rb +++ /dev/null @@ -1,333 +0,0 @@ -require 'spec_helper' - -describe "should raise_error" do - it "should pass if anything is raised" do - lambda {raise}.should raise_error - end - - it "should fail if nothing is raised" do - lambda { - lambda {}.should raise_error - }.should fail_with("expected Exception but nothing was raised") - end -end - -describe "should raise_error {|err| ... }" do - it "passes if there is an error" do - ran = false - lambda { non_existent_method }.should raise_error {|e| - ran = true - } - ran.should be_true - end - - it "passes the error to the block" do - error = nil - lambda { non_existent_method }.should raise_error {|e| - error = e - } - error.should be_kind_of(NameError) - end -end - -describe "should_not raise_error" do - it "should pass if nothing is raised" do - lambda {}.should_not raise_error - end - - it "should fail if anything is raised" do - lambda { - lambda {raise}.should_not raise_error - }.should fail_with("expected no Exception, got RuntimeError") - end -end - -describe "should raise_error(message)" do - it "should pass if RuntimeError is raised with the right message" do - lambda {raise 'blah'}.should raise_error('blah') - end - it "should pass if RuntimeError is raised with a matching message" do - lambda {raise 'blah'}.should raise_error(/blah/) - end - it "should pass if any other error is raised with the right message" do - lambda {raise NameError.new('blah')}.should raise_error('blah') - end - it "should fail if RuntimeError error is raised with the wrong message" do - lambda do - lambda {raise 'blarg'}.should raise_error('blah') - end.should fail_with("expected Exception with \"blah\", got #") - end - it "should fail if any other error is raised with the wrong message" do - lambda do - lambda {raise NameError.new('blarg')}.should raise_error('blah') - end.should fail_with("expected Exception with \"blah\", got #") - end -end - -describe "should_not raise_error(message)" do - it "should pass if RuntimeError error is raised with the different message" do - lambda {raise 'blarg'}.should_not raise_error('blah') - end - it "should pass if any other error is raised with the wrong message" do - lambda {raise NameError.new('blarg')}.should_not raise_error('blah') - end - it "should fail if RuntimeError is raised with message" do - lambda do - lambda {raise 'blah'}.should_not raise_error('blah') - end.should fail_with(%Q|expected no Exception with "blah", got #|) - end - it "should fail if any other error is raised with message" do - lambda do - lambda {raise NameError.new('blah')}.should_not raise_error('blah') - end.should fail_with(%Q|expected no Exception with "blah", got #|) - end -end - -describe "should raise_error(NamedError)" do - it "should pass if named error is raised" do - lambda { non_existent_method }.should raise_error(NameError) - end - - it "should fail if nothing is raised" do - lambda { - lambda { }.should raise_error(NameError) - }.should fail_with("expected NameError but nothing was raised") - end - - it "should fail if another error is raised (NameError)" do - lambda { - lambda { raise }.should raise_error(NameError) - }.should fail_with("expected NameError, got RuntimeError") - end - - it "should fail if another error is raised (NameError)" do - lambda { - lambda { load "non/existent/file" }.should raise_error(NameError) - }.should fail_with(/expected NameError, got #") - - ran.should == false - end - - it "should NOT yield exception if error message is not matched" do - ran = false - - lambda { - lambda { - raise "example message" - }.should raise_error(RuntimeError, "different message") { |err| - ran = true - } - }.should fail_with("expected RuntimeError with \"different message\", got #") - - ran.should == false - end -end - -describe "should_not raise_error(NamedError, error_message) { |err| ... }" do - it "should pass if nothing is raised" do - ran = false - - lambda {}.should_not raise_error(RuntimeError, "example message") { |err| - ran = true - } - - ran.should == false - end - - it "should pass if a different error is raised" do - ran = false - - lambda { raise }.should_not raise_error(NameError, "example message") { |err| - ran = true - } - - ran.should == false - end - - it "should pass if same error is raised with different message" do - ran = false - - lambda { - raise RuntimeError.new("not the example message") - }.should_not raise_error(RuntimeError, "example message") { |err| - ran = true - } - - ran.should == false - end - - it "should fail if named error is raised with same message" do - ran = false - - lambda { - lambda { - raise "example message" - }.should_not raise_error(RuntimeError, "example message") { |err| - ran = true - } - }.should fail_with("expected no RuntimeError with \"example message\", got #") - - ran.should == false - end -end - -describe "should_not raise_error(NamedError, error_message) with String" do - it "should pass if nothing is raised" do - lambda {}.should_not raise_error(RuntimeError, "example message") - end - - it "should pass if a different error is raised" do - lambda { raise }.should_not raise_error(NameError, "example message") - end - - it "should pass if same error is raised with different message" do - lambda { raise RuntimeError.new("not the example message") }.should_not raise_error(RuntimeError, "example message") - end - - it "should fail if named error is raised with same message" do - lambda { - lambda { raise "example message" }.should_not raise_error(RuntimeError, "example message") - }.should fail_with("expected no RuntimeError with \"example message\", got #") - end -end - -describe "should raise_error(NamedError, error_message) with Regexp" do - it "should pass if named error is raised with matching message" do - lambda { raise "example message" }.should raise_error(RuntimeError, /ample mess/) - end - - it "should fail if nothing is raised" do - lambda { - lambda {}.should raise_error(RuntimeError, /ample mess/) - }.should fail_with("expected RuntimeError with message matching /ample mess/ but nothing was raised") - end - - it "should fail if incorrect error is raised" do - lambda { - lambda { raise }.should raise_error(NameError, /ample mess/) - }.should fail_with("expected NameError with message matching /ample mess/, got RuntimeError") - end - - it "should fail if correct error is raised with incorrect message" do - lambda { - lambda { raise RuntimeError.new("not the example message") }.should raise_error(RuntimeError, /less than ample mess/) - }.should fail_with("expected RuntimeError with message matching /less than ample mess/, got #") - end -end - -describe "should_not raise_error(NamedError, error_message) with Regexp" do - it "should pass if nothing is raised" do - lambda {}.should_not raise_error(RuntimeError, /ample mess/) - end - - it "should pass if a different error is raised" do - lambda { raise }.should_not raise_error(NameError, /ample mess/) - end - - it "should pass if same error is raised with non-matching message" do - lambda { raise RuntimeError.new("non matching message") }.should_not raise_error(RuntimeError, /ample mess/) - end - - it "should fail if named error is raised with matching message" do - lambda { - lambda { raise "example message" }.should_not raise_error(RuntimeError, /ample mess/) - }.should fail_with("expected no RuntimeError with message matching /ample mess/, got #") - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/respond_to_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/respond_to_spec.rb deleted file mode 100644 index 8d8f3c1a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/respond_to_spec.rb +++ /dev/null @@ -1,116 +0,0 @@ -require 'spec_helper' - -describe "should respond_to(:sym)" do - - it "passes if target responds to :sym" do - Object.new.should respond_to(:methods) - end - - it "fails if target does not respond to :sym" do - lambda { - "this string".should respond_to(:some_method) - }.should fail_with(%q|expected "this string" to respond to :some_method|) - end - -end - -describe "should respond_to(:sym).with(1).argument" do - it "passes if target responds to :sym with 1 arg" do - obj = Object.new - def obj.foo(arg); end - obj.should respond_to(:foo).with(1).argument - end - - it "fails if target does not respond to :sym" do - obj = Object.new - lambda { - obj.should respond_to(:some_method).with(1).argument - }.should fail_with(/expected .* to respond to :some_method/) - end - - it "fails if :sym expects 0 args" do - obj = Object.new - def obj.foo; end - lambda { - obj.should respond_to(:foo).with(1).argument - }.should fail_with(/expected # to respond to :foo with 1 argument/) - end - - it "fails if :sym expects 2 args" do - obj = Object.new - def obj.foo(arg, arg2); end - lambda { - obj.should respond_to(:foo).with(1).argument - }.should fail_with(/expected # to respond to :foo with 1 argument/) - end -end - -describe "should respond_to(message1, message2)" do - - it "passes if target responds to both messages" do - Object.new.should respond_to('methods', 'inspect') - end - - it "fails if target does not respond to first message" do - lambda { - Object.new.should respond_to('method_one', 'inspect') - }.should fail_with(/expected # to respond to "method_one"/) - end - - it "fails if target does not respond to second message" do - lambda { - Object.new.should respond_to('inspect', 'method_one') - }.should fail_with(/expected # to respond to "method_one"/) - end - - it "fails if target does not respond to either message" do - lambda { - Object.new.should respond_to('method_one', 'method_two') - }.should fail_with(/expected # to respond to "method_one", "method_two"/) - end -end - -describe "should respond_to(:sym).with(2).arguments" do - it "passes if target responds to :sym with 2 args" do - obj = Object.new - def obj.foo(a1, a2); end - obj.should respond_to(:foo).with(2).arguments - end - - it "fails if target does not respond to :sym" do - obj = Object.new - lambda { - obj.should respond_to(:some_method).with(2).arguments - }.should fail_with(/expected .* to respond to :some_method/) - end - - it "fails if :sym expects 0 args" do - obj = Object.new - def obj.foo; end - lambda { - obj.should respond_to(:foo).with(2).arguments - }.should fail_with(/expected # to respond to :foo with 2 arguments/) - end - - it "fails if :sym expects 2 args" do - obj = Object.new - def obj.foo(arg); end - lambda { - obj.should respond_to(:foo).with(2).arguments - }.should fail_with(/expected # to respond to :foo with 2 arguments/) - end -end - -describe "should_not respond_to(:sym)" do - - it "passes if target does not respond to :sym" do - Object.new.should_not respond_to(:some_method) - end - - it "fails if target responds to :sym" do - lambda { - Object.new.should_not respond_to(:methods) - }.should fail_with(/expected # not to respond to :methods/) - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/satisfy_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/satisfy_spec.rb deleted file mode 100644 index e50c395a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/satisfy_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'spec_helper' - -describe "should satisfy { block }" do - it "should pass if block returns true" do - true.should satisfy { |val| val } - true.should satisfy do |val| - val - end - end - - it "should fail if block returns false" do - lambda { - false.should satisfy { |val| val } - }.should fail_with("expected false to satisfy block") - lambda do - false.should satisfy do |val| - val - end - end.should fail_with("expected false to satisfy block") - end -end - -describe "should_not satisfy { block }" do - it "should pass if block returns false" do - false.should_not satisfy { |val| val } - false.should_not satisfy do |val| - val - end - end - - it "should fail if block returns true" do - lambda { - true.should_not satisfy { |val| val } - }.should fail_with("expected true not to satisfy block") - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/simple_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/simple_matcher_spec.rb deleted file mode 100644 index 8071a9f3..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/simple_matcher_spec.rb +++ /dev/null @@ -1,93 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - describe SimpleMatcher do - it "should pass match arg to block" do - actual = nil - matcher = simple_matcher("message") do |given| actual = given end - matcher.matches?("foo") - actual.should == "foo" - end - - it "should provide a stock failure message" do - matcher = simple_matcher("thing") do end - matcher.matches?("other") - matcher.failure_message.should =~ /expected \"thing\" but got \"other\"/ - end - - it "should provide a stock negative failure message" do - matcher = simple_matcher("thing") do end - matcher.matches?("other") - matcher.negative_failure_message.should =~ /expected not to get \"thing\", but got \"other\"/ - end - - it "should provide the given description" do - matcher = simple_matcher("thing") do end - matcher.description.should =="thing" - end - - it "should fail if a wrapped 'should' fails" do - matcher = simple_matcher("should fail") do - 2.should == 3 - end - lambda do - matcher.matches?("anything").should be_true - end.should fail_with(/expected: 3/) - end - end - - describe "with arity of 2" do - it "should provide the matcher so you can access its messages" do - provided_matcher = nil - matcher = simple_matcher("thing") do |given, matcher| - provided_matcher = matcher - end - matcher.matches?("anything") - provided_matcher.should equal(matcher) - end - - it "should support a custom failure message" do - matcher = simple_matcher("thing") do |given, matcher| - matcher.failure_message = "custom message" - end - matcher.matches?("other") - matcher.failure_message.should == "custom message" - end - - it "should complain when asked for a failure message if you don't give it a description or a message" do - matcher = simple_matcher do |given, matcher| end - matcher.matches?("other") - matcher.failure_message.should =~ /No description provided/ - end - - it "should support a custom negative failure message" do - matcher = simple_matcher("thing") do |given, matcher| - matcher.negative_failure_message = "custom message" - end - matcher.matches?("other") - matcher.negative_failure_message.should == "custom message" - end - - it "should complain when asked for a negative failure message if you don't give it a description or a message" do - matcher = simple_matcher do |given, matcher| end - matcher.matches?("other") - matcher.negative_failure_message.should =~ /No description provided/ - end - - it "should support a custom description" do - matcher = simple_matcher("thing") do |given, matcher| - matcher.description = "custom message" - end - matcher.matches?("description") - matcher.description.should == "custom message" - end - - it "should tell you no description was provided when it doesn't receive one" do - matcher = simple_matcher do end - matcher.description.should =~ /No description provided/ - end - end - - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/throw_symbol_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/throw_symbol_spec.rb deleted file mode 100644 index 402f812f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/matchers/throw_symbol_spec.rb +++ /dev/null @@ -1,96 +0,0 @@ -require 'spec_helper' - -module Spec - module Matchers - describe ThrowSymbol do - describe "with no args" do - before(:each) { @matcher = ThrowSymbol.new } - - it "should match if any Symbol is thrown" do - @matcher.matches?(lambda{ throw :sym }).should be_true - end - it "should match if any Symbol is thrown with an arg" do - @matcher.matches?(lambda{ throw :sym, "argument" }).should be_true - end - it "should not match if no Symbol is thrown" do - @matcher.matches?(lambda{ }).should be_false - end - it "should provide a failure message" do - @matcher.matches?(lambda{}) - @matcher.failure_message_for_should.should == "expected a Symbol but nothing was thrown" - end - it "should provide a negative failure message" do - @matcher.matches?(lambda{ throw :sym}) - @matcher.failure_message_for_should_not.should == "expected no Symbol, got :sym" - end - end - - describe "with a symbol" do - before(:each) { @matcher = ThrowSymbol.new(:sym) } - - it "should match if correct Symbol is thrown" do - @matcher.matches?(lambda{ throw :sym }).should be_true - end - it "should match if correct Symbol is thrown with an arg" do - @matcher.matches?(lambda{ throw :sym, "argument" }).should be_true - end - it "should not match if no Symbol is thrown" do - @matcher.matches?(lambda{ }).should be_false - end - it "should not match if correct Symbol is thrown" do - @matcher.matches?(lambda{ throw :other_sym }).should be_false - end - it "should provide a failure message when no Symbol is thrown" do - @matcher.matches?(lambda{}) - @matcher.failure_message_for_should.should == "expected :sym but nothing was thrown" - end - it "should provide a failure message when wrong Symbol is thrown" do - @matcher.matches?(lambda{ throw :other_sym }) - @matcher.failure_message_for_should.should == "expected :sym, got :other_sym" - end - it "should provide a negative failure message" do - @matcher.matches?(lambda{ throw :sym }) - @matcher.failure_message_for_should_not.should == "expected :sym not to be thrown" - end - it "should only match NameErrors raised by uncaught throws" do - @matcher.matches?(lambda{ sym }).should be_false - end - end - - describe "with a symbol and an arg" do - before(:each) { @matcher = ThrowSymbol.new(:sym, "a") } - - it "should match if correct Symbol and args are thrown" do - @matcher.matches?(lambda{ throw :sym, "a" }).should be_true - end - it "should not match if nothing is thrown" do - @matcher.matches?(lambda{ }).should be_false - end - it "should not match if other Symbol is thrown" do - @matcher.matches?(lambda{ throw :other_sym, "a" }).should be_false - end - it "should not match if no arg is thrown" do - @matcher.matches?(lambda{ throw :sym }).should be_false - end - it "should not match if wrong arg is thrown" do - @matcher.matches?(lambda{ throw :sym, "b" }).should be_false - end - it "should provide a failure message when no Symbol is thrown" do - @matcher.matches?(lambda{}) - @matcher.failure_message_for_should.should == %q[expected :sym with "a" but nothing was thrown] - end - it "should provide a failure message when wrong Symbol is thrown" do - @matcher.matches?(lambda{ throw :other_sym }) - @matcher.failure_message_for_should.should == %q[expected :sym with "a", got :other_sym] - end - it "should provide a negative failure message" do - @matcher.matches?(lambda{ throw :sym }) - @matcher.failure_message_for_should_not.should == %q[expected :sym with "a" not to be thrown] - end - it "should only match NameErrors raised by uncaught throws" do - @matcher.matches?(lambda{ sym }).should be_false - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/any_number_of_times_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/any_number_of_times_spec.rb deleted file mode 100644 index 9a3f6eda..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/any_number_of_times_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - - describe "AnyNumberOfTimes" do - before(:each) do - @mock = Mock.new("test mock") - end - - it "should pass if any number of times method is called many times" do - @mock.should_receive(:random_call).any_number_of_times - (1..10).each do - @mock.random_call - end - end - - it "should pass if any number of times method is called once" do - @mock.should_receive(:random_call).any_number_of_times - @mock.random_call - end - - it "should pass if any number of times method is not called" do - @mock.should_receive(:random_call).any_number_of_times - end - - it "should return the mocked value when called after a similar stub" do - @mock.stub!(:message).and_return :stub_value - @mock.should_receive(:message).any_number_of_times.and_return(:mock_value) - @mock.message.should == :mock_value - @mock.message.should == :mock_value - end - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_expectation_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_expectation_spec.rb deleted file mode 100644 index 496f7507..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_expectation_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe ArgumentExpectation do - it "should consider an object that responds to #matches? and #description to be a matcher" do - argument_expecatation = Spec::Mocks::ArgumentExpectation.new([]) - obj = mock("matcher") - obj.should_receive(:respond_to?).with(:matches?).and_return(true) - obj.should_receive(:respond_to?).with(:description).and_return(true) - argument_expecatation.is_matcher?(obj).should be_true - end - - it "should NOT consider an object that only responds to #matches? to be a matcher" do - argument_expecatation = Spec::Mocks::ArgumentExpectation.new([]) - obj = mock("matcher") - obj.should_receive(:respond_to?).with(:matches?).and_return(true) - obj.should_receive(:respond_to?).with(:description).and_return(false) - argument_expecatation.is_matcher?(obj).should be_false - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_matchers_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_matchers_spec.rb deleted file mode 100644 index fc816558..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/argument_matchers_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - module ArgumentMatchers - describe AnyArgsMatcher do - it "represents itself nicely for failure messages" do - AnyArgsMatcher.new.description.should == "any args" - end - end - - describe AnyArgMatcher do - it "represents itself nicely for failure messages" do - AnyArgMatcher.new(nil).description.should == "anything" - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_least_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_least_spec.rb deleted file mode 100644 index 0b76d321..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_least_spec.rb +++ /dev/null @@ -1,97 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "at_least" do - before(:each) do - @mock = Mock.new("test mock") - end - - it "should fail if method is never called" do - @mock.should_receive(:random_call).at_least(4).times - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when called less than n times" do - @mock.should_receive(:random_call).at_least(4).times - @mock.random_call - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when at least once method is never called" do - @mock.should_receive(:random_call).at_least(:once) - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when at least twice method is called once" do - @mock.should_receive(:random_call).at_least(:twice) - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when at least twice method is never called" do - @mock.should_receive(:random_call).at_least(:twice) - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should pass when at least n times method is called exactly n times" do - @mock.should_receive(:random_call).at_least(4).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at least n times method is called n plus 1 times" do - @mock.should_receive(:random_call).at_least(4).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at least once method is called once" do - @mock.should_receive(:random_call).at_least(:once) - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at least once method is called twice" do - @mock.should_receive(:random_call).at_least(:once) - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at least twice method is called three times" do - @mock.should_receive(:random_call).at_least(:twice) - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at least twice method is called twice" do - @mock.should_receive(:random_call).at_least(:twice) - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_most_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_most_spec.rb deleted file mode 100644 index 744c9ff1..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/at_most_spec.rb +++ /dev/null @@ -1,93 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "at_most" do - before(:each) do - @mock = Mock.new("test mock") - end - - it "should fail when at most n times method is called n plus 1 times" do - @mock.should_receive(:random_call).at_most(4).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when at most once method is called twice" do - @mock.should_receive(:random_call).at_most(:once) - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when at most twice method is called three times" do - @mock.should_receive(:random_call).at_most(:twice) - @mock.random_call - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should pass when at most n times method is called exactly n times" do - @mock.should_receive(:random_call).at_most(4).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at most n times method is called less than n times" do - @mock.should_receive(:random_call).at_most(4).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at most n times method is never called" do - @mock.should_receive(:random_call).at_most(4).times - @mock.rspec_verify - end - - it "should pass when at most once method is called once" do - @mock.should_receive(:random_call).at_most(:once) - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at most once method is never called" do - @mock.should_receive(:random_call).at_most(:once) - @mock.rspec_verify - end - - it "should pass when at most twice method is called once" do - @mock.should_receive(:random_call).at_most(:twice) - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at most twice method is called twice" do - @mock.should_receive(:random_call).at_most(:twice) - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass when at most twice method is never called" do - @mock.should_receive(:random_call).at_most(:twice) - @mock.rspec_verify - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10260_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10260_spec.rb deleted file mode 100644 index 783782f6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10260_spec.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'spec_helper' - -describe "An RSpec Mock" do - it "should hide internals in its inspect representation" do - m = mock('cup') - m.inspect.should =~ /#/ - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10263_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10263_spec.rb deleted file mode 100644 index 8a0bc505..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_10263_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -describe "Mock" do - before do - @mock = mock("test mock") - end - - specify "when one example has an expectation (non-mock) inside the block passed to the mock" do - @mock.should_receive(:msg) do |b| - b.should be_true #this call exposes the problem - end - begin - @mock.msg(false) - rescue Exception - end - end - - specify "then the next example should behave as expected instead of saying" do - @mock.should_receive(:foobar) - @mock.foobar - @mock.rspec_verify - begin - @mock.foobar - rescue Exception => e - e.message.should == "Mock \"test mock\" received unexpected message :foobar with (no args)" - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_11545_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_11545_spec.rb deleted file mode 100644 index 7eb7c6e4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_11545_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'spec_helper' - -class LiarLiarPantsOnFire - def respond_to?(sym, incl_private=false) - true - end - - def self.respond_to?(sym, incl_private=false) - true - end -end - -describe 'should_receive' do - before(:each) do - @liar = LiarLiarPantsOnFire.new - end - - it "should work when object lies about responding to a method" do - @liar.should_receive(:something) - @liar.something - end - - it 'should work when class lies about responding to a method' do - LiarLiarPantsOnFire.should_receive(:something) - LiarLiarPantsOnFire.something - end - - it 'should cleanup after itself' do - (class << LiarLiarPantsOnFire; self; end).instance_methods.should_not include("something") - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_15719_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_15719_spec.rb deleted file mode 100644 index efd7a782..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_15719_spec.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "mock failure" do - - it "should tell you when it receives the right message with the wrong args" do - m = mock("foo") - m.should_receive(:bar).with("message") - lambda { - m.bar("different message") - }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")}) - m.bar("message") # allows the spec to pass - end - - it "should tell you when it receives the right message with the wrong args if you stub the method" do - pending("fix bug 15719") - # NOTE - for whatever reason, if you use a the block style of pending here, - # rcov gets unhappy. Don't know why yet. - m = mock("foo") - m.stub!(:bar) - m.should_receive(:bar).with("message") - lambda { - m.bar("different message") - }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")}) - m.bar("message") # allows the spec to pass - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_496_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_496_spec.rb deleted file mode 100644 index fb172a6b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_496_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'spec_helper' - -module BugReport496 - class BaseClass - end - - class SubClass < BaseClass - end - - describe "a message expectation on a base class object" do - it "should correctly pick up message sent to it subclass" do - pending("fix for http://rspec.lighthouseapp.com/projects/5645/tickets/496") do - BaseClass.should_receive(:new).once - SubClass.new - end - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_600_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_600_spec.rb deleted file mode 100644 index c5c50d5a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_600_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'spec_helper' - -module BugReport600 - class ExampleClass - def self.method_that_uses_define_method - define_method "defined_method" do |attributes| - load_address(address, attributes) - end - end - end - - describe "stubbing a class method" do - it "should work" do - ExampleClass.should_receive(:define_method).with("defined_method") - ExampleClass.method_that_uses_define_method - end - - it "should restore the original method" do - ExampleClass.method_that_uses_define_method - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7611_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7611_spec.rb deleted file mode 100644 index ff1ef879..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7611_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'spec_helper' - -module Bug7611 - class Foo - end - - class Bar < Foo - end - - describe "A Partial Mock" do - it "should respect subclasses" do - Foo.stub!(:new).and_return(Object.new) - end - - it "should" do - Bar.new.class.should == Bar - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7805_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7805_spec.rb deleted file mode 100644 index 9a3d493d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_7805_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'spec_helper' - -module Bug7805 - #This is really a duplicate of 8302 - - describe "Stubs should correctly restore module methods" do - it "1 - stub the open method" do - File.stub!(:open).and_return("something") - File.open.should == "something" - end - it "2 - use File.open to create example.txt" do - filename = "#{File.dirname(__FILE__)}/example-#{Time.new.to_i}.txt" - File.exist?(filename).should be_false - file = File.open(filename,'w') - file.close - File.exist?(filename).should be_true - File.delete(filename) - File.exist?(filename).should be_false - end - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8165_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8165_spec.rb deleted file mode 100644 index 8d8d0177..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8165_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'spec_helper' - -describe "An object where respond_to? is true and does not have method" do - # When should_receive(:sym) is sent to any object, the Proxy sends - # respond_to?(:sym) to that object to see if the method should be proxied. - # - # If respond_to? itself is proxied, then when the Proxy sends respond_to? - # to the object, the proxy is invoked and responds yes (if so set in the spec). - # When the object does NOT actually respond to :sym, an exception is thrown - # when trying to proxy it. - # - # The fix was to keep track of whether :respond_to? had been proxied and, if - # so, call the munged copy of :respond_to? on the object. - - it "should not raise an exception for Object" do - obj = Object.new - obj.should_receive(:respond_to?).with(:foobar).and_return(true) - obj.should_receive(:foobar).and_return(:baz) - obj.respond_to?(:foobar).should be_true - obj.foobar.should == :baz - end - - it "should not raise an exception for mock" do - obj = mock("obj") - obj.should_receive(:respond_to?).with(:foobar).and_return(true) - obj.should_receive(:foobar).and_return(:baz) - obj.respond_to?(:foobar).should be_true - obj.foobar.should == :baz - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8302_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8302_spec.rb deleted file mode 100644 index 55d8d3ac..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_8302_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' - -module Bug8302 - class Foo - def Foo.class_method(arg) - end - - def instance_bar(arg) - end - end - - describe "Bug report 8302:" do - it "class method is not restored correctly when proxied" do - Foo.should_not_receive(:class_method).with(Array.new) - Foo.rspec_verify - Foo.class_method(Array.new) - end - - it "instance method is not restored correctly when proxied" do - foo = Foo.new - foo.should_not_receive(:instance_bar).with(Array.new) - foo.rspec_verify - foo.instance_bar(Array.new) - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_830_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_830_spec.rb deleted file mode 100644 index ed16f419..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/bug_report_830_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe 'Calling a method that catches StandardError' do - class Foo - def self.foo - bar - rescue StandardError - end - end - - it 'still reports mock failures' do - Foo.should_not_receive :bar - lambda do - Foo.foo - end.should raise_error(MockExpectationError) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/double_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/double_spec.rb deleted file mode 100644 index 0d6ee982..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/double_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require 'spec_helper' - -describe "double" do - it "is an alias for stub and mock" do - double().should be_a(Spec::Mocks::Mock) - end - - it "uses 'Double' in failure messages" do - double = double('name') - expect {double.foo}.to raise_error(/Double "name" received/) - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/failing_argument_matchers_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/failing_argument_matchers_spec.rb deleted file mode 100644 index 30742157..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/failing_argument_matchers_spec.rb +++ /dev/null @@ -1,95 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "failing MockArgumentMatchers" do - before(:each) do - @mock = mock("test mock") - @reporter = Mock.new("reporter", :null_object => true) - end - - after(:each) do - @mock.rspec_reset - end - - it "should reject non boolean" do - @mock.should_receive(:random_call).with(boolean()) - lambda do - @mock.random_call("false") - end.should raise_error(MockExpectationError) - end - - it "should reject non numeric" do - @mock.should_receive(:random_call).with(an_instance_of(Numeric)) - lambda do - @mock.random_call("1") - end.should raise_error(MockExpectationError) - end - - it "should reject non string" do - @mock.should_receive(:random_call).with(an_instance_of(String)) - lambda do - @mock.random_call(123) - end.should raise_error(MockExpectationError) - end - - it "should reject goose when expecting a duck" do - @mock.should_receive(:random_call).with(duck_type(:abs, :div)) - lambda { @mock.random_call("I don't respond to :abs or :div") }.should raise_error(MockExpectationError) - end - - it "should fail if regexp does not match submitted string" do - @mock.should_receive(:random_call).with(/bcd/) - lambda { @mock.random_call("abc") }.should raise_error(MockExpectationError) - end - - it "should fail if regexp does not match submitted regexp" do - @mock.should_receive(:random_call).with(/bcd/) - lambda { @mock.random_call(/bcde/) }.should raise_error(MockExpectationError) - end - - it "should fail for a hash w/ wrong values" do - @mock.should_receive(:random_call).with(:a => "b", :c => "d") - lambda do - @mock.random_call(:a => "b", :c => "e") - end.should raise_error(MockExpectationError, /Mock "test mock" received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(:a=>\"b\", :c=>\"e\"|:c=>\"e\", :a=>\"b\")\}\)/) - end - - it "should fail for a hash w/ wrong keys" do - @mock.should_receive(:random_call).with(:a => "b", :c => "d") - lambda do - @mock.random_call("a" => "b", "c" => "d") - end.should raise_error(MockExpectationError, /Mock "test mock" received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(\"a\"=>\"b\", \"c\"=>\"d\"|\"c\"=>\"d\", \"a\"=>\"b\")\}\)/) - end - - it "should match against a Matcher" do - lambda do - @mock.should_receive(:msg).with(equal(3)) - @mock.msg(37) - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (equal 3)\n got: (37)") - end - - it "should fail no_args with one arg" do - lambda do - @mock.should_receive(:msg).with(no_args) - @mock.msg(37) - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (no args)\n got: (37)") - end - - it "should fail hash_including with missing key" do - lambda do - @mock.should_receive(:msg).with(hash_including(:a => 1)) - @mock.msg({}) - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (hash_including(:a=>1))\n got: ({})") - end - - it "should fail with block matchers" do - lambda do - @mock.should_receive(:msg).with {|arg| arg.should == :received } - @mock.msg :no_msg_for_you - end.should raise_error(Spec::Expectations::ExpectationNotMetError, /expected: :received.*\s*.*got: :no_msg_for_you/) - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_including_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_including_matcher_spec.rb deleted file mode 100644 index d757f619..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_including_matcher_spec.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - module ArgumentMatchers - describe HashIncludingMatcher do - - it "should describe itself properly" do - HashIncludingMatcher.new(:a => 1).description.should == "hash_including(:a=>1)" - end - - describe "passing" do - it "should match the same hash" do - hash_including(:a => 1).should == {:a => 1} - end - - it "should match a hash with extra stuff" do - hash_including(:a => 1).should == {:a => 1, :b => 2} - end - - describe "when matching against other matchers" do - it "should match an int against anything()" do - hash_including(:a => anything, :b => 2).should == {:a => 1, :b => 2} - end - - it "should match a string against anything()" do - hash_including(:a => anything, :b => 2).should == {:a => "1", :b => 2} - end - end - - describe "when passed only keys or keys mixed with key/value pairs" do - it "should match if the key is present" do - hash_including(:a).should == {:a => 1, :b => 2} - end - - it "should match if more keys are present" do - hash_including(:a, :b).should == {:a => 1, :b => 2, :c => 3} - end - - it "should match a string against a given key" do - hash_including(:a).should == {:a => "1", :b => 2} - end - - it "should match if passed one key and one key/value pair" do - hash_including(:a, :b => 2).should == {:a => 1, :b => 2} - end - - it "should match if passed many keys and one key/value pair" do - hash_including(:a, :b, :c => 3).should == {:a => 1, :b => 2, :c => 3, :d => 4} - end - - it "should match if passed many keys and many key/value pairs" do - hash_including(:a, :b, :c => 3, :e => 5).should == {:a => 1, :b => 2, :c => 3, :d => 4, :e => 5} - end - end - end - - describe "failing" do - it "should not match a non-hash" do - hash_including(:a => 1).should_not == 1 - end - - it "should not match a hash with a missing key" do - hash_including(:a => 1).should_not == {:b => 2} - end - - it "should not match a hash with a missing key" do - hash_including(:a).should_not == {:b => 2} - end - - it "should not match an empty hash with a given key" do - hash_including(:a).should_not == {} - end - - it "should not match a hash with a missing key when one pair is matching" do - hash_including(:a, :b => 2).should_not == {:b => 2} - end - - it "should not match a hash with an incorrect value" do - hash_including(:a => 1, :b => 2).should_not == {:a => 1, :b => 3} - end - - it "should not match when values are nil but keys are different" do - hash_including(:a => nil).should_not == {:b => nil} - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_not_including_matcher_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_not_including_matcher_spec.rb deleted file mode 100644 index 9df69fe6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/hash_not_including_matcher_spec.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - module ArgumentMatchers - describe HashNotIncludingMatcher do - - it "should describe itself properly" do - HashNotIncludingMatcher.new(:a => 5).description.should == "hash_not_including(:a=>5)" - end - - describe "passing" do - it "should match a hash without the specified key" do - hash_not_including(:c).should == {:a => 1, :b => 2} - end - - it "should match a hash with the specified key, but different value" do - hash_not_including(:b => 3).should == {:a => 1, :b => 2} - end - - it "should match a hash without the specified key, given as anything()" do - hash_not_including(:c => anything).should == {:a => 1, :b => 2} - end - - it "should match an empty hash" do - hash_not_including(:a).should == {} - end - - it "should match a hash without any of the specified keys" do - hash_not_including(:a, :b, :c).should == { :d => 7} - end - - end - - describe "failing" do - it "should not match a non-hash" do - hash_not_including(:a => 1).should_not == 1 - end - - it "should not match a hash with a specified key" do - hash_not_including(:b).should_not == {:b => 2} - end - - it "should not match a hash with the specified key/value pair" do - hash_not_including(:b => 2).should_not == {:a => 1, :b => 2} - end - - it "should not match a hash with the specified key" do - hash_not_including(:a, :b => 3).should_not == {:a => 1, :b => 2} - end - - it "should not match a hash with one of the specified keys" do - hash_not_including(:a, :b).should_not == {:b => 2} - end - - it "should not match a hash with some of the specified keys" do - hash_not_including(:a, :b, :c).should_not == {:a => 1, :b => 2} - end - - it "should not match a hash with one key/value pair included" do - hash_not_including(:a, :b, :c, :d => 7).should_not == { :d => 7} - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_ordering_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_ordering_spec.rb deleted file mode 100644 index 4bd15478..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_ordering_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - - describe "Mock ordering" do - - before do - @mock = mock("test mock") - end - - after do - @mock.rspec_reset - end - - it "should pass two calls in order" do - @mock.should_receive(:one).ordered - @mock.should_receive(:two).ordered - @mock.one - @mock.two - @mock.rspec_verify - end - - it "should pass three calls in order" do - @mock.should_receive(:one).ordered - @mock.should_receive(:two).ordered - @mock.should_receive(:three).ordered - @mock.one - @mock.two - @mock.three - @mock.rspec_verify - end - - it "should fail if second call comes first" do - @mock.should_receive(:one).ordered - @mock.should_receive(:two).ordered - lambda do - @mock.two - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :two out of order") - end - - it "should fail if third call comes first" do - @mock.should_receive(:one).ordered - @mock.should_receive(:two).ordered - @mock.should_receive(:three).ordered - @mock.one - lambda do - @mock.three - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :three out of order") - end - - it "should fail if third call comes second" do - @mock.should_receive(:one).ordered - @mock.should_receive(:two).ordered - @mock.should_receive(:three).ordered - @mock.one - lambda do - @mock.three - end.should raise_error(MockExpectationError, "Mock \"test mock\" received :three out of order") - end - - it "should ignore order of non ordered calls" do - @mock.should_receive(:ignored_0) - @mock.should_receive(:ordered_1).ordered - @mock.should_receive(:ignored_1) - @mock.should_receive(:ordered_2).ordered - @mock.should_receive(:ignored_2) - @mock.should_receive(:ignored_3) - @mock.should_receive(:ordered_3).ordered - @mock.should_receive(:ignored_4) - @mock.ignored_3 - @mock.ordered_1 - @mock.ignored_0 - @mock.ordered_2 - @mock.ignored_4 - @mock.ignored_2 - @mock.ordered_3 - @mock.ignored_1 - @mock.rspec_verify - end - - it "should pass when duplicates exist" do - @mock.should_receive(:a).ordered - @mock.should_receive(:b).ordered - @mock.should_receive(:a).ordered - - @mock.a - @mock.b - @mock.a - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_space_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_space_spec.rb deleted file mode 100644 index 87823930..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_space_spec.rb +++ /dev/null @@ -1,54 +0,0 @@ -require 'spec_helper' -require 'spec/mocks' - -module Spec - module Mocks - describe Space do - before :each do - @space = Space.new - klazz = Class.new do - def rspec_verify - @verified = true - end - def verified? - @verified - end - def rspec_reset - @reset = true - end - def reset? - @reset - end - end - @m1 = klazz.new - @m2 = klazz.new - end - it "should verify all mocks within" do - @space.add(@m1) - @space.add(@m2) - @space.verify_all - @m1.should be_verified - @m2.should be_verified - end - it "should reset all mocks within" do - @space.add(m1 = mock("mock1")) - @space.add(m2 = mock("mock2")) - m1.should_receive(:rspec_reset) - m2.should_receive(:rspec_reset) - @space.reset_all - end - it "should clear internal mocks on reset_all" do - @space.add(m = mock("mock")) - @space.reset_all - @space.instance_eval { mocks.empty? }.should be_true - end - it "should only add an instance once" do - @space.add(m1 = mock("mock1")) - @space.add(m1) - m1.should_receive(:rspec_verify) - @space.verify_all - end - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_spec.rb deleted file mode 100644 index 9c636a33..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/mock_spec.rb +++ /dev/null @@ -1,594 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe Mock do - treats_method_missing_as_private :subject => Mock.new, :noop => false - - before(:each) do - @mock = mock("test mock") - end - - after(:each) do - @mock.rspec_reset - end - - describe "deprecated #stub_everything method" do - before(:each) do - Kernel.stub!(:warn) - end - - it "creates a mock that behaves as a null object" do - stub_everything.should be_null_object - end - - it "provides deprecation warning" do - Kernel.should_receive(:warn).with(/DEPRECATION: stub_everything.* is deprecated./) - stub_everything - end - end - - it "should report line number of expectation of unreceived message" do - expected_error_line = __LINE__; @mock.should_receive(:wont_happen).with("x", 3) - begin - @mock.rspec_verify - violated - rescue MockExpectationError => e - # NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line - e.backtrace[0].should match(/#{File.basename(__FILE__)}:#{expected_error_line}/) - end - end - - it "should report line number of expectation of unreceived message after #should_receive after similar stub" do - @mock.stub!(:wont_happen) - expected_error_line = __LINE__; @mock.should_receive(:wont_happen).with("x", 3) - begin - @mock.rspec_verify - violated - rescue MockExpectationError => e - # NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line - e.backtrace[0].should match(/#{File.basename(__FILE__)}:#{expected_error_line}/) - end - end - - it "should pass when not receiving message specified as not to be received" do - @mock.should_not_receive(:not_expected) - @mock.rspec_verify - end - - it "should pass when receiving message specified as not to be received with different args" do - @mock.should_not_receive(:message).with("unwanted text") - @mock.should_receive(:message).with("other text") - @mock.message "other text" - @mock.rspec_verify - end - - it "should fail when receiving message specified as not to be received" do - @mock.should_not_receive(:not_expected) - lambda { - @mock.not_expected - violated - }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once") - end - - it "should fail when receiving message specified as not to be received with args" do - @mock.should_not_receive(:not_expected).with("unexpected text") - lambda { - @mock.not_expected("unexpected text") - violated - }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (\"unexpected text\") 0 times, but received it once") - end - - it "should pass when receiving message specified as not to be received with wrong args" do - @mock.should_not_receive(:not_expected).with("unexpected text") - @mock.not_expected "really unexpected text" - @mock.rspec_verify - end - - it "should allow block to calculate return values" do - @mock.should_receive(:something).with("a","b","c").and_return { |a,b,c| c+b+a } - @mock.something("a","b","c").should == "cba" - @mock.rspec_verify - end - - it "should allow parameter as return value" do - @mock.should_receive(:something).with("a","b","c").and_return("booh") - @mock.something("a","b","c").should == "booh" - @mock.rspec_verify - end - - it "should return nil if no return value set" do - @mock.should_receive(:something).with("a","b","c") - @mock.something("a","b","c").should be_nil - @mock.rspec_verify - end - - it "should raise exception if args don't match when method called" do - @mock.should_receive(:something).with("a","b","c").and_return("booh") - lambda { - @mock.something("a","d","c") - violated - }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")") - end - - it "should raise exception if args don't match when method called even when the method is stubbed" do - @mock.stub!(:something) - @mock.should_receive(:something).with("a","b","c") - lambda { - @mock.something("a","d","c") - @mock.rspec_verify - }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])") - end - - it "should raise exception if args don't match when method called even when using null_object" do - @mock = mock("test mock", :null_object => true) - @mock.should_receive(:something).with("a","b","c") - lambda { - @mock.something("a","d","c") - @mock.rspec_verify - }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])") - end - - it "should fail if unexpected method called" do - lambda { - @mock.something("a","b","c") - violated - }.should raise_error(MockExpectationError, "Mock \"test mock\" received unexpected message :something with (\"a\", \"b\", \"c\")") - end - - it "should use block for expectation if provided" do - @mock.should_receive(:something) do | a, b | - a.should == "a" - b.should == "b" - "booh" - end - @mock.something("a", "b").should == "booh" - @mock.rspec_verify - end - - it "should fail if expectation block fails" do - @mock.should_receive(:something) {| bool | bool.should be_true} - lambda { - @mock.something false - }.should raise_error(MockExpectationError, /Mock "test mock" received :something but passed block failed with: expected true, got false/) - end - - it "should fail right away when method defined as never is received" do - @mock.should_receive(:not_expected).never - lambda { - @mock.not_expected - }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once") - end - - it "should eventually fail when method defined as never is received" do - @mock.should_receive(:not_expected).never - lambda { - @mock.not_expected - }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once") - end - - it "should raise when told to" do - @mock.should_receive(:something).and_raise(RuntimeError) - lambda do - @mock.something - end.should raise_error(RuntimeError) - end - - it "should raise passed an Exception instance" do - error = RuntimeError.new("error message") - @mock.should_receive(:something).and_raise(error) - lambda { - @mock.something - }.should raise_error(RuntimeError, "error message") - end - - it "should raise RuntimeError with passed message" do - @mock.should_receive(:something).and_raise("error message") - lambda { - @mock.something - }.should raise_error(RuntimeError, "error message") - end - - it "should not raise when told to if args dont match" do - @mock.should_receive(:something).with(2).and_raise(RuntimeError) - lambda { - @mock.something 1 - }.should raise_error(MockExpectationError) - end - - it "should throw when told to" do - @mock.should_receive(:something).and_throw(:blech) - lambda { - @mock.something - }.should throw_symbol(:blech) - end - - it "should raise when explicit return and block constrained" do - lambda { - @mock.should_receive(:fruit) do |colour| - :strawberry - end.and_return :apple - }.should raise_error(AmbiguousReturnError) - end - - it "should ignore args on any args" do - @mock.should_receive(:something).at_least(:once).with(any_args) - @mock.something - @mock.something 1 - @mock.something "a", 2 - @mock.something [], {}, "joe", 7 - @mock.rspec_verify - end - - it "should fail on no args if any args received" do - @mock.should_receive(:something).with(no_args()) - lambda { - @mock.something 1 - }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (no args)\n got: (1)") - end - - it "should fail when args are expected but none are received" do - @mock.should_receive(:something).with(1) - lambda { - @mock.something - }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (1)\n got: (no args)") - end - - it "should return value from block by default" do - @mock.stub!(:method_that_yields).and_yield - @mock.method_that_yields { :returned_obj }.should == :returned_obj - @mock.rspec_verify - end - - it "should yield 0 args to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield - a = nil - @mock.yield_back {|*x| a = x} - a.should == [] - @mock.rspec_verify - end - - it "should yield 0 args multiple times to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield. - and_yield - a = nil - b = [] - @mock.yield_back {|*a| b << a} - b.should == [ [], [] ] - @mock.rspec_verify - end - - it "should yield one arg to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield(99) - a = nil - @mock.yield_back {|*x| a = x} - a.should == [99] - @mock.rspec_verify - end - - it "should yield one arg 3 times consecutively to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99). - and_yield(43). - and_yield("something fruity") - a = nil - b = [] - @mock.yield_back {|*a| b << a} - b.should == [[99], [43], ["something fruity"]] - @mock.rspec_verify - end - - it "should yield many args to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield(99, 27, "go") - a = nil - @mock.yield_back {|*x| a = x} - a.should == [99, 27, "go"] - @mock.rspec_verify - end - - it "should yield many args 3 times consecutively to blocks that take a variable number of arguments" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99, :green, "go"). - and_yield("wait", :amber). - and_yield("stop", 12, :red) - a = nil - b = [] - @mock.yield_back {|*a| b << a} - b.should == [[99, :green, "go"], ["wait", :amber], ["stop", 12, :red]] - @mock.rspec_verify - end - - it "should yield single value" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield(99) - a = nil - @mock.yield_back {|x| a = x} - a.should == 99 - @mock.rspec_verify - end - - it "should yield single value 3 times consecutively" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99). - and_yield(43). - and_yield("something fruity") - a = nil - b = [] - @mock.yield_back {|a| b << a} - b.should == [99, 43, "something fruity"] - @mock.rspec_verify - end - - it "should yield two values" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup') - a, b = nil - @mock.yield_back {|x,y| a=x; b=y} - a.should == 'wha' - b.should == 'zup' - @mock.rspec_verify - end - - it "should yield two values 3 times consecutively" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup'). - and_yield('not', 'down'). - and_yield(14, 65) - a, b = nil - c = [] - @mock.yield_back {|a,b| c << [a, b]} - c.should == [['wha', 'zup'], ['not', 'down'], [14, 65]] - @mock.rspec_verify - end - - it "should fail when calling yielding method with wrong arity" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup') - lambda { - @mock.yield_back {|a|} - }.should raise_error(MockExpectationError, "Mock \"test mock\" yielded |\"wha\", \"zup\"| to block with arity of 1") - end - - it "should fail when calling yielding method consecutively with wrong arity" do - @mock.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup'). - and_yield('down'). - and_yield(14, 65) - lambda { - a, b = nil - c = [] - @mock.yield_back {|a,b| c << [a, b]} - }.should raise_error(MockExpectationError, "Mock \"test mock\" yielded |\"down\"| to block with arity of 2") - end - - it "should fail when calling yielding method without block" do - @mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup') - lambda { - @mock.yield_back - }.should raise_error(MockExpectationError, "Mock \"test mock\" asked to yield |[\"wha\", \"zup\"]| but no block was passed") - end - - it "should be able to mock send" do - @mock.should_receive(:send).with(any_args) - @mock.send 'hi' - @mock.rspec_verify - end - - it "should be able to raise from method calling yielding mock" do - @mock.should_receive(:yield_me).and_yield 44 - - lambda { - @mock.yield_me do |x| - raise "Bang" - end - }.should raise_error(StandardError, "Bang") - - @mock.rspec_verify - end - - it "should clear expectations after verify" do - @mock.should_receive(:foobar) - @mock.foobar - @mock.rspec_verify - lambda { - @mock.foobar - }.should raise_error(MockExpectationError, "Mock \"test mock\" received unexpected message :foobar with (no args)") - end - - it "should restore objects to their original state on rspec_reset" do - mock = mock("this is a mock") - mock.should_receive(:blah) - mock.rspec_reset - mock.rspec_verify #should throw if reset didn't work - end - - it "should work even after method_missing starts raising NameErrors instead of NoMethodErrors" do - # Object#method_missing throws either NameErrors or NoMethodErrors. - # - # On a fresh ruby program Object#method_missing: - # * raises a NoMethodError when called directly - # * raises a NameError when called indirectly - # - # Once Object#method_missing has been called at least once (on any object) - # it starts behaving differently: - # * raises a NameError when called directly - # * raises a NameError when called indirectly - # - # There was a bug in Mock#method_missing that relied on the fact - # that calling Object#method_missing directly raises a NoMethodError. - # This example tests that the bug doesn't exist anymore. - - - # Ensures that method_missing always raises NameErrors. - a_method_that_doesnt_exist rescue - - - @mock.should_receive(:foobar) - @mock.foobar - @mock.rspec_verify - - lambda { @mock.foobar }.should_not raise_error(NameError) - lambda { @mock.foobar }.should raise_error(MockExpectationError) - end - - it "should temporarily replace a method stub on a mock" do - @mock.stub!(:msg).and_return(:stub_value) - @mock.should_receive(:msg).with(:arg).and_return(:mock_value) - @mock.msg(:arg).should equal(:mock_value) - @mock.msg.should equal(:stub_value) - @mock.msg.should equal(:stub_value) - @mock.rspec_verify - end - - it "should not require a different signature to replace a method stub" do - @mock.stub!(:msg).and_return(:stub_value) - @mock.should_receive(:msg).and_return(:mock_value) - @mock.msg(:arg).should equal(:mock_value) - @mock.msg.should equal(:stub_value) - @mock.msg.should equal(:stub_value) - @mock.rspec_verify - end - - it "should raise an error when a previously stubbed method has a negative expectation" do - @mock.stub!(:msg).and_return(:stub_value) - @mock.should_not_receive(:msg).and_return(:mock_value) - lambda {@mock.msg(:arg)}.should raise_error(MockExpectationError) - end - - it "should temporarily replace a method stub on a non-mock" do - non_mock = Object.new - non_mock.stub!(:msg).and_return(:stub_value) - non_mock.should_receive(:msg).with(:arg).and_return(:mock_value) - non_mock.msg(:arg).should equal(:mock_value) - non_mock.msg.should equal(:stub_value) - non_mock.msg.should equal(:stub_value) - non_mock.rspec_verify - end - - it "should return the stubbed value when no new value specified" do - @mock.stub!(:msg).and_return(:stub_value) - @mock.should_receive(:msg) - @mock.msg.should equal(:stub_value) - @mock.rspec_verify - end - - it "should not mess with the stub's yielded values when also mocked" do - @mock.stub!(:yield_back).and_yield(:stub_value) - @mock.should_receive(:yield_back).and_yield(:mock_value) - @mock.yield_back{|v| v.should == :mock_value } - @mock.yield_back{|v| v.should == :stub_value } - @mock.rspec_verify - end - - it "should yield multiple values after a similar stub" do - File.stub!(:open).and_yield(:stub_value) - File.should_receive(:open).and_yield(:first_call).and_yield(:second_call) - yielded_args = [] - File.open {|v| yielded_args << v } - yielded_args.should == [:first_call, :second_call] - File.open {|v| v.should == :stub_value } - File.rspec_verify - end - - it "should assign stub return values" do - mock = Mock.new('name', :message => :response) - mock.message.should == :response - end - - end - - describe "a mock message receiving a block" do - before(:each) do - @mock = mock("mock") - @calls = 0 - end - - def add_call - @calls = @calls + 1 - end - - it "should call the block after #should_receive" do - @mock.should_receive(:foo) { add_call } - - @mock.foo - - @calls.should == 1 - end - - it "should call the block after #should_receive after a similar stub" do - @mock.stub!(:foo).and_return(:bar) - @mock.should_receive(:foo) { add_call } - - @mock.foo - - @calls.should == 1 - end - - it "should call the block after #once" do - @mock.should_receive(:foo).once { add_call } - - @mock.foo - - @calls.should == 1 - end - - it "should call the block after #twice" do - @mock.should_receive(:foo).twice { add_call } - - @mock.foo - @mock.foo - - @calls.should == 2 - end - - it "should call the block after #times" do - @mock.should_receive(:foo).exactly(10).times { add_call } - - (1..10).each { @mock.foo } - - @calls.should == 10 - end - - it "should call the block after #any_number_of_times" do - @mock.should_receive(:foo).any_number_of_times { add_call } - - (1..7).each { @mock.foo } - - @calls.should == 7 - end - - it "should call the block after #ordered" do - @mock.should_receive(:foo).ordered { add_call } - @mock.should_receive(:bar).ordered { add_call } - - @mock.foo - @mock.bar - - @calls.should == 2 - end - end - - describe 'string representation generated by #to_s' do - it 'should not contain < because that might lead to invalid HTML in some situations' do - mock = mock("Dog") - valid_html_str = "#{mock}" - valid_html_str.should_not include('<') - end - end - - describe "mock created with no name" do - it "should not use a name in a failure message" do - mock = mock() - expect {mock.foo}.to raise_error(/Mock received/) - end - - it "should respond to initially stubbed methods" do - mock = mock(:foo => "woo", :bar => "car") - mock.foo.should == "woo" - mock.bar.should == "car" - end - end - - describe "==" do - it "sends '== self' to the comparison object" do - first = mock('first') - second = mock('second') - - first.should_receive(:==).with(second) - second == first - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/multiple_return_value_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/multiple_return_value_spec.rb deleted file mode 100644 index 08a6b066..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/multiple_return_value_spec.rb +++ /dev/null @@ -1,113 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "a Mock expectation with multiple return values and no specified count" do - before(:each) do - @mock = Mock.new("mock") - @return_values = ["1",2,Object.new] - @mock.should_receive(:message).and_return(@return_values[0],@return_values[1],@return_values[2]) - end - - it "should return values in order to consecutive calls" do - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - @mock.message.should == @return_values[2] - @mock.rspec_verify - end - - it "should complain when there are too few calls" do - third = Object.new - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it twice") - end - - it "should complain when there are too many calls" do - third = Object.new - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - @mock.message.should == @return_values[2] - @mock.message.should == @return_values[2] - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times") - end - end - - describe "a Mock expectation with multiple return values with a specified count equal to the number of values" do - before(:each) do - @mock = Mock.new("mock") - @return_values = ["1",2,Object.new] - @mock.should_receive(:message).exactly(3).times.and_return(@return_values[0],@return_values[1],@return_values[2]) - end - - it "should return values in order to consecutive calls" do - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - @mock.message.should == @return_values[2] - @mock.rspec_verify - end - - it "should complain when there are too few calls" do - third = Object.new - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it twice") - end - - it "should complain when there are too many calls" do - third = Object.new - @mock.message.should == @return_values[0] - @mock.message.should == @return_values[1] - @mock.message.should == @return_values[2] - @mock.message.should == @return_values[2] - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times") - end - end - - describe "a Mock expectation with multiple return values specifying at_least less than the number of values" do - before(:each) do - @mock = Mock.new("mock") - @mock.should_receive(:message).at_least(:twice).with(no_args).and_return(11, 22) - end - - it "should use last return value for subsequent calls" do - @mock.message.should equal(11) - @mock.message.should equal(22) - @mock.message.should equal(22) - @mock.rspec_verify - end - - it "should fail when called less than the specified number" do - @mock.message.should equal(11) - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (no args) twice, but received it once") - end - end - describe "a Mock expectation with multiple return values with a specified count larger than the number of values" do - before(:each) do - @mock = Mock.new("mock") - @mock.should_receive(:message).exactly(3).times.and_return(11, 22) - end - - it "should use last return value for subsequent calls" do - @mock.message.should equal(11) - @mock.message.should equal(22) - @mock.message.should equal(22) - @mock.rspec_verify - end - - it "should fail when called less than the specified number" do - @mock.message.should equal(11) - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it once") - end - - it "should fail when called greater than the specified number" do - @mock.message.should equal(11) - @mock.message.should equal(22) - @mock.message.should equal(22) - @mock.message.should equal(22) - lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times") - end - end - end -end - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/nil_expectation_warning_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/nil_expectation_warning_spec.rb deleted file mode 100644 index f8f72baf..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/nil_expectation_warning_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - - describe "an expectation set on nil" do - - it "should issue a warning with file and line number information" do - expected_warning = %r%An expectation of :foo was set on nil. Called from #{__FILE__}:#{__LINE__+3}(:in `block \(2 levels\) in ')?. Use allow_message_expectations_on_nil to disable warnings.% - Kernel.should_receive(:warn).with(expected_warning) - - nil.should_receive(:foo) - nil.foo - end - - it "should issue a warning when the expectation is negative" do - Kernel.should_receive(:warn) - - nil.should_not_receive(:foo) - end - - it "should not issue a warning when expectations are set to be allowed" do - allow_message_expectations_on_nil - Kernel.should_not_receive(:warn) - - nil.should_receive(:foo) - nil.should_not_receive(:bar) - nil.foo - end - - end - - describe "#allow_message_expectations_on_nil" do - - it "should not effect subsequent examples" do - example_group = Class.new(::Spec::Example::ExampleGroupDouble) - example_group.it("when called in one example that doesn't end up setting an expectation on nil") do - allow_message_expectations_on_nil - end - example_group.it("should not effect the next exapmle ran") do - Kernel.should_receive(:warn) - nil.should_receive(:foo) - nil.foo - end - - example_group.run(Spec::Runner.options).should be_true - - end - - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/null_object_mock_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/null_object_mock_spec.rb deleted file mode 100644 index 8af6b49d..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/null_object_mock_spec.rb +++ /dev/null @@ -1,54 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "a mock acting as a NullObject" do - before(:each) do - @mock = Mock.new("null_object", :null_object => true) - end - - it "should allow explicit expectation" do - @mock.should_receive(:something) - @mock.something - end - - it "should fail verification when explicit exception not met" do - lambda do - @mock.should_receive(:something) - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should ignore unexpected methods" do - @mock.random_call("a", "d", "c") - @mock.rspec_verify - end - - it "should expected message with different args first" do - @mock.should_receive(:message).with(:expected_arg) - @mock.message(:unexpected_arg) - @mock.message(:expected_arg) - end - - it "should expected message with different args second" do - @mock.should_receive(:message).with(:expected_arg) - @mock.message(:expected_arg) - @mock.message(:unexpected_arg) - end - end - - describe "#null_object?" do - it "should default to false" do - obj = mock('anything') - obj.should_not be_null_object - end - end - - describe "#as_null_object" do - it "should set the object to null_object" do - obj = mock('anything').as_null_object - obj.should be_null_object - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/once_counts_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/once_counts_spec.rb deleted file mode 100644 index 95129832..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/once_counts_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "OnceCounts" do - before(:each) do - @mock = mock("test mock") - end - - it "once should fail when called once with wrong args" do - @mock.should_receive(:random_call).once.with("a", "b", "c") - lambda do - @mock.random_call("d", "e", "f") - end.should raise_error(MockExpectationError) - @mock.rspec_reset - end - - it "once should fail when called twice" do - @mock.should_receive(:random_call).once - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "once should fail when not called" do - @mock.should_receive(:random_call).once - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "once should pass when called once" do - @mock.should_receive(:random_call).once - @mock.random_call - @mock.rspec_verify - end - - it "once should pass when called once with specified args" do - @mock.should_receive(:random_call).once.with("a", "b", "c") - @mock.random_call("a", "b", "c") - @mock.rspec_verify - end - - it "once should pass when called once with unspecified args" do - @mock.should_receive(:random_call).once - @mock.random_call("a", "b", "c") - @mock.rspec_verify - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/options_hash_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/options_hash_spec.rb deleted file mode 100644 index f8275782..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/options_hash_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "calling :should_receive with an options hash" do - it "should report the file and line submitted with :expected_from" do - begin - mock = Spec::Mocks::Mock.new("a mock") - mock.should_receive(:message, :expected_from => "/path/to/blah.ext:37") - mock.rspec_verify - rescue Exception => e - ensure - e.backtrace.to_s.should =~ /\/path\/to\/blah.ext:37/m - end - end - - it "should use the message supplied with :message" do - lambda { - m = Spec::Mocks::Mock.new("a mock") - m.should_receive(:message, :message => "recebi nada") - m.rspec_verify - }.should raise_error("recebi nada") - end - - it "should use the message supplied with :message after a similar stub" do - lambda { - m = Spec::Mocks::Mock.new("a mock") - m.stub!(:message) - m.should_receive(:message, :message => "from mock") - m.rspec_verify - }.should raise_error("from mock") - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_spec.rb deleted file mode 100644 index c19ecd30..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_spec.rb +++ /dev/null @@ -1,164 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "using a Partial Mock," do - before(:each) do - @object = Object.new - end - - it "should name the class in the failure message" do - @object.should_receive(:foo) - lambda do - @object.rspec_verify - end.should raise_error(Spec::Mocks::MockExpectationError, / expected/) - end - - it "should name the class in the failure message when expectation is on class" do - Object.should_receive(:foo) - lambda do - Object.rspec_verify - end.should raise_error(Spec::Mocks::MockExpectationError, //) - end - - it "should not conflict with @options in the object" do - @object.instance_eval { @options = Object.new } - @object.should_receive(:blah) - @object.blah - end - - it "should_not_receive should mock out the method" do - @object.should_not_receive(:fuhbar) - lambda do - @object.fuhbar - end.should raise_error(MockExpectationError, / expected :fuhbar with \(no args\) 0 times/) - end - - it "should_not_receive should return a negative message expectation" do - @object.should_not_receive(:foobar).should be_kind_of(NegativeMessageExpectation) - end - - it "should_receive should mock out the method" do - @object.should_receive(:foobar).with(:test_param).and_return(1) - @object.foobar(:test_param).should equal(1) - end - - it "should_receive should handle a hash" do - @object.should_receive(:foobar).with(:key => "value").and_return(1) - @object.foobar(:key => "value").should equal(1) - end - - it "should_receive should handle an inner hash" do - hash = {:a => {:key => "value"}} - @object.should_receive(:foobar).with(:key => "value").and_return(1) - @object.foobar(hash[:a]).should equal(1) - end - - it "should_receive should return a message expectation" do - @object.should_receive(:foobar).should be_kind_of(MessageExpectation) - @object.foobar - end - - it "should_receive should verify method was called" do - @object.should_receive(:foobar).with(:test_param).and_return(1) - lambda do - @object.rspec_verify - end.should raise_error(Spec::Mocks::MockExpectationError) - end - - it "should_receive should also take a String argument" do - @object.should_receive('foobar') - @object.foobar - end - - it "should_not_receive should also take a String argument" do - @object.should_not_receive('foobar') - lambda do - @object.foobar - end.should raise_error(Spec::Mocks::MockExpectationError) - end - - it "should use report nil in the error message" do - allow_message_expectations_on_nil - - @this_will_resolve_to_nil.should_receive(:foobar) - lambda do - @this_will_resolve_to_nil.rspec_verify - end.should raise_error(Spec::Mocks::MockExpectationError, /nil expected :foobar with/) - end - end - - describe "Partially mocking an object that defines ==, after another mock has been defined" do - before(:each) do - stub("existing mock", :foo => :foo) - end - - class PartiallyMockedEquals - attr_reader :val - def initialize(val) - @val = val - end - - def ==(other) - @val == other.val - end - end - - it "should not raise an error when stubbing the object" do - o = PartiallyMockedEquals.new :foo - lambda { o.stub!(:bar) }.should_not raise_error(NoMethodError) - end - end - - describe "Method visibility when using partial mocks" do - class MockableClass - def public_method - private_method - protected_method - end - protected - def protected_method; end - private - def private_method; end - end - - before(:each) do - @object = MockableClass.new - end - - it 'should keep public methods public' do - @object.should_receive(:public_method) - with_ruby('1.9') do - @object.public_methods.should include(:public_method) - end - with_ruby('1.8') do - @object.public_methods.should include('public_method') - end - @object.public_method - end - - it 'should keep private methods private' do - @object.should_receive(:private_method) - with_ruby('1.9') do - @object.private_methods.should include(:private_method) - end - with_ruby('1.8') do - @object.private_methods.should include('private_method') - end - @object.public_method - end - - it 'should keep protected methods protected' do - @object.should_receive(:protected_method) - with_ruby('1.9') do - @object.protected_methods.should include(:protected_method) - end - with_ruby('1.8') do - @object.protected_methods.should include('protected_method') - end - @object.public_method - end - - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb deleted file mode 100644 index a69aa6ac..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +++ /dev/null @@ -1,66 +0,0 @@ -require 'spec_helper' - -module Spec -module Mocks -describe "PartialMockUsingMocksDirectly" do - before(:each) do - - klass=Class.new - klass.class_eval do - def existing_method - :original_value - end - end - @obj = klass.new - - end - - # See http://rubyforge.org/tracker/index.php?func=detail&aid=10263&group_id=797&atid=3149 - # specify "should clear expectations on verify" do - # @obj.should_receive(:msg) - # @obj.msg - # @obj.rspec_verify - # lambda do - # @obj.msg - # end.should raise_error(NoMethodError) - # - # end - it "should fail when expected message is not received" do - @obj.should_receive(:msg) - lambda do - @obj.rspec_verify - end.should raise_error(MockExpectationError) - - end - it "should fail when message is received with incorrect args" do - @obj.should_receive(:msg).with(:correct_arg) - lambda do - @obj.msg(:incorrect_arg) - end.should raise_error(MockExpectationError) - @obj.msg(:correct_arg) - - end - it "should pass when expected message is received" do - @obj.should_receive(:msg) - @obj.msg - @obj.rspec_verify - - end - it "should pass when message is received with correct args" do - @obj.should_receive(:msg).with(:correct_arg) - @obj.msg(:correct_arg) - @obj.rspec_verify - - end - it "should revert to original method if existed" do - @obj.existing_method.should equal(:original_value) - @obj.should_receive(:existing_method).and_return(:mock_value) - @obj.existing_method.should equal(:mock_value) - @obj.rspec_verify - @obj.existing_method.should equal(:original_value) - - end - -end -end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/passing_argument_matchers_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/passing_argument_matchers_spec.rb deleted file mode 100644 index a364df0a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/passing_argument_matchers_spec.rb +++ /dev/null @@ -1,145 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "mock argument matchers", :shared => true do - before(:each) do - @mock = Mock.new("test mock") - Kernel.stub!(:warn) - end - - after(:each) do - @mock.rspec_verify - end - end - - describe Methods, "handling argument matchers" do - it_should_behave_like "mock argument matchers" - - it "should accept true as boolean()" do - @mock.should_receive(:random_call).with(boolean()) - @mock.random_call(true) - end - - it "should accept false as boolean()" do - @mock.should_receive(:random_call).with(boolean()) - @mock.random_call(false) - end - - it "should accept fixnum as kind_of(Numeric)" do - @mock.should_receive(:random_call).with(kind_of(Numeric)) - @mock.random_call(1) - end - - it "should accept float as an_instance_of(Numeric)" do - @mock.should_receive(:random_call).with(kind_of(Numeric)) - @mock.random_call(1.5) - end - - it "accepts fixnum as instance_of(Fixnum)" do - @mock.should_receive(:random_call).with(instance_of(Fixnum)) - @mock.random_call(1) - end - - it "should NOT accept fixnum as instance_of(Numeric)" do - @mock.should_not_receive(:random_call).with(instance_of(Numeric)) - @mock.random_call(1) - end - - it "should NOT accept float as instance_of(Numeric)" do - @mock.should_not_receive(:random_call).with(instance_of(Numeric)) - @mock.random_call(1.5) - end - - it "should accept string as anything()" do - @mock.should_receive(:random_call).with("a", anything(), "c") - @mock.random_call("a", "whatever", "c") - end - - it "should match duck type with one method" do - @mock.should_receive(:random_call).with(duck_type(:length)) - @mock.random_call([]) - end - - it "should match duck type with two methods" do - @mock.should_receive(:random_call).with(duck_type(:abs, :div)) - @mock.random_call(1) - end - - it "should match no args against any_args()" do - @mock.should_receive(:random_call).with(any_args) - @mock.random_call() - end - - it "should match one arg against any_args()" do - @mock.should_receive(:random_call).with(any_args) - @mock.random_call("a string") - end - - it "should match no args against no_args()" do - @mock.should_receive(:random_call).with(no_args) - @mock.random_call() - end - - it "should match hash with hash_including same hash" do - @mock.should_receive(:random_call).with(hash_including(:a => 1)) - @mock.random_call(:a => 1) - end - - end - - describe Methods, "handling block matchers" do - it_should_behave_like "mock argument matchers" - - it "should match arguments against RSpec expectations" do - @mock.should_receive(:random_call).with {|arg1, arg2, arr, *rest| - arg1.should == 5 - arg2.should have_at_least(3).characters - arg2.should have_at_most(10).characters - arr.map {|i| i * 2}.should == [2,4,6] - rest.should == [:fee, "fi", 4] - } - @mock.random_call 5, "hello", [1,2,3], :fee, "fi", 4 - end - end - - describe Methods, "handling non-matcher arguments" do - - before(:each) do - @mock = Mock.new("test mock") - end - - it "should match non special symbol (can be removed when deprecated symbols are removed)" do - @mock.should_receive(:random_call).with(:some_symbol) - @mock.random_call(:some_symbol) - end - - it "should match string against regexp" do - @mock.should_receive(:random_call).with(/bcd/) - @mock.random_call("abcde") - end - - it "should match regexp against regexp" do - @mock.should_receive(:random_call).with(/bcd/) - @mock.random_call(/bcd/) - end - - it "should match against a hash submitted and received by value" do - @mock.should_receive(:random_call).with(:a => "a", :b => "b") - @mock.random_call(:a => "a", :b => "b") - end - - it "should match against a hash submitted by reference and received by value" do - opts = {:a => "a", :b => "b"} - @mock.should_receive(:random_call).with(opts) - @mock.random_call(:a => "a", :b => "b") - end - - it "should match against a hash submitted by value and received by reference" do - opts = {:a => "a", :b => "b"} - @mock.should_receive(:random_call).with(:a => "a", :b => "b") - @mock.random_call(opts) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/precise_counts_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/precise_counts_spec.rb deleted file mode 100644 index 5b64ef28..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/precise_counts_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "PreciseCounts" do - before(:each) do - @mock = mock("test mock") - end - - it "should fail when exactly n times method is called less than n times" do - @mock.should_receive(:random_call).exactly(3).times - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should fail when exactly n times method is never called" do - @mock.should_receive(:random_call).exactly(3).times - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "should pass if exactly n times method is called exactly n times" do - @mock.should_receive(:random_call).exactly(3).times - @mock.random_call - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "should pass multiple calls with different args and counts" do - @mock.should_receive(:random_call).twice.with(1) - @mock.should_receive(:random_call).once.with(2) - @mock.random_call(1) - @mock.random_call(2) - @mock.random_call(1) - @mock.rspec_verify - end - - it "should pass mutiple calls with different args" do - @mock.should_receive(:random_call).once.with(1) - @mock.should_receive(:random_call).once.with(2) - @mock.random_call(1) - @mock.random_call(2) - @mock.rspec_verify - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/record_messages_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/record_messages_spec.rb deleted file mode 100644 index bed2fbff..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/record_messages_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "a mock" do - before(:each) do - @mock = mock("mock", :null_object => true) - end - it "should answer false for received_message? when no messages received" do - @mock.received_message?(:message).should be_false - end - it "should answer true for received_message? when message received" do - @mock.message - @mock.received_message?(:message).should be_true - end - it "should answer true for received_message? when message received with correct args" do - @mock.message 1,2,3 - @mock.received_message?(:message, 1,2,3).should be_true - end - it "should answer false for received_message? when message received with incorrect args" do - @mock.message 1,2,3 - @mock.received_message?(:message, 1,2).should be_false - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_chain_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_chain_spec.rb deleted file mode 100644 index 3536e176..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_chain_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "A chained method stub" do - before(:each) do - @subject = Object.new - end - - it "returns expected value from chaining only one method call" do - @subject.stub_chain(:msg1).and_return(:return_value) - @subject.msg1.should equal(:return_value) - end - - it "returns expected value from chaining two method calls" do - @subject.stub_chain(:msg1, :msg2).and_return(:return_value) - @subject.msg1.msg2.should equal(:return_value) - end - - it "returns expected value from chaining four method calls" do - @subject.stub_chain(:msg1, :msg2, :msg3, :msg4).and_return(:return_value) - @subject.msg1.msg2.msg3.msg4.should equal(:return_value) - end - - it "returns expected value from two chains with shared messages at the end" do - @subject.stub_chain(:msg1, :msg2, :msg3, :msg4).and_return(:first) - @subject.stub_chain(:msg5, :msg2, :msg3, :msg4).and_return(:second) - - @subject.msg1.msg2.msg3.msg4.should equal(:first) - @subject.msg5.msg2.msg3.msg4.should equal(:second) - end - - it "returns expected value from two chains with shared messages at the beginning" do - @subject.stub_chain(:msg1, :msg2, :msg3, :msg4).and_return(:first) - @subject.stub_chain(:msg1, :msg2, :msg3, :msg5).and_return(:second) - - @subject.msg1.msg2.msg3.msg4.should equal(:first) - @subject.msg1.msg2.msg3.msg5.should equal(:second) - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_implementation_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_implementation_spec.rb deleted file mode 100644 index 1487277f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_implementation_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "stub implementation" do - context "with no args" do - it "execs the block when called" do - obj = stub() - obj.stub(:foo) { :bar } - obj.foo.should == :bar - end - end - - context "with one arg" do - it "execs the block with that arg when called" do - obj = stub() - obj.stub(:foo) {|given| given} - obj.foo(:bar).should == :bar - end - end - - context "with variable args" do - it "execs the block when called" do - obj = stub() - obj.stub(:foo) {|*given| given.first} - obj.foo(:bar).should == :bar - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_spec.rb deleted file mode 100644 index e0b7b264..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stub_spec.rb +++ /dev/null @@ -1,203 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "A method stub" do - before(:each) do - @class = Class.new do - def self.existing_class_method - :original_value - end - - def existing_instance_method - :original_value - end - end - @instance = @class.new - @stub = Object.new - end - - [:stub!, :stub].each do |method| - context "using #{method}" do - it "should return expected value when expected message is received" do - @instance.send(method, :msg).and_return(:return_value) - @instance.msg.should equal(:return_value) - @instance.rspec_verify - end - end - end - - it "should ignore when expected message is received" do - @instance.stub!(:msg) - @instance.msg - lambda do - @instance.rspec_verify - end.should_not raise_error - end - - it "should ignore when message is received with args" do - @instance.stub!(:msg) - @instance.msg(:an_arg) - lambda do - @instance.rspec_verify - end.should_not raise_error - end - - it "should ignore when expected message is not received" do - @instance.stub!(:msg) - lambda do - @instance.rspec_verify - end.should_not raise_error - end - - it "should handle multiple stubbed methods" do - @instance.stub!(:msg1 => 1, :msg2 => 2) - @instance.msg1.should == 1 - @instance.msg2.should == 2 - end - - it "should clear itself when verified" do - @instance.stub!(:this_should_go).and_return(:blah) - @instance.this_should_go.should == :blah - @instance.rspec_verify - lambda do - @instance.this_should_go - end.should raise_error(NameError) - end - - it "should return values in order to consecutive calls" do - return_values = ["1",2,Object.new] - @instance.stub!(:msg).and_return(return_values[0],return_values[1],return_values[2]) - @instance.msg.should == return_values[0] - @instance.msg.should == return_values[1] - @instance.msg.should == return_values[2] - end - - it "should keep returning last value in consecutive calls" do - return_values = ["1",2,Object.new] - @instance.stub!(:msg).and_return(return_values[0],return_values[1],return_values[2]) - @instance.msg.should == return_values[0] - @instance.msg.should == return_values[1] - @instance.msg.should == return_values[2] - @instance.msg.should == return_values[2] - @instance.msg.should == return_values[2] - end - - it "should revert to original instance method if there is one" do - @instance.existing_instance_method.should equal(:original_value) - @instance.stub!(:existing_instance_method).and_return(:mock_value) - @instance.existing_instance_method.should equal(:mock_value) - @instance.rspec_verify - @instance.existing_instance_method.should equal(:original_value) - end - - it "should revert to original class method if there is one" do - @class.existing_class_method.should equal(:original_value) - @class.stub!(:existing_class_method).and_return(:mock_value) - @class.existing_class_method.should equal(:mock_value) - @class.rspec_verify - @class.existing_class_method.should equal(:original_value) - end - - it "should yield a specified object" do - @instance.stub!(:method_that_yields).and_yield(:yielded_obj) - current_value = :value_before - @instance.method_that_yields {|val| current_value = val} - current_value.should == :yielded_obj - @instance.rspec_verify - end - - it "should yield multiple times with multiple calls to and_yield" do - @instance.stub!(:method_that_yields_multiple_times).and_yield(:yielded_value). - and_yield(:another_value) - current_value = [] - @instance.method_that_yields_multiple_times {|val| current_value << val} - current_value.should == [:yielded_value, :another_value] - @instance.rspec_verify - end - - it "should yield a specified object and return another specified object" do - yielded_obj = mock("my mock") - yielded_obj.should_receive(:foo).with(:bar) - @instance.stub!(:method_that_yields_and_returns).and_yield(yielded_obj).and_return(:baz) - @instance.method_that_yields_and_returns { |o| o.foo :bar }.should == :baz - end - - it "should throw when told to" do - @mock.stub!(:something).and_throw(:up) - lambda do - @mock.something - end.should throw_symbol(:up) - end - - it "should override a pre-existing stub" do - @stub.stub!(:existing_instance_method).and_return(:updated_stub_value) - @stub.existing_instance_method.should == :updated_stub_value - end - - it "should limit " do - @stub.stub!(:foo).with("bar") - @stub.should_receive(:foo).with("baz") - @stub.foo("bar") - @stub.foo("baz") - end - - it "calculates return value by executing block passed to #and_return" do - @mock.stub!(:something).with("a","b","c").and_return { |a,b,c| c+b+a } - @mock.something("a","b","c").should == "cba" - @mock.rspec_verify - end - end - - describe "A method stub with args" do - before(:each) do - @stub = Object.new - @stub.stub!(:foo).with("bar") - end - - it "should not complain if not called" do - end - - it "should not complain if called with arg" do - @stub.foo("bar") - end - - it "should complain if called with no arg" do - lambda do - @stub.foo - end.should raise_error - end - - it "should complain if called with other arg" do - lambda do - @stub.foo("other") - end.should raise_error - end - - it "should not complain if also mocked w/ different args" do - @stub.should_receive(:foo).with("baz") - @stub.foo("bar") - @stub.foo("baz") - end - - it "should complain if also mocked w/ different args AND called w/ a 3rd set of args" do - @stub.should_receive(:foo).with("baz") - @stub.foo("bar") - @stub.foo("baz") - lambda do - @stub.foo("other") - end.should raise_error - end - - it "should support options" do - @stub.stub!(:foo, :expected_from => "bar") - end - - it "should use 'Stub' in the failure message" do - stub = stub('name') - expect {stub.foo}.to raise_error(/Stub "name" received/) - end - end - - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stubbed_message_expectations_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stubbed_message_expectations_spec.rb deleted file mode 100644 index 03c8fecd..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/stubbed_message_expectations_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "Example with stubbed and then called message" do - it "fails if the message is expected and then subsequently not called again" do - mock_obj = mock("mock", :msg => nil) - mock_obj.msg - mock_obj.should_receive(:msg) - lambda { mock_obj.rspec_verify }.should raise_error(Spec::Mocks::MockExpectationError) - end - - it "outputs arguments of all similar calls" do - m = mock('mock', :foo => true) - m.should_receive(:foo).with('first') - m.foo('second') - m.foo('third') - lambda do - m.rspec_verify - end.should raise_error(%Q|Mock "mock" received :foo with unexpected arguments\n expected: ("first")\n got: (["second"], ["third"])|) - m.rspec_reset - end - end - - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/twice_counts_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/twice_counts_spec.rb deleted file mode 100644 index 4538eb8f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/twice_counts_spec.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe "TwiceCounts" do - before(:each) do - @mock = mock("test mock") - end - - it "twice should fail when call count is higher than expected" do - @mock.should_receive(:random_call).twice - @mock.random_call - @mock.random_call - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "twice should fail when call count is lower than expected" do - @mock.should_receive(:random_call).twice - @mock.random_call - lambda do - @mock.rspec_verify - end.should raise_error(MockExpectationError) - end - - it "twice should fail when called twice with wrong args on the first call" do - @mock.should_receive(:random_call).twice.with("1", 1) - lambda do - @mock.random_call(1, "1") - end.should raise_error(MockExpectationError) - @mock.rspec_reset - end - - it "twice should fail when called twice with wrong args on the second call" do - @mock.should_receive(:random_call).twice.with("1", 1) - @mock.random_call("1", 1) - lambda do - @mock.random_call(1, "1") - end.should raise_error(MockExpectationError) - @mock.rspec_reset - end - - it "twice should pass when called twice" do - @mock.should_receive(:random_call).twice - @mock.random_call - @mock.random_call - @mock.rspec_verify - end - - it "twice should pass when called twice with specified args" do - @mock.should_receive(:random_call).twice.with("1", 1) - @mock.random_call("1", 1) - @mock.random_call("1", 1) - @mock.rspec_verify - end - - it "twice should pass when called twice with unspecified args" do - @mock.should_receive(:random_call).twice - @mock.random_call("1") - @mock.random_call(1) - @mock.rspec_verify - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/unstub_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/unstub_spec.rb deleted file mode 100644 index 89e5ac38..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/mocks/unstub_spec.rb +++ /dev/null @@ -1,127 +0,0 @@ -require 'spec_helper' - -module Spec - module Mocks - describe Mock do - context "unstubbing a mock object with a stub" do - it "should remove the stub" do - a_mock = mock 'an object', :foo => :bar - - a_mock.unstub! :foo - a_mock.should_not respond_to(:foo) - end - end - - context "unstubbing a real object with a stub" do - before do - @obj = Object.new - end - - it "should raise a NoMethodError if the message is called after unstubbing" do - @obj.stub!(:foo).and_return :bar - @obj.unstub!(:foo) - - lambda { - @obj.foo - }.should raise_error(NoMethodError) - end - - it "should only clear the stub specified" do - @obj.stub!(:foo).and_return :bar - @obj.stub!(:other).and_return :baz - - @obj.unstub!(:foo) - - @obj.other.should == :baz - end - - it "should no longer respond_to? the method" do - @obj.stub!(:foo).and_return :bar - @obj.unstub!(:foo) - - @obj.should_not respond_to(:foo) - end - - it "should unstub using a string (should convert the string to a symbol)" do - @obj.stub!(:foo) - - @obj.unstub!("foo") - - @obj.should_not respond_to(:foo) - end - - it "should restore a previous method definition" do - def @obj.foo - :a_result - end - - @obj.stub!(:foo).and_return :stubbed_result - @obj.unstub!(:foo) - - @obj.foo.should == :a_result - end - - it "should have unstub as an alias of unstub!" do - @obj.stub!(:foo).and_return :bar - - @obj.unstub(:foo) - - lambda { - @obj.foo - }.should raise_error(NoMethodError) - end - - it "should raise a MockExpectationError if it is not stubbed" do - lambda { - @obj.unstub!(:foo) - }.should raise_error(MockExpectationError, "The method `foo` was not stubbed or was already unstubbed") - end - - it "should raise a MockExpectationError if it was already unstubbed" do - @obj.stub!(:foo) - @obj.unstub!(:foo) - - lambda { - @obj.unstub!(:foo) - }.should raise_error(MockExpectationError, "The method `foo` was not stubbed or was already unstubbed") - end - - it "should use the correct message name in the error" do - @obj.stub!(:bar) - @obj.unstub!(:bar) - - lambda { - @obj.unstub!(:bar) - }.should raise_error(MockExpectationError, "The method `bar` was not stubbed or was already unstubbed") - end - - it "should raise a MockExpectationError if the method is defined, but not stubbed" do - def @obj.meth; end - - lambda { - @obj.unstub!(:meth) - }.should raise_error(MockExpectationError) - end - - it "should be able to restub a after unstubbing" do - @obj.stub!(:foo).and_return :bar - - @obj.unstub!(:foo) - - @obj.stub!(:foo).and_return :baz - - @obj.foo.should == :baz - end - - it "should remove only the first stub if multiple stubs have been defined" do - @obj.stub!(:foo).and_return :first - @obj.stub!(:foo).and_return :second - - @obj.unstub!(:foo) - - @obj.foo.should == :first - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/package/bin_spec_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/package/bin_spec_spec.rb deleted file mode 100644 index 6628fad7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/package/bin_spec_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'spec_helper' -require 'ruby_forker' - -describe "The bin/spec script" do - include RubyForker - - it "should have no warnings" do - output = ruby "-w -Ilib bin/spec --help" - output.should_not =~ /warning/n - end - - it "should show the help w/ no args" do - output = ruby "-w -Ilib bin/spec" - output.should =~ /^Usage: spec/ - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/rake/spectask_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/rake/spectask_spec.rb deleted file mode 100644 index ea834bad..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/rake/spectask_spec.rb +++ /dev/null @@ -1,150 +0,0 @@ -require 'spec_helper' -require 'spec/rake/spectask' - -module Spec - module Rake - - class MockTask - class << self - attr_accessor :last_instance, :last_cmd - end - - def self.tasks - @tasks ||= {} - end - - def self.reset_tasks - @tasks = {} - end - - def self.task(name) - tasks[name] - end - - def self.register_task(name, block) - tasks[name] = block - end - - def initialize(name, &block) - MockTask.register_task(name, block) - MockTask.last_instance = block - end - - def self.create_task(name, &block) - new(name, &block) - end - end - - class SpecTask - def task(name, &block) - MockTask.create_task(name, &block) - end - - def system(cmd) - MockTask.last_cmd = cmd - true - end - - def default_ruby_path - RUBY - end - end - - describe SpecTask do - - before(:each) do - MockTask.reset_tasks - end - - it "should execute rake's ruby path by default" do - task = SpecTask.new - MockTask.last_instance.call - MockTask.last_cmd.should match(/^#{task.default_ruby_path} /) - end - - it "should execute the command with system if ruby_cmd is specified" do - task = SpecTask.new {|t| t.ruby_cmd = "path_to_multiruby"} - task.should_receive(:system).and_return(true) - MockTask.last_instance.call - end - - it "should execute the ruby_cmd path if specified" do - SpecTask.new {|t| t.ruby_cmd = "path_to_multiruby"} - MockTask.last_instance.call - MockTask.last_cmd.should match(/^path_to_multiruby /) - end - - it "should produce a deprecation warning if the out option is used" do - SpecTask.new {|t| t.out = "somewhere_over_the_rainbow"} - STDERR.should_receive(:puts).with("The Spec::Rake::SpecTask#out attribute is DEPRECATED and will be removed in a future version. Use --format FORMAT:WHERE instead.") - MockTask.last_instance.call - end - - it "should produce an error if failure_message is set and the command fails" do - task = SpecTask.new {|t| t.failure_message = "oops"; t.fail_on_error = false} - STDERR.should_receive(:puts).with("oops") - task.stub(:system).and_return(false) - MockTask.last_instance.call - end - - it "should raise if fail_on_error is set and the command fails" do - task = SpecTask.new - task.stub(:system).and_return(false) - lambda {MockTask.last_instance.call}.should raise_error - end - - it "should not raise if fail_on_error is not set and the command fails" do - task = SpecTask.new {|t| t.fail_on_error = false} - task.stub(:system).and_return(false) - lambda {MockTask.last_instance.call}.should_not raise_error - end - - context "with ENV['SPEC'] set" do - before(:each) do - @orig_env_spec = ENV['SPEC'] - ENV['SPEC'] = 'foo.rb' - end - after(:each) do - ENV['SPEC'] = @orig_env_spec - end - it "should use the provided file list" do - task = SpecTask.new - task.spec_file_list.should == ["foo.rb"] - end - end - - context "with the rcov option" do - - it "should create a clobber_rcov task" do - MockTask.stub!(:create_task) - MockTask.should_receive(:create_task).with(:clobber_rcov) - SpecTask.new(:rcov) {|t| t.rcov = true} - end - - it "should setup the clobber_rcov task to remove the rcov directory" do - task = SpecTask.new(:rcov) {|t| t.rcov = true; t.rcov_dir = "path_to_rcov_directory"} - task.should_receive(:rm_r).with("path_to_rcov_directory") - MockTask.task(:clobber_rcov).call - end - - it "should make the clobber task depend on clobber_rcov" do - MockTask.stub!(:create_task) - MockTask.should_receive(:create_task).with(:clobber => [:clobber_rcov]) - SpecTask.new(:rcov) {|t| t.rcov = true} - end - - it "should make the rcov task depend on clobber_rcov" do - MockTask.stub!(:create_task) - MockTask.should_receive(:create_task).with(:rcov => :clobber_rcov) - SpecTask.new(:rcov) {|t| t.rcov = true} - end - - it "creates an rcov options list" do - MockTask.stub!(:create_task) - task = SpecTask.new(:rcov) {|t| t.rcov = true, t.rcov_opts = ['a','b']} - task.rcov_option_list.should == "a b" - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/class_and_argument_parser_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/class_and_argument_parser_spec.rb deleted file mode 100644 index 1168818f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/class_and_argument_parser_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe ClassAndArgumentsParser, ".parse" do - - it "should use a single : to separate class names from arguments" do - ClassAndArgumentsParser.parse('Foo').should == ['Foo', nil] - ClassAndArgumentsParser.parse('Foo:arg').should == ['Foo', 'arg'] - ClassAndArgumentsParser.parse('Foo::Bar::Zap:arg').should == ['Foo::Bar::Zap', 'arg'] - ClassAndArgumentsParser.parse('Foo:arg1,arg2').should == ['Foo', 'arg1,arg2'] - ClassAndArgumentsParser.parse('Foo::Bar::Zap:arg1,arg2').should == ['Foo::Bar::Zap', 'arg1,arg2'] - ClassAndArgumentsParser.parse('Foo::Bar::Zap:drb://foo,drb://bar').should == ['Foo::Bar::Zap', 'drb://foo,drb://bar'] - end - - it "should raise an error when passed an empty string" do - lambda do - ClassAndArgumentsParser.parse('') - end.should raise_error("Couldn't parse \"\"") - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/command_line_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/command_line_spec.rb deleted file mode 100644 index c22b3066..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/command_line_spec.rb +++ /dev/null @@ -1,141 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe CommandLine, ".run" do - with_sandboxed_options do - attr_reader :err, :out - before do - @err = options.error_stream - @out = options.output_stream - end - - it "should run directory" do - file = File.dirname(__FILE__) + '/../../../examples/passing' - run_with(OptionParser.parse([file,"-p","**/*_spec.rb,**/*_example.rb"], @err, @out)) - - @out.rewind - @out.read.should =~ /\d+ examples, 0 failures, 3 pending/n - end - - it "should run file" do - file = File.dirname(__FILE__) + '/../../../examples/failing/predicate_example.rb' - run_with(OptionParser.parse([file], @err, @out)) - - @out.rewind - @out.read.should =~ /3 examples, 2 failures/n - end - - it "should raise when file does not exist" do - file = File.dirname(__FILE__) + '/doesntexist' - - lambda { - Spec::Runner::CommandLine.run(OptionParser.parse([file], @err, @out)) - }.should raise_error - end - - it "should return true when in --generate-options mode" do - # NOTE - this used to say /dev/null but jruby hangs on that for some reason - Spec::Runner::CommandLine.run( - OptionParser.parse(['--generate-options', '/tmp/foo'], @err, @out) - ).should be_true - end - - it "should dump even if Interrupt exception is occurred" do - example_group = Class.new(::Spec::Example::ExampleGroup) do - describe("example_group") - it "no error" do - end - - it "should interrupt" do - raise Interrupt, "I'm interrupting" - end - end - - options = ::Spec::Runner::Options.new(@err, @out) - ::Spec::Runner::Options.should_receive(:new).with(@err, @out).and_return(options) - options.reporter.should_receive(:dump) - options.add_example_group(example_group) - - Spec::Runner::CommandLine.run(OptionParser.parse([], @err, @out)) - end - - it "should heckle when options have heckle_runner" do - example_group = Class.new(::Spec::Example::ExampleGroup).describe("example_group") do - it "no error" do - end - end - options = ::Spec::Runner::Options.new(@err, @out) - ::Spec::Runner::Options.should_receive(:new).with(@err, @out).and_return(options) - options.add_example_group example_group - - heckle_runner = mock("heckle_runner") - heckle_runner.should_receive(:heckle_with) - $rspec_mocks.__send__(:mocks).delete(heckle_runner) - - options.heckle_runner = heckle_runner - options.add_example_group(example_group) - - Spec::Runner::CommandLine.run(OptionParser.parse([], @err, @out)) - heckle_runner.rspec_verify - end - - it "should run examples backwards if options.reverse is true" do - options = ::Spec::Runner::Options.new(@err, @out) - ::Spec::Runner::Options.should_receive(:new).with(@err, @out).and_return(options) - options.reverse = true - - b1 = Class.new(Spec::Example::ExampleGroup) - b2 = Class.new(Spec::Example::ExampleGroup) - - b2.should_receive(:run).ordered - b1.should_receive(:run).ordered - - options.add_example_group(b1) - options.add_example_group(b2) - - Spec::Runner::CommandLine.run(OptionParser.parse([], @err, @out)) - end - - it "should pass its ExampleGroup to the reporter" do - example_group = describe("example_group") do - it "should" do - end - end - options = ::Spec::Runner::Options.new(@err, @out) - options.add_example_group(example_group) - - ::Spec::Runner::Options.should_receive(:new).with(@err, @out).and_return(options) - options.reporter.should_receive(:add_example_group).with(Spec::Example::ExampleGroupProxy.new(example_group)) - - Spec::Runner::CommandLine.run(OptionParser.parse([], @err, @out)) - end - - it "runs only selected Examples when options.examples is set" do - options = ::Spec::Runner::Options.new(@err, @out) - ::Spec::Runner::Options.should_receive(:new).with(@err, @out).and_return(options) - - options.examples << "example group expected example" - expected_example_was_run = false - unexpected_example_was_run = false - example_group = describe("example group") do - it "expected example" do - expected_example_was_run = true - end - it "unexpected example" do - unexpected_example_was_run = true - end - end - - options.reporter.should_receive(:add_example_group).with(Spec::Example::ExampleGroupProxy.new(example_group)) - - options.add_example_group example_group - run_with(options) - - expected_example_was_run.should be_true - unexpected_example_was_run.should be_false - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/configuration_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/configuration_spec.rb deleted file mode 100644 index ea545d64..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/configuration_spec.rb +++ /dev/null @@ -1,320 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe Configuration do - with_sandboxed_options do - with_sandboxed_config do - - describe "#mock_with" do - it "should default mock framework to rspec" do - config.mock_framework.should =~ /^spec\/adapters\/mock_frameworks\/rspec$/ - end - - it "should set rspec mocking explicitly" do - config.mock_with(:rspec) - config.mock_framework.should =~ /^spec\/adapters\/mock_frameworks\/rspec$/ - end - - it "should set mocha" do - config.mock_with(:mocha) - config.mock_framework.should =~ /^spec\/adapters\/mock_frameworks\/mocha$/ - end - - it "should set flexmock" do - config.mock_with(:flexmock) - config.mock_framework.should =~ /^spec\/adapters\/mock_frameworks\/flexmock$/ - end - - it "should set rr" do - config.mock_with(:rr) - config.mock_framework.should =~ /^spec\/adapters\/mock_frameworks\/rr$/ - end - - it "should set an arbitrary adapter module" do - adapter = Module.new - config.mock_with(adapter) - config.mock_framework.should == adapter - end - end - - describe "#include" do - - before(:each) do - @example_group_class = Class.new(::Spec::Example::ExampleGroupDouble) {} - Spec::Example::ExampleGroupFactory.register(:foobar, @example_group_class) - end - - it "should include the submitted module in ExampleGroup subclasses" do - mod = Module.new - config.include mod - Class.new(@example_group_class).included_modules.should include(mod) - end - - it "should scope modules to be included for a specific type" do - mod = Module.new - config.include mod, :type => :foobar - Class.new(@example_group_class).included_modules.should include(mod) - end - - it "should not include modules in a type they are not intended for" do - mod = Module.new - @other_example_group_class = Class.new(::Spec::Example::ExampleGroupDouble) - Spec::Example::ExampleGroupFactory.register(:baz, @other_example_group_class) - - config.include mod, :type => :foobar - - Class.new(@other_example_group_class).included_modules.should_not include(mod) - end - - it "accepts an Array of types" do - mod = Module.new - @other_example_group_class = Class.new(::Spec::Example::ExampleGroupDouble) - Spec::Example::ExampleGroupFactory.register(:baz, @other_example_group_class) - - config.include mod, :type => [:foobar, :baz] - - Class.new(@example_group_class).included_modules.should include(mod) - Class.new(@other_example_group_class).included_modules.should include(mod) - end - - end - - describe "#extend" do - - before(:each) do - @example_group_class = Class.new(::Spec::Example::ExampleGroupDouble) {} - Spec::Example::ExampleGroupFactory.register(:foobar, @example_group_class) - end - - it "should extend all groups" do - mod = Module.new - ExampleGroup.should_receive(:extend).with(mod) - Spec::Runner.configuration.extend mod - end - - it "should extend specified groups" do - mod = Module.new - @example_group_class.should_receive(:extend).with(mod) - Spec::Runner.configuration.extend mod, :type => :foobar - end - - it "should not extend non-specified groups" do - @other_example_group_class = Class.new(::Spec::Example::ExampleGroupDouble) - Spec::Example::ExampleGroupFactory.register(:baz, @other_example_group_class) - - mod = Module.new - @other_example_group_class.should_not_receive(:extend) - - Spec::Runner.configuration.extend mod, :type => :foobar - end - - end - end - - describe "ordering methods: " do - - before(:each) do - @special_example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe("special_example_group") - @special_child_example_group = Class.new(@special_example_group).describe("special_child_example_group") - @nonspecial_example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe("nonspecial_example_group") - Spec::Example::ExampleGroupFactory.register(:special, @special_example_group) - Spec::Example::ExampleGroupFactory.register(:special_child, @special_child_example_group) - Spec::Example::ExampleGroupFactory.register(:non_special, @nonspecial_example_group) - @example_group = @special_child_example_group.describe "Special Example Group" - @unselected_example_group = Class.new(@nonspecial_example_group).describe "Non Special Example Group" - end - - describe "#prepend_before" do - it "prepends the before block on all instances of the passed in type" do - order = [] - config.prepend_before(:all) do - order << :prepend__before_all - end - config.prepend_before(:all, :type => :special) do - order << :special_prepend__before_all - end - config.prepend_before(:all, :type => :special_child) do - order << :special_child_prepend__before_all - end - config.prepend_before(:each) do - order << :prepend__before_each - end - config.prepend_before(:each, :type => :special) do - order << :special_prepend__before_each - end - config.prepend_before(:each, :type => :special_child) do - order << :special_child_prepend__before_each - end - config.prepend_before(:all, :type => :non_special) do - order << :special_prepend__before_all - end - config.prepend_before(:each, :type => :non_special) do - order << :special_prepend__before_each - end - @example_group.it "calls prepend_before" do - end - - @example_group.run(options) - order.should == [ - :prepend__before_all, - :special_prepend__before_all, - :special_child_prepend__before_all, - :prepend__before_each, - :special_prepend__before_each, - :special_child_prepend__before_each - ] - end - end - - describe "#append_before" do - - it "calls append_before on the type" do - order = [] - config.append_before(:all) do - order << :append_before_all - end - config.append_before(:all, :type => :special) do - order << :special_append_before_all - end - config.append_before(:all, :type => :special_child) do - order << :special_child_append_before_all - end - config.append_before do # default is :each - order << :append_before_each - end - config.append_before(:each, :type => :special) do - order << :special_append_before_each - end - config.append_before(:each, :type => :special_child) do - order << :special_child_append_before_each - end - config.append_before(:all, :type => :non_special) do - order << :special_append_before_all - end - config.append_before(:each, :type => :non_special) do - order << :special_append_before_each - end - @example_group.it "calls append_before" do - end - - @example_group.run(options) - order.should == [ - :append_before_all, - :special_append_before_all, - :special_child_append_before_all, - :append_before_each, - :special_append_before_each, - :special_child_append_before_each - ] - end - end - - describe "#prepend_after" do - - it "prepends the after block on all instances of the passed in type" do - order = [] - config.prepend_after(:all) do - order << :prepend__after_all - end - config.prepend_after(:all, :type => :special) do - order << :special_prepend__after_all - end - config.prepend_after(:all, :type => :special) do - order << :special_child_prepend__after_all - end - config.prepend_after(:each) do - order << :prepend__after_each - end - config.prepend_after(:each, :type => :special) do - order << :special_prepend__after_each - end - config.prepend_after(:each, :type => :special) do - order << :special_child_prepend__after_each - end - config.prepend_after(:all, :type => :non_special) do - order << :special_prepend__after_all - end - config.prepend_after(:each, :type => :non_special) do - order << :special_prepend__after_each - end - @example_group.it "calls prepend_after" do - end - - @example_group.run(options) - order.should == [ - :special_child_prepend__after_each, - :special_prepend__after_each, - :prepend__after_each, - :special_child_prepend__after_all, - :special_prepend__after_all, - :prepend__after_all - ] - end - end - - describe "#append_after" do - - it "calls append_after on the type" do - order = [] - config.append_after(:all) do - order << :append__after_all - end - config.append_after(:all, :type => :special) do - order << :special_append__after_all - end - config.append_after(:all, :type => :special_child) do - order << :special_child_append__after_all - end - config.append_after(:each) do - order << :append__after_each - end - config.append_after(:each, :type => :special) do - order << :special_append__after_each - end - config.append_after(:each, :type => :special_child) do - order << :special_child_append__after_each - end - config.append_after(:all, :type => :non_special) do - order << :non_special_append_after_all - end - config.append_after(:each, :type => :non_special) do - order << :non_special_append_after_each - end - @example_group.it "calls append_after" do - end - - @example_group.run(options) - order.should == [ - :special_child_append__after_each, - :special_append__after_each, - :append__after_each, - :special_child_append__after_all, - :special_append__after_all, - :append__after_all - ] - end - - end - - describe "#ignore_backtrace_patterns" do - it "adds patterns to ignore in backtrace" do - config.ignore_backtrace_patterns /custom_pattern/, /shoulda/, /spork/ - config.ignored_backtrace_patterns.should include(/custom_pattern/) - config.ignored_backtrace_patterns.should include(/shoulda/) - config.ignored_backtrace_patterns.should include(/spork/) - end - end - - describe "#predicate_matchers (DEPRECATED)" do - it "is deprecated" do - Spec.should_receive(:deprecate) - config.predicate_matchers[:foo] = :bar? - end - end - - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/drb_command_line_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/drb_command_line_spec.rb deleted file mode 100644 index 0c17a7f6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/drb_command_line_spec.rb +++ /dev/null @@ -1,107 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - unless jruby? - describe DrbCommandLine do - - context "without server running" do - it "prints error" do - err = out = StringIO.new - DrbCommandLine.run(OptionParser.parse(['--version'], err, out)) - - err.rewind - err.read.should =~ /No server is running/ - end - - it "returns nil" do - err = out = StringIO.new - result = DrbCommandLine.run(OptionParser.parse(['--version'], err, out)) - result.should be_false - end - end - - context "with server running" do - class ::CommandLineForDrbSpec - def self.run(argv, stderr, stdout) - orig_options = Spec::Runner.options - tmp_options = Spec::Runner::OptionParser.parse(argv, stderr, stdout) - Spec::Runner.use tmp_options - Spec::Runner::CommandLine.run(tmp_options) - ensure - Spec::Runner.use orig_options - end - end - - before(:all) do - DRb.start_service("druby://127.0.0.1:8989", ::CommandLineForDrbSpec) - @@drb_example_file_counter = 0 - end - - before(:each) do - create_dummy_spec_file - @@drb_example_file_counter = @@drb_example_file_counter + 1 - end - - after(:each) do - File.delete(@dummy_spec_filename) - end - - after(:all) do - DRb.stop_service - end - - it "returns true" do - err = out = StringIO.new - result = DrbCommandLine.run(OptionParser.parse(['--version'], err, out)) - result.should be_true - end - - it "should run against local server" do - out = run_spec_via_druby(['--version']) - out.should =~ /rspec \d+\.\d+\.\d+.*/n - end - - it "should output green colorized text when running with --colour option" do - out = run_spec_via_druby(["--colour", @dummy_spec_filename]) - out.should =~ /\e\[32m/n - end - - it "should output red colorized text when running with -c option" do - out = run_spec_via_druby(["-c", @dummy_spec_filename]) - out.should =~ /\e\[31m/n - end - - def create_dummy_spec_file - @dummy_spec_filename = File.expand_path(File.dirname(__FILE__)) + "/_dummy_spec#{@@drb_example_file_counter}.rb" - File.open(@dummy_spec_filename, 'w') do |f| - f.write %{ - describe "DUMMY CONTEXT for 'DrbCommandLine with -c option'" do - it "should be output with green bar" do - true.should be_true - end - - it "should be output with red bar" do - violated("I want to see a red bar!") - end - end - } - end - end - - def run_spec_via_druby(argv) - err, out = StringIO.new, StringIO.new - out.instance_eval do - def tty?; true end - end - options = ::Spec::Runner::Options.new(err, out) - options.argv = argv - Spec::Runner::DrbCommandLine.run(options) - out.rewind; out.read - end - end - - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/empty_file.txt b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/empty_file.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/example_group_runner_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/example_group_runner_spec.rb deleted file mode 100644 index 2b1601ac..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/example_group_runner_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe ExampleGroupRunner do - before(:each) do - err = StringIO.new('') - out = StringIO.new('') - @options = Options.new(err, out) - @runner = Spec::Runner::ExampleGroupRunner.new(@options) - end - - after(:each) do - Spec::Expectations.differ = nil - end - - describe "#load_files" do - it "should load UTF-8 encoded files" do - file = File.expand_path(File.dirname(__FILE__) + "/resources/utf8_encoded.rb") - @options.files << file - @runner.load_files(@options.files_to_load).should == @options.files_to_load - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/examples.txt b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/examples.txt deleted file mode 100644 index 2fcbd355..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/examples.txt +++ /dev/null @@ -1,2 +0,0 @@ -Sir, if you were my husband, I would poison your drink. -Madam, if you were my wife, I would drink it. \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/failed.txt b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/failed.txt deleted file mode 100644 index 07c5442c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/failed.txt +++ /dev/null @@ -1,3 +0,0 @@ -heckler_spec.rb -command_line_spec.rb -reporter_spec.rb \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_formatter_spec.rb deleted file mode 100644 index a904bf38..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_formatter_spec.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - module Formatter - describe BaseFormatter do - subject { BaseFormatter.new(nil,nil) } - it {should respond_to(:start ).with(1).argument } - it {should respond_to(:example_group_started).with(1).argument } - it {should respond_to(:example_started ).with(1).argument } - # -3 indicates that one of the arguments is optional, with a default - # value assigned. This is due to deprecated_pending_location. Once - # that is removed, this should be changed to 2. - it {should respond_to(:example_pending ).with(-3).arguments} - it {should respond_to(:example_passed ).with(1).argument } - it {should respond_to(:example_failed ).with(3).arguments} - it {should respond_to(:start_dump ).with(0).arguments} - it {should respond_to(:dump_failure ).with(2).arguments} - it {should respond_to(:dump_summary ).with(4).arguments} - it {should respond_to(:dump_pending ).with(0).arguments} - it {should respond_to(:close ).with(0).arguments} - - it "deprecates add_example_group" do - Spec.should_receive(:deprecate) - subject.add_example_group(stub('example group')) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_text_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_text_formatter_spec.rb deleted file mode 100644 index e3677ad4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_text_formatter_spec.rb +++ /dev/null @@ -1,113 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/base_text_formatter' - -module Spec - module Runner - module Formatter - describe BaseTextFormatter do - - before :all do - @sandbox = "spec/sandbox" - end - - it "should create the directory contained in WHERE if it does not exist" do - FileUtils.should_receive(:mkdir_p).with(@sandbox) - File.stub!(:open) - BaseTextFormatter.new({},"#{@sandbox}/temp.rb") - end - - context "(deprecations)" do - before(:each) do - Kernel.stub!(:warn) - @io = StringIO.new - @options = mock('options') - @options.stub!(:dry_run).and_return(false) - @options.stub!(:colour).and_return(false) - @options.stub!(:autospec).and_return(false) - @formatter = Class.new(BaseTextFormatter) do - def method_that_class_magenta(message) - magenta(message) - end - def method_that_class_colourise(message, failure) - colourise(message, failure) - end - end.new(@options, @io) - @failure = stub('failure', :pending_fixed? => false) - end - - context "#colourise" do - it "warns when subclasses call colourise" do - Spec.should_receive(:deprecate) - @formatter.method_that_class_colourise('this message', @failure) - end - - it "delegates to colorize_failure" do - @formatter.should_receive(:colorize_failure).with('this message', @failure) - @formatter.colourise('this message', @failure) - end - end - - context "#magenta" do - it "warns when subclasses call magenta" do - Spec.should_receive(:deprecate).with(/#magenta/) - @formatter.method_that_class_magenta('this message') - end - - it "delegates to red" do - @formatter.should_receive(:red).with('this message') - @formatter.method_that_class_magenta('this message') - end - end - - end - - describe "#colour (protected)" do - before(:each) do - @original_RSPEC_COLOR = ENV['RSPEC_COLOR'] - end - - it "does not colorize when output_to_file? returns true" do - out = StringIO.new - options = stub('options', :colour => true, :autospec => false) - formatter = BaseTextFormatter.new(options,out) - formatter.stub!(:output_to_tty?).and_return(true) - formatter.stub!(:output_to_file?).and_return(true) - formatter.__send__(:colour, 'foo', "\e[32m").should == "foo" - end - - it "colorizes when colour? and output_to_tty? return true" do - out = StringIO.new - options = stub('options', :colour => true, :autospec => false) - formatter = BaseTextFormatter.new(options,out) - formatter.stub!(:output_to_tty?).and_return(true) - formatter.__send__(:colour, 'foo', "\e[32m").should == "\e[32mfoo\e[0m" - end - - it "colorizes when ENV['RSPEC_COLOR'] is set even if colour? and output_to_tty? return false" do - out = StringIO.new - options = stub('options', :colour => false) - formatter = BaseTextFormatter.new(options,out) - formatter.stub!(:output_to_tty?).and_return(false) - - ENV['RSPEC_COLOR'] = 'true' - - formatter.__send__(:colour, 'foo', "\e[32m").should == "\e[32mfoo\e[0m" - end - - it "colorizes when autospec? is true even if colour? and output_to_tty? return false" do - out = StringIO.new - options = stub('options', :colour => true, :autospec => true) - formatter = BaseTextFormatter.new(options,out) - formatter.stub!(:output_to_tty?).and_return(false) - - formatter.__send__(:colour, 'foo', "\e[32m").should == "\e[32mfoo\e[0m" - end - - after(:each) do - ENV['RSPEC_COLOR'] = @original_RSPEC_COLOR - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb deleted file mode 100644 index b390131a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +++ /dev/null @@ -1,45 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/failing_example_groups_formatter' - -module Spec - module Runner - module Formatter - describe FailingExampleGroupsFormatter do - attr_reader :example_group, :formatter, :io - - before(:each) do - @io = StringIO.new - options = mock('options') - @formatter = FailingExampleGroupsFormatter.new(options, io) - @example_group = Class.new(::Spec::Example::ExampleGroup) - end - - it "should add example name for each failure" do - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(Class.new(::Spec::Example::ExampleGroupDouble).describe("b 1"))) - formatter.example_failed("e 1", nil, Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(Class.new(::Spec::Example::ExampleGroupDouble).describe("b 2"))) - formatter.example_failed("e 2", nil, Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - formatter.example_failed("e 3", nil, Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - io.string.should include("b 1") - io.string.should include("b 2") - end - - it "should delimit ExampleGroup superclass descriptions with :" do - parent_example_group = Class.new(example_group).describe("Parent") - child_example_group = Class.new(parent_example_group).describe("#child_method") - grand_child_example_group = Class.new(child_example_group).describe("GrandChild") - - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(grand_child_example_group)) - formatter.example_failed("failure", nil, ::Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - io.string.should == "Parent#child_method GrandChild\n" - end - - it "should remove druby url, which is used by Spec::Distributed" do - @formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(Class.new(::Spec::Example::ExampleGroupDouble).describe("something something (druby://99.99.99.99:99)"))) - @formatter.example_failed("e 1", nil, ::Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - io.string.should == "something something\n" - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_examples_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_examples_formatter_spec.rb deleted file mode 100644 index 76d03fa3..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/failing_examples_formatter' - -module Spec - module Runner - module Formatter - describe FailingExamplesFormatter do - before(:each) do - @io = StringIO.new - options = mock('options') - @formatter = FailingExamplesFormatter.new(options, @io) - end - - it "should add example name for each failure" do - example_group_1 = Class.new(::Spec::Example::ExampleGroupDouble).describe("A") - example_group_2 = Class.new(example_group_1).describe("B") - - @formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group_1)) - @formatter.example_failed(example_group_1.it("a1"){}, nil, ::Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - @formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group_2)) - @formatter.example_failed(example_group_2.it("b2"){}, nil, ::Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - @formatter.example_failed(example_group_2.it("b3"){}, nil, ::Spec::Runner::Reporter::Failure.new("g", nil, RuntimeError.new)) - @io.string.should eql(<<-EOF -A a1 -A B b2 -A B b3 -EOF -) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html deleted file mode 100644 index 029cee62..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
-
examples/failing/mocking_example.rb:11:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
-
examples/failing/mocking_example.rb:20:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
-
examples/failing/mocking_example.rb:27:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
-
examples/failing/mocking_example.rb:31:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
-
examples/failing/diffing_spec.rb:13:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
-
examples/failing/diffing_spec.rb:34:
-spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6.html deleted file mode 100644 index 1461d03e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.6.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
-
./examples/failing/mocking_example.rb:11:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
-
./examples/failing/mocking_example.rb:20:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
-
./examples/failing/mocking_example.rb:27:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
-
./examples/failing/mocking_example.rb:31:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
-
./examples/failing/diffing_spec.rb:13:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
-
./examples/failing/diffing_spec.rb:34:
-./spec/spec_helper.rb:44:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.7.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.7.html deleted file mode 100644 index 5e489bba..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.8.7.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
-
./examples/failing/mocking_example.rb:11:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
-
./examples/failing/mocking_example.rb:20:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
-
./examples/failing/mocking_example.rb:27:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
-
./examples/failing/mocking_example.rb:31:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
-
./examples/failing/diffing_spec.rb:13:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
-
./examples/failing/diffing_spec.rb:34:
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:
-
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.9.1.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.9.1.html deleted file mode 100644 index 5d0be3bf..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatted-1.9.1.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
-
./examples/failing/mocking_example.rb:11:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
-
./examples/failing/mocking_example.rb:20:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
-
./examples/failing/mocking_example.rb:27:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
-
./examples/failing/mocking_example.rb:31:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
-
./examples/failing/diffing_spec.rb:13:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
-
./examples/failing/diffing_spec.rb:34:in `block (2 levels) in '
-./spec/spec_helper.rb:42:in `run_with'
-./spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in '
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `chdir'
-./spec/spec/runner/formatter/html_formatter_spec.rb:29:in `block (3 levels) in '
-
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatter_spec.rb deleted file mode 100644 index bbff1ef4..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/html_formatter_spec.rb +++ /dev/null @@ -1,118 +0,0 @@ -# require 'spec_helper' - -begin # See rescue all the way at the bottom - -require 'nokogiri' # Needed to compare generated with wanted HTML -require 'spec/runner/formatter/html_formatter' - -module Spec - module Runner - module Formatter - describe HtmlFormatter do - - treats_method_missing_as_private - - attr_reader :root, :expected_file, :expected_html - - before do - @root = File.expand_path("#{File.dirname(__FILE__)}/../../../..") - suffix = jruby? ? '-jruby' : '' - @expected_file = "#{File.dirname(__FILE__)}/html_formatted-#{::RUBY_VERSION}#{suffix}.html" - raise "There is no HTML file with expected content for this platform: #{expected_file}" unless File.file?(expected_file) - @expected_html = File.read(expected_file) - end - - # Uncomment this line temporarily in order to overwrite the expected with actual. - # Use with care!!! - # describe "file generator" do - # it "generates a new comparison file" do - # Dir.chdir(root) do - # args = [ - # 'examples/failing/mocking_example.rb', - # 'examples/failing/diffing_spec.rb', - # 'examples/passing/stubbing_example.rb', - # 'examples/passing/pending_example.rb', - # '--format', - # 'html', - # "--diff" - # ] - # err = StringIO.new - # out = StringIO.new - # run_with ::Spec::Runner::OptionParser.parse(args, err, out) - # - # seconds = /\d+\.\d+ seconds/ - # html = out.string.gsub seconds, 'x seconds' - # - # File.open(expected_file, 'w') {|io| io.write(html)} - # end - # end - # end - - it "should produce HTML identical to the one we designed manually with --diff" do - Dir.chdir(root) do - args = [ - 'examples/failing/mocking_example.rb', - 'examples/failing/diffing_spec.rb', - 'examples/passing/stubbing_example.rb', - 'examples/passing/pending_example.rb', - '--format', - 'html', - "--diff" - ] - err = StringIO.new - out = StringIO.new - run_with ::Spec::Runner::OptionParser.parse(args, err, out) - - seconds = /\d+\.\d+ seconds/ - html = out.string.gsub seconds, 'x seconds' - expected_html.gsub! seconds, 'x seconds' - - doc = Nokogiri::HTML(html) - backtraces = doc.search("div.backtrace").collect {|e| e.at("pre").inner_html} - doc.css("div.backtrace").remove - - expected_doc = Nokogiri::HTML(expected_html) - expected_backtraces = expected_doc.search("div.backtrace").collect {|e| e.at("pre").inner_html} - expected_doc.search("div.backtrace").remove - - doc.inner_html.should == expected_doc.inner_html - - expected_backtraces.each_with_index do |expected_line, i| - expected_path, expected_line_number, expected_suffix = expected_line.split(':') - actual_path, actual_line_number, actual_suffix = backtraces[i].split(':') - File.expand_path(actual_path).should == File.expand_path(expected_path) - actual_line_number.should == expected_line_number - end - end - end - - it "should produce HTML identical to the one we designed manually with --dry-run" do - Dir.chdir(root) do - args = [ - 'examples/failing/mocking_example.rb', - 'examples/failing/diffing_spec.rb', - 'examples/passing/stubbing_example.rb', - 'examples/passing/pending_example.rb', - '--format', - 'html', - "--dry-run" - ] - err = StringIO.new - out = StringIO.new - run_with ::Spec::Runner::OptionParser.parse(args, err, out) - - seconds = /\d+\.\d+ seconds/ - html = out.string.gsub seconds, 'x seconds' - expected_html.gsub! seconds, 'x seconds' - - html.should =~ /This was a dry-run/m - end - end - end - end - end -end - -rescue LoadError - warn "nokogiri not loaded -- skipping HtmlFormatter specs" -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/nested_text_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/nested_text_formatter_spec.rb deleted file mode 100644 index 29e96ff5..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/nested_text_formatter_spec.rb +++ /dev/null @@ -1,305 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/nested_text_formatter' - -module Spec - module Runner - module Formatter - describe NestedTextFormatter do - with_sandboxed_options do - attr_reader :io, :options, :formatter, :example_group - before(:each) do - @io = StringIO.new - options.stub!(:dry_run).and_return(false) - options.stub!(:colour).and_return(false) - @formatter = NestedTextFormatter.new(options, io) - @example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe("ExampleGroup") - @example_group.example("example") {} - end - - describe "where ExampleGroup has no superclass with a description" do - def example_group_started - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - end - - before do - example_group_started - end - - describe "#dump_summary" do - it "should produce standard summary without pending when pending has a 0 count" do - formatter.dump_summary(3, 2, 1, 0) - io.string.should == <<-OUT -ExampleGroup - -Finished in 3 seconds - -2 examples, 1 failure -OUT - end - - it "should produce standard summary" do - formatter.dump_summary(3, 2, 1, 4) - io.string.should == <<-OUT -ExampleGroup - -Finished in 3 seconds - -2 examples, 1 failure, 4 pending -OUT - end - end - - describe "#example_group_started" do - describe "when ExampleGroup has a nested description" do - - describe "when ExampleGroup has no parents with nested description" do - it "should push ExampleGroup name" do - io.string.should eql("ExampleGroup\n") - end - end - - describe "when ExampleGroup has one parent with nested description" do - attr_reader :child_example_group - def example_group_started - @child_example_group = Class.new(example_group).describe("Child ExampleGroup") - end - - describe "and parent ExampleGroups have not been printed" do - before do - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - end - - it "should push ExampleGroup name with two spaces of indentation" do - io.string.should == <<-OUT -ExampleGroup - Child ExampleGroup -OUT - end - end - - describe "and parent ExampleGroups have been printed" do - before do - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - io.string = "" - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - end - - it "should print only the indented ExampleGroup" do - io.string.should == <<-OUT - Child ExampleGroup -OUT - end - end - end - - describe "when ExampleGroup has two parents with nested description" do - attr_reader :child_example_group, :grand_child_example_group - def example_group_started - @child_example_group = Class.new(example_group).describe("Child ExampleGroup") - @grand_child_example_group = Class.new(child_example_group).describe("GrandChild ExampleGroup") - end - - describe "and parent ExampleGroups have not been printed" do - before do - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(grand_child_example_group)) - - end - - it "should print the entire nested ExampleGroup heirarchy" do - io.string.should == <<-OUT -ExampleGroup - Child ExampleGroup - GrandChild ExampleGroup -OUT - end - end - - describe "and parent ExampleGroups have been printed" do - before do - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - io.string = "" - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(grand_child_example_group)) - end - - it "should print only the indented ExampleGroup" do - io.string.should == <<-OUT - GrandChild ExampleGroup -OUT - end - end - end - end - - describe "when ExampleGroup nested description is blank" do - attr_reader :child_example_group - - describe "and parent ExampleGroups have not been printed" do - def example_group_started - @child_example_group = Class.new(example_group) - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - end - - it "should render only the parent ExampleGroup" do - io.string.should == <<-OUT -ExampleGroup -OUT - end - end - - describe "and parent ExampleGroups have been printed" do - def example_group_started - @child_example_group = Class.new(example_group) - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - io.string = "" - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - end - - it "should not render anything" do - io.string.should == "" - end - end - end - - describe "when ExampleGroup nested description is blank" do - def example_group_started - example_group.set_description - super - end - - it "should not render anything" do - io.string.should == "" - end - end - end - - describe "#example_failed" do - describe "where ExampleGroup has no superclasss with a description" do - describe "when having an error" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - ::Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new) - ) - io.string.should == <<-OUT -ExampleGroup - spec (FAILED - 98) -OUT - end - end - - describe "when having an expectation failure" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - ::Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new) - ) - io.string.should == <<-OUT -ExampleGroup - spec (FAILED - 98) -OUT - end - end - end - - describe "where ExampleGroup has two superclasses with a description" do - attr_reader :child_example_group, :grand_child_example_group - - def example_group_started - @child_example_group = Class.new(example_group).describe("Child ExampleGroup") - @grand_child_example_group = Class.new(child_example_group).describe("GrandChild ExampleGroup") - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(grand_child_example_group)) - end - - describe "when having an error" do - it "should push failing spec name and failure number" do - formatter.example_failed( - grand_child_example_group.it("spec"), - 98, - ::Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new) - ) - io.string.should == <<-OUT -ExampleGroup - Child ExampleGroup - GrandChild ExampleGroup - spec (FAILED - 98) -OUT - end - end - - describe "when having an expectation" do - it "should push failing spec name and failure number" do - formatter.example_failed( - grand_child_example_group.it("spec"), - 98, - ::Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new) - ) - io.string.should == <<-OUT -ExampleGroup - Child ExampleGroup - GrandChild ExampleGroup - spec (FAILED - 98) -OUT - end - end - end - end - - describe "#start" do - it "should push nothing on start" do - formatter.start(5) - io.string.should == <<-OUT -ExampleGroup -OUT - end - end - - describe "#start_dump" do - it "should push nothing on start dump" do - formatter.start_dump - io.string.should == <<-OUT -ExampleGroup -OUT - end - end - - describe "#example_passed" do - it "should push passing spec name" do - formatter.example_passed(example_group.it("spec")) - io.string.should == <<-OUT -ExampleGroup - spec -OUT - end - end - - describe "#example_pending" do - it "should push pending example name and message" do - formatter.example_pending(example_group.examples.first, 'reason', "#{__FILE__}:#{__LINE__}") - io.string.should == <<-OUT -ExampleGroup - example (PENDING: reason) -OUT - end - - it "should dump pending" do - formatter.example_pending(example_group.examples.first, 'reason', "#{__FILE__}:#{__LINE__}") - io.rewind - formatter.dump_pending - io.string.should =~ /Pending\:\n\nExampleGroup example \(reason\)\n/ - end - end - - def have_single_level_example_group_output(expected_output) - expected = "ExampleGroup\n #{expected_output}" - ::Spec::Matchers::SimpleMatcher.new(expected) do |actual| - actual == expected - end - end - end - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/profile_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/profile_formatter_spec.rb deleted file mode 100644 index 338df708..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/profile_formatter_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/profile_formatter' - -module Spec - module Runner - module Formatter - describe ProfileFormatter do - - treats_method_missing_as_private - - attr_reader :io, :formatter - before(:each) do - @io = StringIO.new - options = mock('options') - options.stub!(:colour).and_return(true) - options.stub!(:autospec).and_return(true) - @formatter = ProfileFormatter.new(options, io) - end - - it "should print a heading" do - formatter.start(0) - io.string.should eql("Profiling enabled.\n") - end - - it "should record the current time when starting a new example" do - now = Time.now - Time.stub!(:now).and_return(now) - formatter.example_started('should foo') - formatter.instance_variable_get("@time").should == now - end - - it "should correctly record a passed example" do - now = Time.now - Time.stub!(:now).and_return(now) - parent_example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe('Parent') - child_example_group = Class.new(parent_example_group).describe('Child') - - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(child_example_group)) - - formatter.example_started('when foo') - Time.stub!(:now).and_return(now+1) - formatter.example_passed(stub('foo', :description => 'i like ice cream')) - - formatter.start_dump - io.string.should include('Parent Child') - end - - it "should sort the results in descending order" do - formatter.instance_variable_set("@example_times", [['a', 'a', 0.1], ['b', 'b', 0.3], ['c', 'c', 0.2]]) - formatter.start_dump - formatter.instance_variable_get("@example_times").should == [ ['b', 'b', 0.3], ['c', 'c', 0.2], ['a', 'a', 0.1]] - end - - it "should print the top 10 results" do - example_group = Class.new(::Spec::Example::ExampleGroup).describe("ExampleGroup") - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - formatter.instance_variable_set("@time", Time.now) - - 15.times do - formatter.example_passed(stub('foo', :description => 'i like ice cream')) - end - - io.should_receive(:print).exactly(10) - formatter.start_dump - end - - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/progress_bar_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/progress_bar_formatter_spec.rb deleted file mode 100644 index ea96ca6c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +++ /dev/null @@ -1,149 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/progress_bar_formatter' - -module Spec - module Runner - module Formatter - describe ProgressBarFormatter do - - treats_method_missing_as_private - - before(:each) do - @io = StringIO.new - @options = mock('options') - @options.stub!(:dry_run).and_return(false) - @options.stub!(:colour).and_return(false) - @options.stub!(:autospec).and_return(false) - @formatter = ProgressBarFormatter.new(@options, @io) - end - - it "should produce line break on start dump" do - @formatter.start_dump - @io.string.should eql("\n") - end - - it "should produce standard summary without pending when pending has a 0 count" do - @formatter.dump_summary(3, 2, 1, 0) - @io.string.should eql("\nFinished in 3 seconds\n\n2 examples, 1 failure\n") - end - - it "should produce standard summary" do - example_group = ExampleGroup.describe("example_group") do - specify "example" do - end - end - example = example_group.examples.first - @formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - @formatter.example_pending(example, "message", "#{__FILE__}:#{__LINE__}") - @io.rewind - @formatter.dump_summary(3, 2, 1, 1) - @io.string.should eql(%Q| -Finished in 3 seconds - -2 examples, 1 failure, 1 pending -|) - end - - it "should push green dot for passing spec" do - @formatter.stub(:output_to_file?) {false} - @io.stub(:tty?) {true} - @options.stub(:colour) {true} - @formatter.example_passed("spec") - @io.string.should == "\e[32m.\e[0m" - end - - it "should push red F for failure spec" do - @formatter.stub(:output_to_file?) {false} - @io.stub(:tty?) {true} - @options.stub(:colour) {true} - @formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new)) - @io.string.should eql("\e[31mF\e[0m") - end - - it "should push red F for error spec" do - @formatter.stub(:output_to_file?) {false} - @io.stub(:tty?) {true} - @options.stub(:colour) {true} - @formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new)) - @io.string.should eql("\e[31mF\e[0m") - end - - it "should push blue F for fixed pending spec" do - @formatter.stub(:output_to_file?) {false} - @io.stub(:tty?) {true} - @options.stub(:colour) {true} - @formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Example::PendingExampleFixedError.new)) - @io.string.should eql("\e[34mF\e[0m") - end - - it "should push nothing on start" do - @formatter.start(4) - @io.string.should eql("") - end - - it "should ensure two ':' in the first backtrace" do - backtrace = ["/tmp/x.rb:1", "/tmp/x.rb:2", "/tmp/x.rb:3"] - @formatter.format_backtrace(backtrace).should eql(<<-EOE.rstrip) -/tmp/x.rb:1: -/tmp/x.rb:2: -/tmp/x.rb:3: -EOE - - backtrace = ["/tmp/x.rb:1: message", "/tmp/x.rb:2", "/tmp/x.rb:3"] - @formatter.format_backtrace(backtrace).should eql(<<-EOE.rstrip) -/tmp/x.rb:1: message -/tmp/x.rb:2: -/tmp/x.rb:3: -EOE - end - - it "should dump pending with file and line number" do - example_group = ExampleGroup.describe("example_group") do - specify "example" do - end - end - example = example_group.examples.first - file = __FILE__ - line = __LINE__ - 5 - @formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - @formatter.example_pending(example, "message", "#{__FILE__}:#{__LINE__}") - @formatter.dump_pending - @io.string.should =~ /Pending:\n\nexample_group example \(message\)\n#{file}:#{line}/m - end - end - - describe "ProgressBarFormatter outputting to custom out" do - before(:each) do - @out = mock("out") - @options = mock('options') - @out.stub!(:puts) - @formatter = ProgressBarFormatter.new(@options, @out) - @formatter.class.__send__ :public, :output_to_tty? - end - - after(:each) do - @formatter.class.__send__ :protected, :output_to_tty? - end - - it "should not throw NoMethodError on output_to_tty?" do - @out.should_receive(:tty?).and_raise(NoMethodError) - @formatter.output_to_tty?.should be_false - end - end - - describe ProgressBarFormatter, "dry run" do - before(:each) do - @io = StringIO.new - options = mock('options') - options.stub!(:dry_run).and_return(true) - @formatter = ProgressBarFormatter.new(options, @io) - end - - it "should not produce summary on dry run" do - @formatter.dump_summary(3, 2, 1, 0) - @io.string.should eql("") - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/snippet_extractor_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/snippet_extractor_spec.rb deleted file mode 100644 index c683c39a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/snippet_extractor_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/snippet_extractor' - -module Spec - module Runner - module Formatter - describe SnippetExtractor do - it "should fall back on a default message when it doesn't understand a line" do - SnippetExtractor.new.snippet_for("blech").should == ["# Couldn't get snippet for blech", 1] - end - - it "should fall back on a default message when it doesn't find the file" do - SnippetExtractor.new.lines_around("blech", 8).should == "# Couldn't get snippet for blech" - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/specdoc_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/specdoc_formatter_spec.rb deleted file mode 100644 index ac4e0eee..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/specdoc_formatter_spec.rb +++ /dev/null @@ -1,159 +0,0 @@ -require 'spec_helper' -require 'spec/runner/formatter/specdoc_formatter' - -module Spec - module Runner - module Formatter - describe SpecdocFormatter do - with_sandboxed_options do - attr_reader :io, :formatter, :example_group - before(:each) do - @io = StringIO.new - options.stub!(:dry_run).and_return(false) - options.stub!(:colour).and_return(false) - @formatter = SpecdocFormatter.new(options, io) - @example_group = ::Spec::Example::ExampleGroup.describe("ExampleGroup") do - specify "example" do - end - end - end - - describe "where ExampleGroup has no superclasss with a description" do - before do - example_group_started - end - - def example_group_started - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group)) - end - - describe "#dump_summary" do - it "should produce standard summary without pending when pending has a 0 count" do - formatter.dump_summary(3, 2, 1, 0) - io.string.should have_example_group_output("\nFinished in 3 seconds\n\n2 examples, 1 failure\n") - end - - it "should produce standard summary" do - formatter.dump_summary(3, 2, 1, 4) - io.string.should have_example_group_output("\nFinished in 3 seconds\n\n2 examples, 1 failure, 4 pending\n") - end - end - - describe "#example_group_started" do - it "should push ExampleGroup name" do - io.string.should eql("\nExampleGroup\n") - end - end - - describe "#example_failed" do - describe "where ExampleGroup has no superclasss with a description" do - describe "when having an error" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new) - ) - io.string.should have_example_group_output("- spec (FAILED - 98)\n") - end - end - - describe "when having an expectation failure" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new) - ) - io.string.should have_example_group_output("- spec (FAILED - 98)\n") - end - end - end - - describe "where ExampleGroup has two superclasses with a description" do - attr_reader :child_example_group, :grand_child_example_group - - def example_group_started - @child_example_group = Class.new(example_group).describe("Child ExampleGroup") - @grand_child_example_group = Class.new(child_example_group).describe("GrandChild ExampleGroup") - formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(grand_child_example_group)) - end - - describe "when having an error" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new) - ) - io.string.should have_nested_example_group_output("- spec (FAILED - 98)\n") - end - end - - describe "when having an expectation" do - it "should push failing spec name and failure number" do - formatter.example_failed( - example_group.it("spec"), - 98, - Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new) - ) - io.string.should have_nested_example_group_output("- spec (FAILED - 98)\n") - end - end - - def have_nested_example_group_output(expected_output) - expected_full_output = "\nExampleGroup Child ExampleGroup GrandChild ExampleGroup\n#{expected_output}" - ::Spec::Matchers::SimpleMatcher.new(expected_full_output) do |actual| - actual == expected_full_output - end - end - end - end - - describe "#start" do - it "should push nothing on start" do - formatter.start(5) - io.string.should have_example_group_output("") - end - end - - describe "#start_dump" do - it "should push nothing on start dump" do - formatter.start_dump - io.string.should have_example_group_output("") - end - end - - describe "#example_passed" do - it "should push passing spec name" do - formatter.example_passed(example_group.it("spec")) - io.string.should have_example_group_output("- spec\n") - end - end - - describe "#example_pending" do - it "should push pending example name and message" do - formatter.example_pending(example_group.examples.first, 'reason', "#{__FILE__}:#{__LINE__}") - io.string.should have_example_group_output("- example (PENDING: reason)\n") - end - - it "should dump pending" do - formatter.example_pending(example_group.examples.first, 'reason', "#{__FILE__}:#{__LINE__}") - io.rewind - formatter.dump_pending - io.string.should =~ /Pending\:\n\nExampleGroup example \(reason\)\n/ - end - end - - def have_example_group_output(expected_output) - expected = "\nExampleGroup\n#{expected_output}" - ::Spec::Matchers::SimpleMatcher.new(expected) do |actual| - actual == expected - end - end - end - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html deleted file mode 100644 index bbef5eb8..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
- -
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
- -
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
- -
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
- -
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
- -
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
- -
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html deleted file mode 100644 index 54d76190..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
- -
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
- -
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
- -
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
- -
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
- -
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
- -
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html deleted file mode 100644 index 54d76190..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
- -
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
- -
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
- -
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
- -
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
- -
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
- -
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html deleted file mode 100644 index 24c98046..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - RSpec results - - - - - - - - -
- -
-
-

RSpec Code Examples

-
- -
-

 

-

 

-
-
- -
-
-
-
Mocker
- -
should be able to call mock()
- - - -
- should fail when expected message not received -
-
Mock "poke me" expected :poke with (any args) once, but received it 0 times
- -
9  it "should fail when expected message not received" do
-10    mock = mock("poke me")
-11    mock.should_receive(:poke)
-12  end
-13  
-
-
- -
- should fail when messages are received out of order -
-
Mock "one two three" received :three out of order
- -
18    mock.should_receive(:three).ordered
-19    mock.one
-20    mock.three
-21    mock.two
-22  end
-
-
- -
- should get yelled at when sending unexpected messages -
-
Mock "don't talk to me" expected :any_message_at_all with (no args) 0 times, but received it once
- -
25    mock = mock("don't talk to me")
-26    mock.should_not_receive(:any_message_at_all)
-27    mock.any_message_at_all
-28  end
-
-
- -
- has a bug we need to fix -
-
Expected pending 'here is the bug' to fail. No Error was raised.
- -
29
-30  it "has a bug we need to fix" do
-31    pending "here is the bug" do
-32      # Actually, no. It's fixed. This will fail because it passes :-)
-33      mock = mock("Bug")
-
-
-
-
-
-
-
Running specs with --diff
- - -
- should print diff of different strings -
-
expected: "RSpec is a\nbehaviour driven development\nframework for Ruby\n",
-     got: "RSpec is a\nbehavior driven development\nframework for Ruby\n" (using ==)
-
- Diff:
-@@ -1,4 +1,4 @@
- RSpec is a
--behaviour driven development
-+behavior driven development
- framework for Ruby
-
- -
11framework for Ruby
-12EOF
-13    usa.should == uk
-14  end
-
-
- -
- should print diff of different objects' pretty representation -
-
-expected <Animal
-name=bob,
-species=tortoise
->
-
-     got <Animal
-name=bob,
-species=giraffe
->
-
-
-(compared using eql?)
-
- -
32    expected = Animal.new "bob", "giraffe"
-33    actual   = Animal.new "bob", "tortoise"
-34    expected.should eql(actual)
-35  end
-36end
-
-
-
-
-
-
-
A consumer of a stub
- -
should be able to stub methods on any Object
-
-
-
-
-
A stubbed method on a class
- -
should return the stubbed value
- -
should revert to the original method after each spec
- -
can stub! and mock the same message
-
-
-
-
-
A mock
- -
can stub!
- -
can stub! and mock
- -
can stub! and mock the same message
-
-
-
-
-
pending example (using pending method)
- - -
should be reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
-
-
-
pending example (with no block)
- - -
should be reported as "PENDING: Not Yet Implemented" (PENDING: Not Yet Implemented)
-
-
-
-
-
pending example (with block for pending)
- - -
should have a failing block, passed to pending, reported as "PENDING: for some reason" (PENDING: for some reason)
-
-
- - -
-
- - diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatter_spec.rb deleted file mode 100644 index a35ad89f..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/formatter/text_mate_formatter_spec.rb +++ /dev/null @@ -1,106 +0,0 @@ -require 'spec_helper' - -begin # See rescue all the way at the bottom - -require 'nokogiri' # Needed to compare generated with wanted HTML -require 'spec/runner/formatter/text_mate_formatter' - -module Spec - module Runner - module Formatter - describe TextMateFormatter do - attr_reader :root, :suffix, :expected_file - before do - @root = File.expand_path(File.dirname(__FILE__) + '/../../../..') - @suffix = jruby? ? '-jruby' : '' - @expected_file = File.dirname(__FILE__) + "/text_mate_formatted-#{::RUBY_VERSION}#{suffix}.html" - end - - def produces_html_identical_to_manually_designed_document(opt) - root = File.expand_path(File.dirname(__FILE__) + '/../../../..') - - Dir.chdir(root) do - args = [ - 'examples/failing/mocking_example.rb', - 'examples/failing/diffing_spec.rb', - 'examples/passing/stubbing_example.rb', - 'examples/passing/pending_example.rb', - '--format', - 'textmate', - opt - ] - err = StringIO.new - out = StringIO.new - - run_with ::Spec::Runner::OptionParser.parse(args, err, out) - - yield(out.string) - end - end - - # Uncomment this spec temporarily in order to overwrite the expected with actual. - # Use with care!!! - # describe "functional spec file generator" do - # it "generates a new comparison file" do - # Dir.chdir(root) do - # args = ['examples/failing/mocking_example.rb', 'examples/failing/diffing_spec.rb', 'examples/passing/stubbing_example.rb', 'examples/passing/pending_example.rb', '--format', 'textmate', '--diff'] - # err = StringIO.new - # out = StringIO.new - # Spec::Runner::CommandLine.run( - # ::Spec::Runner::OptionParser.parse(args, err, out) - # ) - # - # seconds = /\d+\.\d+ seconds/ - # html = out.string.gsub seconds, 'x seconds' - # - # File.open(expected_file, 'w') {|io| io.write(html)} - # end - # end - # end - - describe "functional spec using --diff" do - it "should produce HTML identical to the one we designed manually with --diff" do - produces_html_identical_to_manually_designed_document("--diff") do |html| - suffix = jruby? ? '-jruby' : '' - expected_file = File.dirname(__FILE__) + "/text_mate_formatted-#{::RUBY_VERSION}#{suffix}.html" - unless File.file?(expected_file) - raise "There is no HTML file with expected content for this platform: #{expected_file}" - end - expected_html = File.read(expected_file) - - seconds = /\d+\.\d+ seconds/ - html.gsub! seconds, 'x seconds' - expected_html.gsub! seconds, 'x seconds' - - doc = Nokogiri::HTML(html) - backtraces = doc.search("div.backtrace a") - doc.search("div.backtrace").remove - - expected_doc = Nokogiri::HTML(expected_html) - expected_doc.search("div.backtrace").remove - - doc.inner_html.should == expected_doc.inner_html - - backtraces.each do |backtrace_link| - backtrace_link['href'].should include("txmt://open?url=") - end - end - end - - end - - describe "functional spec using --dry-run" do - it "should produce HTML identical to the one we designed manually with --dry-run" do - produces_html_identical_to_manually_designed_document("--dry-run") do |html, expected_html| - html.should =~ /This was a dry-run/m - end - end - end - end - end - end -end - -rescue LoadError - warn "nokogiri not loaded -- skipping TextMateFormatter specs" -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckle_runner_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckle_runner_spec.rb deleted file mode 100644 index 287ff856..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckle_runner_spec.rb +++ /dev/null @@ -1,78 +0,0 @@ -require 'spec_helper' -unless [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM} || Spec::Ruby.version.to_f == 1.9 - require 'spec/runner/heckle_runner' - - module Foo - class Bar - def one; end - def two; end - end - - class Zap - def three; end - def four; end - end - end - - describe "HeckleRunner" do - before(:each) do - @heckle = mock("heckle", :null_object => true) - @heckle_class = mock("heckle_class") - end - - it "should heckle all methods in all classes in a module" do - @heckle_class.should_receive(:new).with("Foo::Bar", "one", Spec::Runner.options).and_return(@heckle) - @heckle_class.should_receive(:new).with("Foo::Bar", "two", Spec::Runner.options).and_return(@heckle) - @heckle_class.should_receive(:new).with("Foo::Zap", "three", Spec::Runner.options).and_return(@heckle) - @heckle_class.should_receive(:new).with("Foo::Zap", "four", Spec::Runner.options).and_return(@heckle) - - heckle_runner = Spec::Runner::HeckleRunner.new("Foo", @heckle_class) - heckle_runner.heckle_with - end - - it "should heckle all methods in a class" do - @heckle_class.should_receive(:new).with("Foo::Bar", "one", Spec::Runner.options).and_return(@heckle) - @heckle_class.should_receive(:new).with("Foo::Bar", "two", Spec::Runner.options).and_return(@heckle) - - heckle_runner = Spec::Runner::HeckleRunner.new("Foo::Bar", @heckle_class) - heckle_runner.heckle_with - end - - it "should fail heckling when the class is not found" do - lambda do - heckle_runner = Spec::Runner::HeckleRunner.new("Foo::Bob", @heckle_class) - heckle_runner.heckle_with - end.should raise_error(StandardError, "Heckling failed - \"Foo::Bob\" is not a known class or module") - end - - it "should heckle specific method in a class (with #)" do - @heckle_class.should_receive(:new).with("Foo::Bar", "two", Spec::Runner.options).and_return(@heckle) - - heckle_runner = Spec::Runner::HeckleRunner.new("Foo::Bar#two", @heckle_class) - heckle_runner.heckle_with - end - - it "should heckle specific method in a class (with .)" do - @heckle_class.should_receive(:new).with("Foo::Bar", "two", Spec::Runner.options).and_return(@heckle) - - heckle_runner = Spec::Runner::HeckleRunner.new("Foo::Bar.two", @heckle_class) - heckle_runner.heckle_with - end - end - - describe "Heckler" do - it "should say yes to tests_pass? if specs pass" do - options = mock("options", :null_object => true) - options.should_receive(:run_examples).and_return(true) - heckler = Spec::Runner::Heckler.new("Foo", nil, options) - heckler.tests_pass?.should be_true - end - - it "should say no to tests_pass? if specs fail" do - options = mock("options", :null_object => true) - options.should_receive(:run_examples).and_return(false) - heckler = Spec::Runner::Heckler.new("Foo", nil, options) - heckler.tests_pass?.should be_false - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckler_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckler_spec.rb deleted file mode 100644 index 00869df6..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/heckler_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -if Spec::Ruby.version.to_f < 1.9 - require 'spec_helper' - unless [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM} - require 'spec/runner/heckle_runner' - - describe "Heckler" do - it "should run examples on tests_pass?" do - sub = Class.new(Spec::Runner::Heckler) do - def initialize(klass_name, method_name, rspec_options) - @rspec_options = rspec_options - end - end - opts = mock('options') - opts.should_receive(:run_examples).and_return(true) - heckler = sub.new('klass','method',opts) - heckler.tests_pass? - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query/line_number_query_fixture.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query/line_number_query_fixture.rb deleted file mode 100644 index 82a257d3..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query/line_number_query_fixture.rb +++ /dev/null @@ -1,70 +0,0 @@ -require 'spec_helper' - -describe "c" do - - it "1" do - end - - it "2" do - end - -end - -describe "d" do - - it "3" do - end - - it "4" do - end - -end - -class LineNumberQuerySubject -end - -describe LineNumberQuerySubject do - - it "5" do - end - -end - -describe LineNumberQuerySubject, "described" do - - it "6" do - end - -end - -describe LineNumberQuerySubject, "described", :something => :something_else do - - it "7" do - end - -end - -describe "described", :something => :something_else do - - it "8" do - end - -end - -describe "e" do - - it "9" do - end - - it "10" do - end - - describe "f" do - it "11" do - end - - it "12" do - end - end - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query_spec.rb deleted file mode 100644 index e4e11050..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/line_number_query_spec.rb +++ /dev/null @@ -1,129 +0,0 @@ -require 'spec_helper' - -describe "LineNumberQuery" do - with_sandboxed_options do - attr_reader :parser, :file - - before do - @parser = Spec::Runner::LineNumberQuery.new(options) - @file = "#{File.dirname(__FILE__)}/line_number_query/line_number_query_fixture.rb" - load file - end - - it "should find spec name for 'specify' at same line" do - parser.spec_name_for(file, 5).should == "c 1" - end - - it "should find spec name for 'specify' at end of spec line" do - parser.spec_name_for(file, 6).should == "c 1" - end - - it "should find context for 'context' above all specs" do - parser.spec_name_for(file, 4).should == "c" - end - - it "should find spec name for 'it' at same line" do - parser.spec_name_for(file, 15).should == "d 3" - end - - it "should find spec name for 'it' at end of spec line" do - parser.spec_name_for(file, 16).should == "d 3" - end - - it "should find context for 'describe' above all specs" do - parser.spec_name_for(file, 14).should == "d" - end - - it "should find nearest example name between examples" do - parser.spec_name_for(file, 7).should == "c 1" - end - - it "should find nothing outside a context" do - parser.spec_name_for(file, 2).should be_nil - end - - it "should find context name for type" do - parser.spec_name_for(file, 26).should == "LineNumberQuerySubject" - end - - it "should find context and spec name for type" do - parser.spec_name_for(file, 28).should == "LineNumberQuerySubject 5" - end - - it "should find context and description for type" do - parser.spec_name_for(file, 33).should == "LineNumberQuerySubject described" - end - - it "should find context and description and example for type" do - parser.spec_name_for(file, 36).should == "LineNumberQuerySubject described 6" - end - - it "should find context and description for type with modifications" do - parser.spec_name_for(file, 40).should == "LineNumberQuerySubject described" - end - - it "should find context and described and example for type with modifications" do - parser.spec_name_for(file, 43).should == "LineNumberQuerySubject described 7" - end - - it "should find example group" do - parser.spec_name_for(file, 47).should == "described" - end - - it "should find example" do - parser.spec_name_for(file, 50).should == "described 8" - end - - it "should find nested example" do - parser.spec_name_for(file, 63).should == "e f 11" - end - - it "should handle paths which contain colons" do - fixture = - { "c:/somepath/somefile.rb:999:in 'method'" => "c:/somepath/somefile.rb", - "./somepath/somefile:999" => "./somepath/somefile" } - fixture.each_pair do |input, expected| - parser.send(:parse_location, input ).should == [expected, 999] - end - end - - it "should handle paths which contain colons and backslashes" do - fixture = - { "c:\\somepath\\somefile.rb:999:in 'method'" => "c:\\somepath\\somefile.rb", - ".\\somepath\\somefile:999" => ".\\somepath\\somefile" } - fixture.each_pair do |input, expected| - parser.send(:parse_location, input ).should == [expected, 999] - end - end - - it "ignores example group base classes which have no location" do - options = stub('options', :example_groups => [ - stub('example_group', :location => nil) - ]) - parser = Spec::Runner::LineNumberQuery.new(options) - parser.spec_name_for('foo',37).should == nil - end - - describe "#example_line_for" do - it "should find example declared on same line" do - parser.example_line_for(file, 5).should == 5 - end - - it "should find example declared on the line above, while still inside the example" do - parser.example_line_for(file, 6).should == 5 - end - - it "should find example declared from empty line below the example" do - parser.example_line_for(file, 7).should == 5 - end - - it "should find the group declared on the same line" do - parser.example_line_for(file, 3).should == 3 - end - - it "should find the group declared above the first example" do - parser.example_line_for(file, 4).should == 3 - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/noisy_backtrace_tweaker_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/noisy_backtrace_tweaker_spec.rb deleted file mode 100644 index 13b79432..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe NoisyBacktraceTweaker do - before(:each) do - @error = RuntimeError.new - @tweaker = NoisyBacktraceTweaker.new - end - - it "gracefully handles nil backtrace" do - lambda do - @tweaker.tweak_backtrace(@error) - end.should_not raise_error - end - - it "cleans up double slashes" do - @error.set_backtrace(["/a//b/c//d.rb"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should include("/a/b/c/d.rb") - end - - it "preserves lines in lib/spec" do - ["expectations", "mocks", "runner", "stubs"].each do |child| - @error.set_backtrace(["/lib/spec/#{child}/anything.rb"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should_not be_empty - end - end - - it "preserves lines in spec/" do - @error.set_backtrace(["/lib/spec/expectations/anything.rb"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should_not be_empty - end - - it "preserves lines in bin/spec" do - @error.set_backtrace(["bin/spec:"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should_not be_empty - end - - it "ignores custom patterns" do - @tweaker.ignore_patterns(/custom_pattern/) - @error.set_backtrace(["custom_pattern"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should_not be_empty - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/option_parser_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/option_parser_spec.rb deleted file mode 100644 index a516bc68..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/option_parser_spec.rb +++ /dev/null @@ -1,545 +0,0 @@ -require 'spec_helper' -require 'spec/runner/resources/custom_example_group_runner' -require 'fakefs/safe' -require 'fakefs/spec_helpers' - -describe "OptionParser" do - before(:each) do - @out = StringIO.new - @err = StringIO.new - @parser = Spec::Runner::OptionParser.new(@err, @out) - end - - def parse(args) - @parser.parse(args) - @parser.options - end - - # FIXME - this entire file should run w/ fakefs - describe "with fakefs" do - extend FakeFS::SpecHelpers - use_fakefs - - it "should not use colour by default" do - options = parse([]) - options.colour.should == false - end - - it "should use progress bar formatter by default" do - options = parse([]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::ProgressBarFormatter) - end - end - - it "should leave the submitted argv alone" do - args = ["--pattern", "foo"] - @parser.order!(args) - args.should == ["--pattern", "foo"] - end - - it "should accept files to include" do - options = parse(["--pattern", "foo"]) - options.filename_pattern.should == "foo" - end - - it "should accept debugger option" do - options = parse(["--debugger"]) - options.debug.should be_true - end - - it "should accept -u form of debugger option" do - options = parse(["-u"]) - options.debug.should be_true - end - - it "should turn off the debugger option if drb is specified later" do - @parser.stub!(:parse_drb).with(no_args).and_return(true) - options = parse(["-u", "--drb"]) - options.debug.should be_false - end - - it "should turn off the debugger option if drb is specified first" do - @parser.stub!(:parse_drb).with(no_args).and_return(true) - options = parse(["--drb", "-u"]) - options.debug.should be_false - end - - it "should accept dry run option" do - options = parse(["--dry-run"]) - options.dry_run.should be_true - end - - it "should eval and use custom formatter when none of the builtins" do - options = parse(["--format", "Custom::Formatter"]) - options.formatters[0].class.should be(Custom::Formatter) - end - - it "should support formatters with relative and absolute paths, even on windows" do - options = parse([ - "--format", "Custom::Formatter:C:\\foo\\bar", - "--format", "Custom::Formatter:foo/bar", - "--format", "Custom::Formatter:foo\\bar", - "--format", "Custom::Formatter:/foo/bar" - ]) - options.formatters[0].where.should eql("C:\\foo\\bar") - options.formatters[1].where.should eql("foo/bar") - options.formatters[2].where.should eql("foo\\bar") - options.formatters[3].where.should eql("/foo/bar") - end - - it "should not be verbose by default" do - options = parse([]) - options.verbose.should be_nil - end - - it "should print help to stdout if no args and spec_comand?" do - Spec::Runner::OptionParser.stub!(:spec_command?).and_return(true) - options = parse([]) - @out.rewind - @out.read.should match(/Usage: spec \(FILE\(:LINE\)\?\|DIRECTORY\|GLOB\)\+ \[options\]/m) - end - - it "should not print help to stdout if no args and NOT spec_command?" do - Spec::Runner::OptionParser.stub!(:spec_command?).and_return(false) - options = parse([]) - @out.rewind - @out.read.should == "" - end - - it "should print help to stdout" do - options = parse(["--help"]) - @out.rewind - @out.read.should match(/Usage: spec \(FILE\(:LINE\)\?\|DIRECTORY\|GLOB\)\+ \[options\]/m) - end - - it "should print instructions about how to require missing formatter" do - lambda do - options = parse(["--format", "Custom::MissingFormatter"]) - options.formatters - end.should raise_error(NameError) - @err.string.should match(/Couldn't find formatter class Custom::MissingFormatter/n) - end - - it "should print version to stdout" do - options = parse(["--version"]) - @out.rewind - @out.read.should match(/rspec \d+\.\d+\.\d+/n) - end - - it "should require file when require specified" do - lambda do - parse(["--require", "whatever"]) - end.should raise_error(LoadError) - end - - it "should support c option" do - options = parse(["-c"]) - options.colour.should be_true - end - - it "should support queens colour option" do - options = parse(["--colour"]) - options.colour.should be_true - end - - it "should support us color option" do - options = parse(["--color"]) - options.colour.should be_true - end - - it "should support single example with -e option" do - options = parse(["-e", "something or other"]) - options.examples.should eql(["something or other"]) - end - - it "should support single example with -s option (will be removed when autotest supports -e)" do - options = parse(["-s", "something or other"]) - options.examples.should eql(["something or other"]) - end - - it "should support single example with --example option" do - options = parse(["--example", "something or other"]) - options.examples.should eql(["something or other"]) - end - - it "should read several example names from file if --example is given an existing file name" do - options = parse(["--example", File.dirname(__FILE__) + '/examples.txt']) - options.examples.should eql([ - "Sir, if you were my husband, I would poison your drink.", - "Madam, if you were my wife, I would drink it."]) - end - - it "should read no examples if given an empty file" do - options = parse(["--example", File.dirname(__FILE__) + '/empty_file.txt']) - options.examples.should eql([]) - end - - it "should use html formatter when format is h" do - options = parse(["--format", "h"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::HtmlFormatter) - end - - it "should use html formatter when format is html" do - options = parse(["--format", "html"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::HtmlFormatter) - end - - it "should use silent formatter when format is s" do - options = parse(["--format", "l"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::SilentFormatter) - end - - it "should use silent formatter when format is silent" do - options = parse(["--format", "silent"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::SilentFormatter) - end - - it "should use html formatter with explicit output when format is html:test.html" do - FileUtils.rm 'test.html' if File.exist?('test.html') - options = parse(["--format", "html:test.html"]) - options.formatters # creates the file - File.should exist('test.html') - options.formatters[0].class.should equal(Spec::Runner::Formatter::HtmlFormatter) - options.formatters[0].close - FileUtils.rm 'test.html' - end - - it "should use noisy backtrace tweaker with b option" do - options = parse(["-b"]) - options.backtrace_tweaker.should be_instance_of(Spec::Runner::NoisyBacktraceTweaker) - end - - it "should use noisy backtrace tweaker with backtrace option" do - options = parse(["--backtrace"]) - options.backtrace_tweaker.should be_instance_of(Spec::Runner::NoisyBacktraceTweaker) - end - - it "should use quiet backtrace tweaker by default" do - options = parse([]) - options.backtrace_tweaker.should be_instance_of(Spec::Runner::QuietBacktraceTweaker) - end - - it "should use specdoc formatter when format is s" do - options = parse(["--format", "s"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::SpecdocFormatter) - end - - it "should use specdoc formatter when format is specdoc" do - options = parse(["--format", "specdoc"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::SpecdocFormatter) - end - - it "should use nested text formatter when format is s" do - options = parse(["--format", "n"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::NestedTextFormatter) - end - - it "should use nested text formatter when format is nested" do - options = parse(["--format", "nested"]) - options.formatters[0].class.should equal(Spec::Runner::Formatter::NestedTextFormatter) - end - - it "should support diff option when format is not specified" do - options = parse(["--diff"]) - options.diff_format.should == :unified - end - - it "should use unified diff format option when format is unified" do - options = parse(["--diff", "unified"]) - options.diff_format.should == :unified - options.differ_class.should equal(Spec::Expectations::Differs::Default) - end - - it "should use context diff format option when format is context" do - options = parse(["--diff", "context"]) - options.diff_format.should == :context - options.differ_class.should == Spec::Expectations::Differs::Default - end - - it "should use custom diff format option when format is a custom format" do - Spec::Expectations.differ.should_not be_instance_of(Custom::Differ) - - options = parse(["--diff", "Custom::Differ"]) - options.parse_diff "Custom::Differ" - options.diff_format.should == :custom - options.differ_class.should == Custom::Differ - Spec::Expectations.differ.should be_instance_of(Custom::Differ) - end - - it "should print instructions about how to fix missing differ" do - lambda { parse(["--diff", "Custom::MissingFormatter"]) }.should raise_error(NameError) - @err.string.should match(/Couldn't find differ class Custom::MissingFormatter/n) - end - - describe "when attempting a focussed spec" do - attr_reader :file, :dir - before(:each) do - @original_rspec_options = Spec::Runner.options - @file = "#{File.dirname(__FILE__)}/line_number_query/line_number_query_fixture.rb" - @dir = File.dirname(file) - end - - after(:each) do - Spec::Runner.use @original_rspec_options - end - - def parse(args) - options = super - Spec::Runner.use options - options.filename_pattern = "*_fixture.rb" - options - end - - describe 'with the --line flag' do - it "should correctly identify the spec" do - options = parse([file, "--line", "13"]) - options.line_number.should == 13 - options.examples.should be_empty - options.run_examples - options.examples.should eql(["d"]) - end - - it "should fail with error message if specified file is a dir" do - options = parse([dir, "--line", "169"]) - options.line_number.should == 169 - options.run_examples - @err.string.should match(/You must specify one file, not a directory when providing a line number/n) - end - - - it "should fail with error message if file does not exist" do - options = parse(["some file", "--line", "169"]) - proc do - options.run_examples - end.should raise_error - end - - it "should fail with error message if more than one files are specified" do - options = parse([file, file, "--line", "169"]) - options.run_examples - @err.string.should match(/Only one file can be specified when providing a line number/n) - end - - it "should fail with error message if using simultaneously with --example" do - options = parse([file, "--example", "some example", "--line", "169"]) - options.run_examples - @err.string.should match(/You cannot use --example and specify a line number/n) - end - end - - describe 'with the colon syntax (filename:LINE_NUMBER)' do - - it "should strip the line number from the file name" do - options = parse(["#{file}:13"]) - options.files.should include(file) - end - - it "should correctly identify the spec" do - options = parse(["#{file}:13"]) - options.line_number.should == 13 - options.examples.should be_empty - options.run_examples - options.examples.should eql(["d"]) - end - - it "should fail with error message if specified file is a dir" do - options = parse(["#{dir}:169"]) - options.line_number.should == 169 - options.run_examples - @err.string.should match(/You must specify one file, not a directory when providing a line number/n) - end - - - it "should fail with error message if file does not exist" do - options = parse(["some file:169"]) - proc do - options.run_examples - end.should raise_error - end - - it "should fail with error message if more than one files are specified" do - options = parse([file, "#{file}:169"]) - options.run_examples - @err.string.should match(/Only one file can be specified when providing a line number/n) - end - - it "should fail with error message if using simultaneously with --example" do - options = parse(["#{file}:169", "--example", "some example"]) - options.run_examples - @err.string.should match(/You cannot use --example and specify a line number/n) - end - end - - end - - if [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM} - it "should barf when --heckle is specified (and platform is windows)" do - lambda do - options = parse(["--heckle", "Spec"]) - end.should raise_error(StandardError, /Heckle is not supported/) - end - elsif Spec::Ruby.version.to_f == 1.9 - it "should barf when --heckle is specified (and platform is Ruby 1.9)" do - lambda do - options = parse(["--heckle", "Spec"]) - end.should raise_error(StandardError, /Heckle is not supported/) - end - else - it "should heckle when --heckle is specified (and platform is not windows)" do - options = parse(["--heckle", "Spec"]) - options.heckle_runner.should be_instance_of(Spec::Runner::HeckleRunner) - end - end - - it "should read options from file when --options is specified" do - options = parse(["--options", File.dirname(__FILE__) + "/spec.opts"]) - options.diff_format.should_not be_nil - options.colour.should be_true - end - - it "should default the formatter to ProgressBarFormatter when using options file" do - options = parse(["--options", File.dirname(__FILE__) + "/spec.opts"]) - options.formatters.first.should be_instance_of(::Spec::Runner::Formatter::ProgressBarFormatter) - end - - it "should run parse drb after parsing options" do - @parser.should_receive(:parse_drb).with(no_args).and_return(true) - options = parse(["--options", File.dirname(__FILE__) + "/spec_drb.opts"]) - end - - it "should send all the arguments other than --drb back to the parser after parsing options" do - Spec::Runner::DrbCommandLine.should_receive(:run).and_return do |options| - options.argv.should == ["example_file.rb", "--colour"] - end - options = parse(["example_file.rb", "--options", File.dirname(__FILE__) + "/spec_drb.opts"]) - end - - it "runs specs locally if no drb is running when --drb is specified" do - Spec::Runner::DrbCommandLine.should_receive(:run).and_return(false) - options = parse(["example_file.rb", "--options", File.dirname(__FILE__) + "/spec_drb.opts"]) - options.__send__(:examples_should_be_run?).should be_true - end - - it "says its running specs locally if no drb is running when --drb is specified" do - Spec::Runner::DrbCommandLine.should_receive(:run).and_return(false) - options = parse(["example_file.rb", "--options", File.dirname(__FILE__) + "/spec_drb.opts"]) - options.error_stream.rewind - options.error_stream.string.should =~ /Running specs locally/ - end - - it "does not run specs locally if drb is running when --drb is specified" do - Spec::Runner::DrbCommandLine.should_receive(:run).and_return(true) - options = parse(["example_file.rb", "--options", File.dirname(__FILE__) + "/spec_drb.opts"]) - options.__send__(:examples_should_be_run?).should be_false - end - - it "should read spaced and multi-line options from file when --options is specified" do - options = parse(["--options", File.dirname(__FILE__) + "/spec_spaced.opts"]) - options.diff_format.should_not be_nil - options.colour.should be_true - options.formatters.first.should be_instance_of(::Spec::Runner::Formatter::SpecdocFormatter) - end - - it "should save config to file when --generate-options is specified" do - FileUtils.rm 'test.spec.opts' if File.exist?('test.spec.opts') - options = parse(["--colour", "--generate-options", "test.spec.opts", "--diff"]) - IO.read('test.spec.opts').should == "--colour\n--diff\n" - FileUtils.rm 'test.spec.opts' - end - - it "should save config to file when -G is specified" do - FileUtils.rm 'test.spec.opts' if File.exist?('test.spec.opts') - options = parse(["--colour", "-G", "test.spec.opts", "--diff"]) - IO.read('test.spec.opts').should == "--colour\n--diff\n" - FileUtils.rm 'test.spec.opts' - end - - it "when --drb is specified, calls DrbCommandLine all of the other ARGV arguments" do - options = Spec::Runner::OptionParser.parse([ - "some/spec.rb", "--diff", "--colour" - ], @err, @out) - Spec::Runner::DrbCommandLine.should_receive(:run).and_return do |options| - options.argv.should == ["some/spec.rb", "--diff", "--colour"] - end - parse(["some/spec.rb", "--diff", "--drb", "--colour"]) - end - - it "should reverse spec order when --reverse is specified" do - options = parse(["some/spec.rb", "--reverse"]) - end - - it "should set an mtime comparator when --loadby mtime" do - options = parse(["--loadby", 'mtime']) - runner = Spec::Runner::ExampleGroupRunner.new(options) - Spec::Runner::ExampleGroupRunner.should_receive(:new). - with(options). - and_return(runner) - runner.should_receive(:load_files).with(["most_recent_spec.rb", "command_line_spec.rb"]) - - Dir.chdir(File.dirname(__FILE__)) do - options.files << 'command_line_spec.rb' - options.files << 'most_recent_spec.rb' - FileUtils.touch "most_recent_spec.rb" - options.run_examples - FileUtils.rm "most_recent_spec.rb" - end - end - - it "should use the standard runner by default" do - runner = ::Spec::Runner::ExampleGroupRunner.new(@parser.options) - ::Spec::Runner::ExampleGroupRunner.should_receive(:new). - with(@parser.options). - and_return(runner) - options = parse([]) - options.run_examples - end - - it "should use a custom runner when given" do - runner = Custom::ExampleGroupRunner.new(@parser.options, nil) - Custom::ExampleGroupRunner.should_receive(:new). - with(@parser.options, nil). - and_return(runner) - options = parse(["--runner", "Custom::ExampleGroupRunner"]) - options.run_examples - end - - it "should use a custom runner with extra options" do - runner = Custom::ExampleGroupRunner.new(@parser.options, 'something') - Custom::ExampleGroupRunner.should_receive(:new). - with(@parser.options, 'something'). - and_return(runner) - options = parse(["--runner", "Custom::ExampleGroupRunner:something"]) - options.run_examples - end - - it "sets options.autospec to true with --autospec" do - options = parse(["--autospec"]) - options.autospec.should be(true) - end - - describe "implicitly loading spec/spec.opts" do - extend FakeFS::SpecHelpers - use_fakefs - it "uses spec/spec.opts if present" do - File.open('spec/spec.opts', 'w') { |f| f.write "--colour" } - options = parse(['ignore.rb']) - options.colour.should be(true) - end - - it "does not try to load spec/spec.opts if not present" do - FileUtils.rm 'spec/spec.opts' - options = parse(['ignore.rb']) - options.colour.should be(false) - end - - it "uses specified opts if supplied" do - options = nil - File.open("spec/spec.opts",'w') { |f| f.write "" } - File.open("spec/alternate.opts",'w') { |f| f.write "--colour" } - options = parse(['-O','spec/alternate.opts']) - options.colour.should be(true) - end - end - - -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/options_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/options_spec.rb deleted file mode 100644 index bb1e0e8c..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/options_spec.rb +++ /dev/null @@ -1,547 +0,0 @@ -require 'spec_helper' -require 'spec/runner/resources/custom_example_group_runner' - -module Spec - module Runner - describe Options do - before(:each) do - @err = StringIO.new('') - @out = StringIO.new('') - @options = Options.new(@err, @out) - - before_suite_parts = [] - after_suite_parts = [] - @options.stub!(:before_suite_parts).and_return(before_suite_parts) - @options.stub!(:after_suite_parts).and_return(after_suite_parts) - end - - after(:each) do - Spec::Expectations.differ = nil - end - - describe "#require_ruby_debug" do - it "should require ruby-debug" do - @options.stub!(:require) - @options.should_receive(:require).with("ruby-debug") - @options.require_ruby_debug - end - end - - describe "#examples" do - it "should default to empty array" do - @options.examples.should == [] - end - end - - describe "#include_pattern" do - it "should default to '**/*_spec.rb'" do - @options.filename_pattern.should == "**/*_spec.rb" - end - end - - describe "#files_to_load" do - - it "should load files not following pattern if named explicitly" do - file = File.expand_path(File.dirname(__FILE__) + "/resources/a_bar.rb") - @options.files << file - @options.files_to_load.should include(file) - end - - describe "with default --pattern" do - it "should load files named _spec.rb" do - dir = File.expand_path(File.dirname(__FILE__) + "/resources/") - @options.files << dir - @options.files_to_load.should == ["#{dir}/a_spec.rb"] - end - end - - describe "with explicit pattern (single)" do - before(:each) do - @options.filename_pattern = "**/*_foo.rb" - end - - it "should load files following pattern" do - file = File.expand_path(File.dirname(__FILE__) + "/resources/a_foo.rb") - @options.files << file - @options.files_to_load.should include(file) - end - - it "should load files in directories following pattern" do - dir = File.expand_path(File.dirname(__FILE__) + "/resources") - @options.files << dir - @options.files_to_load.should include("#{dir}/a_foo.rb") - end - - it "should not load files in directories not following pattern" do - dir = File.expand_path(File.dirname(__FILE__) + "/resources") - @options.files << dir - @options.files_to_load.should_not include("#{dir}/a_bar.rb") - end - end - - describe "with explicit pattern (comma,separated,values)" do - - before(:each) do - @options.filename_pattern = "**/*_foo.rb,**/*_bar.rb" - end - - it "should support comma separated values" do - dir = File.expand_path(File.dirname(__FILE__) + "/resources") - @options.files << dir - @options.files_to_load.should include("#{dir}/a_foo.rb") - @options.files_to_load.should include("#{dir}/a_bar.rb") - end - - it "should support comma separated values with spaces" do - dir = File.expand_path(File.dirname(__FILE__) + "/resources") - @options.files << dir - @options.files_to_load.should include("#{dir}/a_foo.rb") - @options.files_to_load.should include("#{dir}/a_bar.rb") - end - - end - - end - - describe "#backtrace_tweaker" do - it "should default to QuietBacktraceTweaker" do - @options.backtrace_tweaker.class.should == QuietBacktraceTweaker - end - - it "adds custom ignored backtrace patterns" do - Spec::Runner.configuration.stub!(:ignored_backtrace_patterns).and_return([/custom_pattern/]) - @options.run_examples - @options.backtrace_tweaker.ignored_patterns.should include(/custom_pattern/) - end - end - - describe "#dry_run" do - it "should default to false" do - @options.dry_run.should == false - end - end - - describe "#debug" do - it "should default to false" do - @options.debug.should == false - end - end - - describe "#context_lines" do - it "should default to 3" do - @options.context_lines.should == 3 - end - end - - describe "#parse_diff with nil" do - before(:each) do - @options.parse_diff nil - end - - it "should make diff_format unified" do - @options.diff_format.should == :unified - end - - it "should set Spec::Expectations.differ to be a default differ" do - Spec::Expectations.differ.class.should == - ::Spec::Expectations::Differs::Default - end - end - - describe "#parse_diff with 'unified'" do - before(:each) do - @options.parse_diff 'unified' - end - - it "should make diff_format unified and uses default differ_class" do - @options.diff_format.should == :unified - @options.differ_class.should equal(Spec::Expectations::Differs::Default) - end - - it "should set Spec::Expectations.differ to be a default differ" do - Spec::Expectations.differ.class.should == - ::Spec::Expectations::Differs::Default - end - end - - describe "#parse_diff with 'context'" do - before(:each) do - @options.parse_diff 'context' - end - - it "should make diff_format context and uses default differ_class" do - @options.diff_format.should == :context - @options.differ_class.should == Spec::Expectations::Differs::Default - end - - it "should set Spec::Expectations.differ to be a default differ" do - Spec::Expectations.differ.class.should == - ::Spec::Expectations::Differs::Default - end - end - - describe "#parse_diff with Custom::Differ" do - before(:each) do - @options.parse_diff 'Custom::Differ' - end - - it "should use custom differ_class" do - @options.diff_format.should == :custom - @options.differ_class.should == Custom::Differ - Spec::Expectations.differ.should be_instance_of(Custom::Differ) - end - - it "should set Spec::Expectations.differ to be a default differ" do - Spec::Expectations.differ.class.should == - ::Custom::Differ - end - end - - describe "#parse_diff with missing class name" do - it "should raise error" do - lambda { @options.parse_diff "Custom::MissingDiffer" }.should raise_error(NameError) - @err.string.should match(/Couldn't find differ class Custom::MissingDiffer/n) - end - end - - describe "#parse_example" do - it "with argument thats not a file path, sets argument as the example" do - example = "something or other" - File.file?(example).should == false - @options.parse_example example - @options.examples.should eql(["something or other"]) - end - - it "with argument that is a file path, sets examples to contents of the file" do - example = "#{File.dirname(__FILE__)}/examples.txt" - File.should_receive(:file?).with(example).and_return(true) - file = StringIO.new("Sir, if you were my husband, I would poison your drink.\nMadam, if you were my wife, I would drink it.") - File.should_receive(:open).with(example).and_return(file) - - @options.parse_example example - @options.examples.should eql([ - "Sir, if you were my husband, I would poison your drink.", - "Madam, if you were my wife, I would drink it." - ]) - end - end - - describe "#examples_should_not_be_run" do - it "should cause #run_examples to return true and do nothing" do - @options.examples_should_not_be_run - ExampleGroupRunner.should_not_receive(:new) - - @options.run_examples.should be_true - end - end - - describe "debug option specified" do - it "should cause ruby_debug to be required and do nothing" do - @options.debug = true - @options.should_receive(:require_ruby_debug) - @options.run_examples.should be_true - end - end - - describe "debug option not specified" do - it "should not cause ruby_debug to be required" do - @options.debug = false - @options.should_not_receive(:require_ruby_debug) - @options.run_examples.should be_true - end - end - - describe "#load_class" do - it "should raise error when not class name" do - lambda do - @options.__send__(:load_class, 'foo', 'fruit', '--food') - end.should raise_error('"foo" is not a valid class name') - end - end - - describe "#reporter" do - it "returns a Reporter" do - @options.reporter.should be_instance_of(Reporter) - @options.reporter.options.should === @options - end - end - - describe "#number_of_examples" do - context "when --example is parsed" do - it "provides the number of examples parsed instead of the total number of examples collected" do - @example_group = Class.new(::Spec::Example::ExampleGroup).describe("Some Examples") do - it "uses this example_group 1" do; end - it "uses this example_group 2" do; end - it "uses this example_group 3" do; end - end - @options.add_example_group @example_group - @options.parse_example("an example") - @options.number_of_examples.should == 1 - end - end - end - - describe "#add_example_group affecting passed in example_group" do - it "runs all examples when options.examples is empty" do - example_1_has_run = false - example_2_has_run = false - @example_group = Class.new(::Spec::Example::ExampleGroup).describe("Some Examples") do - it "runs 1" do - example_1_has_run = true - end - it "runs 2" do - example_2_has_run = true - end - end - - @options.examples.clear - - @options.add_example_group @example_group - @options.run_examples - example_1_has_run.should be_true - example_2_has_run.should be_true - end - - it "keeps all example_definitions when options.examples is empty" do - example_1_has_run = false - example_2_has_run = false - @example_group = Class.new(::Spec::Example::ExampleGroup).describe("Some Examples") do - it "runs 1" do - example_1_has_run = true - end - it "runs 2" do - example_2_has_run = true - end - end - - @options.add_example_group @example_group - @options.run_examples - example_1_has_run.should be_true - example_2_has_run.should be_true - end - end - - describe "#add_example_group affecting example_group" do - it "adds example_group when example_group has example_definitions and is not shared" do - @example_group = Class.new(::Spec::Example::ExampleGroup).describe("Some Examples") do - it "uses this example_group" do - end - end - - @options.number_of_examples.should == 0 - @options.add_example_group @example_group - @options.number_of_examples.should == 1 - @options.example_groups.length.should == 1 - end - end - - describe "#remove_example_group" do - it "should remove the ExampleGroup from the list of ExampleGroups" do - @example_group = Class.new(::Spec::Example::ExampleGroup).describe("Some Examples") do - end - @options.add_example_group @example_group - @options.example_groups.should include(@example_group) - - @options.remove_example_group @example_group - @options.example_groups.should_not include(@example_group) - end - end - - describe "#run_examples" do - describe "with global predicate matchers" do - it "defines global predicate matcher methods on ExampleMethods" do - Spec::Runner.configuration.stub!(:predicate_matchers).and_return({:this => :that?}) - group = Class.new(::Spec::Example::ExampleGroupDouble).describe("Some Examples") - example = group.new(::Spec::Example::ExampleProxy.new) - - @options.run_examples - example.this - end - - after(:each) do - Spec::Example::ExampleMethods.class_eval "undef :this" - end - end - - describe "with a mock framework defined as a Symbol" do - it "includes Spec::Adapters::MockFramework" do - Spec::Runner.configuration.stub!(:mock_framework).and_return('spec/adapters/mock_frameworks/rspec') - - Spec::Example::ExampleMethods.should_receive(:include).with(Spec::Adapters::MockFramework) - - @options.run_examples - end - end - - describe "with a mock framework defined as a Module" do - it "includes the module in ExampleMethods" do - mod = Module.new - Spec::Runner.configuration.stub!(:mock_framework).and_return(mod) - Spec::Example::ExampleMethods.should_receive(:include).with(mod) - @options.run_examples - end - end - - describe "when not given a custom runner" do - it "should use the standard" do - runner = ::Spec::Runner::ExampleGroupRunner.new(@options) - ::Spec::Runner::ExampleGroupRunner.should_receive(:new). - with(@options). - and_return(runner) - @options.user_input_for_runner = nil - - @options.run_examples - end - end - - describe "when given a custom runner" do - it "should use the custom runner" do - runner = Custom::ExampleGroupRunner.new(@options, nil) - Custom::ExampleGroupRunner.should_receive(:new). - with(@options, nil). - and_return(runner) - @options.user_input_for_runner = "Custom::ExampleGroupRunner" - - @options.run_examples - end - - it "should use the custom runner with extra options" do - runner = Custom::ExampleGroupRunner.new(@options, 'something') - Custom::ExampleGroupRunner.should_receive(:new). - with(@options, 'something'). - and_return(runner) - @options.user_input_for_runner = "Custom::ExampleGroupRunner:something" - - @options.run_examples - end - end - - describe "when there are examples" do - before(:each) do - @example_group = Class.new(::Spec::Example::ExampleGroup) - @options.add_example_group @example_group - @options.formatters << Formatter::BaseTextFormatter.new(@options, @out) - end - - it "runs the Examples and outputs the result" do - @options.run_examples - @out.string.should include("0 examples, 0 failures") - end - - it "sets #examples_run? to true" do - @options.examples_run?.should be_false - @options.run_examples - @options.examples_run?.should be_true - end - - describe "and the suite passes" do - before do - @example_group.should_receive(:run).and_return(true) - end - - it "invokes after_suite_parts with true" do - success_result = nil - @options.after_suite_parts << lambda do |success| - success_result = success - end - - @options.run_examples - success_result.should be_true - end - end - - describe "and the suite fails" do - before(:each) do - @example_group.should_receive(:run).and_return(false) - end - - it "invokes after_suite_parts with false" do - success_result = nil - @options.after_suite_parts << lambda do |success| - success_result = success - end - - @options.run_examples - success_result.should be_false - end - end - - describe "when using heckle runner" do - before(:each) do - @heckle_runner_mock = mock("HeckleRunner") - @options.heckle_runner = @heckle_runner_mock - end - - it "should heckle" do - @heckle_runner_mock.should_receive(:heckle_with) - @options.run_examples - end - - it "shouldn't heckle recursively" do - heckled = false - @heckle_runner_mock.should_receive(:heckle_with) { - heckled.should == false - heckled = true - @options.run_examples - } - @options.run_examples - end - - it "shouldn't load spec files twice" do - example_runner = mock("ExampleGroupRunner") - example_runner_inside_heckle = mock("ExampleGroupRunner inside Heckle") - - ExampleGroupRunner.should_receive(:new).twice.and_return( - example_runner, example_runner_inside_heckle - ) - - example_runner.stub!(:run) - example_runner.should_receive(:load_files) - @heckle_runner_mock.stub!(:heckle_with).and_return { @options.run_examples } - example_runner_inside_heckle.stub!(:run) - example_runner_inside_heckle.should_not_receive(:load_files) - - @options.run_examples - end - end - end - - describe "when there are no examples" do - before(:each) do - @options.formatters << Formatter::BaseTextFormatter.new(@options, @out) - end - - it "does not run Examples and does not output a result" do - @options.run_examples - @out.string.should_not include("examples") - @out.string.should_not include("failures") - end - - it "sets #examples_run? to false" do - @options.examples_run?.should be_false - @options.run_examples - @options.examples_run?.should be_false - end - - it "invokes after_suite_parts with true" do - success_result = nil - @options.after_suite_parts << lambda do |success| - success_result = success - end - - @options.run_examples - success_result.should be_true - end - end - end - - describe "#add_dir_from_project_root_to_load_path" do - it "handles nil gracefully" do - load_path = double().as_null_object - @options.stub(:project_root).and_return(nil) - @options.add_dir_from_project_root_to_load_path(nil,load_path) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture.rb deleted file mode 100644 index 8a3a9fc7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'spec_helper' - -describe "Running an Example" do - it "should not output twice" do - true.should be_true - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture_runner.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture_runner.rb deleted file mode 100644 index b6b3761e..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_fixture_runner.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "spec_helper" - -triggering_double_output = Spec::Runner.options -options = Spec::Runner::OptionParser.parse( - [File.dirname(__FILE__) + "/output_one_time_fixture.rb"], $stderr, $stdout -) -Spec::Runner::CommandLine.run(options) diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_spec.rb deleted file mode 100644 index c91bb0ff..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/output_one_time_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' -require 'ruby_forker' - -module Spec - module Runner - describe CommandLine do - include RubyForker - it "should not output twice" do - output = ruby "-Ilib bin/spec spec/spec/runner/output_one_time_fixture_runner.rb" - output.should include("1 example, 0 failures") - output.should_not include("0 examples, 0 failures") - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/quiet_backtrace_tweaker_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/quiet_backtrace_tweaker_spec.rb deleted file mode 100644 index 30eaa736..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +++ /dev/null @@ -1,105 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe QuietBacktraceTweaker do - before(:each) do - @error = RuntimeError.new - @tweaker = QuietBacktraceTweaker.new - end - - it "gracefully handles nil backtrace" do - lambda do - @tweaker.tweak_backtrace(@error) - end.should_not raise_error - end - - it "gracefully handle backtraces with newlines" do - @error.set_backtrace(["we like\nbin/spec:\nnewlines"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should include("we like\nnewlines") - end - - it "cleans up double slashes" do - @error.set_backtrace(["/a//b/c//d.rb"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should include("/a/b/c/d.rb") - end - - it "preserves lines from textmate ruby bundle" do - @error.set_backtrace(["/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/tmruby.rb:147"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty - end - - it "removes lines in lib/spec" do - ["expectations", "mocks", "runner"].each do |child| - element="/lib/spec/#{child}/anything.rb" - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - end - - it "removes lines in bin/spec" do - @error.set_backtrace(["bin/spec:"]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty - end - - it "removes lines in mock_frameworks/rspec" do - element = "mock_frameworks/rspec" - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - - it "removes custom patterns" do - element = "/vendor/lib/custom_pattern/" - @tweaker.ignore_patterns /custom_pattern/ - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - - it "removes custom patterns added as a string" do - element = "/vendor/lib/custom_pattern/" - @tweaker.ignore_patterns "custom_pattern" - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - - it "removes lines in mock_frameworks/rspec" do - element = "mock_frameworks/rspec" - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - - it "removes lines in rspec gem" do - ["/rspec-1.2.3/lib/spec.rb","/rspec-1.2.3/lib/spec/anything.rb","bin/spec:123"].each do |element| - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - end - - it "removes lines in pre-release rspec gems" do - ["/rspec-1.2.3.a1.gem/lib/spec.rb","/rspec-1.2.3.b1.gem/lib/spec.rb","/rspec-1.2.3.rc1.gem/lib/spec.rb"].each do |element| - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - end - - it "removes lines in spork gem" do - ["/spork-1.2.3/lib/spec.rb","/spork-1.2.3/lib/spec/anything.rb","bin/spork:123"].each do |element| - @error.set_backtrace([element]) - @tweaker.tweak_backtrace(@error) - @error.backtrace.should be_empty, "Should have removed line with '#{element}'" - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/reporter_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/reporter_spec.rb deleted file mode 100644 index 556387dc..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/reporter_spec.rb +++ /dev/null @@ -1,244 +0,0 @@ -require 'spec_helper' - -module Spec - module Runner - describe Reporter do - attr_reader :formatter_output, :options, :backtrace_tweaker, :formatter, :reporter, :example_group, :example_group_proxy, :example_proxy - before(:each) do - @formatter_output = StringIO.new - @options = Options.new(StringIO.new, StringIO.new) - @backtrace_tweaker = stub("backtrace tweaker", :tweak_backtrace => nil) - options.backtrace_tweaker = backtrace_tweaker - @formatter = ::Spec::Runner::Formatter::BaseTextFormatter.new(options, formatter_output) - options.formatters << formatter - @reporter = Reporter.new(options) - @example_group = create_example_group("example_group") - @example_group_proxy = Spec::Example::ExampleGroupProxy.new(@example_group) - @example_proxy = Spec::Example::ExampleProxy.new - example_group.notify(reporter) - end - - def failure - Mocks::ArgumentMatchers::DuckTypeMatcher.new(:header, :exception) - end - - def create_example_group(text) - example_group = Spec::Example::ExampleGroup.describe(text) do - it "should do something" do - end - end - example_group - end - - it "should assign itself as the reporter to options" do - options.reporter.should equal(@reporter) - end - - it "should tell formatter when example_group is added" do - formatter.should_receive(:example_group_started).with(example_group_proxy) - example_group.notify(reporter) - end - - it "should handle multiple example_groups with same name" do - formatter.should_receive(:example_group_started).exactly(3).times - formatter.should_receive(:example_started).exactly(3).times - formatter.should_receive(:example_passed).exactly(3).times - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:close).with(no_args) - formatter.should_receive(:dump_summary).with(anything(), 3, 0, 0) - create_example_group("example_group").notify(reporter) - reporter.example_started(description_of("spec 1")) - reporter.example_finished(description_of("spec 1")) - create_example_group("example_group").notify(reporter) - reporter.example_started(description_of("spec 2")) - reporter.example_finished(description_of("spec 2")) - create_example_group("example_group").notify(reporter) - reporter.example_started(description_of("spec 3")) - reporter.example_finished(description_of("spec 3")) - reporter.dump - end - - def description_of(example) - ::Spec::Example::ExampleProxy.new(String === example ? example : example.description) - end - - it "should handle multiple examples with the same name" do - error=RuntimeError.new - passing = ::Spec::Example::ExampleGroupDouble.new(example_proxy) - failing = ::Spec::Example::ExampleGroupDouble.new(example_proxy) - - formatter.should_receive(:example_group_started).exactly(2).times - formatter.should_receive(:example_passed).with(description_of(passing)).exactly(2).times - formatter.should_receive(:example_failed).with(description_of(failing), 1, failure) - formatter.should_receive(:example_failed).with(description_of(failing), 2, failure) - formatter.should_receive(:dump_failure).exactly(2).times - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:close).with(no_args) - formatter.should_receive(:dump_summary).with(anything(), 4, 2, 0) - backtrace_tweaker.should_receive(:tweak_backtrace).twice - - create_example_group("example_group").notify(reporter) - reporter.example_finished(description_of(passing)) - reporter.example_finished(description_of(failing), error) - - create_example_group("example_group").notify(reporter) - reporter.example_finished(description_of(passing)) - reporter.example_finished(description_of(failing), error) - reporter.dump - end - - it "should push stats to formatter even with no data" do - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:dump_summary).with(anything(), 0, 0, 0) - formatter.should_receive(:close).with(no_args) - reporter.dump - end - - it "should push time to formatter" do - formatter.should_receive(:start).with(5) - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:close).with(no_args) - formatter.should_receive(:dump_summary) do |time, a, b| - time.to_s.should match(/[0-9].[0-9|e|-]+/) - end - reporter.start(5) - reporter.end - reporter.dump - end - - describe "reporting one passing example" do - it "should tell formatter example passed" do - formatter.should_receive(:example_passed) - reporter.example_finished(description_of("example")) - end - - it "should not delegate to backtrace tweaker" do - formatter.should_receive(:example_passed) - backtrace_tweaker.should_not_receive(:tweak_backtrace) - reporter.example_finished(description_of("example")) - end - - it "should account for passing example in stats" do - formatter.should_receive(:example_passed) - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:dump_summary).with(anything(), 1, 0, 0) - formatter.should_receive(:close).with(no_args) - reporter.example_finished(description_of("example")) - reporter.dump - end - end - - describe "reporting one failing example" do - it "should tell formatter that example failed" do - example = example_group.it("should do something") {} - formatter.should_receive(:example_failed) - reporter.example_finished(description_of(example), RuntimeError.new) - end - - it "should delegate to backtrace tweaker" do - formatter.should_receive(:example_failed) - backtrace_tweaker.should_receive(:tweak_backtrace) - reporter.example_finished(example_proxy, RuntimeError.new) - end - - it "should account for failing example in stats" do - example = ::Spec::Example::ExampleGroupDouble.new(example_proxy) - formatter.should_receive(:example_failed).with(description_of(example), 1, failure) - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:dump_failure).with(1, anything()) - formatter.should_receive(:dump_summary).with(anything(), 1, 1, 0) - formatter.should_receive(:close).with(no_args) - reporter.example_finished(description_of(example), RuntimeError.new) - reporter.dump - end - - end - - describe "reporting one pending example (ExamplePendingError)" do - before :each do - @pending_error = Spec::Example::ExamplePendingError.new("reason") - end - - it "should tell formatter example is pending" do - example = ExampleGroup.new(example_proxy) - formatter.should_receive(:example_pending).with(description_of(example), "reason") - formatter.should_receive(:example_group_started).with(example_group_proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example), @pending_error) - end - - it "should account for pending example in stats" do - example = ExampleGroup.new(example_proxy) - formatter.should_receive(:example_pending).with(description_of(example), "reason") - formatter.should_receive(:start_dump) - formatter.should_receive(:dump_pending) - formatter.should_receive(:dump_summary).with(anything(), 1, 0, 1) - formatter.should_receive(:close).with(no_args) - formatter.should_receive(:example_group_started).with(example_group_proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example), @pending_error) - reporter.dump - end - - describe "to formatters which have example_pending's arity of 3 (which is now deprecated)" do - before :each do - Spec.stub!(:warn) - - @deprecated_formatter = Class.new(@formatter.class) do - attr_reader :example_passed_to_method, :message_passed_to_method - - def example_pending(example_passed_to_method, message_passed_to_method, deprecated_pending_location) - @example_passed_to_method = example_passed_to_method - @message_passed_to_method = message_passed_to_method - end - end.new(options, formatter_output) - - options.formatters << @deprecated_formatter - end - - it "should pass the correct example description to the formatter" do - proxy = Spec::Example::ExampleProxy.new("name") - example = ExampleGroup.new(proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example), @pending_error) - - @deprecated_formatter.example_passed_to_method.should == proxy - end - - it "should pass the correct pending error message to the formatter" do - example = ExampleGroup.new(example_proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example), @pending_error) - - @deprecated_formatter.message_passed_to_method.should == @pending_error.message - end - - it "should raise a deprecation warning" do - Spec.should_receive(:warn) - - example = ExampleGroup.new(example_proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example), @pending_error) - end - end - end - - describe "reporting one pending example (PendingExampleFixedError)" do - it "should tell formatter pending example is fixed" do - formatter.should_receive(:example_failed) do |name, counter, failure| - failure.header.should == "'example_group should do something' FIXED" - end - formatter.should_receive(:example_group_started).with(example_group_proxy) - example_group.notify(reporter) - reporter.example_finished(description_of(example_group.examples.first), Spec::Example::PendingExampleFixedError.new("reason")) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_bar.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_bar.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_foo.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_foo.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_spec.rb deleted file mode 100644 index d9b67cc7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/a_spec.rb +++ /dev/null @@ -1 +0,0 @@ -# Empty - used by ../options_spec.rb \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/custom_example_group_runner.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/custom_example_group_runner.rb deleted file mode 100644 index edcf54e9..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/custom_example_group_runner.rb +++ /dev/null @@ -1,14 +0,0 @@ -module Custom - class ExampleGroupRunner - attr_reader :options, :arg - def initialize(options, arg) - @options, @arg = options, arg - end - - def load_files(files) - end - - def run - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/utf8_encoded.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/utf8_encoded.rb deleted file mode 100644 index 7cbdd690..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/resources/utf8_encoded.rb +++ /dev/null @@ -1,8 +0,0 @@ -# encoding: utf-8 -module Custom - class ExampleUTF8ClassNameVarietà - def self.è - così = :però - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec.opts b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec.opts deleted file mode 100644 index fd816a42..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec.opts +++ /dev/null @@ -1,2 +0,0 @@ ---diff ---colour \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_drb.opts b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_drb.opts deleted file mode 100644 index 61f260b7..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_drb.opts +++ /dev/null @@ -1,2 +0,0 @@ ---colour ---drb diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_spaced.opts b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_spaced.opts deleted file mode 100644 index 6b3efd20..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner/spec_spaced.opts +++ /dev/null @@ -1,2 +0,0 @@ ---diff --colour ---format s \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner_spec.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec/runner_spec.rb deleted file mode 100644 index 3b55be7a..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec/runner_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'spec_helper' - -module Spec - describe Runner do - describe ".configure" do - it "should yield global configuration" do - Spec::Runner.configure do |config| - config.should equal(Spec::Runner.configuration) - end - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/spec_helper.rb b/vendor/gems/gems/rspec-1.2.9/spec/spec_helper.rb deleted file mode 100644 index 3cffe875..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/spec_helper.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'stringio' - -$_spec_spec = true # Prevents Kernel.exit in various places - -require 'spec' -require 'spec/mocks' -require 'spec/runner/differs/default' -require 'spec/autorun' - -require 'support/spec_classes' -require 'support/macros' - -def jruby? - ::RUBY_PLATFORM == 'java' -end - -module Spec - module Example - class NonStandardError < Exception; end - end - - module Matchers - def fail - raise_error(Spec::Expectations::ExpectationNotMetError) - end - - def fail_with(message) - raise_error(Spec::Expectations::ExpectationNotMetError, message) - end - - def exception_from(&block) - exception = nil - begin - yield - rescue StandardError => e - exception = e - end - exception - end - - def run_with(options) - ::Spec::Runner::CommandLine.run(options) - end - - def with_ruby(version) - yield if RUBY_VERSION =~ Regexp.compile("^#{version.to_s}") - end - end -end - -def with_sandboxed_options - attr_reader :options - - before(:each) do - @original_rspec_options = ::Spec::Runner.options - ::Spec::Runner.use(@options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new)) - end - - after(:each) do - ::Spec::Runner.use(@original_rspec_options) - end - - yield -end - -def with_sandboxed_config - attr_reader :config - - before(:each) do - @config = ::Spec::Runner::Configuration.new - @original_configuration = ::Spec::Runner.configuration - spec_configuration = @config - ::Spec::Runner.instance_eval {@configuration = spec_configuration} - end - - after(:each) do - original_configuration = @original_configuration - ::Spec::Runner.instance_eval {@configuration = original_configuration} - ::Spec::Example::ExampleGroupFactory.reset - end - - yield -end - -module Spec - module Example - module Resettable - def reset # :nodoc: - @before_all_parts = nil - @after_all_parts = nil - @before_each_parts = nil - @after_each_parts = nil - end - end - class ExampleGroup - extend Resettable - end - class ExampleGroupDouble < ExampleGroup - ::Spec::Runner.options.remove_example_group self - def register_example_group(klass) - #ignore - end - def initialize(proxy=nil, &block) - super(proxy || ExampleProxy.new, &block) - end - end - end -end - -Spec::Runner.configure do |config| - config.extend(Macros) -end \ No newline at end of file diff --git a/vendor/gems/gems/rspec-1.2.9/spec/support/macros.rb b/vendor/gems/gems/rspec-1.2.9/spec/support/macros.rb deleted file mode 100644 index 6322060b..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/support/macros.rb +++ /dev/null @@ -1,29 +0,0 @@ -module Macros - def treats_method_missing_as_private(options = {:noop => true, :subject => nil}) - it "should have method_missing as private" do - with_ruby 1.8 do - described_class.private_instance_methods.should include("method_missing") - end - with_ruby 1.9 do - described_class.private_instance_methods.should include(:method_missing) - end - end - - it "should not respond_to? method_missing (because it's private)" do - formatter = options[:subject] || described_class.new({ }, StringIO.new) - formatter.should_not respond_to(:method_missing) - end - - if options[:noop] - it "should respond_to? all messages" do - formatter = described_class.new({ }, StringIO.new) - formatter.should respond_to(:just_about_anything) - end - - it "should respond_to? anything, when given the private flag" do - formatter = described_class.new({ }, StringIO.new) - formatter.respond_to?(:method_missing, true).should be_true - end - end - end -end diff --git a/vendor/gems/gems/rspec-1.2.9/spec/support/spec_classes.rb b/vendor/gems/gems/rspec-1.2.9/spec/support/spec_classes.rb deleted file mode 100644 index c8900a78..00000000 --- a/vendor/gems/gems/rspec-1.2.9/spec/support/spec_classes.rb +++ /dev/null @@ -1,133 +0,0 @@ -# This file contains various classes used by the specs. -module Spec - module Expectations - class Person - attr_reader :name - def initialize name - @name = name - end - def == other - return @name == other.name - end - end - - class ClassWithMultiWordPredicate - def multi_word_predicate? - true - end - end - - module Helper - class CollectionWithSizeMethod - def initialize; @list = []; end - def size; @list.size; end - def push(item); @list.push(item); end - end - - class CollectionWithLengthMethod - def initialize; @list = []; end - def length; @list.size; end - def push(item); @list.push(item); end - end - - class CollectionOwner - attr_reader :items_in_collection_with_size_method, :items_in_collection_with_length_method - - def initialize - @items_in_collection_with_size_method = CollectionWithSizeMethod.new - @items_in_collection_with_length_method = CollectionWithLengthMethod.new - end - - def add_to_collection_with_size_method(item) - @items_in_collection_with_size_method.push(item) - end - - def add_to_collection_with_length_method(item) - @items_in_collection_with_length_method.push(item) - end - - def items_for(arg) - return [1, 2, 3] if arg == 'a' - [1] - end - - def items - @items_in_collection_with_size_method - end - end - - class HandCodedMock - include Spec::Matchers - def initialize(return_val) - @return_val = return_val - @funny_called = false - end - - def funny? - @funny_called = true - @return_val - end - - def hungry?(a, b, c) - a.should equal(1) - b.should equal(2) - c.should equal(3) - @funny_called = true - @return_val - end - - def exists? - @return_val - end - - def multi_word_predicate? - @return_val - end - - def rspec_verify - @funny_called.should be_true - end - end - class ClassWithUnqueriedPredicate - attr_accessor :foo - def initialize(foo) - @foo = foo - end - end - end - end -end - -module Custom - require 'spec/runner/formatter/base_text_formatter' - class Formatter < Spec::Runner::Formatter::BaseTextFormatter - attr_reader :options, :where - - def initialize(options, where) - @options = options - @where = where - end - end - - class BadFormatter < Spec::Runner::Formatter::BaseTextFormatter - attr_reader :where - - def initialize(options, where) - bad_method - end - end - - class Differ - attr_reader :options - def initialize(options) - @options = options - end - - def diff_as_object(target, expected) - "" - end - end -end - -class FakeReporter < Spec::Runner::Reporter -end diff --git a/vendor/gems/gems/rubyforge-2.0.3/History.txt b/vendor/gems/gems/rubyforge-2.0.3/History.txt deleted file mode 100644 index 33430cdf..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/History.txt +++ /dev/null @@ -1,124 +0,0 @@ -=== 2.0.3 / 2009-10-11 - -* Added check to ensure user-config contains 'api.rubyforge.org' (Ryan Davis) -* Removed DEBUG global - -=== 2.0.2 / 2009-10-05 - -* Switched JSON gem dependency over to json_pure. - -=== 2.0.1 / 2009-10-02 - -* Added a missing dependency on JSON gem to the spec. - -=== 2.0.0 / 2009-09-21 - -* Modified to use RubyForge REST API rather than scraping HTML. - -=== 1.0.5 / 2009-09-15 - -* Added experimental script to sync RF trackers with release names. -* Fixed that damned processor_id bug. (hinegardner) -* The century usually doesn't change across runs. Refactor. -* Fix use of Time.utc if args.size < 10, tho seems unnecessary. - -=== 1.0.4 / 2009-07-21 - -* Uses the passed in proxy, if provided. (Thanks sdabet, RF #24071). -* Update group_id pattern for scraping project configs you are only a member of. -* Update regexp used to validate login page to be less restrictive. -* Fixed --help to not require an argument. -* add --force flag for login command to ignore previous cookie. (or use logout) - -=== 1.0.3 / 2009-02-26 - -* Fixed nil error in our Net::HTTP patches. -* Removed password from warning if the login possibly failed. - -=== 1.0.2 / 2009-01-05 - -* All webby commands now login automatically. -* Login now no-ops if it already has a session cookie. -* Added logout command. -* Much more of the config is self-repairing, but still not bulletproof yet. - -=== 1.0.1 / 2008-10-22 - -* Fixed multipart form upload so it isn't url escaping the data. DOH. - * Affects release_notes and release_changes, but never reported for 5 months. - -=== 1.0.0 / 2008-05-20 - -* Removed HTTPAccess2, thanks to Aaron Patterson. Even tho he's whiny. -* Changed initialize/configure to make testing scream. 100x faster. - -=== 0.4.5 / 2008-03-11 - -* Update for Ruby 1.9.0. -* Updated History, Rakefile, and Readme for new hoe abilities. -* Added config backup/restore rake tasks (for testing). - -=== 0.4.4 / 2007-08-13 - -* New type_id values will merge with extant data. (self-repairing data is Good) -* Scrape processor_ids, merging in with extant data. -* Default to "Other" if a file's type is unrecognized. - -=== 0.4.3 / 2007-07-23 - -* Set mode on .rubyforge directory to 700. -* Fix fetching of user id when user has no releases. - -=== 0.4.2 / 2007-05-21 - -* Fix for windoze users (spaces in path). -* Added check for extant release. -* Added default hash for first-time releases. - -=== 0.4.1 / 2007-03-08 - -* Verify that login succeeded and warn against if not (prolly should raise). -* Print a friendly error if you have the wrong package id. -* Handle upload error in add_release a bit better. - -=== 0.4.0 / 2007-01-09 - -* config.yml split and moved to user-config.yml (up to the user to do). -* auto-config.yml now generated via config command. -* @config renamed to @userconfig. -* @config["rubyforge"] moved to @autoconfig. -* Added save_autoconfig. -* Pulled scrape_project from scrape_config. -* scrape_config no longer takes a user param. Use opts to specify. -* scrape_project, add_project, add/remove_release now save automatically. - -=== 0.3.2 / 2006-11-29 - -* Fixed file uploads for windows. -* Correctly scrape releases with funky characters. - -=== 0.3.1 / 2006-10-24 - -* Added SSL login. -* Added yet more debugging output if $DEBUG. - -=== 0.3.0 / 2006-09-30 - -* Added more debugging output if $DEBUG -* Added news posting. -* Added multiple file release to add_release (uses add_file for extras). -* add_release now returns release_id -* Fixed config scraper to include '-' in names. - -=== 0.2.1 / 2006-09-14 - -* Gemspec was too loose about packaging. Now using manifest. - -=== 0.2.0 / 2006-09-13 - -* Split original script into script and library. -* Added tests for library. -* Refactored heavily. -* Added "config" command to scrape group/project/release ids from rubyforge. -* Added "names" command to help pick groups and projects. -* Added "add_file" command to add a file to an existing release. diff --git a/vendor/gems/gems/rubyforge-2.0.3/Manifest.txt b/vendor/gems/gems/rubyforge-2.0.3/Manifest.txt deleted file mode 100644 index 0a7d55f5..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/Manifest.txt +++ /dev/null @@ -1,9 +0,0 @@ -History.txt -Manifest.txt -README.txt -Rakefile -bin/rubyforge -lib/rubyforge.rb -lib/rubyforge/client.rb -test/test_rubyforge.rb -test/test_rubyforge_client.rb diff --git a/vendor/gems/gems/rubyforge-2.0.3/README.txt b/vendor/gems/gems/rubyforge-2.0.3/README.txt deleted file mode 100644 index d1e0dee4..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/README.txt +++ /dev/null @@ -1,55 +0,0 @@ -= Rubyforge - -* http://codeforpeople.rubyforge.org/rubyforge/ -* http://rubyforge.org/projects/codeforpeople/ - -== Description - -A script which automates a limited set of rubyforge operations. - -* Run 'rubyforge help' for complete usage. -* Setup: For first time users AND upgrades to 0.4.0: - * rubyforge setup (deletes your username and password, so run sparingly!) - * edit ~/.rubyforge/user-config.yml - * rubyforge config -* For all rubyforge upgrades, run 'rubyforge config' to ensure you have latest. - -== Synopsis - - rubyforge [options]* mode [mode_args]* - -== REQUIREMENTS - -* hoe -* json -* rubygems - -== INSTALL - -* sudo gem install rubyforge - -== LICENSE - -(The MIT License) - -Copyright (c) Ryan Davis, Eric Hodel, Ara T Howard. - -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. - diff --git a/vendor/gems/gems/rubyforge-2.0.3/Rakefile b/vendor/gems/gems/rubyforge-2.0.3/Rakefile deleted file mode 100644 index eaeed079..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/Rakefile +++ /dev/null @@ -1,40 +0,0 @@ -# -*- ruby -*- - -require 'rubygems' -require 'hoe' -require 'json' - -abort "you _must_ install this gem to release it" if - ENV['VERSION'] && ENV['VERSION'] != RubyForge::VERSION - -Hoe.plugin :email - -Hoe.spec "rubyforge" do - developer 'Ryan Davis', 'ryand-ruby@zenspider.com' - developer 'Eric Hodel', 'drbrain@segment7.net' - developer 'Ara T Howard', 'ara.t.howard@gmail.com' - developer 'Tom Copeland', 'tom@infoether.com' - - multiruby_skip << "rubinius" - extra_deps << ["json_pure",">= 1.1.7"] - self.rubyforge_name = "codeforpeople" - self.need_tar = false -end - -task :postrelease => :announce - -task :backup do - Dir.chdir File.expand_path("~/.rubyforge") do - cp "user-config.yml", "user-config.yml.bak" - cp "auto-config.yml", "auto-config.yml.bak" - end -end - -task :restore do - Dir.chdir File.expand_path("~/.rubyforge") do - cp "user-config.yml.bak", "user-config.yml" - cp "auto-config.yml.bak", "auto-config.yml" - end -end - -# vim:syntax=ruby diff --git a/vendor/gems/gems/rubyforge-2.0.3/bin/rubyforge b/vendor/gems/gems/rubyforge-2.0.3/bin/rubyforge deleted file mode 100755 index cf54b6b8..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/bin/rubyforge +++ /dev/null @@ -1,218 +0,0 @@ -#! /usr/bin/env ruby - -$VERBOSE = true - -$:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "lib")) - -require 'getoptlong' -require 'rubyforge' - -PROGRAM = File::basename $0 - -USAGE = <<-EOL -SYNOPSIS - - #{ PROGRAM } [options]* mode [mode_args]* - -DESCRIPTION - - simplistic script which automates a limited set of rubyforge operations - -MODES - - setup() - initializes your .rubyforge directory. you need to run this first before - doing anything else. - - example : - #{ PROGRAM } setup - - config([project]) - Helps you populate your auto-config.yml file by scraping rubyforge and - getting your groups, projects, and releases. - - example : - #{ PROGRAM } config - #{ PROGRAM } config myproject - - names() - Prints out the names of your configured groups and projects. - - example : - #{ PROGRAM } names - - create_package(group_id, package_name) - creates the named package under the specified group. - - example : - #{ PROGRAM } create_package 1024 traits - #{ PROGRAM } create_package codeforpeople.com traits - - add_release(group_id, package_id, release_name, userfile) - release a file as release_name under the specified group_id and - package_id. - - example : - #{ PROGRAM } add_release codeforpeople.com traits 0.8.0 traits-0.8.0.gem - #{ PROGRAM } add_release codeforpeople.com traits 0.8.0 traits-0.8.0.tgz - #{ PROGRAM } add_release 1024 1242 0.8.0 traits-0.8.0.gem - #{ PROGRAM } add_release 1024 1242 0.8.0 traits-0.8.0.gem - - add_file(group_id, package_id, release_id, userfile) - add a file to an existing release under the specified group_id, - package_id, and release_id - - example : - #{ PROGRAM } add_file codeforpeople.com traits 0.8.0 traits-0.8.0.gem - #{ PROGRAM } add_file codeforpeople.com traits 0.8.0 traits-0.8.0.tgz - #{ PROGRAM } add_file 1024 1242 0.8.0 traits-0.8.0.gem - - delete_package(group_id, package_name) - deletes a package and all its files. - - example : - #{ PROGRAM } delete_package codeforpeople.com traits - #{ PROGRAM } delete_package 1024 traits - - post_news(group_id, summary, details) - posts a news item to the specified group - - example : - #{ PROGRAM } post_news codeforpeople.com "new release" "this release is great!" - #{ PROGRAM } post_news 1024 traits "new release" "this release is great!" -NOTES - - - In order to use group_id, package_id, or release_id by name, - rather than number, you must edit the rubyforge[group_ids] and - rubyforge[package_ids] translation tables in your config.yml. See - the config command for more information and help. - -TODO - - - add error checking. this may require mods to the REST API as - well to ensure that it returns useful error codes. - -OPTIONS - - global : - --help , -h - this message - --config , -c - specify a config file (default #{ RubyForge::CONFIG_F }) - --username , -u - specify username, taken from config otherwise - --password , -p - specify password, taken from config otherwise - - add_release : - --is_private , -P - if true, release is not public - --release_date , -r - specify time of release (default 'now') - --type_id , -t - specify filetype code (default determined by ext) - --processor_id , -o - specify processor (default 'Any') - --release_notes , -n - specify release notes as string or file - --release_changes , -a - specify release changes as string or file - --preformatted , -f - specify whether release_notes/changes are preformatted - -EOL - -mode = ARGV.shift - -opts = GetoptLong::new( - [ "--help" , "-h" , GetoptLong::NO_ARGUMENT ], - [ "--force" , "-F" , GetoptLong::NO_ARGUMENT ], - [ "--username" , "-u" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--password" , "-p" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--is_private" , "-P" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--release_date" , "-r" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--type_id" , "-t" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--processor_id" , "-o" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--release_notes" , "-n" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--release_changes" , "-a" , GetoptLong::REQUIRED_ARGUMENT ], - [ "--preformatted" , "-f" , GetoptLong::NO_ARGUMENT ] - ).enum_for.inject({}) { |h, (k, v)| h.update k.delete('-') => v } - -rubyforge = RubyForge.new -rubyforge.configure opts - -mode = "help" if opts["help"] - -case mode -when %r/help/ - USAGE.display -when %r/setup/ - rubyforge.setup -when %r/config/ - project = ARGV.shift - if project then - rubyforge.scrape_project(project) - else - rubyforge.scrape_config - end -when %r/names/ - rf = rubyforge.autoconfig - puts "groups : #{rf["group_ids"].keys.sort.join(", ")}" - puts "packages: #{rf["package_ids"].keys.sort.join(", ")}" -when %r/create_package/ - page, msg = "/frs/admin/index.php", "post_content" - - group_id, package_name = ARGV - - abort "no " unless group_id - abort "no " unless package_name - - group_id = Integer(group_id) rescue group_id - - rubyforge.create_package group_id, package_name -when %r/post_news/ - group_id, summary, details = ARGV - - abort "no " unless group_id - - group_id = Integer(group_id) rescue group_id - - rubyforge.post_news group_id, summary, details -when %r/delete_package/ - group_id, package_id = ARGV - - abort "no " unless group_id - abort "no " unless package_id - - group_id = Integer(group_id) rescue group_id - package_id = Integer(package_id) rescue package_id - - rubyforge.delete_package group_id, package_id -when %r/add_release/ - group_id, package_id, release_name, userfile = ARGV - - abort "no " unless group_id - abort "no " unless package_id - abort "no " unless release_name - abort "no " unless userfile - - group_id = Integer(group_id) rescue group_id - package_id = Integer(package_id) rescue package_id - - rubyforge.add_release group_id, package_id, release_name, userfile -when %r/add_file/ - group_id, package_id, release_id, userfile = ARGV - - abort "no " unless group_id - abort "no " unless package_id - abort "no " unless release_id - abort "no " unless userfile - - group_id = Integer(group_id) rescue group_id - package_id = Integer(package_id) rescue package_id - release_id = Integer(release_id) rescue release_id - - rubyforge.add_file group_id, package_id, release_id, userfile -else - abort USAGE -end diff --git a/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge.rb b/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge.rb deleted file mode 100644 index 49d57284..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge.rb +++ /dev/null @@ -1,389 +0,0 @@ -#! /usr/bin/env ruby -w - -require 'json' -require 'enumerator' -require 'fileutils' -require 'yaml' -require 'open-uri' -require 'rubyforge/client' - -$TESTING = false unless defined? $TESTING - -class RubyForge - - # :stopdoc: - VERSION = '2.0.3' - HOME = ENV["HOME"] || ENV["HOMEPATH"] || File::expand_path("~") - RUBYFORGE_D = File::join HOME, ".rubyforge" - CONFIG_F = File::join RUBYFORGE_D, "user-config.yml" - - # We must use __FILE__ instead of DATA because this is now a library - # and DATA is relative to $0, not __FILE__. - config = File.read(__FILE__).split(/__END__/).last.gsub(/#\{(.*)\}/) {eval $1} - CONFIG = YAML.load(config) - # :startdoc: - - # TODO: add an autoconfig method that is self-repairing, removing key checks - attr_reader :userconfig, :autoconfig - - def initialize(userconfig=nil, autoconfig=nil, opts=nil) - # def initialize(userconfig=CONFIG_F, opts={}) - @userconfig, @autoconfig = userconfig, autoconfig - - @autoconfig ||= CONFIG["rubyforge"].dup - @userconfig.merge! opts if opts - - @client = nil - @uri = nil - end - - # These are no-ops now, but we'll keep them here for backwards compatibility - def login ; end - def logout ; end - - def configure opts = {} - user_path = CONFIG_F - dir, file = File.split(user_path) - - @userconfig = if test(?e, user_path) then - YAML.load_file(user_path) - else - CONFIG - end.merge(opts) - @autoconfig_path = File.join(dir, file.sub(/^user/, 'auto')) - @autoconfig = if test(?e, @autoconfig_path) then - YAML.load_file(@autoconfig_path) - else - CONFIG["rubyforge"].dup - end - @autoconfig["type_ids"] = CONFIG['rubyforge']['type_ids'].dup - - raise "no " unless @userconfig["username"] - raise "no " unless @userconfig["password"] - - self - end - - def force - @userconfig['force'] - end - - def uri - uri = @userconfig['uri'] - abort "Using new REST api, but uri isn't api.rubyforge.org. -run `rubyforge setup` and fix please" if - uri =~ /rubyforge.org/ and uri !~ /api.rubyforge.org/ - - @uri ||= URI.parse uri - end - - def setup - FileUtils::mkdir_p RUBYFORGE_D, :mode => 0700 unless test ?d, RUBYFORGE_D - test ?e, CONFIG_F and FileUtils::mv CONFIG_F, "#{CONFIG_F}.bak" - config = CONFIG.dup - config.delete "rubyforge" - - open(CONFIG_F, "w") { |f| - f.write YAML.dump(config) - } - edit = (ENV["EDITOR"] || ENV["EDIT"] || "vi") + " '#{CONFIG_F}'" - system edit or puts "edit '#{CONFIG_F}'" - end - - def save_autoconfig - File.open(@autoconfig_path, "w") do |file| - YAML.dump @autoconfig, file - end - end - - def scrape_config - username = @userconfig['username'] - - %w(group package processor release).each do |type| - @autoconfig["#{type}_ids"].clear if @autoconfig["#{type}_ids"] - end - - json = get_via_rest_api "/users/#{username}/groups.js" - - projects = json.collect {|group| group['group']['unix_group_name'] } - puts "Fetching #{projects.size} projects" - projects.each do |project| - scrape_project(project) - end - end - - def get_via_rest_api(path) - url = "#{self.uri}#{path}" - puts "Hitting REST API: #{url}" if $DEBUG - JSON.parse(client.get_content(url, {}, {}, @userconfig)) - end - - def scrape_project(project) - data = { - "group_ids" => {}, - "package_ids" => {}, - "processor_ids" => Hash.new { |h,k| h[k] = {} }, - "release_ids" => Hash.new { |h,k| h[k] = {} }, - } - - unless data["group_ids"].has_key? project then - json = get_via_rest_api "/groups/#{project}.js" - group_id = json["group"]["group_id"].to_i - data["group_ids"][project] = group_id - end - - # Get project's packages - json = get_via_rest_api "/groups/#{project}/packages.js" - json.each do |package| - data["package_ids"][package["package"]["name"]] = package["package"]["package_id"] - # Get releases for this package - json = get_via_rest_api "/packages/#{package["package"]["package_id"]}/releases.js" - json.each do |release| - data["release_ids"][package["package"]["name"]][release["name"]] = release["release_id"] - end - end - - # Get processor ids - if @autoconfig['processor_ids'].nil? || @autoconfig['processor_ids'].empty? - puts "Fetching processor ids" if $DEBUG - json = get_via_rest_api "/processors.js" - json.each do |processor| - data["processor_ids"][processor["processor"]["name"]] = processor["processor"]["processor_id"] - end - end - - data.each do |key, val| - @autoconfig[key] ||= {} - @autoconfig[key].merge! val - end - - save_autoconfig - end - - def create_package(group_id, package_name) - page = "/groups/#{group_id}/packages" - - group_id = lookup "group", group_id - is_private = @userconfig["is_private"] - is_public = is_private ? 0 : 1 - - form = { - "package[name]" => package_name, - "package[is_public]" => is_public - } - - run page, form - - group_name = @autoconfig["group_ids"].invert[group_id] - scrape_project(group_name) - end - - ## - # Posts news item to +group_id+ (can be name) with +subject+ and +body+ - - def post_news(group_id, subject, body) - # TODO - what was the post_changes parameter for? - form = { - "news_byte[summary]" => subject, - "news_byte[details]" => body - } - group_id = lookup "group", group_id - url = "/groups/#{group_id}/news_bytes" - run url, form - end - - def delete_package(group_id, package_id) - group_id = lookup "group", group_id - package_id = lookup "package", package_id - package_name = @autoconfig["package_ids"].invert[package_id] - @autoconfig["package_ids"].delete package_name - @autoconfig["release_ids"].delete package_name - save_autoconfig - url = "/packages/#{package_id}" - run url, {"_method" => "delete"} - end - - def add_release(group_id, package_id, release_name, *files) - group_id = lookup "group", group_id - package_id = lookup "package", package_id - release_date = @userconfig["release_date"] - release_notes = @userconfig["release_notes"] - release_changes = @userconfig["release_changes"] - preformatted = @userconfig["preformatted"] - release_date ||= Time.now.strftime("%Y-%m-%d %H:%M") - release_notes = IO::read(release_notes) if - test(?e, release_notes) if release_notes - release_changes = IO::read(release_changes) if - test(?e, release_changes) if release_changes - preformatted = preformatted ? 1 : 0 - - form = { - "release[name]" => release_name, - "release[release_date]" => release_date, - "release[notes]" => release_notes, - "release[changes]" => release_changes, - "release[preformatted]" => preformatted, - } - - url = "/packages/#{package_id}/releases" - json = run url, form - - release_id = JSON.parse(json)["release_id"].to_i rescue nil - unless release_id then - puts json if $DEBUG - raise "Couldn't get release_id, upload failed?" - end - - # FIXME - #raise "Invalid package_id #{package_id}" if html[/Invalid package_id/] - #raise "You have already released this version." if html[/That filename already exists in this project/] - - files.each do |file| - add_file(group_id, package_id, release_id, file) - end - - package_name = @autoconfig["package_ids"].invert[package_id] - raise "unknown package name for #{package_id}" if package_name.nil? - @autoconfig["release_ids"][package_name] ||= {} - @autoconfig["release_ids"][package_name][release_name] = release_id - save_autoconfig - - release_id - end - - ## - # add a file to an existing release under the specified group_id, - # package_id, and release_id - # - # example : - # add_file("codeforpeople", "traits", "0.8.0", "traits-0.8.0.gem") - # add_file("codeforpeople", "traits", "0.8.0", "traits-0.8.0.tgz") - # add_file(1024, 1242, "0.8.0", "traits-0.8.0.gem") - - def add_file(group_name, package_name, release_name, userfile) - type_id = @userconfig["type_id"] - group_id = lookup "group", group_name - package_id = lookup "package", package_name - release_id = (Integer === release_name) ? release_name : lookup("release", package_name)[release_name] - url = "/releases/#{release_id}/files.js" - - userfile = open userfile, 'rb' - - type_id ||= userfile.path[%r|\.[^\./]+$|] - type_id = (lookup "type", type_id rescue lookup "type", ".oth") - - processor_id = @userconfig["processor_id"] - processor_id ||= "Any" - processor_id = lookup "processor", processor_id - - form = { - "file[filename]" => File.basename(userfile.path), - "file[processor_id]" => processor_id, - "file[type_id]" => type_id, - "contents" => userfile.read - } - - run url, form - end - - def client - return @client if @client - - @client = RubyForge::Client::new ENV["HTTP_PROXY"] - @client.debug_dev = STDERR if ENV["RUBYFORGE_DEBUG"] || ENV["DEBUG"] || $DEBUG - - @client - end - - def run(page, form, extheader={}) # :nodoc: - uri = self.uri + page - puts "client.post_content #{uri.inspect}, #{form.inspect}, #{extheader.inspect}" if $DEBUG - response = client.post_content uri, form, extheader, @userconfig - puts response if $DEBUG - response - end - - def lookup(type, val) # :nodoc: - unless Fixnum === val then - key = val.to_s - val = @autoconfig["#{type}_ids"][key] - raise "no <#{type}_id> configured for <#{ key }>" unless val - end - val - end -end - -__END__ -# -# base rubyforge uri - store in #{ CONFIG_F } -# - uri : http://api.rubyforge.org -# -# this must be your username -# - username : tom -# -# this must be your password -# - password : password -# -# defaults for some values -# - is_private : false -# AUTOCONFIG: - rubyforge : - # - # map your group names to their rubyforge ids - # - group_ids : - codeforpeople : 1024 - support : 5 - # - # map your package names to their rubyforge ids - # - package_ids : - traits : 1241 - # - # map your package names to their rubyforge ids - # - release_ids : - traits : - 1.2.3 : 666 - # - # mapping file exts to rubyforge ids - # - type_ids : - .deb : 1000 - .rpm : 2000 - .zip : 3000 - .bz2 : 3100 - .gz : 3110 - .src.zip : 5000 - .src.bz2 : 5010 - .src.tar.bz2 : 5010 - .src.gz : 5020 - .src.tar.gz : 5020 - .src.rpm : 5100 - .src : 5900 - .jpg : 8000 - .txt : 8100 - .text : 8100 - .htm : 8200 - .html : 8200 - .pdf : 8300 - .oth : 9999 - .ebuild : 1300 - .exe : 1100 - .dmg : 1200 - .tar.gz : 5000 - .tgz : 5000 - .gem : 1400 - .pgp : 8150 - .sig : 8150 - .pem : 1500 - - # - # map processor names to rubyforge ids - # - processor_ids : - Other : 9999 diff --git a/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge/client.rb b/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge/client.rb deleted file mode 100644 index b17b8f16..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/lib/rubyforge/client.rb +++ /dev/null @@ -1,124 +0,0 @@ -require 'webrick/cookie' -require 'net/http' -require 'net/https' - -# clean up warnings caused by web servers that send down 2 digit years -class Time - CENTURY = Time.now.year / 100 * 100 - - class << self - alias :old_utc :utc - - def utc(*args) - args[0] += CENTURY if args[0] < 100 - old_utc(*args) - end - end -end unless Time.respond_to? :old_utc - -# clean up "using default DH parameters" warning for https -class Net::HTTP - alias :old_use_ssl= :use_ssl= - def use_ssl= flag - self.old_use_ssl = flag - @ssl_context.tmp_dh_callback = proc {} if @ssl_context - end -end unless Net::HTTP.public_instance_methods.include? "old_use_ssl=" - -class RubyForge - class Client - attr_accessor :debug_dev, :ssl_verify_mode, :agent_class - - def initialize(proxy = nil) - @debug_dev = nil - @ssl_verify_mode = OpenSSL::SSL::VERIFY_NONE - if proxy - begin - proxy_uri = URI.parse(proxy) - @agent_class = Net::HTTP::Proxy(proxy_uri.host,proxy_uri.port) - rescue URI::InvalidURIError - end - end - @agent_class ||= Net::HTTP - end - - def post_content(uri, form = {}, headers = {}, userconfig = nil) - uri = URI.parse(uri) unless uri.is_a?(URI) - request = agent_class::Post.new(uri.request_uri) - execute(request, uri, form, headers, userconfig) - end - - def get_content(uri, query = {}, headers = {}, userconfig = nil) - uri = URI.parse(uri) unless uri.is_a?(URI) - request = agent_class::Get.new(uri.request_uri) - execute(request, uri, query, headers, userconfig) - end - - def execute(request, uri, parameters = {}, headers = {}, userconfig = nil) - { - 'content-type' => 'application/x-www-form-urlencoded' - }.merge(headers).each { |k,v| request[k] = v } - - http = agent_class.new( uri.host, uri.port ) - - if uri.scheme == 'https' && uri.host !~ /localhost/ - http.use_ssl = true - http.verify_mode = OpenSSL::SSL::VERIFY_NONE - end - - request.basic_auth(userconfig["username"], userconfig["password"]) - - request_data = case request['Content-Type'] - when /boundary=(.*)$/ - boundary_data_for($1, parameters) - else - query_string_for(parameters) - end - request['Content-Length'] = request_data.length.to_s - - response = http.request(request, request_data) - - return response.body if response.class <= Net::HTTPSuccess - - if response.class <= Net::HTTPRedirection - location = response['Location'] - unless location =~ /^http/ - location = "#{uri.scheme}://#{uri.host}#{location}" - end - uri = URI.parse(location) - - execute(agent_class::Get.new(uri.request_uri), uri) - end - end - - def boundary_data_for(boundary, parameters) - parameters.sort_by {|k,v| k.to_s }.map { |k,v| - parameter = "--#{boundary}\r\nContent-Disposition: form-data; name=\"" + - WEBrick::HTTPUtils.escape_form(k.to_s) + "\"" - - if v.respond_to? :path - parameter += "; filename=\"#{File.basename(v.path)}\"\r\n" - parameter += "Content-Transfer-Encoding: binary\r\n" - parameter += "Content-Type: text/plain" - end - parameter += "\r\n\r\n" - - if v.respond_to? :path - parameter += v.read - else - parameter += v.to_s - end - - parameter - }.join("\r\n") + "\r\n--#{boundary}--\r\n" - end - - def query_string_for(parameters) - parameters.sort_by {|k,v| k.to_s }.map { |k,v| - k && [ WEBrick::HTTPUtils.escape_form(k.to_s), - WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=') - }.compact.join('&') - end - - end -end diff --git a/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge.rb b/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge.rb deleted file mode 100644 index 8dcd4fde..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge.rb +++ /dev/null @@ -1,329 +0,0 @@ -require 'test/unit' unless defined? $ZENTEST and $ZENTEST - -$TESTING = true -require 'rubyforge' -require 'tmpdir' - -class RubyForge - attr_writer :client - - alias :old_save_autoconfig :save_autoconfig - def save_autoconfig - # raise "not during test" - end -end - -class RubyForge::FakeClient - def form; end - - def post_content(*args) - FakeRubyForge::HTML - end - - def get_content(*args) - URI::HTTP.data.join("\n") - end -end - -class FakeRubyForge < RubyForge - JSON = '{"release_id" : 42}' - - attr_accessor :page, :form, :extheader, :requests, :scrape - def run(page, form, extheader={}) - @page, @form, @extheader = page, form, extheader - @requests ||= [] - @requests << { :url => page, :form => form, :headers => extheader } - JSON - end - - def scrape_project(proj) - @scrape ||= [] - @scrape << proj - end -end - -# TODO: remove this and make rubyforge use Client exclusively -class URI::HTTP - def self.data - @data ||= [] - end - - def read - self.class.data.shift or raise "no more data" - end -end - -class TestRubyForge < Test::Unit::TestCase - def setup - srand(0) - util_new FakeRubyForge - end - - def teardown - # if defined? @old_autoconfig then - # @rubyforge.autoconfig.replace @old_autoconfig - # @rubyforge.save_autoconfig - # end - end - - def test_new_with_proxy_uses_a_proxy_class - client = RubyForge::Client.new('http://localhost:8808/') - assert client.agent_class.proxy_class?, 'agent class should be a proxy' - end - - def test_new_with_bad_proxy_uses_normal_http - client = RubyForge::Client.new('asdfkjhalksdfjh') - assert !client.agent_class.proxy_class?, 'agent class should not be a proxy' - end - - def test_initialize_bad - user_data = { - "uri" => "http://api.rubyforge.org", - "is_private" => false, - "username" => "username", - "password" => "password" - } - - assert_raise RuntimeError do - rf = RubyForge.new user_data - rf.configure "username" => nil - end - assert_raise RuntimeError do - rf = RubyForge.new user_data - rf.configure "password" => nil - end - end - - def test_setup - # TODO raise NotImplementedError, 'Need to write test_setup' - end - - def test_create_package - @rubyforge.create_package(42, 'woot_pkg') - - util_run('/groups/42/packages', - "package[is_public]" => 1, - "package[name]" => "woot_pkg") - end - - def test_delete_package - @rubyforge.delete_package(42, 666) - util_delete_package - end - - def test_delete_package_package_name - @rubyforge.delete_package(42, "woot_pkg") - util_delete_package - end - - def test_delete_package_undefined_package_name - assert_raise RuntimeError do - @rubyforge.delete_package(42, "blah") - end - end - - def test_delete_package_group_name - @rubyforge.delete_package("seattlerb", 666) - util_delete_package - end - - def test_delete_package_undefined_group_name - assert_raise RuntimeError do - @rubyforge.delete_package("blah", 666) - end - end - - def test_post_news - @rubyforge.post_news("seattlerb", "my summary", "my news") - - util_run("/groups/42/news_bytes", - "news_byte[details]" => "my news", - "news_byte[summary]" => "my summary") - end - - def test_add_release_undefined_package_name - assert_raise RuntimeError do - @rubyforge.add_release(42, "blah", '1.2.3', __FILE__) - end - end - - def test_add_release_undefined_group_name - assert_raise RuntimeError do - @rubyforge.add_release("blah", 666, '1.2.3', __FILE__) - end - end - - def test_lookup_id - assert_equal 43, @rubyforge.lookup("package", 43) - end - - def test_lookup_string_number - assert_raise RuntimeError do - @rubyforge.lookup("package", "43") - end - end - - def test_lookup_name - @rubyforge.autoconfig["package_ids"]["ringy_dingy"] = 314 - assert_equal 314, @rubyforge.lookup("package", "ringy_dingy") - end - - def test_lookup_undefined - assert_raise RuntimeError do - @rubyforge.lookup("package", "blah") - end - end - - def test_add_file - @rubyforge.autoconfig["package_ids"]["ringy_dingy"] = 314 - @rubyforge.autoconfig["release_ids"]["ringy_dingy"] ||= {} - @rubyforge.autoconfig["release_ids"]["ringy_dingy"]["1.2.3"] = 43 - - filepath, contents = make_a_tmp_file - - @rubyforge.add_file('seattlerb', 'ringy_dingy', '1.2.3', filepath) - - util_run('/releases/43/files.js', { - "file[type_id]" => 9999, - "file[processor_id]" => 8000, - "file[filename]"=> File.basename(filepath), - "contents" => File.read(filepath) - }) - end - - def test_add_release - @rubyforge.add_release(42, 666, '1.2.3') - util_add_release - end - - def test_add_release_with_a_file - filepath, contents = make_a_tmp_file - - @rubyforge.add_release(42, 666, '1.2.3', filepath) - add_release = ({ :url=>"/packages/666/releases", - :form=>{ "release[name]" => "1.2.3", - "release[notes]" => nil, - "release[changes]" => nil, - "release[preformatted]"=>0, - "release[release_date]" => "today"}, - :headers=> {}}) - add_file = ({ :url => '/releases/42/files.js', - :form => {"file[type_id]" => 9999, - "file[processor_id]" => 8000, - "file[filename]"=> File.basename(filepath), - "contents" => File.read(filepath) - }, - :headers => {}}) - expected = [add_release, add_file] - - result = @rubyforge.requests - result.each do |r| - r[:form].delete "userfile" - end - - assert_equal expected, result - end - - def test_add_release_package_name - @rubyforge.add_release(42, "woot_pkg", '1.2.3') - util_add_release - end - - def test_add_release_group_name - @rubyforge.add_release("seattlerb", 666, '1.2.3') - util_add_release - end - - - def test_scrape_project - orig_stdout = $stdout - orig_stderr = $stderr - $stdout = StringIO.new - $stderr = StringIO.new - util_new RubyForge # TODO: switch to Fake - @rubyforge.autoconfig.each { |k,v| v.clear } - - URI::HTTP.data << '{"group" : {"group_id":1513}}' - URI::HTTP.data << '[{"package" : {"package_id":4566, "package_name":"1.3.1"}}]' - - # @rubyforge.scrape << < <-EOF -# URI::HTTP.data << <<-EOF -# -# EOF - # - @rubyforge.scrape_project('my_project') rescue "Hm, for some reason this technique of loading up data on URI::HTTP isn't working here. Not sure why." - # - # expected = { - # "group_ids" => { "my_project" => 1513 }, - # "package_ids" => { "ar_mailer" => 4566 }, - # "processor_ids" => { "i386" => 1000, "i387" => 1001 }, - # "release_ids" => { - # "ar_mailer" => { "1.2.0" => 12185, "1.3.1" => 13368 } - # }, - # "type_ids" => {}, - # } - # - # assert_equal expected, @rubyforge.autoconfig - ensure - $stdout = orig_stdout - $stderr = orig_stderr - end - - def util_new(klass) - user_data = { - "uri" => "http://api.rubyforge.org", - "is_private" => false, - "username" => "username", - "password" => "password" - } - - auto_data = { - "group_ids" => {}, - "package_ids" => {}, - "release_ids" => Hash.new { |h,k| h[k] = {} }, - "type_ids" => {}, - "processor_ids" => {"Any"=>8000}, - } - - @rubyforge = klass.new user_data, auto_data - - @rubyforge.client = RubyForge::FakeClient.new - - @rubyforge.userconfig["release_date"] = "today" - @rubyforge.autoconfig["type_ids"][".rb"] = 9999 - @rubyforge.autoconfig["group_ids"]["seattlerb"] = 42 - @rubyforge.autoconfig["package_ids"]["woot_pkg"] = 666 - end - - def util_run(page, form={}, extheader={}) - form_result = @rubyforge.form - assert_equal page, @rubyforge.page.to_s - assert_equal form, form_result - assert_equal extheader, @rubyforge.extheader - end - - def util_add_release - util_run("/packages/666/releases", - { "release[name]" => "1.2.3", - "release[notes]" => nil, - "release[changes]" => nil, - "release[preformatted]"=>0, - "release[release_date]" => "today"}) - end - - def util_delete_package - util_run('/packages/666', "_method" => "delete") - end - - def make_a_tmp_file - content = "Merely a test" - tmp_file = File.join(Dir.tmpdir, "test.rb") - File.open(tmp_file, "w") { |f| f.syswrite(content) } - [tmp_file, content] - end - -end diff --git a/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge_client.rb b/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge_client.rb deleted file mode 100644 index c5ac303e..00000000 --- a/vendor/gems/gems/rubyforge-2.0.3/test/test_rubyforge_client.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'test/unit' unless defined? $ZENTEST and $ZENTEST -require 'rubyforge' - -class RubyForge::FakeAgent - class << self - attr_accessor :t_data, :t_request - end - - def initialize(*args) - end - - def request(request, data) - self.class.t_request = request - self.class.t_data = data - response = Net::HTTPOK.new('1.1', 200, '') - def response.read_body; ''; end - return response - end - - class Post - def initialize(*args) - @args = args - @stuff = {} - end - - def [] key - @stuff[key.downcase] - end - - def []= key, val - @stuff[key.downcase] = val - end - - def method_missing(*stuff) - # warn stuff.inspect - end - end -end - -class TestRubyForgeClient < Test::Unit::TestCase - def setup - @client = RubyForge::Client.new - @client.agent_class = RubyForge::FakeAgent - RubyForge::FakeAgent.t_data = :unassigned - RubyForge::FakeAgent.t_request = :unassigned - end - - def test_post_with_params - @client.post_content('http://example.com', { :f => 'adsf aoeu'}, {}, {"username" => "tom", "password" => "secret"}) - assert_equal('f=adsf+aoeu', RubyForge::FakeAgent.t_data) - - @client.post_content('http://example.com', { :a => 'b', :c => 'd' }, {}, {"username" => "tom", "password" => "secret"}) - assert_equal('a=b&c=d', RubyForge::FakeAgent.t_data) - end - - -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/.gitignore b/vendor/gems/gems/sdoc-0.2.14.1/.gitignore deleted file mode 100644 index cc4adf63..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -pkg -doc -/test.rb \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/LICENSE b/vendor/gems/gems/sdoc-0.2.14.1/LICENSE deleted file mode 100644 index bbb8a1a3..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2009 Vladimir Kolesnikov - -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. - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/README.rdoc b/vendor/gems/gems/sdoc-0.2.14.1/README.rdoc deleted file mode 100644 index 23a22fbe..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/README.rdoc +++ /dev/null @@ -1,38 +0,0 @@ -= SDoc -== What's in? -- shtml - RDoc's generator to build searchable documentation -- sdoc-merge - comand line tool to build merge multiple sdoc documentations - packages into a single one -- sdoc - command line tool to run rdoc with generator=shtml - -== Getting Started - gem sources -a http://gems.github.com - sudo gem install voloko-sdoc - sdoc -N projectdir - -== Command line sdoc -sdoc is simply a wrapper to rdoc command line tool. see sdoc --help -for more details. --fmt is set to shtml by default. -Default template -T is shtml. You can also use 'direct' template. -Example: -sdoc -o doc/rails -T direct rails - -== Rake - # Rakefile - require 'sdoc' # and use your RDoc task the same way you used it before - - Rake::RDocTask.new do |rdoc| - rdoc.rdoc_dir = 'doc/rdoc' - rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator - rdoc.template = 'direct' # lighter template used on railsapi.com - ... - end - -== sdoc-merge - Usage: sdoc-merge [options] directories - -n, --names [NAMES] Names of merged repositories. Comma separated - -o, --op [DIRECTORY] Set the output directory - -t, --title [TITLE] Set the title of merged file - -Example: -sdoc-merge --title "Ruby v1.9, Rails v2.3.2.1" --op merged --names "Ruby,Rails" ruby-v1.9 rails-v2.3.2.1 \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/Rakefile b/vendor/gems/gems/sdoc-0.2.14.1/Rakefile deleted file mode 100644 index c5b526bb..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/Rakefile +++ /dev/null @@ -1,44 +0,0 @@ -require 'rake/testtask' -require 'rake/gempackagetask' - -task :default => :test - -Rake::TestTask.new("test") do |t| - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.warning = true - t.verbose = true -end - -desc "Generate file list for .gemspec" -task :gem_file_list do - f = FileList.new - f.include('lib/**/**') - f.include('rdoc/**/**') - f.exclude('rdoc/test/**/**') - print "%w(" + f.to_a.select{|file| !File.directory? file }.join(' ') + ")\n" -end - -begin - require 'jeweler' - jewler = Jeweler::Tasks.new do |gem| - gem.name = "sdoc" - gem.summary = "rdoc html with javascript search index." - gem.email = "voloko@gmail.com" - gem.homepage = "http://github.com/voloko/sdoc" - gem.authors = ["Volodya Kolesnikov"] - gem.add_dependency("json", ">= 1.1.3") - gem.add_dependency("rdoc", ">= 2.4.2") - - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - - desc "Replace system gem with symlink to this folder" - task 'ghost' do - path = Gem.searcher.find(jewler.gemspec.name).full_gem_path - system 'sudo', 'rm', '-r', path - symlink File.expand_path('.'), path - end -rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/VERSION.yml b/vendor/gems/gems/sdoc-0.2.14.1/VERSION.yml deleted file mode 100644 index 1a8ea358..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/VERSION.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -:major: 0 -:minor: 2 -:patch: 14 diff --git a/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc b/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc deleted file mode 100755 index 215a06ac..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env ruby -KU - -require File.dirname(__FILE__) + '/../lib/sdoc' # add extensions - -begin - r = RDoc::RDoc.new - r.document(ARGV) -rescue RDoc::RDocError => e - $stderr.puts e.message - exit(1) -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc-merge b/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc-merge deleted file mode 100755 index 88e00cd1..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/bin/sdoc-merge +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env ruby -KU - -require File.dirname(__FILE__) + '/../lib/sdoc' # add extensions -require 'sdoc/merge' - -begin - m = SDoc::Merge.new - m.merge(ARGV) -rescue RDoc::RDocError => e - $stderr.puts e.message - exit(1) -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/rdoc/discover.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/rdoc/discover.rb deleted file mode 100644 index 6a539431..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/rdoc/discover.rb +++ /dev/null @@ -1 +0,0 @@ -require File.join(File.dirname(__FILE__), '/../sdoc') \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc.rb deleted file mode 100644 index 23acc747..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc.rb +++ /dev/null @@ -1,23 +0,0 @@ -$:.unshift File.dirname(__FILE__) -require "rubygems" -gem "rdoc", ">= 2.4.2" - -require "rdoc/rdoc" - -module SDoc -end - -require "sdoc/generator/shtml" -require "sdoc/c_parser_fix" - -unless defined? SDOC_FIXED_RDOC_OPTIONS - SDOC_FIXED_RDOC_OPTIONS = 1 - class RDoc::Options - alias_method :rdoc_initialize, :initialize - - def initialize - rdoc_initialize - @generator = RDoc::Generator::SHtml - end - end -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/c_parser_fix.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/c_parser_fix.rb deleted file mode 100644 index 7cae0188..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/c_parser_fix.rb +++ /dev/null @@ -1,31 +0,0 @@ -require "rdoc/parser/c" - -# New RDoc somehow misses class comemnts. -# copyied this function from "2.2.2" -if ['2.4.2', '2.4.3'].include? RDoc::VERSION - - class RDoc::Parser::C - def find_class_comment(class_name, class_meth) - comment = nil - if @content =~ %r{((?>/\*.*?\*/\s+)) - (static\s+)?void\s+Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)\)}xmi then - comment = $1 - elsif @content =~ %r{Document-(?:class|module):\s#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m - comment = $1 - else - if @content =~ /rb_define_(class|module)/m then - class_name = class_name.split("::").last - comments = [] - @content.split(/(\/\*.*?\*\/)\s*?\n/m).each_with_index do |chunk, index| - comments[index] = chunk - if chunk =~ /rb_define_(class|module).*?"(#{class_name})"/m then - comment = comments[index-1] - break - end - end - end - end - class_meth.comment = mangle_comment(comment) if comment - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/shtml.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/shtml.rb deleted file mode 100644 index 5be784fd..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/shtml.rb +++ /dev/null @@ -1,356 +0,0 @@ -require 'rubygems' -gem "rdoc", ">= 2.4.2" -if Gem.available? "json" - gem "json", ">= 1.1.3" -else - gem "json_pure", ">= 1.1.3" -end - -require 'iconv' -require 'json' -require 'pathname' -require 'fileutils' -require 'erb' - -require 'rdoc/rdoc' -require 'rdoc/generator' -require 'rdoc/generator/markup' - -require 'sdoc/github' -require 'sdoc/templatable' -require 'sdoc/helpers' - -class RDoc::ClassModule - def document_self_or_methods - document_self || method_list.any?{ |m| m.document_self } - end - - def with_documentation? - document_self_or_methods || classes_and_modules.any?{ |c| c.with_documentation? } - end -end - -class RDoc::Generator::SHtml - RDoc::RDoc.add_generator( self ) - include ERB::Util - include SDoc::GitHub - include SDoc::Templatable - include SDoc::Helpers - - GENERATOR_DIRS = [File.join('sdoc', 'generator'), File.join('rdoc', 'generator')] - - # Used in js to reduce index sizes - TYPE_CLASS = 1 - TYPE_METHOD = 2 - TYPE_FILE = 3 - - TREE_FILE = File.join 'panel', 'tree.js' - SEARCH_INDEX_FILE = File.join 'panel', 'search_index.js' - - FILE_DIR = 'files' - CLASS_DIR = 'classes' - - RESOURCES_DIR = File.join('resources', '.') - - attr_reader :basedir - - def self.for(options) - self.new(options) - end - - def self.template_dir template - $LOAD_PATH.map do |path| - GENERATOR_DIRS.map do |dir| - File.join path, dir, 'template', template - end - end.flatten.find do |dir| - File.directory? dir - end - end - - def initialize(options) - @options = options - @options.diagram = false - @github_url_cache = {} - - template = @options.template || 'direct' - - templ_dir = self.class.template_dir template - - raise RDoc::Error, "could not find template #{template.inspect}" unless - templ_dir - - @template_dir = Pathname.new File.expand_path(templ_dir) - @basedir = Pathname.pwd.expand_path - end - - def generate( top_levels ) - @outputdir = Pathname.new( @options.op_dir ).expand_path( @basedir ) - @files = top_levels.sort - @classes = RDoc::TopLevel.all_classes_and_modules.sort - - # Now actually write the output - copy_resources - generate_class_tree - generate_search_index - generate_file_files - generate_class_files - generate_index_file - end - - def class_dir - CLASS_DIR - end - - def file_dir - FILE_DIR - end - - - protected - ### Output progress information if debugging is enabled - def debug_msg( *msg ) - return unless $DEBUG_RDOC - $stderr.puts( *msg ) - end - - ### Create class tree structure and write it as json - def generate_class_tree - debug_msg "Generating class tree" - topclasses = @classes.select {|klass| !(RDoc::ClassModule === klass.parent) } - tree = generate_file_tree + generate_class_tree_level(topclasses) - debug_msg " writing class tree to %s" % TREE_FILE - File.open(TREE_FILE, "w", 0644) do |f| - f.write('var tree = '); f.write(tree.to_json) - end unless $dryrun - end - - ### Recursivly build class tree structure - def generate_class_tree_level(classes) - tree = [] - classes.select{|c| c.with_documentation? }.sort.each do |klass| - item = [ - klass.name, - klass.document_self_or_methods ? klass.path : '', - klass.module? ? '' : (klass.superclass ? " < #{String === klass.superclass ? klass.superclass : klass.superclass.full_name}" : ''), - generate_class_tree_level(klass.classes_and_modules) - ] - tree << item - end - tree - end - - ### Create search index for all classes, methods and files - ### Wite it as json - def generate_search_index - debug_msg "Generating search index" - - index = { - :searchIndex => [], - :longSearchIndex => [], - :info => [] - } - - add_class_search_index(index) - add_method_search_index(index) - add_file_search_index(index) - - debug_msg " writing search index to %s" % SEARCH_INDEX_FILE - data = { - :index => index - } - File.open(SEARCH_INDEX_FILE, "w", 0644) do |f| - f.write('var search_data = '); f.write(data.to_json) - end unless $dryrun - end - - ### Add files to search +index+ array - def add_file_search_index(index) - debug_msg " generating file search index" - - @files.select { |file| - file.document_self - }.sort.each do |file| - index[:searchIndex].push( search_string(file.name) ) - index[:longSearchIndex].push( search_string(file.path) ) - index[:info].push([ - file.name, - file.path, - file.path, - '', - snippet(file.comment), - TYPE_FILE - ]) - end - end - - ### Add classes to search +index+ array - def add_class_search_index(index) - debug_msg " generating class search index" - - @classes.select { |klass| - klass.document_self_or_methods - }.sort.each do |klass| - modulename = klass.module? ? '' : (klass.superclass ? (String === klass.superclass ? klass.superclass : klass.superclass.full_name) : '') - index[:searchIndex].push( search_string(klass.name) ) - index[:longSearchIndex].push( search_string(klass.parent.full_name) ) - index[:info].push([ - klass.name, - klass.parent.full_name, - klass.path, - modulename ? " < #{modulename}" : '', - snippet(klass.comment), - TYPE_CLASS - ]) - end - end - - ### Add methods to search +index+ array - def add_method_search_index(index) - debug_msg " generating method search index" - - list = @classes.map { |klass| - klass.method_list - }.flatten.sort{ |a, b| a.name == b.name ? a.parent.full_name <=> b.parent.full_name : a.name <=> b.name }.select { |method| - method.document_self - } - unless @options.show_all - list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation } - end - - list.each do |method| - index[:searchIndex].push( search_string(method.name) + '()' ) - index[:longSearchIndex].push( search_string(method.parent.full_name) ) - index[:info].push([ - method.name, - method.parent.full_name, - method.path, - method.params, - snippet(method.comment), - TYPE_METHOD - ]) - end - end - - ### Generate a documentation file for each class - def generate_class_files - debug_msg "Generating class documentation in #@outputdir" - templatefile = @template_dir + 'class.rhtml' - - @classes.each do |klass| - debug_msg " working on %s (%s)" % [ klass.full_name, klass.path ] - outfile = @outputdir + klass.path - rel_prefix = @outputdir.relative_path_from( outfile.dirname ) - - debug_msg " rendering #{outfile}" - self.render_template( templatefile, binding(), outfile ) - end - end - - ### Generate a documentation file for each file - def generate_file_files - debug_msg "Generating file documentation in #@outputdir" - templatefile = @template_dir + 'file.rhtml' - - @files.each do |file| - outfile = @outputdir + file.path - debug_msg " working on %s (%s)" % [ file.full_name, outfile ] - rel_prefix = @outputdir.relative_path_from( outfile.dirname ) - - debug_msg " rendering #{outfile}" - self.render_template( templatefile, binding(), outfile ) - end - end - - def index_file - if @options.main_page && file = @files.find { |f| f.full_name == @options.main_page } - file - else - @files.first - end - end - - ### Create index.html with frameset - def generate_index_file - debug_msg "Generating index file in #@outputdir" - templatefile = @template_dir + 'index.rhtml' - outfile = @outputdir + 'index.html' - index_path = index_file.path - - self.render_template( templatefile, binding(), outfile ) - end - - ### Strip comments on a space after 100 chars - def snippet(str) - str ||= '' - if str =~ /^(?>\s*)[^\#]/ - content = str - else - content = str.gsub(/^\s*(#+)\s*/, '') - end - - content = content.sub(/^(.{100,}?)\s.*/m, "\\1").gsub(/\r?\n/m, ' ') - - begin - content.to_json - rescue # might fail on non-unicode string - begin - content = Iconv.conv('latin1//ignore', "UTF8", content) # remove all non-unicode chars - content.to_json - rescue - content = '' # something hugely wrong happend - end - end - content - end - - ### Build search index key - def search_string(string) - string ||= '' - string.downcase.gsub(/\s/,'') - end - - ### Copy all the resource files to output dir - def copy_resources - resoureces_path = @template_dir + RESOURCES_DIR - debug_msg "Copying #{resoureces_path}/** to #{@outputdir}/**" - FileUtils.cp_r resoureces_path.to_s, @outputdir.to_s, :preserve => true unless $dryrun - end - - class FilesTree - attr_reader :children - def add(path, url) - path = path.split(File::SEPARATOR) unless Array === path - @children ||= {} - if path.length == 1 - @children[path.first] = url - else - @children[path.first] ||= FilesTree.new - @children[path.first].add(path[1, path.length], url) - end - end - end - - def generate_file_tree - if @files.length > 1 - @files_tree = FilesTree.new - @files.each do |file| - @files_tree.add(file.relative_name, file.path) - end - [['', '', 'files', generate_file_tree_level(@files_tree)]] - else - [] - end - end - - def generate_file_tree_level(tree) - tree.children.keys.sort.map do |name| - child = tree.children[name] - if String === child - [name, child, '', []] - else - ['', '', name, generate_file_tree_level(child)] - end - end - end -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/_context.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/_context.rhtml deleted file mode 100755 index c79cf3b2..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/_context.rhtml +++ /dev/null @@ -1,172 +0,0 @@ -
- <% unless (desc = context.description).empty? %> -
- <%= desc %> -
- <% end %> - - <% unless context.requires.empty? %> -
Required Files
-
    - <% context.requires.each do |req| %> -
  • <%= h req.name %>
  • - <% end %> -
- <% end %> - - <% sections = context.sections.select { |section| section.title } %> - <% unless sections.empty? %> -
Contents
- - <% end %> - - <% - list = context.method_list - unless @options.show_all - list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation } - end - %> - <% unless list.empty? %> -
Methods
-
- <% each_letter_group(list) do |group| %> -
<%= group[:name] %>
-
-
    - <% group[:methods].each_with_index do |method, i| %> -
  • <%= method.name %><%= ',' unless group[:methods].size == i+1 %>
  • - <% end %> -
-
- <% end %> -
- <% end %> - - <% unless context.includes.empty? %> -
Included Modules
-
    - <% context.includes.each do |inc| %> -
  • - <% unless String === inc.module %> - <%= h inc.module.full_name %> - <% else %> - <%= h inc.name %> - <% end %> - START:includes -
  • - <% end %> -
- <% end %> - - <% sections.each do |section| %> - - <% unless (description = section.description).empty? %> -
- <%= description %> -
- <% end %> - <% end %> - - <% unless context.classes_and_modules.empty? %> -
Classes and Modules
-
    - <% (context.modules.sort + context.classes.sort).each do |mod| %> -
  • <%= mod.type.upcase %> <%= mod.full_name %>
  • - <% end %> -
- <% end %> - - <% unless context.constants.empty? %> -
Constants
- - <% context.each_constant do |const| %> - - - - - - <% unless (description = const.description).empty? %> - - - - - <% end %> - <% end %> -
<%= h const.name %>=<%= h const.value %>
 <%= description %>
- <% end %> - - <% unless context.attributes.empty? %> -
Attributes
- - <% context.each_attribute do |attrib| %> - - - - - - <% end %> -
- [<%= attrib.rw %>] - <%= h attrib.name %><%= attrib.description.strip %>
- <% end %> - - <% context.methods_by_type.each do |type, visibilities| - next if visibilities.empty? - visibilities.each do |visibility, methods| - next if methods.empty? - next unless @options.show_all || visibility == :public || visibility == :protected || methods.any? {|m| m.force_documentation } - %> -
<%= type.capitalize %> <%= visibility.to_s.capitalize %> methods
- <% methods.each do |method| %> -
-
- <% if method.call_seq %> - <%= method.call_seq.gsub(/->/, '→') %> - <% else %> - <%= h method.name %><%= h method.params %> - <% end %> -
- <% unless (description = method.description).empty? %> -
- <%= description %> -
- <% end %> - <% unless method.aliases.empty? %> -
- This method is also aliased as - <% method.aliases.each do |aka| %> - <%= h aka.name %> - <% end %> -
- <% end %> - <% if method.token_stream %> - <% markup = method.markup_code %> -
- -
-
<%= method.markup_code %>
-
-
- <% end %> -
- <% end - end - end - %> -
\ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/class.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/class.rhtml deleted file mode 100755 index 032f407a..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/class.rhtml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - <%= h klass.full_name %> - - " type="text/css" media="screen" /> - " type="text/css" media="screen" /> - - - - - - - -
- <%= include_template '_context.rhtml', {:context => klass, :rel_prefix => rel_prefix} %> -
- - \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/file.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/file.rhtml deleted file mode 100755 index ba85bec4..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/file.rhtml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - <%= h file.name %> - - " type="text/css" media="screen" /> - " type="text/css" media="screen" /> - - - - - - - - -
- <%= include_template '_context.rhtml', {:context => file, :rel_prefix => rel_prefix} %> -
- - \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/index.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/index.rhtml deleted file mode 100755 index 4d0c4a69..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/index.rhtml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - <%= @options.title %> - - - - - - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/apple-touch-icon.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/apple-touch-icon.png deleted file mode 100644 index 50f98b0f..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/apple-touch-icon.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/main.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/main.css deleted file mode 100755 index e2209386..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/main.css +++ /dev/null @@ -1,263 +0,0 @@ -body { - font-family: "Helvetica Neue", Arial, sans-serif; - background: #FFF; - color: #000; - margin: 0px; - font-size: 0.82em; - line-height: 1.25em; -} - -a { - color: #00F; - text-decoration: none; -} - -a:hover { - color: #333; - background: #FE8; -} - -p { - margin-bottom: 1em; -} - -h1 { - font-size: 2.1em; - font-weight: normal; - line-height: 1.2em; - margin: 1.4em 0 0.7em 0; -} - -h2 { - font-size: 1.6em; - margin: 1.8em 0 0.8em 0; - font-weight: normal; - line-height: 1.2em; -} - -h3 { - font-size: 1.4em; - color:#555; - margin: 1.4em 0 0.7em 0; - font-weight: normal; -} - -h4 { - margin: 1.4em 0 0.5em 0; - font-size: 1em; -} - -.clear -{ - clear: both; - width: 0; height: 0; -} - -dt -{ - margin-bottom: 0.3em; - font-weight: bold; -} - -dd -{ - margin-left: 2em; - margin-bottom: 1em; -} - -dd p -{ - margin-top: 0.6em; -} - -li -{ - margin: 0 0 0.5em 2em; -} - -ul li -{ - list-style: disc; -} - -ol li -{ - list-style: decimal; -} - -.banner -{ - background: #EDF3FE; - border-bottom: 1px solid #ccc; - padding: 1em 2em 0.5em 2em; -} -.banner h1 -{ - font-size: 1.2em; - margin: 0; -} - -.banner h1 .type -{ - font-size: 0.833em; - display:block; -} - -.banner h1 .type, -.banner h1 .parent -{ - color: #666; -} - -.banner ul -{ - margin-top: 0.3em; - margin-bottom: 0; - font-size: 0.85em; -} - -.banner li -{ - list-style: none; - margin-left: 0; - margin-bottom: 0; -} - -pre -{ - margin-bottom: 1em; -} - -.methods dt -{ - width: 1em; - font-size: 1.5em; - color:#AAA; - position: absolute; - font-weight: normal; - margin: 0; -} - -.methods dd -{ - margin-left: 2.5em; - min-height: 1.8em; - -height: 1.8em; - padding-bottom: 0.8em; -} - - -.methods ul li -{ - margin-right: 0.7em; - margin-left: 0; - list-style: none; - display: inline; -} - -#content { - margin: 2em; - margin-left: 3.5em; - margin-right: 3.5em; -} - - -.sectiontitle { - margin-top: 2em; - margin-bottom: 1.3em; - margin-left: -1.2em; - font-size: 1.2em; - padding: 0 0 0.25em 0; - font-weight: bold; - border-bottom: 1px solid #000; -} - -.attr-rw { - padding-right: 1em; - text-align: center; - color: #055; -} - -.attr-name { - font-weight: bold; - padding-right: 1em; -} - -.attr-desc { -} - -tt { - font-size: 1.15em; -} - -.attr-value { - font-family: monospace; - padding-left: 1em; - font-size: 1.15em; -} - -.dyn-source { - display: none; - background: #fffde8; - color: #000; - border: #ffe0bb dotted 1px; - margin: 0.5em 2em 0.5em 0; - padding: 0.5em; -} - -.dyn-source .cmt { - color: #00F; - font-style: italic; -} - -.dyn-source .kw { - color: #070; - font-weight: bold; -} - -.description pre { - padding: 0.5em; - border: #ffe0bb dotted 1px; - background: #fffde8; -} - -.method { - margin-bottom: 2em; -} -.method .description, -.method .sourcecode -{ - margin-left: 1.2em; -} -.method h4 -{ - border-bottom: 1px dotted #999; - padding: 0 0 0.2em 0; - margin-bottom: 0.8em; - font-size: 1.1em; - color:#333; -} -.method .title { - border-bottom: 1px dotted #666; - padding: 0 0 0.15em 0; - margin: 0 0 0.5em 0; - font-size: 1.2em; - line-height: 1.25em; -} - -.method .sourcecode p.source-link { - text-indent: 0em; - margin-top: 0.5em; -} - -.method .aka { - margin-top: 0.3em; - margin-left: 1em; - font-style: italic; - text-indent: 2em; -} - -.method .source-link -{ - font-size: 0.85em; -} \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/panel.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/panel.css deleted file mode 100755 index 5390c923..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/panel.css +++ /dev/null @@ -1,383 +0,0 @@ -/* Panel (begin) */ - .panel - { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - background: #FFF; - z-index: 2; - font-family: "Helvetica Neue", "Arial", sans-serif; - //zoom: 1; - } - - .panel_tree .results, - .panel_results .tree - { - display: none; - } - - /* Header with search box (begin) */ - .panel .header - { - width: 100%; - height: 29px; - border-bottom: 1px solid #666; - position: relative; - left: 0; top: 0; - background: #e8e8e8; - } - - .panel .header div - { - margin: 0 7px; - } - .panel .header table - { - height: 29px; - width: 100%; - } - - .panel .header table td - { - vertical-align: middle; - text-align: middle; - } - - .panel .header label - { - position: absolute; - font-size: 12px; - line-height: 29px; - margin-left: 3px; - color: #999; - cursor: text; - } - - .panel .header table input - { - width: 100%; - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - display: inline-block; - -webkit-appearance: searchfield; - height: 22px; - //height: auto; - } - - /* Header with search box (end) */ - - - /* Results (begin) */ - .panel .result - { - position: absolute; - top: 30px; - bottom: 0; - left: 0; - width: 100%; - //height: expression((this.parentNode.offsetHeight - 31)); - overflow-y: scroll; - overflow-x: hidden; - -overflow-y: hidden; - background: #EDF3FE url(../i/results_bg.png); - z-index: 2; - //zoom:1; - } - - .panel .result ul - { - font-size: 0.8em; - width: 100%; - background: #EDF3FE url(../i/results_bg.png); - //zoom:1; - } - - .panel .result ul li - { - height: 46px; - -height: 50px; - //display: inline; - //width: 100%; - //zoom: 1; - overflow: hidden; - padding: 4px 10px 0 10px; - cursor: pointer; - } - - .panel .result ul li h1 - { - font-size: 13px; - font-weight: normal; - color: #333; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .result ul li p - { - font-size: 11px; - color: #333; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .result ul li h1 i, - .panel .result ul li p.snippet - { - color: #999; - } - - .panel .result ul li b - { - color: #000; - } - - .panel .result ul li.current - { - background: #3875D7; - } - - .panel .result ul li.current h1, - .panel .result ul li.current p - { - color: #DDD; - } - - .panel .result ul li.current h1 i, - .panel .result ul li.current p.snippet - { - color: #AAA; - } - - .panel .result ul li.current b - { - color: #FFF; - } - - - .panel .result ul li:hover, - .panel .result ul li.selected - { - background: #d0d0d0; - } - - .panel .result ul li.current:hover - { - background: #2965C0; - } - - .panel .result ul li .badge - { - margin-right: 0.4em; - margin-left: -0.2em; - padding: 0 0.2em; - color: #000; - } - - .panel .result ul li .badge_1 - { - background: #ACDBF4; - } - - .panel .result ul li.current .badge_1 - { - background: #97BFD7; - } - - .panel .result ul li .badge_2 - { - background: #ACF3C3; - } - - .panel .result ul li.current .badge_2 - { - background: #98D7AC; - } - - .panel .result ul li .badge_3 - { - background: #E0F3AC; - } - - .panel .result ul li.current .badge_3 - { - background: #C4D798; - } - - .panel .result ul li .badge_4 - { - background: #D7CA98; - } - - .panel .result ul li.current .badge_4 - { - background: #A6B0AC; - } - - .panel .result ul li .badge_5 - { - background: #F3C8AC; - } - - .panel .result ul li.current .badge_5 - { - background: #D7B198; - } - - .panel .result ul li .badge_6 - { - background: #F3ACC3; - } - - .panel .result ul li.current .badge_6 - { - background: #D798AB; - } - - /* Results (end) */ - - /* Tree (begin) */ /**/ - .panel .tree - { - position: absolute; - top: 30px; - bottom: 0; - left: 0; - width: 100%; - //zoom: 1; - //height: expression((this.parentNode.offsetHeight - 31)); - overflow-y: scroll; - overflow-x: hidden; - -overflow-y: hidden; - background: #EDF3FE url(../i/tree_bg.png); - z-index: 30; - } - - .panel .tree ul - { - background: #EDF3FE url(../i/tree_bg.png); - } - - .panel .tree li - { - cursor: pointer; - overflow: hidden; - //height: 23px; - //display: inline; - //zoom: 1; - //width: 100%; - } - - - .panel .tree li .content - { - padding-left: 18px; - padding-top: 5px; - height: 18px; - overflow: hidden; - position: relative; - } - - .panel .tree li .icon - { - width: 10px; - height: 9px; - background: url(../i/arrows.png); - background-position: 0 -9px; - position: absolute; - left: 1px; - top: 8px; - cursor: default; - } - - .panel .tree li.closed .icon - { - background-position: 0 0; - } - - .panel .tree ul li h1 - { - font-size: 13px; - font-weight: normal; - color: #000; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .tree ul li p - { - font-size: 11px; - color: #666; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .tree ul li h1 i - { - color: #999; - font-style: normal; - } - - .panel .tree ul li.empty - { - cursor: text; - } - - .panel .tree ul li.empty h1, - .panel .tree ul li.empty p - { - color: #666; - font-style: italic; - } - - .panel .tree ul li.current - { - background: #3875D7; - } - - .panel .tree ul li.current .icon - { - background-position: -10px -9px; - } - - .panel .tree ul li.current.closed .icon - { - background-position: -10px 0; - } - - .panel .tree ul li.current h1 - { - color: #FFF; - } - - .panel .tree ul li.current p - { - color: #CCC; - } - - .panel .tree ul li.current.empty h1, - .panel .tree ul li.current.empty p - { - color: #999; - } - - .panel .tree ul li:hover - { - background: #d0d0d0; - } - - .panel .tree ul li.current:hover - { - background: #2965C0; - } - - .panel .tree .stopper - { - display: none; - } - /* Tree (end) */ /**/ - -/* Panel (end) */ \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/reset.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/reset.css deleted file mode 100755 index 13f8e0a1..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/css/reset.css +++ /dev/null @@ -1,53 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ */ -/* v1.0 | 20080212 */ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-size: 100%; - vertical-align: baseline; - background: transparent; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} - -/* remember to define focus styles! */ -:focus { - outline: 0; -} - -/* remember to highlight inserts somehow! */ -ins { - text-decoration: none; -} -del { - text-decoration: line-through; -} - -/* tables still need 'cellspacing="0"' in the markup */ -table { - border-collapse: collapse; - border-spacing: 0; -} \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/favicon.ico b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/favicon.ico deleted file mode 100644 index e0e80cf8..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/favicon.ico and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/arrows.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/arrows.png deleted file mode 100755 index e54060f4..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/arrows.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/results_bg.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/results_bg.png deleted file mode 100755 index 199ba692..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/results_bg.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/tree_bg.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/tree_bg.png deleted file mode 100755 index 7d236633..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/i/tree_bg.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-1.3.2.min.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-1.3.2.min.js deleted file mode 100755 index b1ae21d8..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-1.3.2.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-effect.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-effect.js deleted file mode 100644 index 5b25307c..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/jquery-effect.js +++ /dev/null @@ -1,593 +0,0 @@ -/* - * jQuery UI Effects 1.6rc6 - * - * Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/ - */ -;(function($) { - -$.effects = $.effects || {}; //Add the 'effects' scope - -$.extend($.effects, { - version: "1.6rc6", - - // Saves a set of properties in a data storage - save: function(element, set) { - for(var i=0; i < set.length; i++) { - if(set[i] !== null) element.data("ec.storage."+set[i], element[0].style[set[i]]); - } - }, - - // Restores a set of previously saved properties from a data storage - restore: function(element, set) { - for(var i=0; i < set.length; i++) { - if(set[i] !== null) element.css(set[i], element.data("ec.storage."+set[i])); - } - }, - - setMode: function(el, mode) { - if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle - return mode; - }, - - getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value - // this should be a little more flexible in the future to handle a string & hash - var y, x; - switch (origin[0]) { - case 'top': y = 0; break; - case 'middle': y = 0.5; break; - case 'bottom': y = 1; break; - default: y = origin[0] / original.height; - }; - switch (origin[1]) { - case 'left': x = 0; break; - case 'center': x = 0.5; break; - case 'right': x = 1; break; - default: x = origin[1] / original.width; - }; - return {x: x, y: y}; - }, - - // Wraps the element around a wrapper that copies position properties - createWrapper: function(element) { - - //if the element is already wrapped, return it - if (element.parent().is('.ui-effects-wrapper')) - return element.parent(); - - //Cache width,height and float properties of the element, and create a wrapper around it - var props = { width: element.outerWidth(true), height: element.outerHeight(true), 'float': element.css('float') }; - element.wrap('
'); - var wrapper = element.parent(); - - //Transfer the positioning of the element to the wrapper - if (element.css('position') == 'static') { - wrapper.css({ position: 'relative' }); - element.css({ position: 'relative'} ); - } else { - var top = element.css('top'); if(isNaN(parseInt(top,10))) top = 'auto'; - var left = element.css('left'); if(isNaN(parseInt(left,10))) left = 'auto'; - wrapper.css({ position: element.css('position'), top: top, left: left, zIndex: element.css('z-index') }).show(); - element.css({position: 'relative', top: 0, left: 0 }); - } - - wrapper.css(props); - return wrapper; - }, - - removeWrapper: function(element) { - if (element.parent().is('.ui-effects-wrapper')) - return element.parent().replaceWith(element); - return element; - }, - - setTransition: function(element, list, factor, value) { - value = value || {}; - $.each(list, function(i, x){ - unit = element.cssUnit(x); - if (unit[0] > 0) value[x] = unit[0] * factor + unit[1]; - }); - return value; - }, - - //Base function to animate from one class to another in a seamless transition - animateClass: function(value, duration, easing, callback) { - - var cb = (typeof easing == "function" ? easing : (callback ? callback : null)); - var ea = (typeof easing == "string" ? easing : null); - - return this.each(function() { - - var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || ''; - if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */ - if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; } - - //Let's get a style offset - var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); - if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove); - var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); - if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove); - - // The main function to form the object for animation - for(var n in newStyle) { - if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */ - && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */ - && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */ - && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */ - && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */ - ) offset[n] = newStyle[n]; - } - - that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object - // Change style attribute back to original. For stupid IE, we need to clear the damn object. - if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr); - if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove); - if(cb) cb.apply(this, arguments); - }); - - }); - } -}); - - -function _normalizeArguments(a, m) { - - var o = a[1] && a[1].constructor == Object ? a[1] : {}; if(m) o.mode = m; - var speed = a[1] && a[1].constructor != Object ? a[1] : o.duration; //either comes from options.duration or the second argument - speed = $.fx.off ? 0 : typeof speed === "number" ? speed : $.fx.speeds[speed] || $.fx.speeds._default; - var callback = o.callback || ( $.isFunction(a[2]) && a[2] ) || ( $.isFunction(a[3]) && a[3] ); - - return [a[0], o, speed, callback]; - -} - -//Extend the methods of jQuery -$.fn.extend({ - - //Save old methods - _show: $.fn.show, - _hide: $.fn.hide, - __toggle: $.fn.toggle, - _addClass: $.fn.addClass, - _removeClass: $.fn.removeClass, - _toggleClass: $.fn.toggleClass, - - // New effect methods - effect: function(fx, options, speed, callback) { - return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: options || {}, duration: speed, callback: callback }) : null; - }, - - show: function() { - if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0]))) - return this._show.apply(this, arguments); - else { - return this.effect.apply(this, _normalizeArguments(arguments, 'show')); - } - }, - - hide: function() { - if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0]))) - return this._hide.apply(this, arguments); - else { - return this.effect.apply(this, _normalizeArguments(arguments, 'hide')); - } - }, - - toggle: function(){ - if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function)) - return this.__toggle.apply(this, arguments); - else { - return this.effect.apply(this, _normalizeArguments(arguments, 'toggle')); - } - }, - - addClass: function(classNames, speed, easing, callback) { - return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames); - }, - removeClass: function(classNames,speed,easing,callback) { - return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames); - }, - toggleClass: function(classNames,speed,easing,callback) { - return ( (typeof speed !== "boolean") && speed ) ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames, speed); - }, - morph: function(remove,add,speed,easing,callback) { - return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]); - }, - switchClass: function() { - return this.morph.apply(this, arguments); - }, - - // helper functions - cssUnit: function(key) { - var style = this.css(key), val = []; - $.each( ['em','px','%','pt'], function(i, unit){ - if(style.indexOf(unit) > 0) - val = [parseFloat(style), unit]; - }); - return val; - } -}); - -/* - * jQuery Color Animations - * Copyright 2007 John Resig - * Released under the MIT and GPL licenses. - */ - -// We override the animation for all of these color styles -$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ - $.fx.step[attr] = function(fx) { - if ( fx.state == 0 ) { - fx.start = getColor( fx.elem, attr ); - fx.end = getRGB( fx.end ); - } - - fx.elem.style[attr] = "rgb(" + [ - Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0],10), 255), 0), - Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1],10), 255), 0), - Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2],10), 255), 0) - ].join(",") + ")"; - }; -}); - -// Color Conversion functions from highlightFade -// By Blair Mitchelmore -// http://jquery.offput.ca/highlightFade/ - -// Parse strings looking for color tuples [255,255,255] -function getRGB(color) { - var result; - - // Check if we're already dealing with an array of colors - if ( color && color.constructor == Array && color.length == 3 ) - return color; - - // Look for rgb(num,num,num) - if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) - return [parseInt(result[1],10), parseInt(result[2],10), parseInt(result[3],10)]; - - // Look for rgb(num%,num%,num%) - if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) - return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55]; - - // Look for #a0b1c2 - if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) - return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)]; - - // Look for #fff - if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) - return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)]; - - // Look for rgba(0, 0, 0, 0) == transparent in Safari 3 - if (result = /rgba\(0, 0, 0, 0\)/.exec(color)) - return colors['transparent']; - - // Otherwise, we're most likely dealing with a named color - return colors[$.trim(color).toLowerCase()]; -} - -function getColor(elem, attr) { - var color; - - do { - color = $.curCSS(elem, attr); - - // Keep going until we find an element that has color, or we hit the body - if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") ) - break; - - attr = "backgroundColor"; - } while ( elem = elem.parentNode ); - - return getRGB(color); -}; - -// Some named colors to work with -// From Interface by Stefan Petre -// http://interface.eyecon.ro/ - -var colors = { - aqua:[0,255,255], - azure:[240,255,255], - beige:[245,245,220], - black:[0,0,0], - blue:[0,0,255], - brown:[165,42,42], - cyan:[0,255,255], - darkblue:[0,0,139], - darkcyan:[0,139,139], - darkgrey:[169,169,169], - darkgreen:[0,100,0], - darkkhaki:[189,183,107], - darkmagenta:[139,0,139], - darkolivegreen:[85,107,47], - darkorange:[255,140,0], - darkorchid:[153,50,204], - darkred:[139,0,0], - darksalmon:[233,150,122], - darkviolet:[148,0,211], - fuchsia:[255,0,255], - gold:[255,215,0], - green:[0,128,0], - indigo:[75,0,130], - khaki:[240,230,140], - lightblue:[173,216,230], - lightcyan:[224,255,255], - lightgreen:[144,238,144], - lightgrey:[211,211,211], - lightpink:[255,182,193], - lightyellow:[255,255,224], - lime:[0,255,0], - magenta:[255,0,255], - maroon:[128,0,0], - navy:[0,0,128], - olive:[128,128,0], - orange:[255,165,0], - pink:[255,192,203], - purple:[128,0,128], - violet:[128,0,128], - red:[255,0,0], - silver:[192,192,192], - white:[255,255,255], - yellow:[255,255,0], - transparent: [255,255,255] -}; - -/* - * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ - * - * Uses the built in easing capabilities added In jQuery 1.1 - * to offer multiple easing options - * - * TERMS OF USE - jQuery Easing - * - * Open source under the BSD License. - * - * Copyright 2008 George McGinley Smith - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * -*/ - -// t: current time, b: begInnIng value, c: change In value, d: duration -$.easing.jswing = $.easing.swing; - -$.extend($.easing, -{ - def: 'easeOutQuad', - swing: function (x, t, b, c, d) { - //alert($.easing.default); - return $.easing[$.easing.def](x, t, b, c, d); - }, - easeInQuad: function (x, t, b, c, d) { - return c*(t/=d)*t + b; - }, - easeOutQuad: function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - }, - easeInOutQuad: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t + b; - return -c/2 * ((--t)*(t-2) - 1) + b; - }, - easeInCubic: function (x, t, b, c, d) { - return c*(t/=d)*t*t + b; - }, - easeOutCubic: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t + 1) + b; - }, - easeInOutCubic: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t + b; - return c/2*((t-=2)*t*t + 2) + b; - }, - easeInQuart: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t + b; - }, - easeOutQuart: function (x, t, b, c, d) { - return -c * ((t=t/d-1)*t*t*t - 1) + b; - }, - easeInOutQuart: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t + b; - return -c/2 * ((t-=2)*t*t*t - 2) + b; - }, - easeInQuint: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t*t + b; - }, - easeOutQuint: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t*t*t + 1) + b; - }, - easeInOutQuint: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; - return c/2*((t-=2)*t*t*t*t + 2) + b; - }, - easeInSine: function (x, t, b, c, d) { - return -c * Math.cos(t/d * (Math.PI/2)) + c + b; - }, - easeOutSine: function (x, t, b, c, d) { - return c * Math.sin(t/d * (Math.PI/2)) + b; - }, - easeInOutSine: function (x, t, b, c, d) { - return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; - }, - easeInExpo: function (x, t, b, c, d) { - return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; - }, - easeOutExpo: function (x, t, b, c, d) { - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; - }, - easeInOutExpo: function (x, t, b, c, d) { - if (t==0) return b; - if (t==d) return b+c; - if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; - return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; - }, - easeInCirc: function (x, t, b, c, d) { - return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; - }, - easeOutCirc: function (x, t, b, c, d) { - return c * Math.sqrt(1 - (t=t/d-1)*t) + b; - }, - easeInOutCirc: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; - return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; - }, - easeInElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - }, - easeOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; - }, - easeInOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; - }, - easeInBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*(t/=d)*t*((s+1)*t - s) + b; - }, - easeOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; - }, - easeInOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; - }, - easeInBounce: function (x, t, b, c, d) { - return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b; - }, - easeOutBounce: function (x, t, b, c, d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } else { - return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; - } - }, - easeInOutBounce: function (x, t, b, c, d) { - if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; - return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; - } -}); -/* - * - * TERMS OF USE - EASING EQUATIONS - * - * Open source under the BSD License. - * - * Copyright 2001 Robert Penner - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ - -})(jQuery); - -/* - * jQuery UI Effects Highlight 1.6rc6 - * - * Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/Highlight - * - * Depends: - * effects.core.js - */ -(function($) { - -$.effects.highlight = function(o) { - - return this.queue(function() { - - // Create element - var el = $(this), props = ['backgroundImage','backgroundColor','opacity']; - - // Set options - var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode - var color = o.options.color || "#ffff99"; // Default highlight color - var oldColor = el.css("backgroundColor"); - - // Adjust - $.effects.save(el, props); el.show(); // Save & Show - el.css({backgroundImage: 'none', backgroundColor: color}); // Shift - - // Animation - var animation = {backgroundColor: oldColor }; - if (mode == "hide") animation['opacity'] = 0; - - // Animate - el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { - if(mode == "hide") el.hide(); - $.effects.restore(el, props); - if (mode == "show" && $.browser.msie) this.style.removeAttribute('filter'); - if(o.callback) o.callback.apply(this, arguments); - el.dequeue(); - }}); - - }); - -}; - -})(jQuery); \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/main.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/main.js deleted file mode 100755 index 31e96c3a..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/main.js +++ /dev/null @@ -1,22 +0,0 @@ -function toggleSource( id ) -{ - var $src = $('#' + id).toggle(); - $('#l_' + id).html($src.css('display') == 'none' ? 'show' : 'hide'); -} - -function openCode( url ) -{ - window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus(); -} - - -window.highlight = function(url) { - var hash = url.match(/#([^#]+)$/) - if(hash) { - $('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow') - } -} - -$(function() { - highlight('#' + location.hash); -}); diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/searchdoc.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/searchdoc.js deleted file mode 100755 index 06b278ec..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/js/searchdoc.js +++ /dev/null @@ -1,628 +0,0 @@ -Searchdoc = {}; - -// navigation.js ------------------------------------------ - -Searchdoc.Navigation = new function() { - this.initNavigation = function() { - var _this = this; - - $(document).keydown(function(e) { - _this.onkeydown(e); - }).keyup(function(e) { - _this.onkeyup(e); - }); - - this.navigationActive = true; - } - - this.setNavigationActive = function(state) { - this.navigationActive = state; - this.clearMoveTimeout(); - } - - - this.onkeyup = function(e) { - if (!this.navigationActive) return; - switch(e.keyCode) { - case 37: //Event.KEY_LEFT: - case 38: //Event.KEY_UP: - case 39: //Event.KEY_RIGHT: - case 40: //Event.KEY_DOWN: - case 73: // i - qwerty - case 74: // j - case 75: // k - case 76: // l - case 67: // c - dvorak - case 72: // h - case 84: // t - case 78: // n - this.clearMoveTimeout(); - break; - } - } - - this.onkeydown = function(e) { - if (!this.navigationActive) return; - switch(e.keyCode) { - case 37: //Event.KEY_LEFT: - case 74: // j (qwerty) - case 72: // h (dvorak) - if (this.moveLeft()) e.preventDefault(); - break; - case 38: //Event.KEY_UP: - case 73: // i (qwerty) - case 67: // c (dvorak) - if (e.keyCode == 38 || e.ctrlKey) { - if (this.moveUp()) e.preventDefault(); - this.startMoveTimeout(false); - } - break; - case 39: //Event.KEY_RIGHT: - case 76: // l (qwerty) - case 78: // n (dvorak) - if (this.moveRight()) e.preventDefault(); - break; - case 40: //Event.KEY_DOWN: - case 75: // k (qwerty) - case 84: // t (dvorak) - if (e.keyCode == 40 || e.ctrlKey) { - if (this.moveDown()) e.preventDefault(); - this.startMoveTimeout(true); - } - break; - case 9: //Event.KEY_TAB: - case 13: //Event.KEY_RETURN: - if (this.$current) this.select(this.$current); - break; - } - if (e.ctrlKey && e.shiftKey) this.select(this.$current); - } - - this.clearMoveTimeout = function() { - clearTimeout(this.moveTimeout); - this.moveTimeout = null; - } - - this.startMoveTimeout = function(isDown) { - if (!$.browser.mozilla && !$.browser.opera) return; - if (this.moveTimeout) this.clearMoveTimeout(); - var _this = this; - - var go = function() { - if (!_this.moveTimeout) return; - _this[isDown ? 'moveDown' : 'moveUp'](); - _this.moveTimout = setTimeout(go, 100); - } - this.moveTimeout = setTimeout(go, 200); - } - - this.moveRight = function() { - } - - this.moveLeft = function() { - } - - this.move = function(isDown) { - } - - this.moveUp = function() { - return this.move(false); - } - - this.moveDown = function() { - return this.move(true); - } -} - - -// scrollIntoView.js -------------------------------------- - -function scrollIntoView(element, view) { - var offset, viewHeight, viewScroll, height; - offset = element.offsetTop; - height = element.offsetHeight; - viewHeight = view.offsetHeight; - viewScroll = view.scrollTop; - if (offset - viewScroll + height > viewHeight) { - view.scrollTop = offset - viewHeight + height; - } - if (offset < viewScroll) { - view.scrollTop = offset; - } -} - - -// searcher.js -------------------------------------------- - -Searchdoc.Searcher = function(data) { - this.data = data; - this.handlers = []; -} - -Searchdoc.Searcher.prototype = new function() { - var CHUNK_SIZE = 1000, // search is performed in chunks of 1000 for non-bloking user input - MAX_RESULTS = 100, // do not try to find more than 100 results - huid = 1, suid = 1, - runs = 0; - - - this.find = function(query) { - var queries = splitQuery(query), - regexps = buildRegexps(queries), - highlighters = buildHilighters(queries), - state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++}, - _this = this; - this.currentSuid = state.n; - - if (!query) return; - - var run = function() { - // stop current search thread if new search started - if (state.n != _this.currentSuid) return; - - var results = performSearch(_this.data, regexps, queries, highlighters, state), - hasMore = (state.limit > 0 && state.pass < 3); - - triggerResults.call(_this, results, !hasMore); - if (hasMore) { - setTimeout(run, 2); - } - runs++; - }; - runs = 0; - - // start search thread - run(); - } - - /* ----- Events ------ */ - this.ready = function(fn) { - fn.huid = huid; - this.handlers.push(fn); - } - - /* ----- Utilities ------ */ - function splitQuery(query) { - return jQuery.grep(query.split(/(\s+|\(\)?)/), function(string) { return string.match(/\S/) }); - } - - function buildRegexps(queries) { - return jQuery.map(queries, function(query) { return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i') }); - } - - function buildHilighters(queries) { - return jQuery.map(queries, function(query) { - return jQuery.map( query.split(''), function(l, i){ return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2) } ).join('') - }); - } - - // function longMatchRegexp(index, longIndex, regexps) { - // for (var i = regexps.length - 1; i >= 0; i--){ - // if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - // }; - // return true; - // } - - - /* ----- Mathchers ------ */ - function matchPass1(index, longIndex, queries, regexps) { - if (index.indexOf(queries[0]) != 0) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - function matchPass2(index, longIndex, queries, regexps) { - if (index.indexOf(queries[0]) == -1) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - function matchPassRegexp(index, longIndex, queries, regexps) { - if (!index.match(regexps[0])) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - - /* ----- Highlighters ------ */ - function highlightRegexp(info, queries, regexps, highlighters) { - var result = createResult(info); - for (var i=0, l = regexps.length; i < l; i++) { - result.title = result.title.replace(regexps[i], highlighters[i]); - if (i > 0) - result.namespace = result.namespace.replace(regexps[i], highlighters[i]); - }; - return result; - } - - function hltSubstring(string, pos, length) { - return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length); - } - - function highlightQuery(info, queries, regexps, highlighters) { - var result = createResult(info), pos = 0, lcTitle = result.title.toLowerCase(); - pos = lcTitle.indexOf(queries[0]); - if (pos != -1) { - result.title = hltSubstring(result.title, pos, queries[0].length); - } - for (var i=1, l = regexps.length; i < l; i++) { - result.title = result.title.replace(regexps[i], highlighters[i]); - result.namespace = result.namespace.replace(regexps[i], highlighters[i]); - }; - return result; - } - - function createResult(info) { - var result = {}; - result.title = info[0]; - result.namespace = info[1]; - result.path = info[2]; - result.params = info[3]; - result.snippet = info[4]; - result.badge = info[6]; - return result; - } - - /* ----- Searching ------ */ - function performSearch(data, regexps, queries, highlighters, state) { - var searchIndex = data.searchIndex, // search by title first and then by source - longSearchIndex = data.longSearchIndex, - info = data.info, - result = [], - i = state.from, - l = searchIndex.length, - togo = CHUNK_SIZE, - matchFunc, hltFunc; - - while (state.pass < 3 && state.limit > 0 && togo > 0) { - if (state.pass == 0) { - matchFunc = matchPass1; - hltFunc = highlightQuery; - } else if (state.pass == 1) { - matchFunc = matchPass2; - hltFunc = highlightQuery; - } else if (state.pass == 2) { - matchFunc = matchPassRegexp; - hltFunc = highlightRegexp; - } - - for (; togo > 0 && i < l && state.limit > 0; i++, togo--) { - if (info[i].n == state.n) continue; - if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) { - info[i].n = state.n; - result.push(hltFunc(info[i], queries, regexps, highlighters)); - state.limit--; - } - }; - if (searchIndex.length <= i) { - state.pass++; - i = state.from = 0; - } else { - state.from = i; - } - } - return result; - } - - function triggerResults(results, isLast) { - jQuery.each(this.handlers, function(i, fn) { fn.call(this, results, isLast) }) - } -} - - - - -// panel.js ----------------------------------------------- - -Searchdoc.Panel = function(element, data, tree, frame) { - this.$element = $(element); - this.$input = $('input', element).eq(0); - this.$result = $('.result ul', element).eq(0); - this.frame = frame; - this.$current = null; - this.$view = this.$result.parent(); - this.data = data; - this.searcher = new Searchdoc.Searcher(data.index); - this.tree = new Searchdoc.Tree($('.tree', element), tree, this); - this.init(); -} - -Searchdoc.Panel.prototype = $.extend({}, Searchdoc.Navigation, new function() { - var suid = 1; - - this.init = function() { - var _this = this; - var observer = function() { - _this.search(_this.$input[0].value); - }; - this.$input.keyup(observer); - this.$input.click(observer); // mac's clear field - - this.searcher.ready(function(results, isLast) { - _this.addResults(results, isLast); - }) - - this.$result.click(function(e) { - _this.$current.removeClass('current'); - _this.$current = $(e.target).closest('li').addClass('current'); - _this.select(); - _this.$input.focus(); - }); - - this.initNavigation(); - this.setNavigationActive(false); - } - - this.search = function(value, selectFirstMatch) { - value = jQuery.trim(value).toLowerCase(); - this.selectFirstMatch = selectFirstMatch; - if (value) { - this.$element.removeClass('panel_tree').addClass('panel_results'); - this.tree.setNavigationActive(false); - this.setNavigationActive(true); - } else { - this.$element.addClass('panel_tree').removeClass('panel_results'); - this.tree.setNavigationActive(true); - this.setNavigationActive(false); - } - if (value != this.lastQuery) { - this.lastQuery = value; - this.firstRun = true; - this.searcher.find(value); - } - } - - this.addResults = function(results, isLast) { - var target = this.$result.get(0); - if (this.firstRun && (results.length > 0 || isLast)) { - this.$current = null; - this.$result.empty(); - } - for (var i=0, l = results.length; i < l; i++) { - target.appendChild(renderItem.call(this, results[i])); - }; - if (this.firstRun && results.length > 0) { - this.firstRun = false; - this.$current = $(target.firstChild); - this.$current.addClass('current'); - if (this.selectFirstMatch) this.select(); - scrollIntoView(this.$current[0], this.$view[0]) - } - if (jQuery.browser.msie) this.$element[0].className += ''; - } - - this.open = function(src) { - this.frame.location.href = '../' + src; - if (this.frame.highlight) this.frame.highlight(src); - } - - this.select = function() { - this.open(this.$current.data('path')); - } - - this.move = function(isDown) { - if (!this.$current) return; - var $next = this.$current[isDown ? 'next' : 'prev'](); - if ($next.length) { - this.$current.removeClass('current'); - $next.addClass('current'); - scrollIntoView($next[0], this.$view[0]); - this.$current = $next; - } - return true; - } - - function renderItem(result) { - var li = document.createElement('li'), - html = '', badge = result.badge; - html += '

' + hlt(result.title); - if (result.params) html += '' + result.params + ''; - html += '

'; - html += '

'; - if (typeof badge != 'undefined') { - html += '' + escapeHTML(this.data.badges[badge] || 'unknown') + ''; - } - html += hlt(result.namespace) + '

'; - if (result.snippet) html += '

' + escapeHTML(result.snippet) + '

'; - li.innerHTML = html; - jQuery.data(li, 'path', result.path); - return li; - } - - function hlt(html) { - return escapeHTML(html).replace(/\u0001/g, '').replace(/\u0002/g, '') - } - - function escapeHTML(html) { - return html.replace(/[&<>]/g, function(c) { - return '&#' + c.charCodeAt(0) + ';'; - }); - } - -}); - -// tree.js ------------------------------------------------ - -Searchdoc.Tree = function(element, tree, panel) { - this.$element = $(element); - this.$list = $('ul', element); - this.tree = tree; - this.panel = panel; - this.init(); -} - -Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() { - this.init = function() { - var stopper = document.createElement('li'); - stopper.className = 'stopper'; - this.$list[0].appendChild(stopper); - for (var i=0, l = this.tree.length; i < l; i++) { - buildAndAppendItem.call(this, this.tree[i], 0, stopper); - }; - var _this = this; - this.$list.click(function(e) { - var $target = $(e.target), - $li = $target.closest('li'); - if ($target.hasClass('icon')) { - _this.toggle($li); - } else { - _this.select($li); - } - }) - - this.initNavigation(); - if (jQuery.browser.msie) document.body.className += ''; - } - - this.select = function($li) { - this.highlight($li); - var path = $li[0].searchdoc_tree_data.path; - if (path) this.panel.open(path); - } - - this.highlight = function($li) { - if (this.$current) this.$current.removeClass('current'); - this.$current = $li.addClass('current'); - } - - this.toggle = function($li) { - var closed = !$li.hasClass('closed'), - children = $li[0].searchdoc_tree_data.children; - $li.toggleClass('closed'); - for (var i=0, l = children.length; i < l; i++) { - toggleVis.call(this, $(children[i].li), !closed); - }; - } - - this.moveRight = function() { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return; - } - if (this.$current.hasClass('closed')) { - this.toggle(this.$current); - } - } - - this.moveLeft = function() { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return; - } - if (!this.$current.hasClass('closed')) { - this.toggle(this.$current); - } else { - var level = this.$current[0].searchdoc_tree_data.level; - if (level == 0) return; - var $next = this.$current.prevAll('li.level_' + (level - 1) + ':visible:first'); - this.$current.removeClass('current'); - $next.addClass('current'); - scrollIntoView($next[0], this.$element[0]); - this.$current = $next; - } - } - - this.move = function(isDown) { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return true; - } - var next = this.$current[0]; - if (isDown) { - do { - next = next.nextSibling; - if (next && next.style && next.style.display != 'none') break; - } while(next); - } else { - do { - next = next.previousSibling; - if (next && next.style && next.style.display != 'none') break; - } while(next); - } - if (next && next.className.indexOf('stopper') == -1) { - this.$current.removeClass('current'); - $(next).addClass('current'); - scrollIntoView(next, this.$element[0]); - this.$current = $(next); - } - return true; - } - - function toggleVis($li, show) { - var closed = $li.hasClass('closed'), - children = $li[0].searchdoc_tree_data.children; - $li.css('display', show ? '' : 'none') - if (!show && this.$current && $li[0] == this.$current[0]) { - this.$current.removeClass('current'); - this.$current = null; - } - for (var i=0, l = children.length; i < l; i++) { - toggleVis.call(this, $(children[i].li), show && !closed); - }; - } - - function buildAndAppendItem(item, level, before) { - var li = renderItem(item, level), - list = this.$list[0]; - item.li = li; - list.insertBefore(li, before); - for (var i=0, l = item[3].length; i < l; i++) { - buildAndAppendItem.call(this, item[3][i], level + 1, before); - }; - return li; - } - - function renderItem(item, level) { - var li = document.createElement('li'), - cnt = document.createElement('div'), - h1 = document.createElement('h1'), - p = document.createElement('p'), - icon, i; - - li.appendChild(cnt); - li.style.paddingLeft = getOffset(level); - cnt.className = 'content'; - if (!item[1]) li.className = 'empty '; - cnt.appendChild(h1); - // cnt.appendChild(p); - h1.appendChild(document.createTextNode(item[0])); - // p.appendChild(document.createTextNode(item[4])); - if (item[2]) { - i = document.createElement('i'); - i.appendChild(document.createTextNode(item[2])); - h1.appendChild(i); - } - if (item[3].length > 0) { - icon = document.createElement('div'); - icon.className = 'icon'; - cnt.appendChild(icon); - } - - // user direct assignement instead of $() - // it's 8x faster - // $(li).data('path', item[1]) - // .data('children', item[3]) - // .data('level', level) - // .css('display', level == 0 ? '' : 'none') - // .addClass('level_' + level) - // .addClass('closed'); - li.searchdoc_tree_data = { - path: item[1], - children: item[3], - level: level - } - li.style.display = level == 0 ? '' : 'none'; - li.className += 'level_' + level + ' closed'; - return li; - } - - function getOffset(level) { - return 5 + 18*level + 'px'; - } -}); diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/panel/index.html b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/panel/index.html deleted file mode 100755 index 683c6269..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/direct/resources/panel/index.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - layout - - - - - - - - - -
-
-
- - - -
- -
-
-
-
    -
-
-
-
    -
-
-
- - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/merge/index.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/merge/index.rhtml deleted file mode 100644 index 3a7e0cb7..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/merge/index.rhtml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - <%= @title %> - - - - - - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/_context.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/_context.rhtml deleted file mode 100755 index 984a40ea..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/_context.rhtml +++ /dev/null @@ -1,164 +0,0 @@ -
- <% unless (desc = context.description).empty? %> -
<%= desc %>
- <% end %> - - <% unless context.requires.empty? %> -
Required Files
-
    - <% context.requires.each do |req| %> -
  • <%= h req.name %>
  • - <% end %> -
- <% end %> - - <% sections = context.sections.select { |section| section.title } %> - <% unless sections.empty? %> -
Contents
- - <% end %> - - <% - list = context.method_list - unless @options.show_all - list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation } - end - %> - <% unless list.empty? %> -
Methods
-
    - <% list.sort{ |a, b| a.name <=> b.name }.each do |method| %> -
  • <%= method.name %>
  • - <% end %> -
- <% end %> - - <% unless context.includes.empty? %> -
Included Modules
-
    - <% context.includes.each do |inc| %> -
  • - <% unless String === inc.module %> - <%= h inc.module.full_name %> - <% else %> - <%= h inc.name %> - <% end %> - START:includes -
  • - <% end %> -
- <% end %> - - <% sections.each do |section| %> - - <% unless (description = section.description).empty? %> -
- <%= description %> -
- <% end %> - <% end %> - - <% unless context.classes_and_modules.empty? %> -
Classes and Modules
-
    - <% (context.modules.sort + context.classes.sort).each do |mod| %> -
  • <%= mod.type.upcase %> <%= mod.full_name %>
  • - <% end %> -
- <% end %> - - <% unless context.constants.empty? %> -
Constants
- - <% context.each_constant do |const| %> - - - - - - <% unless (description = const.description).empty? %> - - - - - <% end %> - <% end %> -
<%= h const.name %>=<%= h const.value %>
 <%= description %>
- <% end %> - - <% unless context.attributes.empty? %> -
Attributes
- - <% context.each_attribute do |attrib| %> - - - - - - <% end %> -
- [<%= attrib.rw %>] - <%= h attrib.name %><%= attrib.description.strip %>
- <% end %> - - <% context.methods_by_type.each do |type, visibilities| - next if visibilities.empty? - visibilities.each do |visibility, methods| - next if methods.empty? - next unless @options.show_all || visibility == :public || visibility == :protected || methods.any? {|m| m.force_documentation } - %> -
<%= type.capitalize %> <%= visibility.to_s.capitalize %> methods
- <% methods.each do |method| %> -
-
- <% if method.call_seq %> - <%= method.call_seq.gsub(/->/, '→') %> - <% else %> - <%= h method.name %><%= h method.params %> - <% end %> -
- <% unless (description = method.description).empty? %> -
- <%# TODO delete this dirty hack when documentation for example for JavaScriptHelper will not be cutted off by - - - - - - - - - -
- <%= include_template '_context.rhtml', {:context => klass, :rel_prefix => rel_prefix} %> -
- - \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/file.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/file.rhtml deleted file mode 100755 index 9d8113e7..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/file.rhtml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - <%= h file.name %> - - " type="text/css" media="screen" /> - - - - - - -
- -
- <%= include_template '_context.rhtml', {:context => file, :rel_prefix => rel_prefix} %> -
- - \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/index.rhtml b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/index.rhtml deleted file mode 100755 index 4d0c4a69..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/index.rhtml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - <%= @options.title %> - - - - - - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/apple-touch-icon.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/apple-touch-icon.png deleted file mode 100644 index 50f98b0f..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/apple-touch-icon.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/main.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/main.css deleted file mode 100755 index d1a1c244..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/main.css +++ /dev/null @@ -1,191 +0,0 @@ -a { - color: #00F; - text-decoration: none; -} - -a:hover { - color: #77F; - text-decoration: underline; -} - -body, td, p { - font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif; - background: #FFF; - color: #000; - margin: 0px; - font-size: small; -} - -p { - margin-top: 0.5em; - margin-bottom: 0.5em; -} - -#content { - margin: 2em; - margin-left: 3.5em; - margin-right: 3.5em; -} - -#description p { - margin-bottom: 0.5em; -} - -.sectiontitle { - margin-top: 1em; - margin-bottom: 1em; - padding: 0.5em; - padding-left: 2em; - background: #005; - color: #FFF; - font-weight: bold; -} - -.attr-rw { - padding-left: 1em; - padding-right: 1em; - text-align: center; - color: #055; -} - -.attr-name { - font-weight: bold; -} - -.attr-desc { -} - -.attr-desc p { - margin-top: 0; -} - -.attr-value { - font-family: monospace; -} - -.file-title-prefix { - font-size: large; -} - -.file-title { - font-size: large; - font-weight: bold; - background: #005; - color: #FFF; -} - -.banner { - background: #005; - color: #FFF; - border: 1px solid black; - padding: 1em; -} - -.banner td { - background: transparent; - color: #FFF; -} - -h1 a, h2 a, .sectiontitle a, .banner a { - color: #FF0; -} - -h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover { - color: #FF7; -} - -.dyn-source { - display: none; - background: #fffde8; - color: #000; - border: #ffe0bb dotted 1px; - margin: 0.5em 2em 0.5em 2em; - padding: 0.5em; -} - -.dyn-source .cmt { - color: #00F; - font-style: italic; -} - -.dyn-source .kw { - color: #070; - font-weight: bold; -} - -.method { - margin-left: 1em; - margin-right: 1em; - margin-bottom: 1em; -} - -.description pre { - padding: 0.5em; - border: #ffe0bb dotted 1px; - background: #fffde8; -} - -.method .title { - font-family: monospace; - font-size: large; - border-bottom: 1px dashed black; - margin-bottom: 0.3em; - padding-bottom: 0.1em; -} - -.method .description, .method .sourcecode { - margin-left: 1em; -} - -.description p, .sourcecode p { - margin-bottom: 0.5em; -} - -.method .sourcecode p.source-link { - text-indent: 0em; - margin-top: 0.5em; -} - -.method .aka { - margin-top: 0.3em; - margin-left: 1em; - font-style: italic; - text-indent: 2em; -} - -h1 { - padding: 1em; - margin-left: -1.5em; - font-size: x-large; - font-weight: bold; - color: #FFF; - background: #007; -} - -h2 { - padding: 0.5em 1em 0.5em 1em; - margin-left: -1.5em; - font-size: large; - font-weight: bold; - color: #FFF; - background: #009; -} - -h3, h4, h5, h6 { - color: #220088; - border-bottom: #5522bb solid 1px; -} - -.sourcecode > pre { - padding: 0.5em; - border: 1px dotted black; - background: #FFE; -} - -dt { - font-weight: bold -} - -dd { - margin-bottom: 0.7em; -} \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/panel.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/panel.css deleted file mode 100755 index 5390c923..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/panel.css +++ /dev/null @@ -1,383 +0,0 @@ -/* Panel (begin) */ - .panel - { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - background: #FFF; - z-index: 2; - font-family: "Helvetica Neue", "Arial", sans-serif; - //zoom: 1; - } - - .panel_tree .results, - .panel_results .tree - { - display: none; - } - - /* Header with search box (begin) */ - .panel .header - { - width: 100%; - height: 29px; - border-bottom: 1px solid #666; - position: relative; - left: 0; top: 0; - background: #e8e8e8; - } - - .panel .header div - { - margin: 0 7px; - } - .panel .header table - { - height: 29px; - width: 100%; - } - - .panel .header table td - { - vertical-align: middle; - text-align: middle; - } - - .panel .header label - { - position: absolute; - font-size: 12px; - line-height: 29px; - margin-left: 3px; - color: #999; - cursor: text; - } - - .panel .header table input - { - width: 100%; - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - display: inline-block; - -webkit-appearance: searchfield; - height: 22px; - //height: auto; - } - - /* Header with search box (end) */ - - - /* Results (begin) */ - .panel .result - { - position: absolute; - top: 30px; - bottom: 0; - left: 0; - width: 100%; - //height: expression((this.parentNode.offsetHeight - 31)); - overflow-y: scroll; - overflow-x: hidden; - -overflow-y: hidden; - background: #EDF3FE url(../i/results_bg.png); - z-index: 2; - //zoom:1; - } - - .panel .result ul - { - font-size: 0.8em; - width: 100%; - background: #EDF3FE url(../i/results_bg.png); - //zoom:1; - } - - .panel .result ul li - { - height: 46px; - -height: 50px; - //display: inline; - //width: 100%; - //zoom: 1; - overflow: hidden; - padding: 4px 10px 0 10px; - cursor: pointer; - } - - .panel .result ul li h1 - { - font-size: 13px; - font-weight: normal; - color: #333; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .result ul li p - { - font-size: 11px; - color: #333; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .result ul li h1 i, - .panel .result ul li p.snippet - { - color: #999; - } - - .panel .result ul li b - { - color: #000; - } - - .panel .result ul li.current - { - background: #3875D7; - } - - .panel .result ul li.current h1, - .panel .result ul li.current p - { - color: #DDD; - } - - .panel .result ul li.current h1 i, - .panel .result ul li.current p.snippet - { - color: #AAA; - } - - .panel .result ul li.current b - { - color: #FFF; - } - - - .panel .result ul li:hover, - .panel .result ul li.selected - { - background: #d0d0d0; - } - - .panel .result ul li.current:hover - { - background: #2965C0; - } - - .panel .result ul li .badge - { - margin-right: 0.4em; - margin-left: -0.2em; - padding: 0 0.2em; - color: #000; - } - - .panel .result ul li .badge_1 - { - background: #ACDBF4; - } - - .panel .result ul li.current .badge_1 - { - background: #97BFD7; - } - - .panel .result ul li .badge_2 - { - background: #ACF3C3; - } - - .panel .result ul li.current .badge_2 - { - background: #98D7AC; - } - - .panel .result ul li .badge_3 - { - background: #E0F3AC; - } - - .panel .result ul li.current .badge_3 - { - background: #C4D798; - } - - .panel .result ul li .badge_4 - { - background: #D7CA98; - } - - .panel .result ul li.current .badge_4 - { - background: #A6B0AC; - } - - .panel .result ul li .badge_5 - { - background: #F3C8AC; - } - - .panel .result ul li.current .badge_5 - { - background: #D7B198; - } - - .panel .result ul li .badge_6 - { - background: #F3ACC3; - } - - .panel .result ul li.current .badge_6 - { - background: #D798AB; - } - - /* Results (end) */ - - /* Tree (begin) */ /**/ - .panel .tree - { - position: absolute; - top: 30px; - bottom: 0; - left: 0; - width: 100%; - //zoom: 1; - //height: expression((this.parentNode.offsetHeight - 31)); - overflow-y: scroll; - overflow-x: hidden; - -overflow-y: hidden; - background: #EDF3FE url(../i/tree_bg.png); - z-index: 30; - } - - .panel .tree ul - { - background: #EDF3FE url(../i/tree_bg.png); - } - - .panel .tree li - { - cursor: pointer; - overflow: hidden; - //height: 23px; - //display: inline; - //zoom: 1; - //width: 100%; - } - - - .panel .tree li .content - { - padding-left: 18px; - padding-top: 5px; - height: 18px; - overflow: hidden; - position: relative; - } - - .panel .tree li .icon - { - width: 10px; - height: 9px; - background: url(../i/arrows.png); - background-position: 0 -9px; - position: absolute; - left: 1px; - top: 8px; - cursor: default; - } - - .panel .tree li.closed .icon - { - background-position: 0 0; - } - - .panel .tree ul li h1 - { - font-size: 13px; - font-weight: normal; - color: #000; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .tree ul li p - { - font-size: 11px; - color: #666; - margin-bottom: 2px; - white-space: nowrap; - } - - .panel .tree ul li h1 i - { - color: #999; - font-style: normal; - } - - .panel .tree ul li.empty - { - cursor: text; - } - - .panel .tree ul li.empty h1, - .panel .tree ul li.empty p - { - color: #666; - font-style: italic; - } - - .panel .tree ul li.current - { - background: #3875D7; - } - - .panel .tree ul li.current .icon - { - background-position: -10px -9px; - } - - .panel .tree ul li.current.closed .icon - { - background-position: -10px 0; - } - - .panel .tree ul li.current h1 - { - color: #FFF; - } - - .panel .tree ul li.current p - { - color: #CCC; - } - - .panel .tree ul li.current.empty h1, - .panel .tree ul li.current.empty p - { - color: #999; - } - - .panel .tree ul li:hover - { - background: #d0d0d0; - } - - .panel .tree ul li.current:hover - { - background: #2965C0; - } - - .panel .tree .stopper - { - display: none; - } - /* Tree (end) */ /**/ - -/* Panel (end) */ \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/reset.css b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/reset.css deleted file mode 100755 index 13f8e0a1..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/css/reset.css +++ /dev/null @@ -1,53 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ */ -/* v1.0 | 20080212 */ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-size: 100%; - vertical-align: baseline; - background: transparent; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} - -/* remember to define focus styles! */ -:focus { - outline: 0; -} - -/* remember to highlight inserts somehow! */ -ins { - text-decoration: none; -} -del { - text-decoration: line-through; -} - -/* tables still need 'cellspacing="0"' in the markup */ -table { - border-collapse: collapse; - border-spacing: 0; -} \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/favicon.ico b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/favicon.ico deleted file mode 100644 index e0e80cf8..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/favicon.ico and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/arrows.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/arrows.png deleted file mode 100755 index e54060f4..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/arrows.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/results_bg.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/results_bg.png deleted file mode 100755 index 199ba692..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/results_bg.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/tree_bg.png b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/tree_bg.png deleted file mode 100755 index 7d236633..00000000 Binary files a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/i/tree_bg.png and /dev/null differ diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/jquery-1.3.2.min.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/jquery-1.3.2.min.js deleted file mode 100755 index b1ae21d8..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/jquery-1.3.2.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/main.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/main.js deleted file mode 100755 index 3a2b8aee..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/main.js +++ /dev/null @@ -1,34 +0,0 @@ -function toggleSource( id ) -{ - var elem - var link - - if( document.getElementById ) - { - elem = document.getElementById( id ) - link = document.getElementById( "l_" + id ) - } - else if ( document.all ) - { - elem = eval( "document.all." + id ) - link = eval( "document.all.l_" + id ) - } - else - return false; - - if( elem.style.display == "block" ) - { - elem.style.display = "none" - link.innerHTML = "show" - } - else - { - elem.style.display = "block" - link.innerHTML = "hide" - } -} - -function openCode( url ) -{ - window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus(); -} \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/searchdoc.js b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/searchdoc.js deleted file mode 100755 index 06b278ec..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/js/searchdoc.js +++ /dev/null @@ -1,628 +0,0 @@ -Searchdoc = {}; - -// navigation.js ------------------------------------------ - -Searchdoc.Navigation = new function() { - this.initNavigation = function() { - var _this = this; - - $(document).keydown(function(e) { - _this.onkeydown(e); - }).keyup(function(e) { - _this.onkeyup(e); - }); - - this.navigationActive = true; - } - - this.setNavigationActive = function(state) { - this.navigationActive = state; - this.clearMoveTimeout(); - } - - - this.onkeyup = function(e) { - if (!this.navigationActive) return; - switch(e.keyCode) { - case 37: //Event.KEY_LEFT: - case 38: //Event.KEY_UP: - case 39: //Event.KEY_RIGHT: - case 40: //Event.KEY_DOWN: - case 73: // i - qwerty - case 74: // j - case 75: // k - case 76: // l - case 67: // c - dvorak - case 72: // h - case 84: // t - case 78: // n - this.clearMoveTimeout(); - break; - } - } - - this.onkeydown = function(e) { - if (!this.navigationActive) return; - switch(e.keyCode) { - case 37: //Event.KEY_LEFT: - case 74: // j (qwerty) - case 72: // h (dvorak) - if (this.moveLeft()) e.preventDefault(); - break; - case 38: //Event.KEY_UP: - case 73: // i (qwerty) - case 67: // c (dvorak) - if (e.keyCode == 38 || e.ctrlKey) { - if (this.moveUp()) e.preventDefault(); - this.startMoveTimeout(false); - } - break; - case 39: //Event.KEY_RIGHT: - case 76: // l (qwerty) - case 78: // n (dvorak) - if (this.moveRight()) e.preventDefault(); - break; - case 40: //Event.KEY_DOWN: - case 75: // k (qwerty) - case 84: // t (dvorak) - if (e.keyCode == 40 || e.ctrlKey) { - if (this.moveDown()) e.preventDefault(); - this.startMoveTimeout(true); - } - break; - case 9: //Event.KEY_TAB: - case 13: //Event.KEY_RETURN: - if (this.$current) this.select(this.$current); - break; - } - if (e.ctrlKey && e.shiftKey) this.select(this.$current); - } - - this.clearMoveTimeout = function() { - clearTimeout(this.moveTimeout); - this.moveTimeout = null; - } - - this.startMoveTimeout = function(isDown) { - if (!$.browser.mozilla && !$.browser.opera) return; - if (this.moveTimeout) this.clearMoveTimeout(); - var _this = this; - - var go = function() { - if (!_this.moveTimeout) return; - _this[isDown ? 'moveDown' : 'moveUp'](); - _this.moveTimout = setTimeout(go, 100); - } - this.moveTimeout = setTimeout(go, 200); - } - - this.moveRight = function() { - } - - this.moveLeft = function() { - } - - this.move = function(isDown) { - } - - this.moveUp = function() { - return this.move(false); - } - - this.moveDown = function() { - return this.move(true); - } -} - - -// scrollIntoView.js -------------------------------------- - -function scrollIntoView(element, view) { - var offset, viewHeight, viewScroll, height; - offset = element.offsetTop; - height = element.offsetHeight; - viewHeight = view.offsetHeight; - viewScroll = view.scrollTop; - if (offset - viewScroll + height > viewHeight) { - view.scrollTop = offset - viewHeight + height; - } - if (offset < viewScroll) { - view.scrollTop = offset; - } -} - - -// searcher.js -------------------------------------------- - -Searchdoc.Searcher = function(data) { - this.data = data; - this.handlers = []; -} - -Searchdoc.Searcher.prototype = new function() { - var CHUNK_SIZE = 1000, // search is performed in chunks of 1000 for non-bloking user input - MAX_RESULTS = 100, // do not try to find more than 100 results - huid = 1, suid = 1, - runs = 0; - - - this.find = function(query) { - var queries = splitQuery(query), - regexps = buildRegexps(queries), - highlighters = buildHilighters(queries), - state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++}, - _this = this; - this.currentSuid = state.n; - - if (!query) return; - - var run = function() { - // stop current search thread if new search started - if (state.n != _this.currentSuid) return; - - var results = performSearch(_this.data, regexps, queries, highlighters, state), - hasMore = (state.limit > 0 && state.pass < 3); - - triggerResults.call(_this, results, !hasMore); - if (hasMore) { - setTimeout(run, 2); - } - runs++; - }; - runs = 0; - - // start search thread - run(); - } - - /* ----- Events ------ */ - this.ready = function(fn) { - fn.huid = huid; - this.handlers.push(fn); - } - - /* ----- Utilities ------ */ - function splitQuery(query) { - return jQuery.grep(query.split(/(\s+|\(\)?)/), function(string) { return string.match(/\S/) }); - } - - function buildRegexps(queries) { - return jQuery.map(queries, function(query) { return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i') }); - } - - function buildHilighters(queries) { - return jQuery.map(queries, function(query) { - return jQuery.map( query.split(''), function(l, i){ return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2) } ).join('') - }); - } - - // function longMatchRegexp(index, longIndex, regexps) { - // for (var i = regexps.length - 1; i >= 0; i--){ - // if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - // }; - // return true; - // } - - - /* ----- Mathchers ------ */ - function matchPass1(index, longIndex, queries, regexps) { - if (index.indexOf(queries[0]) != 0) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - function matchPass2(index, longIndex, queries, regexps) { - if (index.indexOf(queries[0]) == -1) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - function matchPassRegexp(index, longIndex, queries, regexps) { - if (!index.match(regexps[0])) return false; - for (var i=1, l = regexps.length; i < l; i++) { - if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; - }; - return true; - } - - - /* ----- Highlighters ------ */ - function highlightRegexp(info, queries, regexps, highlighters) { - var result = createResult(info); - for (var i=0, l = regexps.length; i < l; i++) { - result.title = result.title.replace(regexps[i], highlighters[i]); - if (i > 0) - result.namespace = result.namespace.replace(regexps[i], highlighters[i]); - }; - return result; - } - - function hltSubstring(string, pos, length) { - return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length); - } - - function highlightQuery(info, queries, regexps, highlighters) { - var result = createResult(info), pos = 0, lcTitle = result.title.toLowerCase(); - pos = lcTitle.indexOf(queries[0]); - if (pos != -1) { - result.title = hltSubstring(result.title, pos, queries[0].length); - } - for (var i=1, l = regexps.length; i < l; i++) { - result.title = result.title.replace(regexps[i], highlighters[i]); - result.namespace = result.namespace.replace(regexps[i], highlighters[i]); - }; - return result; - } - - function createResult(info) { - var result = {}; - result.title = info[0]; - result.namespace = info[1]; - result.path = info[2]; - result.params = info[3]; - result.snippet = info[4]; - result.badge = info[6]; - return result; - } - - /* ----- Searching ------ */ - function performSearch(data, regexps, queries, highlighters, state) { - var searchIndex = data.searchIndex, // search by title first and then by source - longSearchIndex = data.longSearchIndex, - info = data.info, - result = [], - i = state.from, - l = searchIndex.length, - togo = CHUNK_SIZE, - matchFunc, hltFunc; - - while (state.pass < 3 && state.limit > 0 && togo > 0) { - if (state.pass == 0) { - matchFunc = matchPass1; - hltFunc = highlightQuery; - } else if (state.pass == 1) { - matchFunc = matchPass2; - hltFunc = highlightQuery; - } else if (state.pass == 2) { - matchFunc = matchPassRegexp; - hltFunc = highlightRegexp; - } - - for (; togo > 0 && i < l && state.limit > 0; i++, togo--) { - if (info[i].n == state.n) continue; - if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) { - info[i].n = state.n; - result.push(hltFunc(info[i], queries, regexps, highlighters)); - state.limit--; - } - }; - if (searchIndex.length <= i) { - state.pass++; - i = state.from = 0; - } else { - state.from = i; - } - } - return result; - } - - function triggerResults(results, isLast) { - jQuery.each(this.handlers, function(i, fn) { fn.call(this, results, isLast) }) - } -} - - - - -// panel.js ----------------------------------------------- - -Searchdoc.Panel = function(element, data, tree, frame) { - this.$element = $(element); - this.$input = $('input', element).eq(0); - this.$result = $('.result ul', element).eq(0); - this.frame = frame; - this.$current = null; - this.$view = this.$result.parent(); - this.data = data; - this.searcher = new Searchdoc.Searcher(data.index); - this.tree = new Searchdoc.Tree($('.tree', element), tree, this); - this.init(); -} - -Searchdoc.Panel.prototype = $.extend({}, Searchdoc.Navigation, new function() { - var suid = 1; - - this.init = function() { - var _this = this; - var observer = function() { - _this.search(_this.$input[0].value); - }; - this.$input.keyup(observer); - this.$input.click(observer); // mac's clear field - - this.searcher.ready(function(results, isLast) { - _this.addResults(results, isLast); - }) - - this.$result.click(function(e) { - _this.$current.removeClass('current'); - _this.$current = $(e.target).closest('li').addClass('current'); - _this.select(); - _this.$input.focus(); - }); - - this.initNavigation(); - this.setNavigationActive(false); - } - - this.search = function(value, selectFirstMatch) { - value = jQuery.trim(value).toLowerCase(); - this.selectFirstMatch = selectFirstMatch; - if (value) { - this.$element.removeClass('panel_tree').addClass('panel_results'); - this.tree.setNavigationActive(false); - this.setNavigationActive(true); - } else { - this.$element.addClass('panel_tree').removeClass('panel_results'); - this.tree.setNavigationActive(true); - this.setNavigationActive(false); - } - if (value != this.lastQuery) { - this.lastQuery = value; - this.firstRun = true; - this.searcher.find(value); - } - } - - this.addResults = function(results, isLast) { - var target = this.$result.get(0); - if (this.firstRun && (results.length > 0 || isLast)) { - this.$current = null; - this.$result.empty(); - } - for (var i=0, l = results.length; i < l; i++) { - target.appendChild(renderItem.call(this, results[i])); - }; - if (this.firstRun && results.length > 0) { - this.firstRun = false; - this.$current = $(target.firstChild); - this.$current.addClass('current'); - if (this.selectFirstMatch) this.select(); - scrollIntoView(this.$current[0], this.$view[0]) - } - if (jQuery.browser.msie) this.$element[0].className += ''; - } - - this.open = function(src) { - this.frame.location.href = '../' + src; - if (this.frame.highlight) this.frame.highlight(src); - } - - this.select = function() { - this.open(this.$current.data('path')); - } - - this.move = function(isDown) { - if (!this.$current) return; - var $next = this.$current[isDown ? 'next' : 'prev'](); - if ($next.length) { - this.$current.removeClass('current'); - $next.addClass('current'); - scrollIntoView($next[0], this.$view[0]); - this.$current = $next; - } - return true; - } - - function renderItem(result) { - var li = document.createElement('li'), - html = '', badge = result.badge; - html += '

' + hlt(result.title); - if (result.params) html += '' + result.params + ''; - html += '

'; - html += '

'; - if (typeof badge != 'undefined') { - html += '' + escapeHTML(this.data.badges[badge] || 'unknown') + ''; - } - html += hlt(result.namespace) + '

'; - if (result.snippet) html += '

' + escapeHTML(result.snippet) + '

'; - li.innerHTML = html; - jQuery.data(li, 'path', result.path); - return li; - } - - function hlt(html) { - return escapeHTML(html).replace(/\u0001/g, '').replace(/\u0002/g, '') - } - - function escapeHTML(html) { - return html.replace(/[&<>]/g, function(c) { - return '&#' + c.charCodeAt(0) + ';'; - }); - } - -}); - -// tree.js ------------------------------------------------ - -Searchdoc.Tree = function(element, tree, panel) { - this.$element = $(element); - this.$list = $('ul', element); - this.tree = tree; - this.panel = panel; - this.init(); -} - -Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() { - this.init = function() { - var stopper = document.createElement('li'); - stopper.className = 'stopper'; - this.$list[0].appendChild(stopper); - for (var i=0, l = this.tree.length; i < l; i++) { - buildAndAppendItem.call(this, this.tree[i], 0, stopper); - }; - var _this = this; - this.$list.click(function(e) { - var $target = $(e.target), - $li = $target.closest('li'); - if ($target.hasClass('icon')) { - _this.toggle($li); - } else { - _this.select($li); - } - }) - - this.initNavigation(); - if (jQuery.browser.msie) document.body.className += ''; - } - - this.select = function($li) { - this.highlight($li); - var path = $li[0].searchdoc_tree_data.path; - if (path) this.panel.open(path); - } - - this.highlight = function($li) { - if (this.$current) this.$current.removeClass('current'); - this.$current = $li.addClass('current'); - } - - this.toggle = function($li) { - var closed = !$li.hasClass('closed'), - children = $li[0].searchdoc_tree_data.children; - $li.toggleClass('closed'); - for (var i=0, l = children.length; i < l; i++) { - toggleVis.call(this, $(children[i].li), !closed); - }; - } - - this.moveRight = function() { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return; - } - if (this.$current.hasClass('closed')) { - this.toggle(this.$current); - } - } - - this.moveLeft = function() { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return; - } - if (!this.$current.hasClass('closed')) { - this.toggle(this.$current); - } else { - var level = this.$current[0].searchdoc_tree_data.level; - if (level == 0) return; - var $next = this.$current.prevAll('li.level_' + (level - 1) + ':visible:first'); - this.$current.removeClass('current'); - $next.addClass('current'); - scrollIntoView($next[0], this.$element[0]); - this.$current = $next; - } - } - - this.move = function(isDown) { - if (!this.$current) { - this.highlight(this.$list.find('li:first')); - return true; - } - var next = this.$current[0]; - if (isDown) { - do { - next = next.nextSibling; - if (next && next.style && next.style.display != 'none') break; - } while(next); - } else { - do { - next = next.previousSibling; - if (next && next.style && next.style.display != 'none') break; - } while(next); - } - if (next && next.className.indexOf('stopper') == -1) { - this.$current.removeClass('current'); - $(next).addClass('current'); - scrollIntoView(next, this.$element[0]); - this.$current = $(next); - } - return true; - } - - function toggleVis($li, show) { - var closed = $li.hasClass('closed'), - children = $li[0].searchdoc_tree_data.children; - $li.css('display', show ? '' : 'none') - if (!show && this.$current && $li[0] == this.$current[0]) { - this.$current.removeClass('current'); - this.$current = null; - } - for (var i=0, l = children.length; i < l; i++) { - toggleVis.call(this, $(children[i].li), show && !closed); - }; - } - - function buildAndAppendItem(item, level, before) { - var li = renderItem(item, level), - list = this.$list[0]; - item.li = li; - list.insertBefore(li, before); - for (var i=0, l = item[3].length; i < l; i++) { - buildAndAppendItem.call(this, item[3][i], level + 1, before); - }; - return li; - } - - function renderItem(item, level) { - var li = document.createElement('li'), - cnt = document.createElement('div'), - h1 = document.createElement('h1'), - p = document.createElement('p'), - icon, i; - - li.appendChild(cnt); - li.style.paddingLeft = getOffset(level); - cnt.className = 'content'; - if (!item[1]) li.className = 'empty '; - cnt.appendChild(h1); - // cnt.appendChild(p); - h1.appendChild(document.createTextNode(item[0])); - // p.appendChild(document.createTextNode(item[4])); - if (item[2]) { - i = document.createElement('i'); - i.appendChild(document.createTextNode(item[2])); - h1.appendChild(i); - } - if (item[3].length > 0) { - icon = document.createElement('div'); - icon.className = 'icon'; - cnt.appendChild(icon); - } - - // user direct assignement instead of $() - // it's 8x faster - // $(li).data('path', item[1]) - // .data('children', item[3]) - // .data('level', level) - // .css('display', level == 0 ? '' : 'none') - // .addClass('level_' + level) - // .addClass('closed'); - li.searchdoc_tree_data = { - path: item[1], - children: item[3], - level: level - } - li.style.display = level == 0 ? '' : 'none'; - li.className += 'level_' + level + ' closed'; - return li; - } - - function getOffset(level) { - return 5 + 18*level + 'px'; - } -}); diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/panel/index.html b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/panel/index.html deleted file mode 100755 index 683c6269..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/generator/template/shtml/resources/panel/index.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - layout - - - - - - - - - -
-
-
- - - -
- -
-
-
-
    -
-
-
-
    -
-
-
- - diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/github.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/github.rb deleted file mode 100644 index e275a31d..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/github.rb +++ /dev/null @@ -1,64 +0,0 @@ -module SDoc::GitHub - def github_url(path) - unless @github_url_cache.has_key? path - @github_url_cache[path] = false - file = RDoc::TopLevel.find_file_named(path) - if file - base_url = repository_url(path) - if base_url - sha1 = commit_sha1(path) - if sha1 - relative_url = path_relative_to_repository(path) - @github_url_cache[path] = "#{base_url}#{sha1}#{relative_url}" - end - end - end - end - @github_url_cache[path] - end - - protected - - def commit_sha1(path) - name = File.basename(path) - s = in_dir(File.join(basedir, File.dirname(path))) do - `git log -1 --pretty=format:"commit %H" #{name}` - end - m = s.match(/commit\s+(\S+)/) - m ? m[1] : false - end - - def repository_url(path) - s = in_dir(File.join(basedir, File.dirname(path))) do - `git config --get remote.origin.url` - end - m = s.match(%r{github.com[/:](.*)\.git$}) - m ? "http://github.com/#{m[1]}/blob/" : false - end - - def path_relative_to_repository(path) - absolute_path = File.join(basedir, path) - root = path_to_git_dir(File.dirname(absolute_path)) - absolute_path[root.size..absolute_path.size] - end - - def path_to_git_dir(path) - while !path.empty? && path != '.' - if (File.exists? File.join(path, '.git')) - return path - end - path = File.dirname(path) - end - '' - end - - def in_dir(dir) - pwd = Dir.pwd - Dir.chdir dir - return yield - rescue Exception => e - return '' - ensure - Dir.chdir pwd - end -end diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/helpers.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/helpers.rb deleted file mode 100644 index c7ee5ce1..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/helpers.rb +++ /dev/null @@ -1,26 +0,0 @@ -module SDoc::Helpers - def each_letter_group(methods, &block) - group = {:name => '', :methods => []} - methods.sort{ |a, b| a.name <=> b.name }.each do |method| - gname = group_name method.name - if gname != group[:name] - yield group unless group[:methods].size == 0 - group = { - :name => gname, - :methods => [] - } - end - group[:methods].push(method) - end - yield group unless group[:methods].size == 0 - end - -protected - def group_name name - if match = name.match(/^([a-z])/i) - match[1].upcase - else - '#' - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/merge.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/merge.rb deleted file mode 100644 index 10445ddb..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/merge.rb +++ /dev/null @@ -1,217 +0,0 @@ -require 'optparse' -require 'pathname' -require 'fileutils' -require 'json' - -require 'sdoc/templatable' - -class SDoc::Merge - include SDoc::Templatable - - FLAG_FILE = "created.rid" - - def initialize() - @names = [] - @urls = [] - @op_dir = 'doc' - @title = '' - @directories = [] - template_dir = RDoc::Generator::SHtml.template_dir('merge') - @template_dir = Pathname.new File.expand_path(template_dir) - end - - def merge(options) - parse_options options - - @outputdir = Pathname.new( @op_dir ) - - check_directories - setup_output_dir - setup_names - copy_files - copy_docs if @urls.empty? - merge_search_index - merge_tree - generate_index_file - end - - def parse_options(options) - opts = OptionParser.new do |opt| - opt.banner = "Usage: sdoc-merge [options] directories" - - opt.on("-n", "--names [NAMES]", "Names of merged repositories. Comma separated") do |v| - @names = v.split(',').map{|name| name.strip } - end - - opt.on("-o", "--op [DIRECTORY]", "Set the output directory") do |v| - @op_dir = v - end - - opt.on("-t", "--title [TITLE]", "Set the title of merged file") do |v| - @title = v - end - - opt.on("-u", "--urls [URLS]", "Paths to merged docs. If you \n" + - "set this files and classes won't be actualy copied to merged build") do |v| - @urls = v.split(' ').map{|name| name.strip } - end - end - opts.parse! options - @directories = options.dup - end - - def merge_tree - tree = [] - @directories.each_with_index do |dir, i| - name = @names[i] - url = @urls.empty? ? name : @urls[i] - filename = File.join dir, RDoc::Generator::SHtml::TREE_FILE - data = open(filename).read.sub(/var tree =\s*/, '') - subtree = JSON.parse data, :max_nesting => 35 - item = [ - name, - url + '/' + extract_index_path(dir), - '', - append_path(subtree, url) - ] - tree << item - end - - dst = File.join @op_dir, RDoc::Generator::SHtml::TREE_FILE - FileUtils.mkdir_p File.dirname(dst) - File.open(dst, "w", 0644) do |f| - f.write('var tree = '); f.write(tree.to_json) - end - end - - def append_path subtree, path - subtree.map do |item| - item[1] = path + '/' + item[1] unless item[1].empty? - item[3] = append_path item[3], path - item - end - end - - def merge_search_index - items = [] - @indexes = {} - @directories.each_with_index do |dir, i| - name = @names[i] - url = @urls.empty? ? name : @urls[i] - filename = File.join dir, RDoc::Generator::SHtml::SEARCH_INDEX_FILE - data = open(filename).read.sub(/var search_data =\s*/, '') - subindex = JSON.parse data, :max_nesting => 35 - @indexes[name] = subindex - - searchIndex = subindex["index"]["searchIndex"] - longSearchIndex = subindex["index"]["longSearchIndex"] - subindex["index"]["info"].each_with_index do |info, j| - info[2] = url + '/' + info[2] - info[6] = i - items << { - :info => info, - :searchIndex => searchIndex[j], - :longSearchIndex => name + ' ' + longSearchIndex[j] - } - end - end - items.sort! do |a, b| - # type (class/method/file) or name or doc part or namespace - [a[:info][5], a[:info][0], a[:info][6], a[:info][1]] <=> [b[:info][5], b[:info][0], b[:info][6], b[:info][1]] - end - - index = { - :searchIndex => items.map{|item| item[:searchIndex]}, - :longSearchIndex => items.map{|item| item[:longSearchIndex]}, - :info => items.map{|item| item[:info]} - } - search_data = { - :index => index, - :badges => @names - } - - dst = File.join @op_dir, RDoc::Generator::SHtml::SEARCH_INDEX_FILE - FileUtils.mkdir_p File.dirname(dst) - File.open(dst, "w", 0644) do |f| - f.write('var search_data = '); f.write(search_data.to_json) - end - end - - def extract_index_path dir - filename = File.join dir, 'index.html' - content = File.open(filename) { |f| f.read } - match = content.match(/ 0 - @directories.each do |dir| - name = File.basename dir - name = File.basename File.dirname(dir) if name == 'doc' - @names << name - end - end - end - - def copy_docs - @directories.each_with_index do |dir, i| - name = @names[i] - index_dir = File.dirname(RDoc::Generator::SHtml::TREE_FILE) - FileUtils.mkdir_p(File.join(@op_dir, name)) - - Dir.new(dir).each do |item| - if File.directory?(File.join(dir, item)) && item != '.' && item != '..' && item != index_dir - FileUtils.cp_r File.join(dir, item), File.join(@op_dir, name, item), :preserve => true - end - end - end - end - - def copy_files - dir = @directories.first - Dir.new(dir).each do |item| - if item != '.' && item != '..' && item != RDoc::Generator::SHtml::FILE_DIR && item != RDoc::Generator::SHtml::CLASS_DIR - FileUtils.cp_r File.join(dir, item), @op_dir, :preserve => true - end - end - end - - def setup_output_dir - if File.exists? @op_dir - error "#{@op_dir} allready exists" - end - FileUtils.mkdir_p @op_dir - end - - def check_directories - @directories.each do |dir| - unless File.exists?(File.join(dir, FLAG_FILE)) && - File.exists?(File.join(dir, RDoc::Generator::SHtml::TREE_FILE)) && - File.exists?(File.join(dir, RDoc::Generator::SHtml::SEARCH_INDEX_FILE)) - error "#{dir} does not seem to be an sdoc directory" - end - end - end - - ## - # Report an error message and exit - - def error(msg) - raise RDoc::Error, msg - end - -end \ No newline at end of file diff --git a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/templatable.rb b/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/templatable.rb deleted file mode 100644 index 412e0da8..00000000 --- a/vendor/gems/gems/sdoc-0.2.14.1/lib/sdoc/templatable.rb +++ /dev/null @@ -1,58 +0,0 @@ -require "sdoc" - -module SDoc::Templatable - ### Load and render the erb template in the given +templatefile+ within the - ### specified +context+ (a Binding object) and return output - ### Both +templatefile+ and +outfile+ should be Pathname-like objects. - def eval_template(templatefile, context) - template_src = templatefile.read - template = ERB.new( template_src, nil, '<>' ) - template.filename = templatefile.to_s - - begin - template.result( context ) - rescue NoMethodError => err - raise RDoc::Error, "Error while evaluating %s: %s (at %p)" % [ - templatefile.to_s, - err.message, - eval( "_erbout[-50,50]", context ) - ], err.backtrace - end - end - - ### Load and render the erb template with the given +template_name+ within - ### current context. Adds all +local_assigns+ to context - def include_template(template_name, local_assigns = {}) - source = local_assigns.keys.map { |key| "#{key} = local_assigns[:#{key}];" }.join - eval("#{source};templatefile = @template_dir + template_name;eval_template(templatefile, binding)") - end - - ### Load and render the erb template in the given +templatefile+ within the - ### specified +context+ (a Binding object) and write it out to +outfile+. - ### Both +templatefile+ and +outfile+ should be Pathname-like objects. - def render_template( templatefile, context, outfile ) - output = eval_template(templatefile, context) - - # TODO delete this dirty hack when documentation for example for GeneratorMethods will not be cutted off by - - ) - end - - body do - div :id => 'top' do - div :id => 'main_navigation' do - main_navigation - end - end - div :id => 'middle' do - div :id => 'content' do - content - end - end - div :id => 'bottom' do - - end - end - end - end - - def main_navigation - ul do - li { link_to "Documentation", SyntacticRecognition, Documentation } - li { link_to "Contribute", Contribute } - li { link_to "Home", Index } - end - end - - def content - end -end - -class Index < Layout - def content - bluecloth "index.markdown" - end -end - -class Documentation < Layout - abstract - - def content - div :id => 'secondary_navigation' do - ul do - li { link_to 'Syntax', SyntacticRecognition } - li { link_to 'Semantics', SemanticInterpretation } - li { link_to 'Using In Ruby', UsingInRuby } - li { link_to 'Advanced Techniques', PitfallsAndAdvancedTechniques } - end - end - - div :id => 'documentation_content' do - documentation_content - end - end -end - -class SyntacticRecognition < Documentation - def documentation_content - bluecloth "syntactic_recognition.markdown" - end -end - -class SemanticInterpretation < Documentation - def documentation_content - bluecloth "semantic_interpretation.markdown" - end -end - -class UsingInRuby < Documentation - def documentation_content - bluecloth "using_in_ruby.markdown" - end -end - -class PitfallsAndAdvancedTechniques < Documentation - def documentation_content - bluecloth "pitfalls_and_advanced_techniques.markdown" - end -end - - -class Contribute < Layout - def content - bluecloth "contributing_and_planned_features.markdown" - end -end - - -Layout.generate_site \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/doc/sitegen.rb b/vendor/gems/gems/treetop-1.4.2/doc/sitegen.rb deleted file mode 100644 index 09d8d441..00000000 --- a/vendor/gems/gems/treetop-1.4.2/doc/sitegen.rb +++ /dev/null @@ -1,65 +0,0 @@ -class Layout < Erector::Widget - - class << self - def inherited(page_class) - puts page_class - (@@page_classes ||= []) << page_class - end - - def generate_site - FileUtils.mkdir_p(site_dir) - @@page_classes.each do |page_class| - page_class.generate_html unless page_class.abstract? - puts page_class - end - end - - def generate_html - File.open(absolute_path, 'w') do |file| - file.write(new.render) - end - end - - def absolute_path - absolutize(relative_path) - end - - def relative_path - "#{name.gsub('::', '_').underscore}.html" - end - - def absolutize(relative_path) - File.join(site_dir, relative_path) - end - - def abstract - @abstract = true - end - - def abstract? - @abstract - end - - def site_dir - File.join(File.dirname(__FILE__), "site") - end - end - - def bluecloth(relative_path) - File.open(File.join(File.dirname(__FILE__), relative_path)) do |file| - rawtext BlueCloth.new(file.read).to_html - end - end - - def absolutize(relative_path) - self.class.absolutize(relative_path) - end - - def link_to(link_text, page_class, section_class=nil) - if instance_of?(page_class) || section_class && is_a?(section_class) - text link_text - else - a link_text, :href => page_class.relative_path - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/doc/syntactic_recognition.markdown b/vendor/gems/gems/treetop-1.4.2/doc/syntactic_recognition.markdown deleted file mode 100644 index 6c718103..00000000 --- a/vendor/gems/gems/treetop-1.4.2/doc/syntactic_recognition.markdown +++ /dev/null @@ -1,100 +0,0 @@ -#Syntactic Recognition -Treetop grammars are written in a custom language based on parsing expression grammars. Literature on the subject of parsing expression grammars is useful in writing Treetop grammars. - -#Grammar Structure -Treetop grammars look like this: - - grammar GrammarName - rule rule_name - ... - end - - rule rule_name - ... - end - - ... - end - -The main keywords are: - -* `grammar` : This introduces a new grammar. It is followed by a constant name to which the grammar will be bound when it is loaded. - -* `rule` : This defines a parsing rule within the grammar. It is followed by a name by which this rule can be referenced within other rules. It is then followed by a parsing expression defining the rule. - -#Parsing Expressions -Each rule associates a name with a _parsing expression_. Parsing expressions are a generalization of vanilla regular expressions. Their key feature is the ability to reference other expressions in the grammar by name. - -##Terminal Symbols -###Strings -Strings are surrounded in double or single quotes and must be matched exactly. - -* `"foo"` -* `'foo'` - -###Character Classes -Character classes are surrounded by brackets. Their semantics are identical to those used in Ruby's regular expressions. - -* `[a-zA-Z]` -* `[0-9]` - -###The Anything Symbol -The anything symbol is represented by a dot (`.`) and matches any single character. - -##Nonterminal Symbols -Nonterminal symbols are unquoted references to other named rules. They are equivalent to an inline substitution of the named expression. - - rule foo - "the dog " bar - end - - rule bar - "jumped" - end - -The above grammar is equivalent to: - - rule foo - "the dog jumped" - end - -##Ordered Choice -Parsers attempt to match ordered choices in left-to-right order, and stop after the first successful match. - - "foobar" / "foo" / "bar" - -Note that if `"foo"` in the above expression came first, `"foobar"` would never be matched. - -##Sequences - -Sequences are a space-separated list of parsing expressions. They have higher precedence than choices, so choices must be parenthesized to be used as the elements of a sequence. - - "foo" "bar" ("baz" / "bop") - -##Zero or More -Parsers will greedily match an expression zero or more times if it is followed by the star (`*`) symbol. - -* `'foo'*` matches the empty string, `"foo"`, `"foofoo"`, etc. - -##One or More -Parsers will greedily match an expression one or more times if it is followed by the star (`+`) symbol. - -* `'foo'+` does not match the empty string, but matches `"foo"`, `"foofoo"`, etc. - -##Optional Expressions -An expression can be declared optional by following it with a question mark (`?`). - -* `'foo'?` matches `"foo"` or the empty string. - -##Lookahead Assertions -Lookahead assertions can be used to give parsing expressions a limited degree of context-sensitivity. The parser will look ahead into the buffer and attempt to match an expression without consuming input. - -###Positive Lookahead Assertion -Preceding an expression with an ampersand `(&)` indicates that it must match, but no input will be consumed in the process of determining whether this is true. - -* `"foo" &"bar"` matches `"foobar"` but only consumes up to the end `"foo"`. It will not match `"foobaz"`. - -###Negative Lookahead Assertion -Preceding an expression with a bang `(!)` indicates that the expression must not match, but no input will be consumed in the process of determining whether this is true. - -* `"foo" !"bar"` matches `"foobaz"` but only consumes up to the end `"foo"`. It will not match `"foobar"`. diff --git a/vendor/gems/gems/treetop-1.4.2/doc/using_in_ruby.markdown b/vendor/gems/gems/treetop-1.4.2/doc/using_in_ruby.markdown deleted file mode 100644 index 57382af5..00000000 --- a/vendor/gems/gems/treetop-1.4.2/doc/using_in_ruby.markdown +++ /dev/null @@ -1,21 +0,0 @@ -#Using Treetop Grammars in Ruby -##Using the Command Line Compiler -You can `.treetop` files into Ruby source code with the `tt` command line script. `tt` takes an list of files with a `.treetop` extension and compiles them into `.rb` files of the same name. You can then `require` these files like any other Ruby script. Alternately, you can supply just one `.treetop` file and a `-o` flag to name specify the name of the output file. Improvements to this compilation script are welcome. - - tt foo.treetop bar.treetop - tt foo.treetop -o foogrammar.rb - -##Loading A Grammar Directly -The Polyglot gem makes it possible to load `.treetop` or `.tt` files directly with `require`. This will invoke `Treetop.load`, which automatically compiles the grammar to Ruby and then evaluates the Ruby source. If you are getting errors in methods you define on the syntax tree, try using the command line compiler for better stack trace feedback. A better solution to this issue is in the works. - -##Instantiating and Using Parsers -If a grammar by the name of `Foo` is defined, the compiled Ruby source will define a `FooParser` class. To parse input, create an instance and call its `parse` method with a string. The parser will return the syntax tree of the match or `nil` if there is a failure. - - Treetop.load "arithmetic" - - parser = ArithmeticParser.new - if parser.parse('1+1') - puts 'success' - else - puts 'failure' - end diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.rb deleted file mode 100644 index 8f741296..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.rb +++ /dev/null @@ -1,551 +0,0 @@ -module Arithmetic - include Treetop::Runtime - - def root - @root || :expression - end - - def _nt_expression - start_index = index - cached = node_cache[:expression][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_comparative - if r1.success? - r0 = r1 - else - r2 = _nt_additive - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:expression][start_index] = r0 - - return r0 - end - - module Comparative0 - def operand_1 - elements[0] - end - - def space - elements[1] - end - - def operator - elements[2] - end - - def space - elements[3] - end - - def operand_2 - elements[4] - end - end - - def _nt_comparative - start_index = index - cached = node_cache[:comparative][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = _nt_additive - s0 << r1 - if r1.success? - r2 = _nt_space - s0 << r2 - if r2.success? - r3 = _nt_equality_op - s0 << r3 - if r3.success? - r4 = _nt_space - s0 << r4 - if r4.success? - r5 = _nt_additive - s0 << r5 - end - end - end - end - if s0.last.success? - r0 = (BinaryOperation).new(input, i0...index, s0) - r0.extend(Comparative0) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:comparative][start_index] = r0 - - return r0 - end - - module EqualityOp0 - def apply(a, b) - a == b - end - end - - def _nt_equality_op - start_index = index - cached = node_cache[:equality_op][index] - if cached - @index = cached.interval.end - return cached - end - - r0 = parse_terminal('==', SyntaxNode, EqualityOp0) - - node_cache[:equality_op][start_index] = r0 - - return r0 - end - - module Additive0 - def operand_1 - elements[0] - end - - def space - elements[1] - end - - def operator - elements[2] - end - - def space - elements[3] - end - - def operand_2 - elements[4] - end - end - - def _nt_additive - start_index = index - cached = node_cache[:additive][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_multitive - s1 << r2 - if r2.success? - r3 = _nt_space - s1 << r3 - if r3.success? - r4 = _nt_additive_op - s1 << r4 - if r4.success? - r5 = _nt_space - s1 << r5 - if r5.success? - r6 = _nt_additive - s1 << r6 - end - end - end - end - if s1.last.success? - r1 = (BinaryOperation).new(input, i1...index, s1) - r1.extend(Additive0) - else - self.index = i1 - r1 = ParseFailure.new(input, i1) - end - if r1.success? - r0 = r1 - else - r7 = _nt_multitive - if r7.success? - r0 = r7 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:additive][start_index] = r0 - - return r0 - end - - module AdditiveOp0 - def apply(a, b) - a + b - end - end - - module AdditiveOp1 - def apply(a, b) - a - b - end - end - - def _nt_additive_op - start_index = index - cached = node_cache[:additive_op][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = parse_terminal('+', SyntaxNode, AdditiveOp0) - if r1.success? - r0 = r1 - else - r2 = parse_terminal('-', SyntaxNode, AdditiveOp1) - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:additive_op][start_index] = r0 - - return r0 - end - - module Multitive0 - def operand_1 - elements[0] - end - - def space - elements[1] - end - - def operator - elements[2] - end - - def space - elements[3] - end - - def operand_2 - elements[4] - end - end - - def _nt_multitive - start_index = index - cached = node_cache[:multitive][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_primary - s1 << r2 - if r2.success? - r3 = _nt_space - s1 << r3 - if r3.success? - r4 = _nt_multitive_op - s1 << r4 - if r4.success? - r5 = _nt_space - s1 << r5 - if r5.success? - r6 = _nt_multitive - s1 << r6 - end - end - end - end - if s1.last.success? - r1 = (BinaryOperation).new(input, i1...index, s1) - r1.extend(Multitive0) - else - self.index = i1 - r1 = ParseFailure.new(input, i1) - end - if r1.success? - r0 = r1 - else - r7 = _nt_primary - if r7.success? - r0 = r7 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:multitive][start_index] = r0 - - return r0 - end - - module MultitiveOp0 - def apply(a, b) - a * b - end - end - - module MultitiveOp1 - def apply(a, b) - a / b - end - end - - def _nt_multitive_op - start_index = index - cached = node_cache[:multitive_op][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = parse_terminal('*', SyntaxNode, MultitiveOp0) - if r1.success? - r0 = r1 - else - r2 = parse_terminal('/', SyntaxNode, MultitiveOp1) - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:multitive_op][start_index] = r0 - - return r0 - end - - module Primary0 - def space - elements[1] - end - - def expression - elements[2] - end - - def space - elements[3] - end - - end - - module Primary1 - def eval(env={}) - expression.eval(env) - end - end - - def _nt_primary - start_index = index - cached = node_cache[:primary][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_variable - if r1.success? - r0 = r1 - else - r2 = _nt_number - if r2.success? - r0 = r2 - else - i3, s3 = index, [] - r4 = parse_terminal('(', SyntaxNode) - s3 << r4 - if r4.success? - r5 = _nt_space - s3 << r5 - if r5.success? - r6 = _nt_expression - s3 << r6 - if r6.success? - r7 = _nt_space - s3 << r7 - if r7.success? - r8 = parse_terminal(')', SyntaxNode) - s3 << r8 - end - end - end - end - if s3.last.success? - r3 = (SyntaxNode).new(input, i3...index, s3) - r3.extend(Primary0) - r3.extend(Primary1) - else - self.index = i3 - r3 = ParseFailure.new(input, i3) - end - if r3.success? - r0 = r3 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - end - - node_cache[:primary][start_index] = r0 - - return r0 - end - - module Variable0 - def eval(env={}) - env[name] - end - - def name - text_value - end - end - - def _nt_variable - start_index = index - cached = node_cache[:variable][index] - if cached - @index = cached.interval.end - return cached - end - - s0, i0 = [], index - loop do - r1 = parse_char_class(/[a-z]/, 'a-z', SyntaxNode) - if r1.success? - s0 << r1 - else - break - end - end - if s0.empty? - self.index = i0 - r0 = ParseFailure.new(input, i0) - else - r0 = SyntaxNode.new(input, i0...index, s0) - r0.extend(Variable0) - end - - node_cache[:variable][start_index] = r0 - - return r0 - end - - module Number0 - end - - module Number1 - def eval(env={}) - text_value.to_i - end - end - - def _nt_number - start_index = index - cached = node_cache[:number][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = parse_char_class(/[1-9]/, '1-9', SyntaxNode) - s1 << r2 - if r2.success? - s3, i3 = [], index - loop do - r4 = parse_char_class(/[0-9]/, '0-9', SyntaxNode) - if r4.success? - s3 << r4 - else - break - end - end - r3 = SyntaxNode.new(input, i3...index, s3) - s1 << r3 - end - if s1.last.success? - r1 = (SyntaxNode).new(input, i1...index, s1) - r1.extend(Number0) - else - self.index = i1 - r1 = ParseFailure.new(input, i1) - end - if r1.success? - r0 = r1 - r0.extend(Number1) - else - r5 = parse_terminal('0', SyntaxNode) - if r5.success? - r0 = r5 - r0.extend(Number1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:number][start_index] = r0 - - return r0 - end - - def _nt_space - start_index = index - cached = node_cache[:space][index] - if cached - @index = cached.interval.end - return cached - end - - s0, i0 = [], index - loop do - r1 = parse_terminal(' ', SyntaxNode) - if r1.success? - s0 << r1 - else - break - end - end - r0 = SyntaxNode.new(input, i0...index, s0) - - node_cache[:space][start_index] = r0 - - return r0 - end - -end - -class ArithmeticParser < Treetop::Runtime::CompiledParser - include Arithmetic -end diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.treetop b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.treetop deleted file mode 100644 index a54f6e24..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic.treetop +++ /dev/null @@ -1,97 +0,0 @@ -grammar Arithmetic - rule expression - comparative / additive - end - - rule comparative - operand_1:additive space operator:equality_op space operand_2:additive - end - - rule equality_op - '==' { - def apply(a, b) - a == b - end - } - end - - rule additive - operand_1:multitive - space operator:additive_op space - operand_2:additive - / - multitive - end - - rule additive_op - '+' { - def apply(a, b) - a + b - end - } - / - '-' { - def apply(a, b) - a - b - end - } - end - - rule multitive - operand_1:primary - space operator:multitive_op space - operand_2:multitive - / - primary - end - - rule multitive_op - '*' { - def apply(a, b) - a * b - end - } - / - '/' { - def apply(a, b) - a / b - end - } - end - - rule primary - variable - / - number - / - '(' space expression space ')' { - def eval(env={}) - expression.eval(env) - end - } - end - - rule variable - [a-z]+ { - def eval(env={}) - env[name] - end - - def name - text_value - end - } - end - - rule number - ([1-9] [0-9]* / '0') { - def eval(env={}) - text_value.to_i - end - } - end - - rule space - ' '* - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_node_classes.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_node_classes.rb deleted file mode 100644 index 63a60121..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_node_classes.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Arithmetic - class BinaryOperation < Treetop::Runtime::SyntaxNode - def eval(env={}) - operator.apply(operand_1.eval(env), operand_2.eval(env)) - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_test.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_test.rb deleted file mode 100644 index 753209cc..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/arithmetic_test.rb +++ /dev/null @@ -1,54 +0,0 @@ -dir = File.dirname(__FILE__) -require File.expand_path("#{dir}/test_helper") - -require File.expand_path("#{dir}/arithmetic_node_classes") -Treetop.load File.expand_path("#{dir}/arithmetic") - -class ArithmeticParserTest < Test::Unit::TestCase - include ParserTestHelper - - def setup - @parser = ArithmeticParser.new - end - - def test_number - assert_equal 0, parse('0').eval - assert_equal 1, parse('1').eval - assert_equal 123, parse('123').eval - end - - def test_variable - assert_equal 0, parse('x').eval('x' => 0) - assert_equal 3, parse('x').eval('x' => 3) - assert_equal 10, parse('y').eval('y' => 10) - end - - def test_addition - assert_equal 10, parse('x + 5').eval('x' => 5) - end - - def test_subtraction - assert_equal 0, parse('x - 5').eval('x' => 5) - end - - def test_multiplication - assert_equal 6, parse('x * 2').eval('x' => 3) - end - - def test_division - assert_equal 3, parse('x / 2').eval('x' => 6) - end - - def test_order_of_operations - assert_equal 11, parse('1 + 2 * 3 + 4').eval - end - - def test_parentheses - assert_equal 25, parse('(5 + x) * (10 - y)').eval('x' => 0, 'y' => 5) - end - - def test_equality - assert parse('4 == 4').eval - assert !parse('4 == 3').eval - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.rb deleted file mode 100644 index 8b5ae09f..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.rb +++ /dev/null @@ -1,718 +0,0 @@ -module LambdaCalculus - include Treetop::Runtime - - def root - @root || :program - end - - include Arithmetic - - module Program0 - def space - elements[1] - end - - def expression - elements[2] - end - end - - module Program1 - def expression - elements[0] - end - - def more_expressions - elements[1] - end - end - - module Program2 - def eval(env={}) - env = env.clone - last_eval = nil - expressions.each do |exp| - last_eval = exp.eval(env) - end - last_eval - end - - def expressions - [expression] + more_expressions.elements.map {|elt| elt.expression} - end - end - - def _nt_program - start_index = index - cached = node_cache[:program][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = _nt_expression - s0 << r1 - if r1.success? - s2, i2 = [], index - loop do - i3, s3 = index, [] - r4 = parse_terminal(';', SyntaxNode) - s3 << r4 - if r4.success? - r5 = _nt_space - s3 << r5 - if r5.success? - r6 = _nt_expression - s3 << r6 - end - end - if s3.last.success? - r3 = (SyntaxNode).new(input, i3...index, s3) - r3.extend(Program0) - else - self.index = i3 - r3 = ParseFailure.new(input, i3) - end - if r3.success? - s2 << r3 - else - break - end - end - r2 = SyntaxNode.new(input, i2...index, s2) - s0 << r2 - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Program1) - r0.extend(Program2) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:program][start_index] = r0 - - return r0 - end - - def _nt_expression - start_index = index - cached = node_cache[:expression][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_definition - if r1.success? - r0 = r1 - else - r2 = _nt_conditional - if r2.success? - r0 = r2 - else - r3 = _nt_application - if r3.success? - r0 = r3 - else - r4 = _nt_function - if r4.success? - r0 = r4 - else - r5 = super - if r5.success? - r0 = r5 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - end - end - end - - node_cache[:expression][start_index] = r0 - - return r0 - end - - module Definition0 - def space - elements[1] - end - - def variable - elements[2] - end - - def space - elements[3] - end - - def expression - elements[4] - end - end - - module Definition1 - def eval(env) - env[variable.name] = expression.eval(env) - end - end - - def _nt_definition - start_index = index - cached = node_cache[:definition][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = parse_terminal('def', SyntaxNode) - s0 << r1 - if r1.success? - r2 = _nt_space - s0 << r2 - if r2.success? - r3 = _nt_variable - s0 << r3 - if r3.success? - r4 = _nt_space - s0 << r4 - if r4.success? - r5 = _nt_expression - s0 << r5 - end - end - end - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Definition0) - r0.extend(Definition1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:definition][start_index] = r0 - - return r0 - end - - module Conditional0 - def space - elements[1] - end - - def space - elements[3] - end - - def condition - elements[4] - end - - def space - elements[5] - end - - def space - elements[7] - end - - def true_case - elements[8] - end - - def space - elements[9] - end - - def space - elements[11] - end - - def false_case - elements[12] - end - end - - module Conditional1 - def eval(env) - if condition.eval(env) - true_case.eval(env) - else - false_case.eval(env) - end - end - end - - def _nt_conditional - start_index = index - cached = node_cache[:conditional][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = parse_terminal('if', SyntaxNode) - s0 << r1 - if r1.success? - r2 = _nt_space - s0 << r2 - if r2.success? - r3 = parse_terminal('(', SyntaxNode) - s0 << r3 - if r3.success? - r4 = _nt_space - s0 << r4 - if r4.success? - r5 = _nt_expression - s0 << r5 - if r5.success? - r6 = _nt_space - s0 << r6 - if r6.success? - r7 = parse_terminal(')', SyntaxNode) - s0 << r7 - if r7.success? - r8 = _nt_space - s0 << r8 - if r8.success? - r9 = _nt_expression - s0 << r9 - if r9.success? - r10 = _nt_space - s0 << r10 - if r10.success? - r11 = parse_terminal('else', SyntaxNode) - s0 << r11 - if r11.success? - r12 = _nt_space - s0 << r12 - if r12.success? - r13 = _nt_expression - s0 << r13 - end - end - end - end - end - end - end - end - end - end - end - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Conditional0) - r0.extend(Conditional1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:conditional][start_index] = r0 - - return r0 - end - - def _nt_primary - start_index = index - cached = node_cache[:primary][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_application - if r1.success? - r0 = r1 - else - r2 = super - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:primary][start_index] = r0 - - return r0 - end - - module Application0 - def operator - elements[0] - end - - def space - elements[1] - end - - def expression - elements[2] - end - end - - module Application1 - def eval(env={}) - left_associative_apply(operator.eval(env), env) - end - - def left_associative_apply(operator, env) - if expression.instance_of?(Application) - expression.left_associative_apply(operator.apply(expression.operator.eval(env)), env) - else - operator.apply(expression.eval(env)) - end - end - - def to_s(env={}) - operator.to_s(env) + ' ' + expression.to_s(env) - end - end - - def _nt_application - start_index = index - cached = node_cache[:application][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = _nt_operator - s0 << r1 - if r1.success? - r2 = _nt_space - s0 << r2 - if r2.success? - r3 = _nt_expression - s0 << r3 - end - end - if s0.last.success? - r0 = (Application).new(input, i0...index, s0) - r0.extend(Application0) - r0.extend(Application1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:application][start_index] = r0 - - return r0 - end - - def _nt_operator - start_index = index - cached = node_cache[:operator][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_function - if r1.success? - r0 = r1 - else - r2 = _nt_variable - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:operator][start_index] = r0 - - return r0 - end - - def _nt_non_application - start_index = index - cached = node_cache[:non_application][index] - if cached - @index = cached.interval.end - return cached - end - - i0 = index - r1 = _nt_function - if r1.success? - r0 = r1 - else - r2 = _nt_variable - if r2.success? - r0 = r2 - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - end - - node_cache[:non_application][start_index] = r0 - - return r0 - end - - module Function0 - def param - elements[1] - end - - def body - elements[3] - end - - end - - module Function1 - class Closure - attr_reader :env, :function - - def initialize(function, env) - @function = function - @env = env - end - - def apply(arg) - function.body.eval(function.param.bind(arg, env)) - end - - def to_s(other_env={}) - "\\#{function.param.to_s}(#{function.body.to_s(other_env.merge(env))})" - end - end - - def eval(env={}) - Closure.new(self, env) - end - - def to_s(env={}) - eval(env).to_s - end - end - - def _nt_function - start_index = index - cached = node_cache[:function][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - r1 = parse_terminal('\\', SyntaxNode) - s0 << r1 - if r1.success? - r2 = _nt_variable - s0 << r2 - if r2.success? - r3 = parse_terminal('(', SyntaxNode) - s0 << r3 - if r3.success? - r4 = _nt_expression - s0 << r4 - if r4.success? - r5 = parse_terminal(')', SyntaxNode) - s0 << r5 - end - end - end - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Function0) - r0.extend(Function1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:function][start_index] = r0 - - return r0 - end - - module Variable0 - def bind(value, env) - env.merge(name => value) - end - - def to_s(env={}) - env.has_key?(name) ? env[name].to_s : name - end - end - - module Variable1 - end - - def _nt_variable - start_index = index - cached = node_cache[:variable][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - i1 = index - r2 = _nt_keyword - if r2.success? - r1 = ParseFailure.new(input, i1) - else - self.index = i1 - r1 = SyntaxNode.new(input, index...index) - end - s0 << r1 - if r1.success? - r3 = super - r3.extend(Variable0) - s0 << r3 - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Variable1) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:variable][start_index] = r0 - - return r0 - end - - module Keyword0 - end - - def _nt_keyword - start_index = index - cached = node_cache[:keyword][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - i1 = index - r2 = parse_terminal('if', SyntaxNode) - if r2.success? - r1 = r2 - else - r3 = parse_terminal('else', SyntaxNode) - if r3.success? - r1 = r3 - else - self.index = i1 - r1 = ParseFailure.new(input, i1) - end - end - s0 << r1 - if r1.success? - i4 = index - r5 = _nt_non_space_char - if r5.success? - r4 = ParseFailure.new(input, i4) - else - self.index = i4 - r4 = SyntaxNode.new(input, index...index) - end - s0 << r4 - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(Keyword0) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:keyword][start_index] = r0 - - return r0 - end - - module NonSpaceChar0 - end - - def _nt_non_space_char - start_index = index - cached = node_cache[:non_space_char][index] - if cached - @index = cached.interval.end - return cached - end - - i0, s0 = index, [] - i1 = index - r2 = parse_char_class(/[ \n]/, ' \n', SyntaxNode) - if r2.success? - r1 = ParseFailure.new(input, i1) - else - self.index = i1 - r1 = SyntaxNode.new(input, index...index) - end - s0 << r1 - if r1.success? - r3 = parse_anything(SyntaxNode) - s0 << r3 - end - if s0.last.success? - r0 = (SyntaxNode).new(input, i0...index, s0) - r0.extend(NonSpaceChar0) - else - self.index = i0 - r0 = ParseFailure.new(input, i0) - end - - node_cache[:non_space_char][start_index] = r0 - - return r0 - end - - def _nt_space - start_index = index - cached = node_cache[:space][index] - if cached - @index = cached.interval.end - return cached - end - - s0, i0 = [], index - loop do - r1 = parse_char_class(/[ \n]/, ' \n', SyntaxNode) - if r1.success? - s0 << r1 - else - break - end - end - r0 = SyntaxNode.new(input, i0...index, s0) - - node_cache[:space][start_index] = r0 - - return r0 - end - -end - -class LambdaCalculusParser < Treetop::Runtime::CompiledParser - include LambdaCalculus -end diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.treetop b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.treetop deleted file mode 100644 index 7e72c932..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus.treetop +++ /dev/null @@ -1,132 +0,0 @@ -grammar LambdaCalculus - include Arithmetic - - rule program - expression more_expressions:(';' space expression)* { - def eval(env={}) - env = env.clone - last_eval = nil - expressions.each do |exp| - last_eval = exp.eval(env) - end - last_eval - end - - def expressions - [expression] + more_expressions.elements.map {|elt| elt.expression} - end - } - end - - rule expression - definition / conditional / application / function / super - end - - rule definition - 'def' space variable space expression { - def eval(env) - env[variable.name] = expression.eval(env) - end - } - end - - rule conditional - 'if' space '(' space condition:expression space ')' space - true_case:expression space 'else' space false_case:expression { - def eval(env) - if condition.eval(env) - true_case.eval(env) - else - false_case.eval(env) - end - end - } - end - - rule primary - application / super - end - - rule application - operator space expression { - def eval(env={}) - left_associative_apply(operator.eval(env), env) - end - - def left_associative_apply(operator, env) - if expression.instance_of?(Application) - expression.left_associative_apply(operator.apply(expression.operator.eval(env)), env) - else - operator.apply(expression.eval(env)) - end - end - - def to_s(env={}) - operator.to_s(env) + ' ' + expression.to_s(env) - end - } - end - - rule operator - function / variable - end - - rule non_application - function / variable - end - - rule function - '\\' param:variable '(' body:expression ')' { - class Closure - attr_reader :env, :function - - def initialize(function, env) - @function = function - @env = env - end - - def apply(arg) - function.body.eval(function.param.bind(arg, env)) - end - - def to_s(other_env={}) - "\\#{function.param.to_s}(#{function.body.to_s(other_env.merge(env))})" - end - end - - def eval(env={}) - Closure.new(self, env) - end - - def to_s(env={}) - eval(env).to_s - end - } - end - - rule variable - !keyword ( - super { - def bind(value, env) - env.merge(name => value) - end - - def to_s(env={}) - env.has_key?(name) ? env[name].to_s : name - end - } - ) - end - - rule keyword - ('if' / 'else') !non_space_char - end - - rule non_space_char - ![ \n] . - end - - rule space - [ \n]* - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_node_classes.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_node_classes.rb deleted file mode 100644 index 9a220ec8..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_node_classes.rb +++ /dev/null @@ -1,5 +0,0 @@ -module LambdaCalculus - class Application < Treetop::Runtime::SyntaxNode - - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_test.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_test.rb deleted file mode 100644 index 0844ef03..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/lambda_calculus_test.rb +++ /dev/null @@ -1,89 +0,0 @@ -dir = File.dirname(__FILE__) -require File.expand_path("#{dir}/test_helper") -require File.expand_path("#{dir}/arithmetic_node_classes") -require File.expand_path("#{dir}/lambda_calculus_node_classes") -Treetop.load File.expand_path("#{dir}/arithmetic") -Treetop.load File.expand_path("#{dir}/lambda_calculus") - -class Treetop::Runtime::SyntaxNode - def method_missing(method, *args) - raise "Node representing #{text_value} does not respond to #{method}" - end -end - -class LambdaCalculusParserTest < Test::Unit::TestCase - include ParserTestHelper - - def setup - @parser = LambdaCalculusParser.new - end - - def test_free_variable - assert_equal 'x', parse('x').eval.to_s - end - - def test_variable_binding - variable = parse('x').eval - env = variable.bind(1, {}) - assert_equal 1, env['x'] - end - - def test_bound_variable_evaluation - assert_equal 1, parse('x').eval({'x' => 1}) - end - - def test_identity_function - assert_equal '\x(x)', parse('\x(x)').eval.to_s - end - - def test_function_returning_constant_function - assert_equal '\x(\y(x))', parse('\x(\y(x))').eval.to_s - end - - def test_identity_function_application - assert_equal 1, parse('\x(x) 1').eval - assert_equal '\y(y)', parse('\x(x) \y(y)').eval.to_s - end - - def test_constant_function_construction - assert_equal '\y(1)', parse('\x(\y(x)) 1').eval.to_s - end - - def test_multiple_argument_application_is_left_associative - assert_equal '\b(b)', parse('\x(\y(x y)) \a(a) \b(b)').eval.to_s - end - - def test_parentheses_override_application_order - assert_equal '\y(\b(b) y)', parse('\x(\y(x y)) (\a(a) \b(b))').eval.to_s - end - - def test_arithmetic_in_function_body - assert_equal 10, parse('\x(x + 5) 5').eval - end - - def test_addition_of_function_results - assert_equal 20, parse('\x(x + 5) 5 + \x(15 - x) 5').eval - end - - def test_conditional - result = parse('if (x) 1 else 2') - assert_equal 1, result.eval({'x' => true}) - assert_equal 2, result.eval({'x' => false}) - end - - def test_keyword - assert @parser.parse('if').failure? - assert @parser.parse('else').failure? - assert parse('elsee').success? - assert parse('iff').success? - end - - def test_program - result = parse('def fact \x(if (x == 0) - 1 - else - x * fact (x - 1)); - fact(5)').eval - assert_equal 5 * 4 * 3 * 2, result - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/test_helper.rb b/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/test_helper.rb deleted file mode 100644 index bfdb7adc..00000000 --- a/vendor/gems/gems/treetop-1.4.2/examples/lambda_calculus/test_helper.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'test/unit' -require 'rubygems' -require 'treetop' - -module ParserTestHelper - def assert_evals_to_self(input) - assert_evals_to(input, input) - end - - def parse(input) - result = @parser.parse(input) - unless result - puts @parser.terminal_failures.join("\n") - end - assert !result.nil? - result - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop.rb deleted file mode 100644 index 07315333..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'rubygems' - -module Treetop - VALID_GRAMMAR_EXT = ['treetop', 'tt'] - VALID_GRAMMAR_EXT_REGEXP = /\.(#{VALID_GRAMMAR_EXT.join('|')})\Z/o -end - -dir = File.dirname(__FILE__) - -TREETOP_ROOT = File.join(dir, 'treetop') -require File.join(TREETOP_ROOT, "ruby_extensions") -require File.join(TREETOP_ROOT, "runtime") -require File.join(TREETOP_ROOT, "compiler") - -require 'polyglot' -Polyglot.register(Treetop::VALID_GRAMMAR_EXT, Treetop) diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/bootstrap_gen_1_metagrammar.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/bootstrap_gen_1_metagrammar.rb deleted file mode 100644 index f587bfa8..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/bootstrap_gen_1_metagrammar.rb +++ /dev/null @@ -1,45 +0,0 @@ -# This file's job is to load a Treetop::Compiler::Metagrammar and Treetop::Compiler::MetagrammarParser -# into the environment by compiling the current metagrammar.treetop using a trusted version of Treetop. - -require 'rubygems' -dir = File.dirname(__FILE__) - -TREETOP_VERSION_REQUIRED_TO_BOOTSTRAP = '>= 1.1.5' - -# Loading trusted version of Treetop to compile the compiler -gem_spec = Gem.source_index.find_name('treetop', TREETOP_VERSION_REQUIRED_TO_BOOTSTRAP).last -raise "Install a Treetop Gem version #{TREETOP_VERSION_REQUIRED_TO_BOOTSTRAP} to bootstrap." unless gem_spec -trusted_treetop_path = gem_spec.full_gem_path -require File.join(trusted_treetop_path, 'lib', 'treetop') - -# Relocating trusted version of Treetop to Trusted::Treetop -Trusted = Module.new -Trusted::Treetop = Treetop -Object.send(:remove_const, :Treetop) -Object.send(:remove_const, :TREETOP_ROOT) - -# Requiring version of Treetop that is under test -$exclude_metagrammar = true -require File.expand_path(File.join(dir, '..', 'treetop')) - -# Compile and evaluate freshly generated metagrammar source -METAGRAMMAR_PATH = File.join(TREETOP_ROOT, 'compiler', 'metagrammar.treetop') -compiled_metagrammar_source = Trusted::Treetop::Compiler::GrammarCompiler.new.ruby_source(METAGRAMMAR_PATH) -Object.class_eval(compiled_metagrammar_source) - -# The compiler under test was compiled with the trusted grammar and therefore depends on its runtime -# But the runtime in the global namespace is the new runtime. We therefore inject the trusted runtime -# into the compiler so its parser functions correctly. It will still not work for custom classes that -# explicitly subclass the wrong runtime. For now I am working around this by keeping 1 generation of -# backward compatibility in these cases. -# Treetop::Compiler::Metagrammar.module_eval do -# include Trusted::Treetop::Runtime -# end -# -# Treetop::Compiler.send(:remove_const, :MetagrammarParser) -# class Treetop::Compiler::MetagrammarParser < Trusted::Treetop::Runtime::CompiledParser -# include Treetop::Compiler::Metagrammar -# include Trusted::Treetop::Runtime -# end - -$bootstrapped_gen_1_metagrammar = true \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler.rb deleted file mode 100644 index 75b4893f..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler.rb +++ /dev/null @@ -1,6 +0,0 @@ -dir = File.dirname(__FILE__) -require File.join(dir, *%w[compiler lexical_address_space]) -require File.join(dir, *%w[compiler ruby_builder]) -require File.join(dir, *%w[compiler node_classes]) -require File.join(dir, *%w[compiler metagrammar]) unless defined?($exclude_metagrammar) -require File.join(dir, *%w[compiler grammar_compiler]) diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/grammar_compiler.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/grammar_compiler.rb deleted file mode 100755 index 24e9cf16..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/grammar_compiler.rb +++ /dev/null @@ -1,44 +0,0 @@ -module Treetop - module Compiler - AUTOGENERATED = "# Autogenerated from a Treetop grammar. Edits may be lost.\n" - class GrammarCompiler - def compile(source_path, target_path = source_path.gsub(/\.(treetop|tt)\Z/, '.rb')) - File.open(target_path, 'w') do |target_file| - target_file.write(AUTOGENERATED+"\n\n") - target_file.write(ruby_source(source_path)) - end - end - - # compile a treetop file into ruby - def ruby_source(source_path) - ruby_source_from_string(File.read(source_path)) - end - - # compile a string containing treetop source into ruby - def ruby_source_from_string(s) - parser = MetagrammarParser.new - result = parser.parse(s) - unless result - raise RuntimeError.new(parser.failure_reason) - end - result.compile - end - end - end - - # compile a treetop source file and load it - def self.load(path) - adjusted_path = path =~ /\.(treetop|tt)\Z/ ? path : path + '.treetop' - File.open(adjusted_path) do |source_file| - source = source_file.read - source.gsub!(/\b__FILE__\b/, %Q{"#{adjusted_path}"}) - load_from_string(source) - end - end - - # compile a treetop source string and load it - def self.load_from_string(s) - compiler = Treetop::Compiler::GrammarCompiler.new - Object.class_eval(compiler.ruby_source_from_string(s)) - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/lexical_address_space.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/lexical_address_space.rb deleted file mode 100644 index a09478c1..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/lexical_address_space.rb +++ /dev/null @@ -1,17 +0,0 @@ -module Treetop - module Compiler - class LexicalAddressSpace - def initialize - reset_addresses - end - - def next_address - @next_address += 1 - end - - def reset_addresses - @next_address = -1 - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.rb deleted file mode 100644 index 3d4c19c4..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.rb +++ /dev/null @@ -1,3258 +0,0 @@ -# Autogenerated from a Treetop grammar. Edits may be lost. - - -module Treetop - module Compiler - module Metagrammar - include Treetop::Runtime - - def root - @root || :treetop_file - end - - module TreetopFile0 - def require_statement - elements[1] - end - end - - module TreetopFile1 - def requires - elements[0] - end - - def prefix - elements[1] - end - - def module_or_grammar - elements[2] - end - - def suffix - elements[3] - end - end - - module TreetopFile2 - def compile - requires.text_value + prefix.text_value + module_or_grammar.compile + suffix.text_value - end - end - - def _nt_treetop_file - start_index = index - if node_cache[:treetop_file].has_key?(index) - cached = node_cache[:treetop_file][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - s1, i1 = [], index - loop do - i2, s2 = index, [] - r4 = _nt_space - if r4 - r3 = r4 - else - r3 = instantiate_node(SyntaxNode,input, index...index) - end - s2 << r3 - if r3 - r5 = _nt_require_statement - s2 << r5 - end - if s2.last - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - r2.extend(TreetopFile0) - else - @index = i2 - r2 = nil - end - if r2 - s1 << r2 - else - break - end - end - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - s0 << r1 - if r1 - r7 = _nt_space - if r7 - r6 = r7 - else - r6 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r6 - if r6 - i8 = index - r9 = _nt_module_declaration - if r9 - r8 = r9 - else - r10 = _nt_grammar - if r10 - r8 = r10 - else - @index = i8 - r8 = nil - end - end - s0 << r8 - if r8 - r12 = _nt_space - if r12 - r11 = r12 - else - r11 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r11 - end - end - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(TreetopFile1) - r0.extend(TreetopFile2) - else - @index = i0 - r0 = nil - end - - node_cache[:treetop_file][start_index] = r0 - - r0 - end - - module RequireStatement0 - def prefix - elements[0] - end - - end - - def _nt_require_statement - start_index = index - if node_cache[:require_statement].has_key?(index) - cached = node_cache[:require_statement][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - r2 = _nt_space - if r2 - r1 = r2 - else - r1 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r1 - if r1 - if has_terminal?("require", false, index) - r3 = instantiate_node(SyntaxNode,input, index...(index + 7)) - @index += 7 - else - terminal_parse_failure("require") - r3 = nil - end - s0 << r3 - if r3 - s4, i4 = [], index - loop do - if has_terminal?('\G[ \\t]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r5 = true - @index = next_character - else - r5 = nil - end - if r5 - s4 << r5 - else - break - end - end - if s4.empty? - @index = i4 - r4 = nil - else - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - end - s0 << r4 - if r4 - s6, i6 = [], index - loop do - if has_terminal?('\G[^\\n\\r]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r7 = true - @index = next_character - else - r7 = nil - end - if r7 - s6 << r7 - else - break - end - end - if s6.empty? - @index = i6 - r6 = nil - else - r6 = instantiate_node(SyntaxNode,input, i6...index, s6) - end - s0 << r6 - if r6 - if has_terminal?('\G[\\n\\r]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r8 = true - @index = next_character - else - r8 = nil - end - s0 << r8 - end - end - end - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(RequireStatement0) - else - @index = i0 - r0 = nil - end - - node_cache[:require_statement][start_index] = r0 - - r0 - end - - module ModuleDeclaration0 - def space1 - elements[1] - end - - def space2 - elements[4] - end - end - - module ModuleDeclaration1 - def space - elements[0] - end - - end - - module ModuleDeclaration2 - def prefix - elements[0] - end - - def module_contents - elements[1] - end - - def suffix - elements[2] - end - end - - module ModuleDeclaration3 - def compile - prefix.text_value + module_contents.compile + suffix.text_value - end - end - - def _nt_module_declaration - start_index = index - if node_cache[:module_declaration].has_key?(index) - cached = node_cache[:module_declaration][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - i1, s1 = index, [] - if has_terminal?('module', false, index) - r2 = instantiate_node(SyntaxNode,input, index...(index + 6)) - @index += 6 - else - terminal_parse_failure('module') - r2 = nil - end - s1 << r2 - if r2 - r3 = _nt_space - s1 << r3 - if r3 - if has_terminal?('\G[A-Z]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r4 = true - @index = next_character - else - r4 = nil - end - s1 << r4 - if r4 - s5, i5 = [], index - loop do - r6 = _nt_alphanumeric_char - if r6 - s5 << r6 - else - break - end - end - r5 = instantiate_node(SyntaxNode,input, i5...index, s5) - s1 << r5 - if r5 - r7 = _nt_space - s1 << r7 - end - end - end - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(ModuleDeclaration0) - else - @index = i1 - r1 = nil - end - s0 << r1 - if r1 - i8 = index - r9 = _nt_module_declaration - if r9 - r8 = r9 - else - r10 = _nt_grammar - if r10 - r8 = r10 - else - @index = i8 - r8 = nil - end - end - s0 << r8 - if r8 - i11, s11 = index, [] - r12 = _nt_space - s11 << r12 - if r12 - if has_terminal?('end', false, index) - r13 = instantiate_node(SyntaxNode,input, index...(index + 3)) - @index += 3 - else - terminal_parse_failure('end') - r13 = nil - end - s11 << r13 - end - if s11.last - r11 = instantiate_node(SyntaxNode,input, i11...index, s11) - r11.extend(ModuleDeclaration1) - else - @index = i11 - r11 = nil - end - s0 << r11 - end - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(ModuleDeclaration2) - r0.extend(ModuleDeclaration3) - else - @index = i0 - r0 = nil - end - - node_cache[:module_declaration][start_index] = r0 - - r0 - end - - module Grammar0 - def space - elements[1] - end - end - - module Grammar1 - def space1 - elements[1] - end - - def grammar_name - elements[2] - end - - def space2 - elements[3] - end - - def declaration_sequence - elements[5] - end - - end - - def _nt_grammar - start_index = index - if node_cache[:grammar].has_key?(index) - cached = node_cache[:grammar][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('grammar', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 7)) - @index += 7 - else - terminal_parse_failure('grammar') - r1 = nil - end - s0 << r1 - if r1 - r2 = _nt_space - s0 << r2 - if r2 - r3 = _nt_grammar_name - s0 << r3 - if r3 - r4 = _nt_space - s0 << r4 - if r4 - i6, s6 = index, [] - if has_terminal?('do', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure('do') - r7 = nil - end - s6 << r7 - if r7 - r8 = _nt_space - s6 << r8 - end - if s6.last - r6 = instantiate_node(SyntaxNode,input, i6...index, s6) - r6.extend(Grammar0) - else - @index = i6 - r6 = nil - end - if r6 - r5 = r6 - else - r5 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r5 - if r5 - r9 = _nt_declaration_sequence - s0 << r9 - if r9 - r11 = _nt_space - if r11 - r10 = r11 - else - r10 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r10 - if r10 - if has_terminal?('end', false, index) - r12 = instantiate_node(SyntaxNode,input, index...(index + 3)) - @index += 3 - else - terminal_parse_failure('end') - r12 = nil - end - s0 << r12 - end - end - end - end - end - end - end - if s0.last - r0 = instantiate_node(Grammar,input, i0...index, s0) - r0.extend(Grammar1) - else - @index = i0 - r0 = nil - end - - node_cache[:grammar][start_index] = r0 - - r0 - end - - module GrammarName0 - end - - def _nt_grammar_name - start_index = index - if node_cache[:grammar_name].has_key?(index) - cached = node_cache[:grammar_name][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('\G[A-Z]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r1 = true - @index = next_character - else - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - r3 = _nt_alphanumeric_char - if r3 - s2 << r3 - else - break - end - end - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - s0 << r2 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(GrammarName0) - else - @index = i0 - r0 = nil - end - - node_cache[:grammar_name][start_index] = r0 - - r0 - end - - module DeclarationSequence0 - def space - elements[0] - end - - def declaration - elements[1] - end - end - - module DeclarationSequence1 - def head - elements[0] - end - - def tail - elements[1] - end - end - - module DeclarationSequence2 - def declarations - [head] + tail - end - - def tail - super.elements.map { |elt| elt.declaration } - end - end - - module DeclarationSequence3 - def compile(builder) - end - end - - def _nt_declaration_sequence - start_index = index - if node_cache[:declaration_sequence].has_key?(index) - cached = node_cache[:declaration_sequence][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_declaration - s1 << r2 - if r2 - s3, i3 = [], index - loop do - i4, s4 = index, [] - r5 = _nt_space - s4 << r5 - if r5 - r6 = _nt_declaration - s4 << r6 - end - if s4.last - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - r4.extend(DeclarationSequence0) - else - @index = i4 - r4 = nil - end - if r4 - s3 << r4 - else - break - end - end - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - s1 << r3 - end - if s1.last - r1 = instantiate_node(DeclarationSequence,input, i1...index, s1) - r1.extend(DeclarationSequence1) - r1.extend(DeclarationSequence2) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 0)) - r7.extend(DeclarationSequence3) - @index += 0 - else - terminal_parse_failure('') - r7 = nil - end - if r7 - r0 = r7 - else - @index = i0 - r0 = nil - end - end - - node_cache[:declaration_sequence][start_index] = r0 - - r0 - end - - def _nt_declaration - start_index = index - if node_cache[:declaration].has_key?(index) - cached = node_cache[:declaration][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_parsing_rule - if r1 - r0 = r1 - else - r2 = _nt_include_declaration - if r2 - r0 = r2 - else - @index = i0 - r0 = nil - end - end - - node_cache[:declaration][start_index] = r0 - - r0 - end - - module IncludeDeclaration0 - def space - elements[1] - end - - end - - module IncludeDeclaration1 - def compile(builder) - builder << text_value - end - end - - def _nt_include_declaration - start_index = index - if node_cache[:include_declaration].has_key?(index) - cached = node_cache[:include_declaration][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('include', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 7)) - @index += 7 - else - terminal_parse_failure('include') - r1 = nil - end - s0 << r1 - if r1 - r2 = _nt_space - s0 << r2 - if r2 - if has_terminal?('\G[A-Z]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r3 = true - @index = next_character - else - r3 = nil - end - s0 << r3 - if r3 - s4, i4 = [], index - loop do - i5 = index - r6 = _nt_alphanumeric_char - if r6 - r5 = r6 - else - if has_terminal?('::', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure('::') - r7 = nil - end - if r7 - r5 = r7 - else - @index = i5 - r5 = nil - end - end - if r5 - s4 << r5 - else - break - end - end - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - s0 << r4 - end - end - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(IncludeDeclaration0) - r0.extend(IncludeDeclaration1) - else - @index = i0 - r0 = nil - end - - node_cache[:include_declaration][start_index] = r0 - - r0 - end - - module ParsingRule0 - def space - elements[1] - end - end - - module ParsingRule1 - def space1 - elements[1] - end - - def nonterminal - elements[2] - end - - def space2 - elements[3] - end - - def parsing_expression - elements[5] - end - - def space3 - elements[6] - end - - end - - def _nt_parsing_rule - start_index = index - if node_cache[:parsing_rule].has_key?(index) - cached = node_cache[:parsing_rule][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('rule', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 4)) - @index += 4 - else - terminal_parse_failure('rule') - r1 = nil - end - s0 << r1 - if r1 - r2 = _nt_space - s0 << r2 - if r2 - r3 = _nt_nonterminal - s0 << r3 - if r3 - r4 = _nt_space - s0 << r4 - if r4 - i6, s6 = index, [] - if has_terminal?('do', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure('do') - r7 = nil - end - s6 << r7 - if r7 - r8 = _nt_space - s6 << r8 - end - if s6.last - r6 = instantiate_node(SyntaxNode,input, i6...index, s6) - r6.extend(ParsingRule0) - else - @index = i6 - r6 = nil - end - if r6 - r5 = r6 - else - r5 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r5 - if r5 - r9 = _nt_parsing_expression - s0 << r9 - if r9 - r10 = _nt_space - s0 << r10 - if r10 - if has_terminal?('end', false, index) - r11 = instantiate_node(SyntaxNode,input, index...(index + 3)) - @index += 3 - else - terminal_parse_failure('end') - r11 = nil - end - s0 << r11 - end - end - end - end - end - end - end - if s0.last - r0 = instantiate_node(ParsingRule,input, i0...index, s0) - r0.extend(ParsingRule1) - else - @index = i0 - r0 = nil - end - - node_cache[:parsing_rule][start_index] = r0 - - r0 - end - - def _nt_parsing_expression - start_index = index - if node_cache[:parsing_expression].has_key?(index) - cached = node_cache[:parsing_expression][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_choice - if r1 - r0 = r1 - else - r2 = _nt_sequence - if r2 - r0 = r2 - else - r3 = _nt_primary - if r3 - r0 = r3 - else - @index = i0 - r0 = nil - end - end - end - - node_cache[:parsing_expression][start_index] = r0 - - r0 - end - - module Choice0 - def alternative - elements[3] - end - end - - module Choice1 - def head - elements[0] - end - - def tail - elements[1] - end - end - - module Choice2 - def alternatives - [head] + tail - end - - def tail - super.elements.map {|elt| elt.alternative} - end - - def inline_modules - (alternatives.map {|alt| alt.inline_modules }).flatten - end - end - - def _nt_choice - start_index = index - if node_cache[:choice].has_key?(index) - cached = node_cache[:choice][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - r1 = _nt_alternative - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - r5 = _nt_space - if r5 - r4 = r5 - else - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r4 - if r4 - if has_terminal?('/', false, index) - r6 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('/') - r6 = nil - end - s3 << r6 - if r6 - r8 = _nt_space - if r8 - r7 = r8 - else - r7 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r7 - if r7 - r9 = _nt_alternative - s3 << r9 - end - end - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(Choice0) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - if s2.empty? - @index = i2 - r2 = nil - else - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - end - s0 << r2 - end - if s0.last - r0 = instantiate_node(Choice,input, i0...index, s0) - r0.extend(Choice1) - r0.extend(Choice2) - else - @index = i0 - r0 = nil - end - - node_cache[:choice][start_index] = r0 - - r0 - end - - module Sequence0 - def space - elements[0] - end - - def labeled_sequence_primary - elements[1] - end - end - - module Sequence1 - def head - elements[0] - end - - def tail - elements[1] - end - - def node_class_declarations - elements[2] - end - end - - module Sequence2 - def sequence_elements - [head] + tail - end - - def tail - super.elements.map {|elt| elt.labeled_sequence_primary } - end - - def inline_modules - (sequence_elements.map {|elt| elt.inline_modules}).flatten + - [sequence_element_accessor_module] + - node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - end - - def _nt_sequence - start_index = index - if node_cache[:sequence].has_key?(index) - cached = node_cache[:sequence][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - r1 = _nt_labeled_sequence_primary - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - r4 = _nt_space - s3 << r4 - if r4 - r5 = _nt_labeled_sequence_primary - s3 << r5 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(Sequence0) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - if s2.empty? - @index = i2 - r2 = nil - else - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - end - s0 << r2 - if r2 - r6 = _nt_node_class_declarations - s0 << r6 - end - end - if s0.last - r0 = instantiate_node(Sequence,input, i0...index, s0) - r0.extend(Sequence1) - r0.extend(Sequence2) - else - @index = i0 - r0 = nil - end - - node_cache[:sequence][start_index] = r0 - - r0 - end - - def _nt_alternative - start_index = index - if node_cache[:alternative].has_key?(index) - cached = node_cache[:alternative][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_sequence - if r1 - r0 = r1 - else - r2 = _nt_primary - if r2 - r0 = r2 - else - @index = i0 - r0 = nil - end - end - - node_cache[:alternative][start_index] = r0 - - r0 - end - - module Primary0 - def prefix - elements[0] - end - - def atomic - elements[1] - end - end - - module Primary1 - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - - def prefixed_expression - atomic - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - end - - module Primary2 - def prefix - elements[0] - end - - def predicate_block - elements[2] - end - end - - module Primary3 - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - def prefixed_expression - predicate_block - end - def inline_modules - [] - end - end - - module Primary4 - def atomic - elements[0] - end - - def suffix - elements[1] - end - - def node_class_declarations - elements[2] - end - end - - module Primary5 - def compile(address, builder, parent_expression=nil) - suffix.compile(address, builder, self) - end - - def optional_expression - atomic - end - - def node_class_name - node_class_declarations.node_class_name - end - - def inline_modules - atomic.inline_modules + node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - end - - module Primary6 - def atomic - elements[0] - end - - def node_class_declarations - elements[1] - end - end - - module Primary7 - def compile(address, builder, parent_expression=nil) - atomic.compile(address, builder, self) - end - - def node_class_name - node_class_declarations.node_class_name - end - - def inline_modules - atomic.inline_modules + node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - end - - def _nt_primary - start_index = index - if node_cache[:primary].has_key?(index) - cached = node_cache[:primary][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_prefix - s1 << r2 - if r2 - r3 = _nt_atomic - s1 << r3 - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(Primary0) - r1.extend(Primary1) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - i4, s4 = index, [] - r5 = _nt_prefix - s4 << r5 - if r5 - r7 = _nt_space - if r7 - r6 = r7 - else - r6 = instantiate_node(SyntaxNode,input, index...index) - end - s4 << r6 - if r6 - r8 = _nt_predicate_block - s4 << r8 - end - end - if s4.last - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - r4.extend(Primary2) - r4.extend(Primary3) - else - @index = i4 - r4 = nil - end - if r4 - r0 = r4 - else - i9, s9 = index, [] - r10 = _nt_atomic - s9 << r10 - if r10 - r11 = _nt_suffix - s9 << r11 - if r11 - r12 = _nt_node_class_declarations - s9 << r12 - end - end - if s9.last - r9 = instantiate_node(SyntaxNode,input, i9...index, s9) - r9.extend(Primary4) - r9.extend(Primary5) - else - @index = i9 - r9 = nil - end - if r9 - r0 = r9 - else - i13, s13 = index, [] - r14 = _nt_atomic - s13 << r14 - if r14 - r15 = _nt_node_class_declarations - s13 << r15 - end - if s13.last - r13 = instantiate_node(SyntaxNode,input, i13...index, s13) - r13.extend(Primary6) - r13.extend(Primary7) - else - @index = i13 - r13 = nil - end - if r13 - r0 = r13 - else - @index = i0 - r0 = nil - end - end - end - end - - node_cache[:primary][start_index] = r0 - - r0 - end - - module LabeledSequencePrimary0 - def label - elements[0] - end - - def sequence_primary - elements[1] - end - end - - module LabeledSequencePrimary1 - def compile(lexical_address, builder) - sequence_primary.compile(lexical_address, builder) - end - - def inline_modules - sequence_primary.inline_modules - end - - def label_name - if label.name - label.name - elsif sequence_primary.instance_of?(Nonterminal) - sequence_primary.text_value - else - nil - end - end - end - - def _nt_labeled_sequence_primary - start_index = index - if node_cache[:labeled_sequence_primary].has_key?(index) - cached = node_cache[:labeled_sequence_primary][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - r1 = _nt_label - s0 << r1 - if r1 - r2 = _nt_sequence_primary - s0 << r2 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(LabeledSequencePrimary0) - r0.extend(LabeledSequencePrimary1) - else - @index = i0 - r0 = nil - end - - node_cache[:labeled_sequence_primary][start_index] = r0 - - r0 - end - - module Label0 - def alpha_char - elements[0] - end - - end - - module Label1 - end - - module Label2 - def name - elements[0].text_value - end - end - - module Label3 - def name - nil - end - end - - def _nt_label - start_index = index - if node_cache[:label].has_key?(index) - cached = node_cache[:label][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - i2, s2 = index, [] - r3 = _nt_alpha_char - s2 << r3 - if r3 - s4, i4 = [], index - loop do - r5 = _nt_alphanumeric_char - if r5 - s4 << r5 - else - break - end - end - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - s2 << r4 - end - if s2.last - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - r2.extend(Label0) - else - @index = i2 - r2 = nil - end - s1 << r2 - if r2 - if has_terminal?(':', false, index) - r6 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure(':') - r6 = nil - end - s1 << r6 - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(Label1) - r1.extend(Label2) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 0)) - r7.extend(Label3) - @index += 0 - else - terminal_parse_failure('') - r7 = nil - end - if r7 - r0 = r7 - else - @index = i0 - r0 = nil - end - end - - node_cache[:label][start_index] = r0 - - r0 - end - - module SequencePrimary0 - def prefix - elements[0] - end - - def atomic - elements[1] - end - end - - module SequencePrimary1 - def compile(lexical_address, builder) - prefix.compile(lexical_address, builder, self) - end - - def prefixed_expression - elements[1] - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - end - - module SequencePrimary2 - def prefix - elements[0] - end - - def predicate_block - elements[2] - end - end - - module SequencePrimary3 - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - def prefixed_expression - predicate_block - end - def inline_modules - [] - end - end - - module SequencePrimary4 - def atomic - elements[0] - end - - def suffix - elements[1] - end - end - - module SequencePrimary5 - def compile(lexical_address, builder) - suffix.compile(lexical_address, builder, self) - end - - def node_class_name - nil - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - end - - def _nt_sequence_primary - start_index = index - if node_cache[:sequence_primary].has_key?(index) - cached = node_cache[:sequence_primary][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_prefix - s1 << r2 - if r2 - r3 = _nt_atomic - s1 << r3 - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(SequencePrimary0) - r1.extend(SequencePrimary1) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - i4, s4 = index, [] - r5 = _nt_prefix - s4 << r5 - if r5 - r7 = _nt_space - if r7 - r6 = r7 - else - r6 = instantiate_node(SyntaxNode,input, index...index) - end - s4 << r6 - if r6 - r8 = _nt_predicate_block - s4 << r8 - end - end - if s4.last - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - r4.extend(SequencePrimary2) - r4.extend(SequencePrimary3) - else - @index = i4 - r4 = nil - end - if r4 - r0 = r4 - else - i9, s9 = index, [] - r10 = _nt_atomic - s9 << r10 - if r10 - r11 = _nt_suffix - s9 << r11 - end - if s9.last - r9 = instantiate_node(SyntaxNode,input, i9...index, s9) - r9.extend(SequencePrimary4) - r9.extend(SequencePrimary5) - else - @index = i9 - r9 = nil - end - if r9 - r0 = r9 - else - r12 = _nt_atomic - if r12 - r0 = r12 - else - @index = i0 - r0 = nil - end - end - end - end - - node_cache[:sequence_primary][start_index] = r0 - - r0 - end - - def _nt_suffix - start_index = index - if node_cache[:suffix].has_key?(index) - cached = node_cache[:suffix][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_repetition_suffix - if r1 - r0 = r1 - else - r2 = _nt_optional_suffix - if r2 - r0 = r2 - else - @index = i0 - r0 = nil - end - end - - node_cache[:suffix][start_index] = r0 - - r0 - end - - def _nt_optional_suffix - start_index = index - if node_cache[:optional_suffix].has_key?(index) - cached = node_cache[:optional_suffix][index] - @index = cached.interval.end if cached - return cached - end - - if has_terminal?('?', false, index) - r0 = instantiate_node(Optional,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('?') - r0 = nil - end - - node_cache[:optional_suffix][start_index] = r0 - - r0 - end - - module NodeClassDeclarations0 - def node_class_expression - elements[0] - end - - def trailing_inline_module - elements[1] - end - end - - module NodeClassDeclarations1 - def node_class_name - node_class_expression.node_class_name - end - - def inline_modules - trailing_inline_module.inline_modules - end - - def inline_module - trailing_inline_module.inline_module - end - - def inline_module_name - inline_module.module_name if inline_module - end - end - - def _nt_node_class_declarations - start_index = index - if node_cache[:node_class_declarations].has_key?(index) - cached = node_cache[:node_class_declarations][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - r1 = _nt_node_class_expression - s0 << r1 - if r1 - r2 = _nt_trailing_inline_module - s0 << r2 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(NodeClassDeclarations0) - r0.extend(NodeClassDeclarations1) - else - @index = i0 - r0 = nil - end - - node_cache[:node_class_declarations][start_index] = r0 - - r0 - end - - def _nt_repetition_suffix - start_index = index - if node_cache[:repetition_suffix].has_key?(index) - cached = node_cache[:repetition_suffix][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - if has_terminal?('+', false, index) - r1 = instantiate_node(OneOrMore,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('+') - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('*', false, index) - r2 = instantiate_node(ZeroOrMore,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('*') - r2 = nil - end - if r2 - r0 = r2 - else - @index = i0 - r0 = nil - end - end - - node_cache[:repetition_suffix][start_index] = r0 - - r0 - end - - def _nt_prefix - start_index = index - if node_cache[:prefix].has_key?(index) - cached = node_cache[:prefix][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - if has_terminal?('&', false, index) - r1 = instantiate_node(AndPredicate,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('&') - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('!', false, index) - r2 = instantiate_node(NotPredicate,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('!') - r2 = nil - end - if r2 - r0 = r2 - else - if has_terminal?('~', false, index) - r3 = instantiate_node(TransientPrefix,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('~') - r3 = nil - end - if r3 - r0 = r3 - else - @index = i0 - r0 = nil - end - end - end - - node_cache[:prefix][start_index] = r0 - - r0 - end - - def _nt_atomic - start_index = index - if node_cache[:atomic].has_key?(index) - cached = node_cache[:atomic][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_terminal - if r1 - r0 = r1 - else - r2 = _nt_nonterminal - if r2 - r0 = r2 - else - r3 = _nt_parenthesized_expression - if r3 - r0 = r3 - else - @index = i0 - r0 = nil - end - end - end - - node_cache[:atomic][start_index] = r0 - - r0 - end - - module ParenthesizedExpression0 - def parsing_expression - elements[2] - end - - end - - module ParenthesizedExpression1 - def inline_modules - parsing_expression.inline_modules - end - end - - def _nt_parenthesized_expression - start_index = index - if node_cache[:parenthesized_expression].has_key?(index) - cached = node_cache[:parenthesized_expression][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('(', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('(') - r1 = nil - end - s0 << r1 - if r1 - r3 = _nt_space - if r3 - r2 = r3 - else - r2 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r2 - if r2 - r4 = _nt_parsing_expression - s0 << r4 - if r4 - r6 = _nt_space - if r6 - r5 = r6 - else - r5 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r5 - if r5 - if has_terminal?(')', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure(')') - r7 = nil - end - s0 << r7 - end - end - end - end - if s0.last - r0 = instantiate_node(ParenthesizedExpression,input, i0...index, s0) - r0.extend(ParenthesizedExpression0) - r0.extend(ParenthesizedExpression1) - else - @index = i0 - r0 = nil - end - - node_cache[:parenthesized_expression][start_index] = r0 - - r0 - end - - module Nonterminal0 - def alpha_char - elements[0] - end - - end - - module Nonterminal1 - end - - def _nt_nonterminal - start_index = index - if node_cache[:nonterminal].has_key?(index) - cached = node_cache[:nonterminal][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - i1 = index - r2 = _nt_keyword_inside_grammar - if r2 - r1 = nil - else - @index = i1 - r1 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r1 - if r1 - i3, s3 = index, [] - r4 = _nt_alpha_char - s3 << r4 - if r4 - s5, i5 = [], index - loop do - r6 = _nt_alphanumeric_char - if r6 - s5 << r6 - else - break - end - end - r5 = instantiate_node(SyntaxNode,input, i5...index, s5) - s3 << r5 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(Nonterminal0) - else - @index = i3 - r3 = nil - end - s0 << r3 - end - if s0.last - r0 = instantiate_node(Nonterminal,input, i0...index, s0) - r0.extend(Nonterminal1) - else - @index = i0 - r0 = nil - end - - node_cache[:nonterminal][start_index] = r0 - - r0 - end - - def _nt_terminal - start_index = index - if node_cache[:terminal].has_key?(index) - cached = node_cache[:terminal][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_quoted_string - if r1 - r0 = r1 - else - r2 = _nt_character_class - if r2 - r0 = r2 - else - r3 = _nt_anything_symbol - if r3 - r0 = r3 - else - @index = i0 - r0 = nil - end - end - end - - node_cache[:terminal][start_index] = r0 - - r0 - end - - module QuotedString0 - def string - super.text_value - end - end - - def _nt_quoted_string - start_index = index - if node_cache[:quoted_string].has_key?(index) - cached = node_cache[:quoted_string][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_single_quoted_string - if r1 - r0 = r1 - r0.extend(QuotedString0) - else - r2 = _nt_double_quoted_string - if r2 - r0 = r2 - r0.extend(QuotedString0) - else - @index = i0 - r0 = nil - end - end - - node_cache[:quoted_string][start_index] = r0 - - r0 - end - - module DoubleQuotedString0 - end - - module DoubleQuotedString1 - def string - elements[1] - end - - end - - def _nt_double_quoted_string - start_index = index - if node_cache[:double_quoted_string].has_key?(index) - cached = node_cache[:double_quoted_string][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('"', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('"') - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - i4 = index - if has_terminal?('"', false, index) - r5 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('"') - r5 = nil - end - if r5 - r4 = nil - else - @index = i4 - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r4 - if r4 - i6 = index - if has_terminal?("\\\\", false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure("\\\\") - r7 = nil - end - if r7 - r6 = r7 - else - if has_terminal?('\"', false, index) - r8 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure('\"') - r8 = nil - end - if r8 - r6 = r8 - else - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r9 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r9 = nil - end - if r9 - r6 = r9 - else - @index = i6 - r6 = nil - end - end - end - s3 << r6 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(DoubleQuotedString0) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - s0 << r2 - if r2 - if has_terminal?('"', false, index) - r10 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('"') - r10 = nil - end - s0 << r10 - end - end - if s0.last - r0 = instantiate_node(Terminal,input, i0...index, s0) - r0.extend(DoubleQuotedString1) - else - @index = i0 - r0 = nil - end - - node_cache[:double_quoted_string][start_index] = r0 - - r0 - end - - module SingleQuotedString0 - end - - module SingleQuotedString1 - def string - elements[1] - end - - end - - def _nt_single_quoted_string - start_index = index - if node_cache[:single_quoted_string].has_key?(index) - cached = node_cache[:single_quoted_string][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?("'", false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure("'") - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - i4 = index - if has_terminal?("'", false, index) - r5 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure("'") - r5 = nil - end - if r5 - r4 = nil - else - @index = i4 - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r4 - if r4 - i6 = index - if has_terminal?("\\\\", false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure("\\\\") - r7 = nil - end - if r7 - r6 = r7 - else - if has_terminal?("\\'", false, index) - r8 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 - else - terminal_parse_failure("\\'") - r8 = nil - end - if r8 - r6 = r8 - else - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r9 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r9 = nil - end - if r9 - r6 = r9 - else - @index = i6 - r6 = nil - end - end - end - s3 << r6 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(SingleQuotedString0) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - s0 << r2 - if r2 - if has_terminal?("'", false, index) - r10 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure("'") - r10 = nil - end - s0 << r10 - end - end - if s0.last - r0 = instantiate_node(Terminal,input, i0...index, s0) - r0.extend(SingleQuotedString1) - else - @index = i0 - r0 = nil - end - - node_cache[:single_quoted_string][start_index] = r0 - - r0 - end - - module CharacterClass0 - end - - module CharacterClass1 - end - - module CharacterClass2 - end - - module CharacterClass3 - def characters - elements[1] - end - - end - - module CharacterClass4 - def characters - super.text_value - end - end - - def _nt_character_class - start_index = index - if node_cache[:character_class].has_key?(index) - cached = node_cache[:character_class][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('[', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('[') - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - i4 = index - if has_terminal?(']', false, index) - r5 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure(']') - r5 = nil - end - if r5 - r4 = nil - else - @index = i4 - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r4 - if r4 - i6 = index - i7, s7 = index, [] - if has_terminal?('\\', false, index) - r8 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('\\') - r8 = nil - end - s7 << r8 - if r8 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r9 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r9 = nil - end - s7 << r9 - end - if s7.last - r7 = instantiate_node(SyntaxNode,input, i7...index, s7) - r7.extend(CharacterClass0) - else - @index = i7 - r7 = nil - end - if r7 - r6 = r7 - else - i10, s10 = index, [] - i11 = index - if has_terminal?('\\', false, index) - r12 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('\\') - r12 = nil - end - if r12 - r11 = nil - else - @index = i11 - r11 = instantiate_node(SyntaxNode,input, index...index) - end - s10 << r11 - if r11 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r13 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r13 = nil - end - s10 << r13 - end - if s10.last - r10 = instantiate_node(SyntaxNode,input, i10...index, s10) - r10.extend(CharacterClass1) - else - @index = i10 - r10 = nil - end - if r10 - r6 = r10 - else - @index = i6 - r6 = nil - end - end - s3 << r6 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(CharacterClass2) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - if s2.empty? - @index = i2 - r2 = nil - else - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - end - s0 << r2 - if r2 - if has_terminal?(']', false, index) - r14 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure(']') - r14 = nil - end - s0 << r14 - end - end - if s0.last - r0 = instantiate_node(CharacterClass,input, i0...index, s0) - r0.extend(CharacterClass3) - r0.extend(CharacterClass4) - else - @index = i0 - r0 = nil - end - - node_cache[:character_class][start_index] = r0 - - r0 - end - - def _nt_anything_symbol - start_index = index - if node_cache[:anything_symbol].has_key?(index) - cached = node_cache[:anything_symbol][index] - @index = cached.interval.end if cached - return cached - end - - if has_terminal?('.', false, index) - r0 = instantiate_node(AnythingSymbol,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('.') - r0 = nil - end - - node_cache[:anything_symbol][start_index] = r0 - - r0 - end - - module NodeClassExpression0 - end - - module NodeClassExpression1 - def space - elements[0] - end - - end - - module NodeClassExpression2 - def node_class_name - elements[2].text_value - end - end - - module NodeClassExpression3 - def node_class_name - nil - end - end - - def _nt_node_class_expression - start_index = index - if node_cache[:node_class_expression].has_key?(index) - cached = node_cache[:node_class_expression][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_space - s1 << r2 - if r2 - if has_terminal?('<', false, index) - r3 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('<') - r3 = nil - end - s1 << r3 - if r3 - s4, i4 = [], index - loop do - i5, s5 = index, [] - i6 = index - if has_terminal?('>', false, index) - r7 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('>') - r7 = nil - end - if r7 - r6 = nil - else - @index = i6 - r6 = instantiate_node(SyntaxNode,input, index...index) - end - s5 << r6 - if r6 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r8 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r8 = nil - end - s5 << r8 - end - if s5.last - r5 = instantiate_node(SyntaxNode,input, i5...index, s5) - r5.extend(NodeClassExpression0) - else - @index = i5 - r5 = nil - end - if r5 - s4 << r5 - else - break - end - end - if s4.empty? - @index = i4 - r4 = nil - else - r4 = instantiate_node(SyntaxNode,input, i4...index, s4) - end - s1 << r4 - if r4 - if has_terminal?('>', false, index) - r9 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('>') - r9 = nil - end - s1 << r9 - end - end - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(NodeClassExpression1) - r1.extend(NodeClassExpression2) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('', false, index) - r10 = instantiate_node(SyntaxNode,input, index...(index + 0)) - r10.extend(NodeClassExpression3) - @index += 0 - else - terminal_parse_failure('') - r10 = nil - end - if r10 - r0 = r10 - else - @index = i0 - r0 = nil - end - end - - node_cache[:node_class_expression][start_index] = r0 - - r0 - end - - module TrailingInlineModule0 - def space - elements[0] - end - - def inline_module - elements[1] - end - end - - module TrailingInlineModule1 - def inline_modules - [inline_module] - end - - def inline_module_name - inline_module.module_name - end - end - - module TrailingInlineModule2 - def inline_modules - [] - end - - def inline_module - nil - end - - def inline_module_name - nil - end - end - - def _nt_trailing_inline_module - start_index = index - if node_cache[:trailing_inline_module].has_key?(index) - cached = node_cache[:trailing_inline_module][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - i1, s1 = index, [] - r2 = _nt_space - s1 << r2 - if r2 - r3 = _nt_inline_module - s1 << r3 - end - if s1.last - r1 = instantiate_node(SyntaxNode,input, i1...index, s1) - r1.extend(TrailingInlineModule0) - r1.extend(TrailingInlineModule1) - else - @index = i1 - r1 = nil - end - if r1 - r0 = r1 - else - if has_terminal?('', false, index) - r4 = instantiate_node(SyntaxNode,input, index...(index + 0)) - r4.extend(TrailingInlineModule2) - @index += 0 - else - terminal_parse_failure('') - r4 = nil - end - if r4 - r0 = r4 - else - @index = i0 - r0 = nil - end - end - - node_cache[:trailing_inline_module][start_index] = r0 - - r0 - end - - module PredicateBlock0 - def inline_module - elements[1] - end - end - - def _nt_predicate_block - start_index = index - if node_cache[:predicate_block].has_key?(index) - cached = node_cache[:predicate_block][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 0)) - @index += 0 - else - terminal_parse_failure('') - r1 = nil - end - s0 << r1 - if r1 - r2 = _nt_inline_module - s0 << r2 - end - if s0.last - r0 = instantiate_node(PredicateBlock,input, i0...index, s0) - r0.extend(PredicateBlock0) - else - @index = i0 - r0 = nil - end - - node_cache[:predicate_block][start_index] = r0 - - r0 - end - - module InlineModule0 - end - - module InlineModule1 - end - - def _nt_inline_module - start_index = index - if node_cache[:inline_module].has_key?(index) - cached = node_cache[:inline_module][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('{', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('{') - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3 = index - r4 = _nt_inline_module - if r4 - r3 = r4 - else - i5, s5 = index, [] - i6 = index - if has_terminal?('\G[{}]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r7 = true - @index = next_character - else - r7 = nil - end - if r7 - r6 = nil - else - @index = i6 - r6 = instantiate_node(SyntaxNode,input, index...index) - end - s5 << r6 - if r6 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r8 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r8 = nil - end - s5 << r8 - end - if s5.last - r5 = instantiate_node(SyntaxNode,input, i5...index, s5) - r5.extend(InlineModule0) - else - @index = i5 - r5 = nil - end - if r5 - r3 = r5 - else - @index = i3 - r3 = nil - end - end - if r3 - s2 << r3 - else - break - end - end - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - s0 << r2 - if r2 - if has_terminal?('}', false, index) - r9 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('}') - r9 = nil - end - s0 << r9 - end - end - if s0.last - r0 = instantiate_node(InlineModule,input, i0...index, s0) - r0.extend(InlineModule1) - else - @index = i0 - r0 = nil - end - - node_cache[:inline_module][start_index] = r0 - - r0 - end - - module KeywordInsideGrammar0 - end - - def _nt_keyword_inside_grammar - start_index = index - if node_cache[:keyword_inside_grammar].has_key?(index) - cached = node_cache[:keyword_inside_grammar][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - i1 = index - if has_terminal?('rule', false, index) - r2 = instantiate_node(SyntaxNode,input, index...(index + 4)) - @index += 4 - else - terminal_parse_failure('rule') - r2 = nil - end - if r2 - r1 = r2 - else - if has_terminal?('end', false, index) - r3 = instantiate_node(SyntaxNode,input, index...(index + 3)) - @index += 3 - else - terminal_parse_failure('end') - r3 = nil - end - if r3 - r1 = r3 - else - @index = i1 - r1 = nil - end - end - s0 << r1 - if r1 - i4 = index - r5 = _nt_non_space_char - if r5 - r4 = nil - else - @index = i4 - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r4 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(KeywordInsideGrammar0) - else - @index = i0 - r0 = nil - end - - node_cache[:keyword_inside_grammar][start_index] = r0 - - r0 - end - - module NonSpaceChar0 - end - - def _nt_non_space_char - start_index = index - if node_cache[:non_space_char].has_key?(index) - cached = node_cache[:non_space_char][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - i1 = index - r2 = _nt_space - if r2 - r1 = nil - else - @index = i1 - r1 = instantiate_node(SyntaxNode,input, index...index) - end - s0 << r1 - if r1 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r3 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r3 = nil - end - s0 << r3 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(NonSpaceChar0) - else - @index = i0 - r0 = nil - end - - node_cache[:non_space_char][start_index] = r0 - - r0 - end - - def _nt_alpha_char - start_index = index - if node_cache[:alpha_char].has_key?(index) - cached = node_cache[:alpha_char][index] - @index = cached.interval.end if cached - return cached - end - - if has_terminal?('\G[A-Za-z_]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r0 = instantiate_node(SyntaxNode, input, index...next_character) - @index = next_character - else - r0 = nil - end - - node_cache[:alpha_char][start_index] = r0 - - r0 - end - - def _nt_alphanumeric_char - start_index = index - if node_cache[:alphanumeric_char].has_key?(index) - cached = node_cache[:alphanumeric_char][index] - @index = cached.interval.end if cached - return cached - end - - i0 = index - r1 = _nt_alpha_char - if r1 - r0 = r1 - else - if has_terminal?('\G[0-9]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r2 = true - @index = next_character - else - r2 = nil - end - if r2 - r0 = r2 - else - @index = i0 - r0 = nil - end - end - - node_cache[:alphanumeric_char][start_index] = r0 - - r0 - end - - def _nt_space - start_index = index - if node_cache[:space].has_key?(index) - cached = node_cache[:space][index] - @index = cached.interval.end if cached - return cached - end - - s0, i0 = [], index - loop do - i1 = index - r2 = _nt_white - if r2 - r1 = r2 - else - r3 = _nt_comment_to_eol - if r3 - r1 = r3 - else - @index = i1 - r1 = nil - end - end - if r1 - s0 << r1 - else - break - end - end - if s0.empty? - @index = i0 - r0 = nil - else - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - end - - node_cache[:space][start_index] = r0 - - r0 - end - - module CommentToEol0 - end - - module CommentToEol1 - end - - def _nt_comment_to_eol - start_index = index - if node_cache[:comment_to_eol].has_key?(index) - cached = node_cache[:comment_to_eol][index] - @index = cached.interval.end if cached - return cached - end - - i0, s0 = index, [] - if has_terminal?('#', false, index) - r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure('#') - r1 = nil - end - s0 << r1 - if r1 - s2, i2 = [], index - loop do - i3, s3 = index, [] - i4 = index - if has_terminal?("\n", false, index) - r5 = instantiate_node(SyntaxNode,input, index...(index + 1)) - @index += 1 - else - terminal_parse_failure("\n") - r5 = nil - end - if r5 - r4 = nil - else - @index = i4 - r4 = instantiate_node(SyntaxNode,input, index...index) - end - s3 << r4 - if r4 - if index < input_length - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r6 = instantiate_node(SyntaxNode,input, index...next_character) - @index = next_character - else - terminal_parse_failure("any character") - r6 = nil - end - s3 << r6 - end - if s3.last - r3 = instantiate_node(SyntaxNode,input, i3...index, s3) - r3.extend(CommentToEol0) - else - @index = i3 - r3 = nil - end - if r3 - s2 << r3 - else - break - end - end - r2 = instantiate_node(SyntaxNode,input, i2...index, s2) - s0 << r2 - end - if s0.last - r0 = instantiate_node(SyntaxNode,input, i0...index, s0) - r0.extend(CommentToEol1) - else - @index = i0 - r0 = nil - end - - node_cache[:comment_to_eol][start_index] = r0 - - r0 - end - - def _nt_white - start_index = index - if node_cache[:white].has_key?(index) - cached = node_cache[:white][index] - @index = cached.interval.end if cached - return cached - end - - if has_terminal?('\G[ \\t\\n\\r]', true, index) - next_character = index + input[index..-1].match(/\A(.)/um).end(1) - r0 = instantiate_node(SyntaxNode, input, index...next_character) - @index = next_character - else - r0 = nil - end - - node_cache[:white][start_index] = r0 - - r0 - end - - end - - class MetagrammarParser < Treetop::Runtime::CompiledParser - include Metagrammar - end - - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.treetop b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.treetop deleted file mode 100644 index b55e0f11..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/metagrammar.treetop +++ /dev/null @@ -1,436 +0,0 @@ -module Treetop - module Compiler - grammar Metagrammar - rule treetop_file - requires:(space? require_statement)* prefix:space? module_or_grammar:(module_declaration / grammar) suffix:space? { - def compile - requires.text_value + prefix.text_value + module_or_grammar.compile + suffix.text_value - end - } - end - - rule require_statement - prefix:space? "require" [ \t]+ [^\n\r]+ [\n\r] - end - - rule module_declaration - prefix:('module' space [A-Z] alphanumeric_char* space) module_contents:(module_declaration / grammar) suffix:(space 'end') { - def compile - prefix.text_value + module_contents.compile + suffix.text_value - end - } - end - - rule grammar - 'grammar' space grammar_name space ('do' space)? declaration_sequence space? 'end' - end - - rule grammar_name - ([A-Z] alphanumeric_char*) - end - - rule declaration_sequence - head:declaration tail:(space declaration)* { - def declarations - [head] + tail - end - - def tail - super.elements.map { |elt| elt.declaration } - end - } - / - '' { - def compile(builder) - end - } - end - - rule declaration - parsing_rule / include_declaration - end - - rule include_declaration - 'include' space [A-Z] (alphanumeric_char / '::')* { - def compile(builder) - builder << text_value - end - } - end - - rule parsing_rule - 'rule' space nonterminal space ('do' space)? parsing_expression space 'end' - end - - rule parsing_expression - choice / sequence / primary - end - - rule choice - head:alternative tail:(space? '/' space? alternative)+ { - def alternatives - [head] + tail - end - - def tail - super.elements.map {|elt| elt.alternative} - end - - def inline_modules - (alternatives.map {|alt| alt.inline_modules }).flatten - end - } - end - - rule sequence - head:labeled_sequence_primary tail:(space labeled_sequence_primary)+ node_class_declarations { - def sequence_elements - [head] + tail - end - - def tail - super.elements.map {|elt| elt.labeled_sequence_primary } - end - - def inline_modules - (sequence_elements.map {|elt| elt.inline_modules}).flatten + - [sequence_element_accessor_module] + - node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - } - end - - rule alternative - sequence / primary - end - - rule primary - prefix atomic { - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - - def prefixed_expression - atomic - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - } - / - prefix space? predicate_block { - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - def prefixed_expression - predicate_block - end - def inline_modules - [] - end - } - / - atomic suffix node_class_declarations { - def compile(address, builder, parent_expression=nil) - suffix.compile(address, builder, self) - end - - def optional_expression - atomic - end - - def node_class_name - node_class_declarations.node_class_name - end - - def inline_modules - atomic.inline_modules + node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - } - / - atomic node_class_declarations { - def compile(address, builder, parent_expression=nil) - atomic.compile(address, builder, self) - end - - def node_class_name - node_class_declarations.node_class_name - end - - def inline_modules - atomic.inline_modules + node_class_declarations.inline_modules - end - - def inline_module_name - node_class_declarations.inline_module_name - end - } - end - - rule labeled_sequence_primary - label sequence_primary { - def compile(lexical_address, builder) - sequence_primary.compile(lexical_address, builder) - end - - def inline_modules - sequence_primary.inline_modules - end - - def label_name - if label.name - label.name - elsif sequence_primary.instance_of?(Nonterminal) - sequence_primary.text_value - else - nil - end - end - } - end - - rule label - (alpha_char alphanumeric_char*) ':' { - def name - elements[0].text_value - end - } - / - '' { - def name - nil - end - } - end - - rule sequence_primary - prefix atomic { - def compile(lexical_address, builder) - prefix.compile(lexical_address, builder, self) - end - - def prefixed_expression - elements[1] - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - } - / - prefix space? predicate_block { - def compile(address, builder, parent_expression=nil) - prefix.compile(address, builder, self) - end - def prefixed_expression - predicate_block - end - def inline_modules - [] - end - } - / - atomic suffix { - def compile(lexical_address, builder) - suffix.compile(lexical_address, builder, self) - end - - def node_class_name - nil - end - - def inline_modules - atomic.inline_modules - end - - def inline_module_name - nil - end - } - / - atomic - end - - rule suffix - repetition_suffix / optional_suffix - end - - rule optional_suffix - '?' - end - - rule node_class_declarations - node_class_expression trailing_inline_module { - def node_class_name - node_class_expression.node_class_name - end - - def inline_modules - trailing_inline_module.inline_modules - end - - def inline_module - trailing_inline_module.inline_module - end - - def inline_module_name - inline_module.module_name if inline_module - end - } - end - - rule repetition_suffix - '+' / '*' - end - - rule prefix - '&' / '!' / '~' - end - - rule atomic - terminal - / - nonterminal - / - parenthesized_expression - end - - rule parenthesized_expression - '(' space? parsing_expression space? ')' { - def inline_modules - parsing_expression.inline_modules - end - } - end - - rule nonterminal - !keyword_inside_grammar (alpha_char alphanumeric_char*) - end - - rule terminal - quoted_string / character_class / anything_symbol - end - - rule quoted_string - (single_quoted_string / double_quoted_string) { - def string - super.text_value - end - } - end - - rule double_quoted_string - '"' string:(!'"' ("\\\\" / '\"' / .))* '"' - end - - rule single_quoted_string - "'" string:(!"'" ("\\\\" / "\\'" / .))* "'" - end - - rule character_class - '[' characters:(!']' ('\\' . /!'\\' .))+ ']' { - def characters - super.text_value - end - } - end - - rule anything_symbol - '.' - end - - rule node_class_expression - space '<' (!'>' .)+ '>' { - def node_class_name - elements[2].text_value - end - } - / - '' { - def node_class_name - nil - end - } - end - - rule trailing_inline_module - space inline_module { - def inline_modules - [inline_module] - end - - def inline_module_name - inline_module.module_name - end - } - / - '' { - def inline_modules - [] - end - - def inline_module - nil - end - - def inline_module_name - nil - end - } - end - - rule predicate_block - '' inline_module - end - - rule inline_module - '{' (inline_module / ![{}] .)* '}' - end - - rule keyword_inside_grammar - ('rule' / 'end') !non_space_char - end - - rule non_space_char - !space . - end - - rule alpha_char - [A-Za-z_] - end - - rule alphanumeric_char - alpha_char / [0-9] - end - - rule space - (white / comment_to_eol)+ - end - - rule comment_to_eol - '#' (!"\n" .)* - end - - rule white - [ \t\n\r] - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes.rb deleted file mode 100644 index 942b1bd4..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes.rb +++ /dev/null @@ -1,20 +0,0 @@ -dir = File.dirname(__FILE__) -require File.join(dir, *%w[node_classes parsing_expression]) -require File.join(dir, *%w[node_classes atomic_expression]) -require File.join(dir, *%w[node_classes inline_module]) -require File.join(dir, *%w[node_classes predicate_block]) -require File.join(dir, *%w[node_classes treetop_file]) -require File.join(dir, *%w[node_classes grammar]) -require File.join(dir, *%w[node_classes declaration_sequence]) -require File.join(dir, *%w[node_classes parsing_rule]) -require File.join(dir, *%w[node_classes parenthesized_expression]) -require File.join(dir, *%w[node_classes nonterminal]) -require File.join(dir, *%w[node_classes terminal]) -require File.join(dir, *%w[node_classes anything_symbol]) -require File.join(dir, *%w[node_classes character_class]) -require File.join(dir, *%w[node_classes sequence]) -require File.join(dir, *%w[node_classes choice]) -require File.join(dir, *%w[node_classes repetition]) -require File.join(dir, *%w[node_classes optional]) -require File.join(dir, *%w[node_classes predicate]) -require File.join(dir, *%w[node_classes transient_prefix]) diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/anything_symbol.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/anything_symbol.rb deleted file mode 100644 index 4f2c26c1..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/anything_symbol.rb +++ /dev/null @@ -1,18 +0,0 @@ -module Treetop - module Compiler - class AnythingSymbol < AtomicExpression - def compile(address, builder, parent_expression = nil) - super - builder.if__ "index < input_length" do - assign_result "instantiate_node(#{node_class_name},input, index...(index + 1))" - extend_result_with_inline_module - builder << "@index += 1" - end - builder.else_ do - builder << 'terminal_parse_failure("any character")' - assign_result 'nil' - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/atomic_expression.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/atomic_expression.rb deleted file mode 100644 index 7da74ddc..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/atomic_expression.rb +++ /dev/null @@ -1,14 +0,0 @@ -module Treetop - module Compiler - class AtomicExpression < ParsingExpression - def inline_modules - [] - end - - def single_quote(string) - # Double any backslashes, then backslash any single-quotes: - "'#{string.gsub(/\\/) { '\\\\' }.gsub(/'/) { "\\'"}}'" - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/character_class.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/character_class.rb deleted file mode 100644 index c7d0dd65..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/character_class.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Treetop - module Compiler - class CharacterClass < AtomicExpression - def compile(address, builder, parent_expression = nil) - super - - builder.if__ "has_terminal?(#{grounded_regexp(text_value)}, true, index)" do - if address == 0 || decorated? - assign_result "instantiate_node(#{node_class_name},input, index...(index + 1))" - extend_result_with_inline_module - else - assign_lazily_instantiated_node - end - builder << "@index += 1" - end - builder.else_ do - # "terminal_parse_failure(#{single_quote(characters)})" - assign_result 'nil' - end - end - - def grounded_regexp(string) - # Double any backslashes, then backslash any single-quotes: - "'\\G#{string.gsub(/\\/) { '\\\\' }.gsub(/'/) { "\\'"}}'" - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/choice.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/choice.rb deleted file mode 100644 index bd269a2d..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/choice.rb +++ /dev/null @@ -1,31 +0,0 @@ -module Treetop - module Compiler - class Choice < ParsingExpression - def compile(address, builder, parent_expression = nil) - super - begin_comment(self) - use_vars :result, :start_index - compile_alternatives(alternatives) - end_comment(self) - end - - def compile_alternatives(alternatives) - obtain_new_subexpression_address - alternatives.first.compile(subexpression_address, builder) - builder.if__ subexpression_success? do - assign_result subexpression_result_var - extend_result_with_declared_module - extend_result_with_inline_module - end - builder.else_ do - if alternatives.size == 1 - reset_index - assign_failure start_index_var - else - compile_alternatives(alternatives[1..-1]) - end - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/declaration_sequence.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/declaration_sequence.rb deleted file mode 100644 index a561d72a..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/declaration_sequence.rb +++ /dev/null @@ -1,24 +0,0 @@ -module Treetop - module Compiler - class DeclarationSequence < Runtime::SyntaxNode - - def compile(builder) - unless rules.empty? - builder.method_declaration("root") do - builder << "@root || :#{rules.first.name}" - end - builder.newline - end - - declarations.each do |declaration| - declaration.compile(builder) - builder.newline - end - end - - def rules - declarations.select { |declaration| declaration.instance_of?(ParsingRule) } - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/grammar.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/grammar.rb deleted file mode 100644 index 41a205b7..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/grammar.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Treetop - module Compiler - class Grammar < Runtime::SyntaxNode - def compile - builder = RubyBuilder.new - - builder.module_declaration "#{grammar_name.text_value}" do - builder.in(indent_level) # account for initial indentation of grammar declaration - builder << "include Treetop::Runtime" - builder.newline - declaration_sequence.compile(builder) - end - builder.newline - builder.class_declaration "#{parser_name} < Treetop::Runtime::CompiledParser" do - builder << "include #{grammar_name.text_value}" - end - end - - def indent_level - input.column_of(interval.begin) - 1 - end - - def parser_name - grammar_name.text_value + 'Parser' - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/inline_module.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/inline_module.rb deleted file mode 100644 index 3cb1ef0c..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/inline_module.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Treetop - module Compiler - module InlineModuleMixin - attr_reader :module_name - - def compile(index, builder, rule) - @module_name = "#{rule.name.treetop_camelize}#{index}" - end - end - - class InlineModule < Runtime::SyntaxNode - - include InlineModuleMixin - - def compile(index, builder, rule) - super - builder.module_declaration(module_name) do - builder << ruby_code.gsub(/\A\n/, '').rstrip - end - end - - def ruby_code - elements[1].text_value - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/nonterminal.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/nonterminal.rb deleted file mode 100644 index 7421dbea..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/nonterminal.rb +++ /dev/null @@ -1,13 +0,0 @@ -module Treetop - module Compiler - class Nonterminal < AtomicExpression - def compile(address, builder, parent_expression = nil) - super - use_vars :result - assign_result text_value == 'super' ? 'super' : "_nt_#{text_value}" - extend_result_with_declared_module - extend_result_with_inline_module - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/optional.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/optional.rb deleted file mode 100644 index 72d2bb9f..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/optional.rb +++ /dev/null @@ -1,19 +0,0 @@ -module Treetop - module Compiler - class Optional < ParsingExpression - def compile(address, builder, parent_expression) - super - use_vars :result - obtain_new_subexpression_address - parent_expression.atomic.compile(subexpression_address, builder) - - builder.if__ subexpression_success? do - assign_result subexpression_result_var - end - builder.else_ do - assign_result epsilon_node - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parenthesized_expression.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parenthesized_expression.rb deleted file mode 100644 index e58f8f92..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parenthesized_expression.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Treetop - module Compiler - class ParenthesizedExpression < ParsingExpression - def compile(address, builder, parent_expression = nil) - elements[2].compile(address, builder, parent_expression) - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_expression.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_expression.rb deleted file mode 100644 index e67b84fc..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_expression.rb +++ /dev/null @@ -1,146 +0,0 @@ -module Treetop - module Compiler - class ParsingExpression < Runtime::SyntaxNode - attr_reader :address, :builder, :subexpression_address, :var_symbols, :parent_expression - - def compile(address, builder, parent_expression) - @address = address - @builder = builder - @parent_expression = parent_expression - end - - def node_class_name - parent_expression && parent_expression.node_class_name || 'SyntaxNode' - end - - def declared_module_name - parent_expression && parent_expression.node_class_name - end - - def inline_module_name - parent_expression && parent_expression.inline_module_name - end - - def decorated? - parent_expression && (parent_expression.node_class_name || parent_expression.node_class_name || parent_expression.inline_module_name) - end - - def optional_arg(arg) - if arg - ", #{arg}" - else - '' - end - end - - def use_vars(*var_symbols) - @var_symbols = var_symbols - builder << var_initialization - end - - def result_var - var(:result) - end - - def accumulator_var - var(:accumulator) - end - - def start_index_var - var(:start_index) - end - - def subexpression_result_var - "r#{subexpression_address}" - end - - def subexpression_success? - subexpression_result_var - end - - def obtain_new_subexpression_address - @subexpression_address = builder.next_address - end - - def accumulate_subexpression_result - builder.accumulate accumulator_var, subexpression_result_var - end - - def assign_result(value_ruby) - builder.assign result_var, value_ruby - end - - def extend_result(module_name) - builder.extend result_var, module_name - end - - def extend_result_with_declared_module - extend_result declared_module_name if declared_module_name - end - - def extend_result_with_inline_module - extend_result inline_module_name if inline_module_name - end - - def reset_index - builder.assign '@index', start_index_var - end - - def epsilon_node - "instantiate_node(SyntaxNode,input, index...index)" - end - - def assign_failure(start_index_var) - assign_result("nil") - end - - def assign_lazily_instantiated_node - assign_result("true") - end - - def var_initialization - left, right = [], [] - var_symbols.each do |symbol| - if init_value(symbol) - left << var(symbol) - right << init_value(symbol) - end - end - if left.empty? - "" - else - left.join(', ') + ' = ' + right.join(', ') - end - end - - def var(var_symbol) - case var_symbol - when :result then "r#{address}" - when :accumulator then "s#{address}" - when :start_index then "i#{address}" - else raise "Unknown var symbol #{var_symbol}." - end - end - - def init_value(var_symbol) - case var_symbol - when :accumulator then '[]' - when :start_index then 'index' - else nil - end - end - - def begin_comment(expression) - #builder << "# begin #{on_one_line(expression)}" - end - - def end_comment(expression) - #builder << "# end #{on_one_line(expression)}" - end - - def on_one_line(expression) - expression.text_value.tr("\n", ' ') - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_rule.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_rule.rb deleted file mode 100644 index 34bd8735..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/parsing_rule.rb +++ /dev/null @@ -1,55 +0,0 @@ -module Treetop - module Compiler - class ParsingRule < Runtime::SyntaxNode - - def compile(builder) - compile_inline_module_declarations(builder) - generate_method_definition(builder) - end - - def compile_inline_module_declarations(builder) - parsing_expression.inline_modules.each_with_index do |inline_module, i| - inline_module.compile(i, builder, self) - builder.newline - end - end - - def generate_method_definition(builder) - builder.reset_addresses - expression_address = builder.next_address - result_var = "r#{expression_address}" - - builder.method_declaration(method_name) do - builder.assign 'start_index', 'index' - generate_cache_lookup(builder) - builder.newline - parsing_expression.compile(expression_address, builder) - builder.newline - generate_cache_storage(builder, result_var) - builder.newline - builder << result_var - end - end - - def generate_cache_lookup(builder) - builder.if_ "node_cache[:#{name}].has_key?(index)" do - builder.assign 'cached', "node_cache[:#{name}][index]" - builder << '@index = cached.interval.end if cached' - builder << 'return cached' - end - end - - def generate_cache_storage(builder, result_var) - builder.assign "node_cache[:#{name}][start_index]", result_var - end - - def method_name - "_nt_#{name}" - end - - def name - nonterminal.text_value - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate.rb deleted file mode 100644 index f80d06ed..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate.rb +++ /dev/null @@ -1,45 +0,0 @@ -module Treetop - module Compiler - class Predicate < ParsingExpression - def compile(address, builder, parent_expression) - super - begin_comment(parent_expression) - use_vars :result, :start_index - obtain_new_subexpression_address - parent_expression.prefixed_expression.compile(subexpression_address, builder) - builder.if__(subexpression_success?) { when_success } - builder.else_ { when_failure } - end_comment(parent_expression) - end - - def assign_failure - super(start_index_var) - end - - def assign_success - reset_index - assign_result epsilon_node - end - end - - class AndPredicate < Predicate - def when_success - assign_success - end - - def when_failure - assign_failure - end - end - - class NotPredicate < Predicate - def when_success - assign_failure - end - - def when_failure - assign_success - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate_block.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate_block.rb deleted file mode 100644 index 21cf6d1b..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/predicate_block.rb +++ /dev/null @@ -1,16 +0,0 @@ -module Treetop - module Compiler - class PredicateBlock < ParsingExpression - def compile(index, builder, parent_expression = nil) - super - # REVISIT: This is distinctly dodgey, but since we can only be called from - # two contexts, and it works in both those, I'm going with it for now, as - # opposed to doing the major refactor of providing a proper way of accessing - # the parent's accumulator variable. - p = parent - p = p.parent while p && !p.respond_to?(:accumulator_var) - assign_result "lambda #{text_value}.call(#{p ? p.accumulator_var : ""})" - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/repetition.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/repetition.rb deleted file mode 100644 index 2d7adc24..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/repetition.rb +++ /dev/null @@ -1,55 +0,0 @@ -module Treetop - module Compiler - class Repetition < ParsingExpression - def compile(address, builder, parent_expression) - super - repeated_expression = parent_expression.atomic - begin_comment(parent_expression) - use_vars :result, :accumulator, :start_index - - builder.loop do - obtain_new_subexpression_address - repeated_expression.compile(subexpression_address, builder) - builder.if__ subexpression_success? do - accumulate_subexpression_result - end - builder.else_ do - builder.break - end - end - end - - def inline_module_name - parent_expression.inline_module_name - end - - def assign_and_extend_result - assign_result "instantiate_node(#{node_class_name},input, #{start_index_var}...index, #{accumulator_var})" - extend_result_with_inline_module - end - end - - - class ZeroOrMore < Repetition - def compile(address, builder, parent_expression) - super - assign_and_extend_result - end_comment(parent_expression) - end - end - - class OneOrMore < Repetition - def compile(address, builder, parent_expression) - super - builder.if__ "#{accumulator_var}.empty?" do - reset_index - assign_failure start_index_var - end - builder.else_ do - assign_and_extend_result - end - end_comment(parent_expression) - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/sequence.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/sequence.rb deleted file mode 100644 index 1e5d7205..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/sequence.rb +++ /dev/null @@ -1,71 +0,0 @@ -module Treetop - module Compiler - class Sequence < ParsingExpression - def compile(address, builder, parent_expression = nil) - super - begin_comment(self) - use_vars :result, :start_index, :accumulator - compile_sequence_elements(sequence_elements) - builder.if__ "#{accumulator_var}.last" do - assign_result "instantiate_node(#{node_class_name},input, #{start_index_var}...index, #{accumulator_var})" - extend_result sequence_element_accessor_module_name if sequence_element_accessor_module_name - extend_result_with_inline_module - end - builder.else_ do - reset_index - assign_failure start_index_var - end - end_comment(self) - end - - def node_class_name - node_class_declarations.node_class_name || 'SyntaxNode' - end - - def compile_sequence_elements(elements) - obtain_new_subexpression_address - elements.first.compile(subexpression_address, builder) - accumulate_subexpression_result - if elements.size > 1 - builder.if_ subexpression_success? do - compile_sequence_elements(elements[1..-1]) - end - end - end - - def sequence_element_accessor_module - @sequence_element_accessor_module ||= SequenceElementAccessorModule.new(sequence_elements) - end - - def sequence_element_accessor_module_name - sequence_element_accessor_module.module_name - end - end - - class SequenceElementAccessorModule - include InlineModuleMixin - attr_reader :sequence_elements - - def initialize(sequence_elements) - @sequence_elements = sequence_elements - end - - def compile(index, builder, rule) - super - builder.module_declaration(module_name) do - elements_by_name = sequence_elements.inject({}){|h,e| (h[e.label_name.to_s] ||= []) << e; h} - sequence_elements.each_with_index do |element, index| - if element.label_name - repetitions = elements_by_name[element.label_name.to_s] - label_name = element.label_name + (repetitions.size > 1 ? (repetitions.index(element)+1).to_s : "") - builder.method_declaration(label_name) do - builder << "elements[#{index}]" - end - builder.newline unless index == sequence_elements.size - 1 - end - end - end - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/terminal.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/terminal.rb deleted file mode 100644 index e624115d..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/terminal.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Treetop - module Compiler - class Terminal < AtomicExpression - def compile(address, builder, parent_expression = nil) - super - string_length = eval(text_value).length - - builder.if__ "has_terminal?(#{text_value}, false, index)" do - assign_result "instantiate_node(#{node_class_name},input, index...(index + #{string_length}))" - extend_result_with_inline_module - builder << "@index += #{string_length}" - end - builder.else_ do - builder << "terminal_parse_failure(#{text_value})" - assign_result 'nil' - end - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/transient_prefix.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/transient_prefix.rb deleted file mode 100644 index 4bd24981..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/transient_prefix.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Treetop - module Compiler - class TransientPrefix < ParsingExpression - def compile(address, builder, parent_expression) - parent_expression.prefixed_expression.compile(address, builder) - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/treetop_file.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/treetop_file.rb deleted file mode 100644 index ada97507..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/node_classes/treetop_file.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Treetop - module Compiler - class TreetopFile < Runtime::SyntaxNode - def compile - (elements.map {|elt| elt.compile}).join - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/ruby_builder.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/ruby_builder.rb deleted file mode 100644 index df37f069..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/compiler/ruby_builder.rb +++ /dev/null @@ -1,113 +0,0 @@ -module Treetop - module Compiler - class RubyBuilder - - attr_reader :level, :address_space, :ruby - - def initialize - @level = 0 - @address_space = LexicalAddressSpace.new - @ruby = "" - end - - def <<(ruby_line) - return if ruby_line.blank? - ruby << ruby_line.tabto(level) << "\n" - end - - def newline - ruby << "\n" - end - - def indented(depth = 2) - self.in(depth) - yield - self.out(depth) - end - - def class_declaration(name, &block) - self << "class #{name}" - indented(&block) - self << "end" - end - - def module_declaration(name, &block) - self << "module #{name}" - indented(&block) - self << "end" - end - - def method_declaration(name, &block) - self << "def #{name}" - indented(&block) - self << "end" - end - - def assign(left, right) - if left.instance_of? Array - self << "#{left.join(', ')} = #{right.join(', ')}" - else - self << "#{left} = #{right}" - end - end - - def extend(var, module_name) - self << "#{var}.extend(#{module_name})" - end - - def accumulate(left, right) - self << "#{left} << #{right}" - end - - def if__(condition, &block) - self << "if #{condition}" - indented(&block) - end - - def if_(condition, &block) - if__(condition, &block) - self << 'end' - end - - def else_(&block) - self << 'else' - indented(&block) - self << 'end' - end - - def loop(&block) - self << 'loop do' - indented(&block) - self << 'end' - end - - def break - self << 'break' - end - - def in(depth = 2) - @level += depth - self - end - - def out(depth = 2) - @level -= depth - self - end - - def next_address - address_space.next_address - end - - def reset_addresses - address_space.reset_addresses - end - - private - - def indent - " " * level - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions.rb deleted file mode 100755 index c271c7f9..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions.rb +++ /dev/null @@ -1,2 +0,0 @@ -dir = File.dirname(__FILE__) -require "#{dir}/ruby_extensions/string" \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions/string.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions/string.rb deleted file mode 100755 index da342120..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/ruby_extensions/string.rb +++ /dev/null @@ -1,42 +0,0 @@ -class String - def column_of(index) - return 1 if index == 0 - newline_index = rindex("\n", index - 1) - if newline_index - index - newline_index - else - index + 1 - end - end - - def line_of(index) - self[0...index].count("\n") + 1 - end - - unless method_defined?(:blank?) - def blank? - self == "" - end - end - - # The following methods are lifted from Facets 2.0.2 - def tabto(n) - if self =~ /^( *)\S/ - indent(n - $1.length) - else - self - end - end - - def indent(n) - if n >= 0 - gsub(/^/, ' ' * n) - else - gsub(/^ {0,#{-n}}/, "") - end - end - - def treetop_camelize - to_s.gsub(/\/(.?)/){ "::" + $1.upcase }.gsub(/(^|_)(.)/){ $2.upcase } - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime.rb deleted file mode 100644 index 38a84f4b..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime.rb +++ /dev/null @@ -1,5 +0,0 @@ -dir = File.dirname(__FILE__) -require "#{dir}/runtime/compiled_parser" -require "#{dir}/runtime/syntax_node" -require "#{dir}/runtime/terminal_parse_failure" -require "#{dir}/runtime/interval_skip_list" diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/compiled_parser.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/compiled_parser.rb deleted file mode 100644 index 9cfde4f4..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/compiled_parser.rb +++ /dev/null @@ -1,109 +0,0 @@ -module Treetop - module Runtime - class CompiledParser - include Treetop::Runtime - - attr_reader :input, :index, :max_terminal_failure_index - attr_writer :root - attr_accessor :consume_all_input - alias :consume_all_input? :consume_all_input - - def initialize - self.consume_all_input = true - end - - def parse(input, options = {}) - prepare_to_parse(input) - @index = options[:index] if options[:index] - result = send("_nt_#{root}") - return nil if (consume_all_input? && index != input.size) - return result - end - - def failure_index - max_terminal_failure_index - end - - def failure_line - @terminal_failures && input.line_of(failure_index) - end - - def failure_column - @terminal_failures && input.column_of(failure_index) - end - - def failure_reason - return nil unless (tf = terminal_failures) && tf.size > 0 - "Expected " + - (tf.size == 1 ? - tf[0].expected_string : - "one of #{tf.map{|f| f.expected_string}.uniq*', '}" - ) + - " at line #{failure_line}, column #{failure_column} (byte #{failure_index+1})" + - " after #{input[index...failure_index]}" - end - - def terminal_failures - @terminal_failures.map! {|tf_ary| TerminalParseFailure.new(*tf_ary) } - end - - - protected - - attr_reader :node_cache, :input_length - attr_writer :index - - def prepare_to_parse(input) - @input = input - @input_length = input.length - reset_index - @node_cache = Hash.new {|hash, key| hash[key] = Hash.new} - @regexps = {} - @terminal_failures = [] - @max_terminal_failure_index = 0 - end - - def reset_index - @index = 0 - end - - def parse_anything(node_class = SyntaxNode, inline_module = nil) - if index < input.length - result = instantiate_node(node_class,input, index...(index + 1)) - result.extend(inline_module) if inline_module - @index += 1 - result - else - terminal_parse_failure("any character") - end - end - - def instantiate_node(node_type,*args) - if node_type.respond_to? :new - node_type.new(*args) - else - SyntaxNode.new(*args).extend(node_type) - end - end - - def has_terminal?(terminal, regex, index) - if regex - rx = @regexps[terminal] ||= Regexp.new(terminal) - input.index(rx, index) == index - else - input[index, terminal.size] == terminal - end - end - - def terminal_parse_failure(expected_string) - return nil if index < max_terminal_failure_index - if index > max_terminal_failure_index - @max_terminal_failure_index = index - @terminal_failures = [] - end - @terminal_failures << [index, expected_string] - return nil - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list.rb deleted file mode 100644 index 8f34379d..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list.rb +++ /dev/null @@ -1,4 +0,0 @@ -dir = File.dirname(__FILE__) -require "#{dir}/interval_skip_list/interval_skip_list.rb" -require "#{dir}/interval_skip_list/head_node.rb" -require "#{dir}/interval_skip_list/node.rb" \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/head_node.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/head_node.rb deleted file mode 100644 index 7cb0bab8..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/head_node.rb +++ /dev/null @@ -1,15 +0,0 @@ -class IntervalSkipList - class HeadNode - attr_reader :height, :forward, :forward_markers - - def initialize(height) - @height = height - @forward = Array.new(height, nil) - @forward_markers = Array.new(height) {|i| []} - end - - def top_level - height - 1 - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb deleted file mode 100644 index 27b53e00..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb +++ /dev/null @@ -1,200 +0,0 @@ -class IntervalSkipList - attr_reader :probability - - def initialize - @head = HeadNode.new(max_height) - @ranges = {} - @probability = 0.5 - end - - def max_height - 3 - end - - def empty? - head.forward[0].nil? - end - - def expire(range, length_change) - expired_markers, first_node_after_range = overlapping(range) - expired_markers.each { |marker| delete(marker) } - first_node_after_range.propagate_length_change(length_change) - end - - def overlapping(range) - markers, first_node = containing_with_node(range.first) - - cur_node = first_node - begin - markers.concat(cur_node.forward_markers.flatten) - cur_node = cur_node.forward[0] - end while cur_node.key < range.last - - return markers.uniq, cur_node - end - - def containing(n) - containing_with_node(n).first - end - - def insert(range, marker) - ranges[marker] = range - first_node = insert_node(range.first) - first_node.endpoint_of.push(marker) - last_node = insert_node(range.last) - last_node.endpoint_of.push(marker) - - cur_node = first_node - cur_level = first_node.top_level - while next_node_at_level_inside_range?(cur_node, cur_level, range) - while can_ascend_from?(cur_node, cur_level) && next_node_at_level_inside_range?(cur_node, cur_level + 1, range) - cur_level += 1 - end - cur_node = mark_forward_path_at_level(cur_node, cur_level, marker) - end - - while node_inside_range?(cur_node, range) - while can_descend_from?(cur_level) && next_node_at_level_outside_range?(cur_node, cur_level, range) - cur_level -= 1 - end - cur_node = mark_forward_path_at_level(cur_node, cur_level, marker) - end - end - - def delete(marker) - range = ranges[marker] - path_to_first_node = make_path - first_node = find(range.first, path_to_first_node) - - cur_node = first_node - cur_level = first_node.top_level - while next_node_at_level_inside_range?(cur_node, cur_level, range) - while can_ascend_from?(cur_node, cur_level) && next_node_at_level_inside_range?(cur_node, cur_level + 1, range) - cur_level += 1 - end - cur_node = unmark_forward_path_at_level(cur_node, cur_level, marker) - end - - while node_inside_range?(cur_node, range) - while can_descend_from?(cur_level) && next_node_at_level_outside_range?(cur_node, cur_level, range) - cur_level -= 1 - end - cur_node = unmark_forward_path_at_level(cur_node, cur_level, marker) - end - last_node = cur_node - - first_node.endpoint_of.delete(marker) - if first_node.endpoint_of.empty? - first_node.delete(path_to_first_node) - end - - last_node.endpoint_of.delete(marker) - if last_node.endpoint_of.empty? - path_to_last_node = make_path - find(range.last, path_to_last_node) - last_node.delete(path_to_last_node) - end - end - - protected - attr_reader :head, :ranges - - def insert_node(key) - path = make_path - found_node = find(key, path) - if found_node && found_node.key == key - return found_node - else - return Node.new(key, next_node_height, path) - end - end - - def containing_with_node(n) - containing = [] - cur_node = head - (max_height - 1).downto(0) do |cur_level| - while (next_node = cur_node.forward[cur_level]) && next_node.key <= n - cur_node = next_node - if cur_node.key == n - return containing + (cur_node.markers - cur_node.endpoint_of), cur_node - end - end - containing.concat(cur_node.forward_markers[cur_level]) - end - - return containing, cur_node - end - - def delete_node(key) - path = make_path - found_node = find(key, path) - found_node.delete(path) if found_node.key == key - end - - def find(key, path) - cur_node = head - (max_height - 1).downto(0) do |cur_level| - while (next_node = cur_node.forward[cur_level]) && next_node.key < key - cur_node = next_node - end - path[cur_level] = cur_node - end - cur_node.forward[0] - end - - def make_path - Array.new(max_height, nil) - end - - def next_node_height - height = 1 - while rand < probability && height < max_height - height += 1 - end - height - end - - def can_ascend_from?(node, level) - level < node.top_level - end - - def can_descend_from?(level) - level > 0 - end - - def node_inside_range?(node, range) - node.key < range.last - end - - def next_node_at_level_inside_range?(node, level, range) - node.forward[level] && node.forward[level].key <= range.last - end - - def next_node_at_level_outside_range?(node, level, range) - (node.forward[level].nil? || node.forward[level].key > range.last) - end - - def mark_forward_path_at_level(node, level, marker) - node.forward_markers[level].push(marker) - next_node = node.forward[level] - next_node.markers.push(marker) - node = next_node - end - - def unmark_forward_path_at_level(node, level, marker) - node.forward_markers[level].delete(marker) - next_node = node.forward[level] - next_node.markers.delete(marker) - node = next_node - end - - def nodes - nodes = [] - cur_node = head.forward[0] - until cur_node.nil? - nodes << cur_node - cur_node = cur_node.forward[0] - end - nodes - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/node.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/node.rb deleted file mode 100644 index a53edb26..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/interval_skip_list/node.rb +++ /dev/null @@ -1,164 +0,0 @@ -class IntervalSkipList - class Node < HeadNode - attr_accessor :key - attr_reader :markers, :endpoint_of - - def initialize(key, height, path) - super(height) - @key = key - @markers = [] - @endpoint_of = [] - update_forward_pointers(path) - promote_markers(path) - end - - def all_forward_markers - markers.flatten - end - - def delete(path) - 0.upto(top_level) do |i| - path[i].forward[i] = forward[i] - end - demote_markers(path) - end - - def propagate_length_change(length_change) - cur_node = self - while cur_node do - cur_node.key += length_change - cur_node = cur_node.forward[0] - end - end - - protected - - def update_forward_pointers(path) - 0.upto(top_level) do |i| - forward[i] = path[i].forward[i] - path[i].forward[i] = self - end - end - - def promote_markers(path) - promoted = [] - new_promoted = [] - 0.upto(top_level) do |i| - incoming_markers = path[i].forward_markers[i] - markers.concat(incoming_markers) - - incoming_markers.each do |marker| - if can_be_promoted_higher?(marker, i) - new_promoted.push(marker) - forward[i].delete_marker_from_path(marker, i, forward[i+1]) - else - forward_markers[i].push(marker) - end - end - - promoted.each do |marker| - if can_be_promoted_higher?(marker, i) - new_promoted.push(marker) - forward[i].delete_marker_from_path(marker, i, forward[i+1]) - else - forward_markers[i].push(marker) - end - end - - promoted = new_promoted - new_promoted = [] - end - end - - - def can_be_promoted_higher?(marker, level) - level < top_level && forward[level + 1] && forward[level + 1].markers.include?(marker) - end - - def delete_marker_from_path(marker, level, terminus) - cur_node = self - until cur_node == terminus - cur_node.forward_markers[level].delete(marker) - cur_node.markers.delete(marker) - cur_node = cur_node.forward[level] - end - end - - def demote_markers(path) - demote_inbound_markers(path) - demote_outbound_markers(path) - end - - def demote_inbound_markers(path) - demoted = [] - new_demoted = [] - - top_level.downto(0) do |i| - incoming_markers = path[i].forward_markers[i].dup - incoming_markers.each do |marker| - unless forward_node_with_marker_at_or_above_level?(marker, i) - path[i].forward_markers[i].delete(marker) - new_demoted.push(marker) - end - end - - demoted.each do |marker| - path[i + 1].place_marker_on_inbound_path(marker, i, path[i]) - - if forward[i].markers.include?(marker) - path[i].forward_markers[i].push(marker) - else - new_demoted.push(marker) - end - end - - demoted = new_demoted - new_demoted = [] - end - end - - def demote_outbound_markers(path) - demoted = [] - new_demoted = [] - - top_level.downto(0) do |i| - forward_markers[i].each do |marker| - new_demoted.push(marker) unless path[i].forward_markers[i].include?(marker) - end - - demoted.each do |marker| - forward[i].place_marker_on_outbound_path(marker, i, forward[i + 1]) - new_demoted.push(marker) unless path[i].forward_markers[i].include?(marker) - end - - demoted = new_demoted - new_demoted = [] - end - end - - def forward_node_with_marker_at_or_above_level?(marker, level) - level.upto(top_level) do |i| - return true if forward[i].markers.include?(marker) - end - false - end - - def place_marker_on_outbound_path(marker, level, terminus) - cur_node = self - until cur_node == terminus - cur_node.forward_markers[level].push(marker) - cur_node.markers.push(marker) - cur_node = cur_node.forward[level] - end - end - - def place_marker_on_inbound_path(marker, level, terminus) - cur_node = self - until cur_node == terminus - cur_node.forward_markers[level].push(marker) - cur_node = cur_node.forward[level] - cur_node.markers.push(marker) - end - end - end -end \ No newline at end of file diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/syntax_node.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/syntax_node.rb deleted file mode 100644 index 9df471cc..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/syntax_node.rb +++ /dev/null @@ -1,114 +0,0 @@ -module Treetop - module Runtime - class SyntaxNode - attr_reader :input, :interval - attr_accessor :parent - attr_reader :dot_id - - @@dot_id_counter = 0 - - def initialize(input, interval, elements = nil) - @input = input - @interval = interval - @elements = elements - end - - def elements - return @elements if terminal? - # replace the character class placeholders in the sequence (lazy instantiation) - last_element = nil - @comprehensive_elements ||= @elements.map do |element| - if element == true - index = last_element ? last_element.interval.last : interval.first - element = SyntaxNode.new(input, index...(index + 1)) - end - element.parent = self - last_element = element - end - - @dot_id = @@dot_id_counter - @@dot_id_counter += 1 - - @comprehensive_elements - end - - def terminal? - @elements.nil? - end - - def nonterminal? - !terminal? - end - - def text_value - input[interval] - end - - def empty? - interval.first == interval.last && interval.exclude_end? - end - - def <=>(other) - self.interval.first <=> other.interval.first - end - - def extension_modules - local_extensions = - class < 0 - local_extensions - else - [] # There weren't any; must be a literal node - end - end - - def inspect(indent="") - em = extension_modules - interesting_methods = methods-[em.last ? em.last.methods : nil]-self.class.instance_methods - im = interesting_methods.size > 0 ? " (#{interesting_methods.join(",")})" : "" - tv = text_value - tv = "...#{tv[-20..-1]}" if tv.size > 20 - - indent + - self.class.to_s.sub(/.*:/,'') + - em.map{|m| "+"+m.to_s.sub(/.*:/,'')}*"" + - " offset=#{interval.first}" + - ", #{tv.inspect}" + - im + - (elements && elements.size > 0 ? - ":" + - (elements||[]).map{|e| - begin - "\n"+e.inspect(indent+" ") - rescue # Defend against inspect not taking a parameter - "\n"+indent+" "+e.inspect - end - }.join("") : - "" - ) - end - - def write_dot(io) - io.puts "node#{dot_id} [label=\"#{text_value}\"];" - if nonterminal? then - elements.each do - |x| - io.puts "node#{dot_id} -> node#{x.dot_id};" - x.write_dot(io) - end - end - end - - def write_dot_file(fname) - File.open(fname + ".dot","w") do - |file| - file.puts "digraph G {" - write_dot(file) - file.puts "}" - end - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure.rb deleted file mode 100644 index b87bdbb1..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure.rb +++ /dev/null @@ -1,16 +0,0 @@ -module Treetop - module Runtime - class TerminalParseFailure - attr_reader :index, :expected_string - - def initialize(index, expected_string) - @index = index - @expected_string = expected_string - end - - def to_s - "String matching #{expected_string} expected." - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure_debug.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure_debug.rb deleted file mode 100644 index 3b52ccaa..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_parse_failure_debug.rb +++ /dev/null @@ -1,21 +0,0 @@ -module Treetop - module Runtime - class TerminalParseFailure - attr_reader :index - - def initialize(index, expected_string) - @index = index - @caller = caller - @expected_string = expected_string - end - - def expected_string - "#{@expected_string} from #{@caller.map{|s| s.sub(/\A.*:([0-9]+):in `([^']*)'.*/,'\2:\1')}*" from "}\n\t" - end - - def to_s - "String matching #{expected_string} expected." - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_syntax_node.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_syntax_node.rb deleted file mode 100644 index 06c68161..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/runtime/terminal_syntax_node.rb +++ /dev/null @@ -1,17 +0,0 @@ -module Treetop - module Runtime - class TerminalSyntaxNode < SyntaxNode - - def initialize(input, interval) - super(input, interval, []) - end - - def inspect(indent="") - indent+ - self.class.to_s.sub(/.*:/,'') + - " offset=#{interval.first}" + - " #{text_value.inspect}" - end - end - end -end diff --git a/vendor/gems/gems/treetop-1.4.2/lib/treetop/version.rb b/vendor/gems/gems/treetop-1.4.2/lib/treetop/version.rb deleted file mode 100644 index d033fff3..00000000 --- a/vendor/gems/gems/treetop-1.4.2/lib/treetop/version.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Treetop #:nodoc: - module VERSION #:nodoc: - MAJOR = 1 - MINOR = 4 - TINY = 2 - - STRING = [MAJOR, MINOR, TINY].join('.') - end -end diff --git a/vendor/gems/specifications/builder-2.1.2.gemspec b/vendor/gems/specifications/builder-2.1.2.gemspec deleted file mode 100644 index e98a7905..00000000 --- a/vendor/gems/specifications/builder-2.1.2.gemspec +++ /dev/null @@ -1,33 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{builder} - s.version = "2.1.2" - - s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version= - s.authors = ["Jim Weirich"] - s.autorequire = %q{builder} - s.cert_chain = nil - s.date = %q{2007-06-14} - s.description = %q{Builder provides a number of builder objects that make creating structured data simple to do. Currently the following builder objects are supported: * XML Markup * XML Events} - s.email = %q{jim@weirichhouse.org} - s.extra_rdoc_files = ["CHANGES", "Rakefile", "README", "doc/releases/builder-1.2.4.rdoc", "doc/releases/builder-2.0.0.rdoc", "doc/releases/builder-2.1.1.rdoc"] - s.files = ["lib/blankslate.rb", "lib/builder.rb", "lib/builder/blankslate.rb", "lib/builder/xchar.rb", "lib/builder/xmlbase.rb", "lib/builder/xmlevents.rb", "lib/builder/xmlmarkup.rb", "test/performance.rb", "test/preload.rb", "test/test_xchar.rb", "test/testblankslate.rb", "test/testeventbuilder.rb", "test/testmarkupbuilder.rb", "scripts/publish.rb", "CHANGES", "Rakefile", "README", "doc/releases/builder-1.2.4.rdoc", "doc/releases/builder-2.0.0.rdoc", "doc/releases/builder-2.1.1.rdoc"] - s.homepage = %q{http://onestepback.org} - s.rdoc_options = ["--title", "Builder -- Easy XML Building", "--main", "README", "--line-numbers"] - s.require_paths = ["lib"] - s.required_ruby_version = Gem::Requirement.new("> 0.0.0") - s.rubygems_version = %q{1.3.5} - s.summary = %q{Builders for MarkUp.} - s.test_files = ["test/test_xchar.rb", "test/testblankslate.rb", "test/testeventbuilder.rb", "test/testmarkupbuilder.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 1 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/cucumber-0.4.4.gemspec b/vendor/gems/specifications/cucumber-0.4.4.gemspec deleted file mode 100644 index 09f50ce6..00000000 --- a/vendor/gems/specifications/cucumber-0.4.4.gemspec +++ /dev/null @@ -1,72 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{cucumber} - s.version = "0.4.4" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Aslak Hellesøy"] - s.date = %q{2009-11-12} - s.default_executable = %q{cucumber} - s.description = %q{A BDD tool written in Ruby} - s.email = %q{cukes@googlegroups.com} - s.executables = ["cucumber"] - s.extra_rdoc_files = ["LICENSE", "README.rdoc"] - s.files = [".gitattributes", ".gitignore", "History.txt", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "VERSION.yml", "bin/cucumber", "cucumber.gemspec", "cucumber.yml", "examples/dos_line_endings/Rakefile", "examples/dos_line_endings/features/dos_line_endings.feature", "examples/i18n/README.textile", "examples/i18n/Rakefile", "examples/i18n/ar/Rakefile", "examples/i18n/ar/features/addition.feature", "examples/i18n/ar/features/step_definitons/calculator_steps.rb", "examples/i18n/ar/lib/calculator.rb", "examples/i18n/bg/Rakefile", "examples/i18n/bg/features/addition.feature", "examples/i18n/bg/features/consecutive_calculations.feature", "examples/i18n/bg/features/division.feature", "examples/i18n/bg/features/step_definitons/calculator_steps.rb", "examples/i18n/bg/features/support/env.rb", "examples/i18n/bg/features/support/world.rb", "examples/i18n/bg/lib/calculator.rb", "examples/i18n/cat/Rakefile", "examples/i18n/cat/features/step_definitons/calculator_steps.rb", "examples/i18n/cat/features/suma.feature", "examples/i18n/cat/lib/calculadora.rb", "examples/i18n/da/Rakefile", "examples/i18n/da/features/sammenlaegning.feature", "examples/i18n/da/features/step_definitons/lommeregner_steps.rb", "examples/i18n/da/lib/lommeregner.rb", "examples/i18n/de/.gitignore", "examples/i18n/de/Rakefile", "examples/i18n/de/features/addition.feature", "examples/i18n/de/features/division.feature", "examples/i18n/de/features/step_definitons/calculator_steps.rb", "examples/i18n/de/lib/calculator.rb", "examples/i18n/en-lol/Rakefile", "examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb", "examples/i18n/en-lol/features/stuffing.feature", "examples/i18n/en-lol/features/support/env.rb", "examples/i18n/en-lol/lib/basket.rb", "examples/i18n/en-lol/lib/belly.rb", "examples/i18n/en/.gitignore", "examples/i18n/en/Rakefile", "examples/i18n/en/features/addition.feature", "examples/i18n/en/features/division.feature", "examples/i18n/en/features/step_definitons/calculator_steps.rb", "examples/i18n/en/lib/calculator.rb", "examples/i18n/es/Rakefile", "examples/i18n/es/features/adicion.feature", "examples/i18n/es/features/step_definitons/calculador_steps.rb", "examples/i18n/es/lib/calculador.rb", "examples/i18n/et/Rakefile", "examples/i18n/et/features/jagamine.feature", "examples/i18n/et/features/liitmine.feature", "examples/i18n/et/features/step_definitions/kalkulaator_steps.rb", "examples/i18n/et/lib/kalkulaator.rb", "examples/i18n/fi/.gitignore", "examples/i18n/fi/Rakefile", "examples/i18n/fi/features/jakolasku.feature", "examples/i18n/fi/features/step_definitons/laskin_steps.rb", "examples/i18n/fi/features/yhteenlasku.feature", "examples/i18n/fi/lib/laskin.rb", "examples/i18n/fr/Rakefile", "examples/i18n/fr/features/addition.feature", "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb", "examples/i18n/fr/lib/calculatrice.rb", "examples/i18n/he/Rakefile", "examples/i18n/he/features/addition.feature", "examples/i18n/he/features/division.feature", "examples/i18n/he/features/step_definitons/calculator_steps.rb", "examples/i18n/he/lib/calculator.rb", "examples/i18n/hu/.gitignore", "examples/i18n/hu/Rakefile", "examples/i18n/hu/features/addition.feature", "examples/i18n/hu/features/division.feature", "examples/i18n/hu/features/step_definitons/calculator_steps.rb", "examples/i18n/hu/lib/calculator.rb", "examples/i18n/id/.gitignore", "examples/i18n/id/Rakefile", "examples/i18n/id/features/addition.feature", "examples/i18n/id/features/division.feature", "examples/i18n/id/features/step_definitons/calculator_steps.rb", "examples/i18n/id/lib/calculator.rb", "examples/i18n/it/Rakefile", "examples/i18n/it/features/somma.feature", "examples/i18n/it/features/step_definitons/calcolatrice_steps.rb", "examples/i18n/it/lib/calcolatrice.rb", "examples/i18n/ja/.gitignore", "examples/i18n/ja/Rakefile", "examples/i18n/ja/features/addition.feature", "examples/i18n/ja/features/division.feature", "examples/i18n/ja/features/step_definitons/calculator_steps.rb", "examples/i18n/ja/lib/calculator.rb", "examples/i18n/ko/.gitignore", "examples/i18n/ko/Rakefile", "examples/i18n/ko/features/addition.feature", "examples/i18n/ko/features/division.feature", "examples/i18n/ko/features/step_definitons/calculator_steps.rb", "examples/i18n/ko/lib/calculator.rb", "examples/i18n/lt/.gitignore", "examples/i18n/lt/Rakefile", "examples/i18n/lt/features/addition.feature", "examples/i18n/lt/features/division.feature", "examples/i18n/lt/features/step_definitons/calculator_steps.rb", "examples/i18n/lt/lib/calculator.rb", "examples/i18n/lv/Rakefile", "examples/i18n/lv/features/addition.feature", "examples/i18n/lv/features/division.feature", "examples/i18n/lv/features/step_definitons/calculator_steps.rb", "examples/i18n/lv/lib/calculator.rb", "examples/i18n/no/Rakefile", "examples/i18n/no/features/step_definitons/kalkulator_steps.rb", "examples/i18n/no/features/summering.feature", "examples/i18n/no/features/support/env.rb", "examples/i18n/no/lib/kalkulator.rb", "examples/i18n/pl/.gitignore", "examples/i18n/pl/Rakefile", "examples/i18n/pl/features/addition.feature", "examples/i18n/pl/features/division.feature", "examples/i18n/pl/features/step_definitons/calculator_steps.rb", "examples/i18n/pl/features/support/env.rb", "examples/i18n/pl/lib/calculator.rb", "examples/i18n/pt/Rakefile", "examples/i18n/pt/features/adicao.feature", "examples/i18n/pt/features/step_definitions/calculadora_steps.rb", "examples/i18n/pt/features/support/env.rb", "examples/i18n/pt/lib/calculadora.rb", "examples/i18n/ro/Rakefile", "examples/i18n/ro/features/step_definitons/calculator_steps.rb", "examples/i18n/ro/features/suma.feature", "examples/i18n/ro/lib/calculator.rb", "examples/i18n/ru/Rakefile", "examples/i18n/ru/features/addition.feature", "examples/i18n/ru/features/consecutive_calculations.feature", "examples/i18n/ru/features/division.feature", "examples/i18n/ru/features/step_definitons/calculator_steps.rb", "examples/i18n/ru/features/support/env.rb", "examples/i18n/ru/features/support/world.rb", "examples/i18n/ru/lib/calculator.rb", "examples/i18n/se/Rakefile", "examples/i18n/se/features/step_definitons/kalkulator_steps.rb", "examples/i18n/se/features/summering.feature", "examples/i18n/se/lib/kalkulator.rb", "examples/i18n/sk/.gitignore", "examples/i18n/sk/Rakefile", "examples/i18n/sk/features/addition.feature", "examples/i18n/sk/features/division.feature", "examples/i18n/sk/features/step_definitons/calculator_steps.rb", "examples/i18n/sk/lib/calculator.rb", "examples/i18n/sr-latn/Rakefile", "examples/i18n/sr-latn/features/sabiranje.feature", "examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb", "examples/i18n/sr-latn/lib/calculator.rb", "examples/i18n/sr/Rakefile", "examples/i18n/sr/features/sabiranje.feature", "examples/i18n/sr/features/step_definitons/calculator_steps.rb", "examples/i18n/sr/lib/calculator.rb", "examples/i18n/tr/.gitignore", "examples/i18n/tr/Rakefile", "examples/i18n/tr/features/bolme.feature", "examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb", "examples/i18n/tr/features/toplama.feature", "examples/i18n/tr/lib/hesap_makinesi.rb", "examples/i18n/uz/Rakefile", "examples/i18n/uz/features/addition.feature", "examples/i18n/uz/features/consecutive_calculations.feature", "examples/i18n/uz/features/division.feature", "examples/i18n/uz/features/step_definitons/calculator_steps.rb", "examples/i18n/uz/features/support/env.rb", "examples/i18n/uz/features/support/world.rb", "examples/i18n/uz/lib/calculator.rb", "examples/i18n/zh-CN/Rakefile", "examples/i18n/zh-CN/features/addition.feature", "examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb", "examples/i18n/zh-CN/lib/calculator.rb", "examples/i18n/zh-TW/.gitignore", "examples/i18n/zh-TW/Rakefile", "examples/i18n/zh-TW/features/addition.feature", "examples/i18n/zh-TW/features/division.feature", "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb", "examples/i18n/zh-TW/lib/calculator.rb", "examples/junit/features/one_passing_one_failing.feature", "examples/junit/features/pending.feature", "examples/junit/features/step_definitions/steps.rb", "examples/python/features/fibonacci.feature", "examples/python/features/step_definitions/fib_steps.py", "examples/python/lib/.gitignore", "examples/python/lib/fib.py", "examples/ramaze/README.textile", "examples/ramaze/Rakefile", "examples/ramaze/app.rb", "examples/ramaze/features/add.feature", "examples/ramaze/features/step_definitions/add_steps.rb", "examples/ramaze/features/support/env.rb", "examples/ramaze/layout/default.html.erb", "examples/ramaze/view/index.html.erb", "examples/ruby2python/features/fibonacci.feature", "examples/ruby2python/features/step_definitions/fib_steps.rb", "examples/ruby2python/features/support/env.rb", "examples/ruby2python/lib/.gitignore", "examples/ruby2python/lib/fib.py", "examples/selenium/Rakefile", "examples/selenium/features/search.feature", "examples/selenium/features/step_definitons/search_steps.rb", "examples/selenium/features/support/env.rb", "examples/selenium_webrat/Rakefile", "examples/selenium_webrat/config.ru", "examples/selenium_webrat/features/search.feature", "examples/selenium_webrat/features/step_definitons/search_steps.rb", "examples/selenium_webrat/features/support/env.rb", "examples/self_test/.gitignore", "examples/self_test/README.textile", "examples/self_test/Rakefile", "examples/self_test/features/background/background_tagged_before_on_outline.feature", "examples/self_test/features/background/background_with_name.feature", "examples/self_test/features/background/failing_background.feature", "examples/self_test/features/background/failing_background_after_success.feature", "examples/self_test/features/background/multiline_args_background.feature", "examples/self_test/features/background/passing_background.feature", "examples/self_test/features/background/pending_background.feature", "examples/self_test/features/background/scenario_outline_failing_background.feature", "examples/self_test/features/background/scenario_outline_passing_background.feature", "examples/self_test/features/call_undefined_step_from_step_def.feature", "examples/self_test/features/failing_expectation.feature", "examples/self_test/features/lots_of_undefined.feature", "examples/self_test/features/multiline_name.feature", "examples/self_test/features/outline_sample.feature", "examples/self_test/features/sample.feature", "examples/self_test/features/search_sample.feature", "examples/self_test/features/step_definitions/sample_steps.rb", "examples/self_test/features/support/env.rb", "examples/self_test/features/tags_sample.feature", "examples/self_test/features/tons_of_cukes.feature", "examples/self_test/features/undefined_multiline_args.feature", "examples/self_test/list-of-features.txt", "examples/sinatra/README.textile", "examples/sinatra/Rakefile", "examples/sinatra/app.rb", "examples/sinatra/features/add.feature", "examples/sinatra/features/step_definitions/add_steps.rb", "examples/sinatra/features/support/env.rb", "examples/sinatra/views/add.erb", "examples/sinatra/views/layout.erb", "examples/steps_library/features/step_definitions/steps_lib1.rb", "examples/steps_library/features/step_definitions/steps_lib2.rb", "examples/test_unit/Rakefile", "examples/test_unit/features/step_definitions/test_unit_steps.rb", "examples/test_unit/features/test_unit.feature", "examples/tickets/Rakefile", "examples/tickets/features.html", "examples/tickets/features/172.feature", "examples/tickets/features/177/1.feature", "examples/tickets/features/177/2.feature", "examples/tickets/features/177/3.feature", "examples/tickets/features/180.feature", "examples/tickets/features/229/tagged_hooks.feature", "examples/tickets/features/229/tagged_hooks.rb", "examples/tickets/features/236.feature", "examples/tickets/features/241.feature", "examples/tickets/features/246.feature", "examples/tickets/features/248.feature", "examples/tickets/features/270/back.feature", "examples/tickets/features/270/back.steps.rb", "examples/tickets/features/272/hooks.feature", "examples/tickets/features/272/hooks_steps.rb", "examples/tickets/features/279/py_string_indent.feature", "examples/tickets/features/279/py_string_indent.steps.rb", "examples/tickets/features/279/wrong.feature_", "examples/tickets/features/301/filter_background_tagged_hooks.feature", "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb", "examples/tickets/features/306/only_background.feature", "examples/tickets/features/lib/eatting_machine.rb", "examples/tickets/features/lib/pantry.rb", "examples/tickets/features/scenario_outline.feature", "examples/tickets/features/step_definitons/246_steps.rb", "examples/tickets/features/step_definitons/248_steps.rb", "examples/tickets/features/step_definitons/scenario_outline_steps.rb", "examples/tickets/features/step_definitons/tickets_steps.rb", "examples/tickets/features/table_diffing.feature", "examples/tickets/features/tickets.feature", "examples/watir/README.textile", "examples/watir/Rakefile", "examples/watir/features/search.feature", "examples/watir/features/step_definitions/search_steps.rb", "examples/watir/features/support/env.rb", "examples/watir/features/support/screenshots.rb", "examples/webrat/features/search.feature", "examples/webrat/features/step_definitions/kvasir_steps.rb", "examples/webrat/features/support/env.rb", "features/announce.feature", "features/background.feature", "features/bug_371.feature", "features/bug_464.feature", "features/bug_475.feature", "features/call_many_steps.feature", "features/cucumber_cli.feature", "features/cucumber_cli_diff_disabled.feature", "features/cucumber_cli_outlines.feature", "features/custom_formatter.feature", "features/default_snippets.feature", "features/drb_server_integration.feature", "features/exception_in_after_block.feature", "features/exception_in_after_step_block.feature", "features/exception_in_before_block.feature", "features/exclude_files.feature", "features/expand.feature", "features/html_formatter.feature", "features/html_formatter/a.html", "features/junit_formatter.feature", "features/language_from_header.feature", "features/language_help.feature", "features/listener_debugger_formatter.feature", "features/multiline_names.feature", "features/negative_tagged_hooks.feature", "features/post_configuration_hook.feature", "features/profiles.feature", "features/rake_task.feature", "features/report_called_undefined_steps.feature", "features/simplest.feature", "features/snippet.feature", "features/step_definitions/cucumber_steps.rb", "features/step_definitions/extra_steps.rb", "features/step_definitions/simplest_steps.rb", "features/step_definitions/wire_steps.rb", "features/support/env.rb", "features/support/env.rb.simplest", "features/support/fake_wire_server.rb", "features/table_diffing.feature", "features/table_mapping.feature", "features/tag_logic.feature", "features/transform.feature", "features/unicode_table.feature", "features/usage_and_stepdefs_formatter.feature", "features/wire_protocol.feature", "features/work_in_progress.feature", "gem_tasks/contributors.rake", "gem_tasks/environment.rake", "gem_tasks/features.rake", "gem_tasks/fix_cr_lf.rake", "gem_tasks/flog.rake", "gem_tasks/rspec.rake", "gem_tasks/sass.rake", "gem_tasks/sdoc.rake", "lib/README.rdoc", "lib/autotest/cucumber.rb", "lib/autotest/cucumber_mixin.rb", "lib/autotest/cucumber_rails.rb", "lib/autotest/cucumber_rails_rspec.rb", "lib/autotest/cucumber_rspec.rb", "lib/autotest/discover.rb", "lib/cucumber.rb", "lib/cucumber/ast.rb", "lib/cucumber/ast/background.rb", "lib/cucumber/ast/comment.rb", "lib/cucumber/ast/examples.rb", "lib/cucumber/ast/feature.rb", "lib/cucumber/ast/feature_element.rb", "lib/cucumber/ast/features.rb", "lib/cucumber/ast/outline_table.rb", "lib/cucumber/ast/py_string.rb", "lib/cucumber/ast/scenario.rb", "lib/cucumber/ast/scenario_outline.rb", "lib/cucumber/ast/step.rb", "lib/cucumber/ast/step_collection.rb", "lib/cucumber/ast/step_invocation.rb", "lib/cucumber/ast/table.rb", "lib/cucumber/ast/tags.rb", "lib/cucumber/ast/tree_walker.rb", "lib/cucumber/ast/visitor.rb", "lib/cucumber/broadcaster.rb", "lib/cucumber/cli/configuration.rb", "lib/cucumber/cli/drb_client.rb", "lib/cucumber/cli/language_help_formatter.rb", "lib/cucumber/cli/main.rb", "lib/cucumber/cli/options.rb", "lib/cucumber/cli/profile_loader.rb", "lib/cucumber/constantize.rb", "lib/cucumber/core_ext/instance_exec.rb", "lib/cucumber/core_ext/proc.rb", "lib/cucumber/core_ext/string.rb", "lib/cucumber/feature_file.rb", "lib/cucumber/filter.rb", "lib/cucumber/formatter/ansicolor.rb", "lib/cucumber/formatter/color_io.rb", "lib/cucumber/formatter/console.rb", "lib/cucumber/formatter/cucumber.css", "lib/cucumber/formatter/cucumber.sass", "lib/cucumber/formatter/debug.rb", "lib/cucumber/formatter/duration.rb", "lib/cucumber/formatter/html.rb", "lib/cucumber/formatter/junit.rb", "lib/cucumber/formatter/ordered_xml_markup.rb", "lib/cucumber/formatter/pdf.rb", "lib/cucumber/formatter/pretty.rb", "lib/cucumber/formatter/progress.rb", "lib/cucumber/formatter/rerun.rb", "lib/cucumber/formatter/stepdefs.rb", "lib/cucumber/formatter/steps.rb", "lib/cucumber/formatter/summary.rb", "lib/cucumber/formatter/tag_cloud.rb", "lib/cucumber/formatter/unicode.rb", "lib/cucumber/formatter/usage.rb", "lib/cucumber/language_support.rb", "lib/cucumber/language_support/language_methods.rb", "lib/cucumber/languages.yml", "lib/cucumber/parser.rb", "lib/cucumber/parser/common.rb", "lib/cucumber/parser/common.tt", "lib/cucumber/parser/feature.rb", "lib/cucumber/parser/feature.tt", "lib/cucumber/parser/i18n.tt", "lib/cucumber/parser/natural_language.rb", "lib/cucumber/parser/py_string.rb", "lib/cucumber/parser/py_string.tt", "lib/cucumber/parser/table.rb", "lib/cucumber/parser/table.tt", "lib/cucumber/parser/treetop_ext.rb", "lib/cucumber/platform.rb", "lib/cucumber/py_support/py_dsl.py", "lib/cucumber/py_support/py_language.py", "lib/cucumber/py_support/py_language.rb", "lib/cucumber/rails/action_controller.rb", "lib/cucumber/rails/active_record.rb", "lib/cucumber/rails/rspec.rb", "lib/cucumber/rails/test_unit.rb", "lib/cucumber/rails/world.rb", "lib/cucumber/rake/task.rb", "lib/cucumber/rb_support/rb_dsl.rb", "lib/cucumber/rb_support/rb_hook.rb", "lib/cucumber/rb_support/rb_language.rb", "lib/cucumber/rb_support/rb_step_definition.rb", "lib/cucumber/rb_support/rb_transform.rb", "lib/cucumber/rb_support/rb_world.rb", "lib/cucumber/rb_support/regexp_argument_matcher.rb", "lib/cucumber/rspec_neuter.rb", "lib/cucumber/step_argument.rb", "lib/cucumber/step_definition_light.rb", "lib/cucumber/step_match.rb", "lib/cucumber/step_mother.rb", "lib/cucumber/webrat/element_locator.rb", "lib/cucumber/webrat/table_locator.rb", "lib/cucumber/wire_support/connection.rb", "lib/cucumber/wire_support/request_handler.rb", "lib/cucumber/wire_support/wire_exception.rb", "lib/cucumber/wire_support/wire_language.rb", "lib/cucumber/wire_support/wire_packet.rb", "lib/cucumber/wire_support/wire_protocol.rb", "lib/cucumber/wire_support/wire_step_definition.rb", "rails_generators/cucumber/USAGE", "rails_generators/cucumber/cucumber_generator.rb", "rails_generators/cucumber/templates/cucumber", "rails_generators/cucumber/templates/cucumber.rake", "rails_generators/cucumber/templates/cucumber_environment.rb", "rails_generators/cucumber/templates/env.rb", "rails_generators/cucumber/templates/paths.rb", "rails_generators/cucumber/templates/spork_env.rb", "rails_generators/cucumber/templates/version_check.rb", "rails_generators/cucumber/templates/webrat_steps.rb", "rails_generators/feature/USAGE", "rails_generators/feature/feature_generator.rb", "rails_generators/feature/templates/feature.erb", "rails_generators/feature/templates/steps.erb", "spec/cucumber/ast/background_spec.rb", "spec/cucumber/ast/feature_element_spec.rb", "spec/cucumber/ast/feature_factory.rb", "spec/cucumber/ast/feature_spec.rb", "spec/cucumber/ast/outline_table_spec.rb", "spec/cucumber/ast/py_string_spec.rb", "spec/cucumber/ast/scenario_outline_spec.rb", "spec/cucumber/ast/scenario_spec.rb", "spec/cucumber/ast/step_collection_spec.rb", "spec/cucumber/ast/step_spec.rb", "spec/cucumber/ast/table_spec.rb", "spec/cucumber/ast/tags_spec.rb", "spec/cucumber/ast/tree_walker_spec.rb", "spec/cucumber/broadcaster_spec.rb", "spec/cucumber/cli/configuration_spec.rb", "spec/cucumber/cli/drb_client_spec.rb", "spec/cucumber/cli/main_spec.rb", "spec/cucumber/cli/options_spec.rb", "spec/cucumber/cli/profile_loader_spec.rb", "spec/cucumber/core_ext/proc_spec.rb", "spec/cucumber/formatter/ansicolor_spec.rb", "spec/cucumber/formatter/color_io_spec.rb", "spec/cucumber/formatter/console_spec.rb", "spec/cucumber/formatter/duration_spec.rb", "spec/cucumber/formatter/html_spec.rb", "spec/cucumber/formatter/junit_spec.rb", "spec/cucumber/formatter/progress_spec.rb", "spec/cucumber/formatter/spec_helper.rb", "spec/cucumber/parser/feature_parser_spec.rb", "spec/cucumber/parser/table_parser_spec.rb", "spec/cucumber/rb_support/rb_step_definition_spec.rb", "spec/cucumber/rb_support/regexp_argument_matcher_spec.rb", "spec/cucumber/sell_cucumbers.feature", "spec/cucumber/step_match_spec.rb", "spec/cucumber/step_mother_spec.rb", "spec/cucumber/treetop_parser/empty_feature.feature", "spec/cucumber/treetop_parser/empty_scenario.feature", "spec/cucumber/treetop_parser/empty_scenario_outline.feature", "spec/cucumber/treetop_parser/fit_scenario.feature", "spec/cucumber/treetop_parser/given_scenario.feature", "spec/cucumber/treetop_parser/invalid_scenario_outlines.feature", "spec/cucumber/treetop_parser/multiline_steps.feature", "spec/cucumber/treetop_parser/multiple_tables.feature", "spec/cucumber/treetop_parser/scenario_outline.feature", "spec/cucumber/treetop_parser/spaces.feature", "spec/cucumber/treetop_parser/test_dos.feature", "spec/cucumber/treetop_parser/with_comments.feature", "spec/cucumber/treetop_parser/with_tags.feature", "spec/cucumber/wire_support/wire_language_spec.rb", "spec/cucumber/wire_support/wire_packet_spec.rb", "spec/cucumber/world/pending_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "examples/self_test/tmp/features/step_definitions/steps.rb"] - s.homepage = %q{http://cukes.info} - s.post_install_message = %q{ -(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) - - (::) U P G R A D I N G (::) - -Thank you for installing cucumber-0.4.4. -Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading -for important information about this release. Happy cuking! - -(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) - -} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{rspec} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Behaviour Driven Development with elegance and joy} - s.test_files = ["spec/cucumber/ast/background_spec.rb", "spec/cucumber/ast/feature_element_spec.rb", "spec/cucumber/ast/feature_factory.rb", "spec/cucumber/ast/feature_spec.rb", "spec/cucumber/ast/outline_table_spec.rb", "spec/cucumber/ast/py_string_spec.rb", "spec/cucumber/ast/scenario_outline_spec.rb", "spec/cucumber/ast/scenario_spec.rb", "spec/cucumber/ast/step_collection_spec.rb", "spec/cucumber/ast/step_spec.rb", "spec/cucumber/ast/table_spec.rb", "spec/cucumber/ast/tags_spec.rb", "spec/cucumber/ast/tree_walker_spec.rb", "spec/cucumber/broadcaster_spec.rb", "spec/cucumber/cli/configuration_spec.rb", "spec/cucumber/cli/drb_client_spec.rb", "spec/cucumber/cli/main_spec.rb", "spec/cucumber/cli/options_spec.rb", "spec/cucumber/cli/profile_loader_spec.rb", "spec/cucumber/core_ext/proc_spec.rb", "spec/cucumber/formatter/ansicolor_spec.rb", "spec/cucumber/formatter/color_io_spec.rb", "spec/cucumber/formatter/console_spec.rb", "spec/cucumber/formatter/duration_spec.rb", "spec/cucumber/formatter/html_spec.rb", "spec/cucumber/formatter/junit_spec.rb", "spec/cucumber/formatter/progress_spec.rb", "spec/cucumber/formatter/spec_helper.rb", "spec/cucumber/parser/feature_parser_spec.rb", "spec/cucumber/parser/table_parser_spec.rb", "spec/cucumber/rb_support/rb_step_definition_spec.rb", "spec/cucumber/rb_support/regexp_argument_matcher_spec.rb", "spec/cucumber/step_match_spec.rb", "spec/cucumber/step_mother_spec.rb", "spec/cucumber/wire_support/wire_language_spec.rb", "spec/cucumber/wire_support/wire_packet_spec.rb", "spec/cucumber/world/pending_spec.rb", "spec/spec_helper.rb", "examples/i18n/ar/features/step_definitons/calculator_steps.rb", "examples/i18n/ar/lib/calculator.rb", "examples/i18n/bg/features/step_definitons/calculator_steps.rb", "examples/i18n/bg/features/support/env.rb", "examples/i18n/bg/features/support/world.rb", "examples/i18n/bg/lib/calculator.rb", "examples/i18n/cat/features/step_definitons/calculator_steps.rb", "examples/i18n/cat/lib/calculadora.rb", "examples/i18n/da/features/step_definitons/lommeregner_steps.rb", "examples/i18n/da/lib/lommeregner.rb", "examples/i18n/de/features/step_definitons/calculator_steps.rb", "examples/i18n/de/lib/calculator.rb", "examples/i18n/en/features/step_definitons/calculator_steps.rb", "examples/i18n/en/lib/calculator.rb", "examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb", "examples/i18n/en-lol/features/support/env.rb", "examples/i18n/en-lol/lib/basket.rb", "examples/i18n/en-lol/lib/belly.rb", "examples/i18n/es/features/step_definitons/calculador_steps.rb", "examples/i18n/es/lib/calculador.rb", "examples/i18n/et/features/step_definitions/kalkulaator_steps.rb", "examples/i18n/et/lib/kalkulaator.rb", "examples/i18n/fi/features/step_definitons/laskin_steps.rb", "examples/i18n/fi/lib/laskin.rb", "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb", "examples/i18n/fr/lib/calculatrice.rb", "examples/i18n/he/features/step_definitons/calculator_steps.rb", "examples/i18n/he/lib/calculator.rb", "examples/i18n/hu/features/step_definitons/calculator_steps.rb", "examples/i18n/hu/lib/calculator.rb", "examples/i18n/id/features/step_definitons/calculator_steps.rb", "examples/i18n/id/lib/calculator.rb", "examples/i18n/it/features/step_definitons/calcolatrice_steps.rb", "examples/i18n/it/lib/calcolatrice.rb", "examples/i18n/ja/features/step_definitons/calculator_steps.rb", "examples/i18n/ja/lib/calculator.rb", "examples/i18n/ko/features/step_definitons/calculator_steps.rb", "examples/i18n/ko/lib/calculator.rb", "examples/i18n/lt/features/step_definitons/calculator_steps.rb", "examples/i18n/lt/lib/calculator.rb", "examples/i18n/lv/features/step_definitons/calculator_steps.rb", "examples/i18n/lv/lib/calculator.rb", "examples/i18n/no/features/step_definitons/kalkulator_steps.rb", "examples/i18n/no/features/support/env.rb", "examples/i18n/no/lib/kalkulator.rb", "examples/i18n/pl/features/step_definitons/calculator_steps.rb", "examples/i18n/pl/features/support/env.rb", "examples/i18n/pl/lib/calculator.rb", "examples/i18n/pt/features/step_definitions/calculadora_steps.rb", "examples/i18n/pt/features/support/env.rb", "examples/i18n/pt/lib/calculadora.rb", "examples/i18n/ro/features/step_definitons/calculator_steps.rb", "examples/i18n/ro/lib/calculator.rb", "examples/i18n/ru/features/step_definitons/calculator_steps.rb", "examples/i18n/ru/features/support/env.rb", "examples/i18n/ru/features/support/world.rb", "examples/i18n/ru/lib/calculator.rb", "examples/i18n/se/features/step_definitons/kalkulator_steps.rb", "examples/i18n/se/lib/kalkulator.rb", "examples/i18n/sk/features/step_definitons/calculator_steps.rb", "examples/i18n/sk/lib/calculator.rb", "examples/i18n/sr/features/step_definitons/calculator_steps.rb", "examples/i18n/sr/lib/calculator.rb", "examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb", "examples/i18n/sr-latn/lib/calculator.rb", "examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb", "examples/i18n/tr/lib/hesap_makinesi.rb", "examples/i18n/uz/features/step_definitons/calculator_steps.rb", "examples/i18n/uz/features/support/env.rb", "examples/i18n/uz/features/support/world.rb", "examples/i18n/uz/lib/calculator.rb", "examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb", "examples/i18n/zh-CN/lib/calculator.rb", "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb", "examples/i18n/zh-TW/lib/calculator.rb", "examples/junit/features/step_definitions/steps.rb", "examples/ramaze/app.rb", "examples/ramaze/features/step_definitions/add_steps.rb", "examples/ramaze/features/support/env.rb", "examples/ruby2python/features/step_definitions/fib_steps.rb", "examples/ruby2python/features/support/env.rb", "examples/selenium/features/step_definitons/search_steps.rb", "examples/selenium/features/support/env.rb", "examples/selenium_webrat/features/step_definitons/search_steps.rb", "examples/selenium_webrat/features/support/env.rb", "examples/self_test/features/step_definitions/sample_steps.rb", "examples/self_test/features/support/env.rb", "examples/self_test/tmp/features/step_definitions/steps.rb", "examples/sinatra/app.rb", "examples/sinatra/features/step_definitions/add_steps.rb", "examples/sinatra/features/support/env.rb", "examples/steps_library/features/step_definitions/steps_lib1.rb", "examples/steps_library/features/step_definitions/steps_lib2.rb", "examples/test_unit/features/step_definitions/test_unit_steps.rb", "examples/tickets/features/229/tagged_hooks.rb", "examples/tickets/features/270/back.steps.rb", "examples/tickets/features/272/hooks_steps.rb", "examples/tickets/features/279/py_string_indent.steps.rb", "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb", "examples/tickets/features/lib/eatting_machine.rb", "examples/tickets/features/lib/pantry.rb", "examples/tickets/features/step_definitons/246_steps.rb", "examples/tickets/features/step_definitons/248_steps.rb", "examples/tickets/features/step_definitons/scenario_outline_steps.rb", "examples/tickets/features/step_definitons/tickets_steps.rb", "examples/watir/features/step_definitions/search_steps.rb", "examples/watir/features/support/env.rb", "examples/watir/features/support/screenshots.rb", "examples/webrat/features/step_definitions/kvasir_steps.rb", "examples/webrat/features/support/env.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, ["= 1.0.4"]) - s.add_runtime_dependency(%q, ["= 1.4.2"]) - s.add_runtime_dependency(%q, ["= 0.2.9"]) - s.add_runtime_dependency(%q, ["= 2.1.2"]) - s.add_runtime_dependency(%q, ["= 1.1.2"]) - s.add_development_dependency(%q, ["= 1.3.3"]) - s.add_development_dependency(%q, ["= 0.5.1"]) - s.add_development_dependency(%q, ["= 1.2.9"]) - s.add_development_dependency(%q, ["= 0.7.3"]) - else - s.add_dependency(%q, ["= 1.0.4"]) - s.add_dependency(%q, ["= 1.4.2"]) - s.add_dependency(%q, ["= 0.2.9"]) - s.add_dependency(%q, ["= 2.1.2"]) - s.add_dependency(%q, ["= 1.1.2"]) - s.add_dependency(%q, ["= 1.3.3"]) - s.add_dependency(%q, ["= 0.5.1"]) - s.add_dependency(%q, ["= 1.2.9"]) - s.add_dependency(%q, ["= 0.7.3"]) - end - else - s.add_dependency(%q, ["= 1.0.4"]) - s.add_dependency(%q, ["= 1.4.2"]) - s.add_dependency(%q, ["= 0.2.9"]) - s.add_dependency(%q, ["= 2.1.2"]) - s.add_dependency(%q, ["= 1.1.2"]) - s.add_dependency(%q, ["= 1.3.3"]) - s.add_dependency(%q, ["= 0.5.1"]) - s.add_dependency(%q, ["= 1.2.9"]) - s.add_dependency(%q, ["= 0.7.3"]) - end -end diff --git a/vendor/gems/specifications/gemcutter-0.1.7.gemspec b/vendor/gems/specifications/gemcutter-0.1.7.gemspec deleted file mode 100644 index fa20ee26..00000000 --- a/vendor/gems/specifications/gemcutter-0.1.7.gemspec +++ /dev/null @@ -1,49 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{gemcutter} - s.version = "0.1.7" - - s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version= - s.authors = ["Nick Quaranto"] - s.date = %q{2009-11-15} - s.description = %q{Adds several commands for using gemcutter.org, such as pushing new gems, migrating gems from RubyForge, and more.} - s.email = %q{nick@quaran.to} - s.files = ["lib/commands/abstract_command.rb", "lib/commands/migrate.rb", "lib/commands/owner.rb", "lib/commands/push.rb", "lib/commands/tumble.rb", "lib/rubygems_plugin.rb", "test/command_helper.rb"] - s.homepage = %q{http://github.com/qrush/gemcutter} - s.post_install_message = %q{ -======================================================================== - - Thanks for installing Gemcutter! You can now run: - - gem tumble use Gemcutter as your primary RubyGem source - gem push publish your gems for the world to use and enjoy - gem migrate take over your gem from RubyForge on Gemcutter - gem owner allow/disallow others to push to your gems - -======================================================================== - -} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{gemcutter} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Commands to interact with gemcutter.org} - s.test_files = ["test/command_helper.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 0"]) - s.add_runtime_dependency(%q, [">= 0"]) - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - end - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - end -end diff --git a/vendor/gems/specifications/git-1.2.5.gemspec b/vendor/gems/specifications/git-1.2.5.gemspec deleted file mode 100644 index 89d211a4..00000000 --- a/vendor/gems/specifications/git-1.2.5.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{git} - s.version = "1.2.5" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Scott Chacon"] - s.date = %q{2009-10-16} - s.email = %q{schacon@gmail.com} - s.extra_rdoc_files = ["README"] - s.files = ["lib/git.rb", "lib/git/author.rb", "lib/git/base.rb", "lib/git/branch.rb", "lib/git/branches.rb", "lib/git/diff.rb", "lib/git/index.rb", "lib/git/lib.rb", "lib/git/log.rb", "lib/git/object.rb", "lib/git/path.rb", "lib/git/remote.rb", "lib/git/repository.rb", "lib/git/stash.rb", "lib/git/stashes.rb", "lib/git/status.rb", "lib/git/working_directory.rb", "README"] - s.homepage = %q{http://github.com/schacon/ruby-git} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.requirements = ["git 1.6.0.0, or greater"] - s.rubyforge_project = %q{git} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/haml-2.2.13.gemspec b/vendor/gems/specifications/haml-2.2.13.gemspec deleted file mode 100644 index a47ae274..00000000 --- a/vendor/gems/specifications/haml-2.2.13.gemspec +++ /dev/null @@ -1,45 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{haml} - s.version = "2.2.13" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Nathan Weizenbaum", "Hampton Catlin"] - s.date = %q{2009-11-09} - s.description = %q{ Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML - that's designed to express the structure of XHTML or XML documents - in a non-repetitive, elegant, easy way, - using indentation rather than closing tags - and allowing Ruby to be embedded with ease. - It was originally envisioned as a plugin for Ruby on Rails, - but it can function as a stand-alone templating engine. -} - s.email = %q{haml@googlegroups.com} - s.executables = ["haml", "html2haml", "sass", "css2sass"] - s.extra_rdoc_files = ["VERSION_NAME", "CONTRIBUTING", "README.md", "MIT-LICENSE", "VERSION", "REVISION"] - s.files = ["rails/init.rb", "lib/sass.rb", "lib/sass/css.rb", "lib/sass/script/node.rb", "lib/sass/script/number.rb", "lib/sass/script/operation.rb", "lib/sass/script/literal.rb", "lib/sass/script/functions.rb", "lib/sass/script/bool.rb", "lib/sass/script/color.rb", "lib/sass/script/lexer.rb", "lib/sass/script/parser.rb", "lib/sass/script/variable.rb", "lib/sass/script/string.rb", "lib/sass/script/funcall.rb", "lib/sass/script/unary_operation.rb", "lib/sass/script.rb", "lib/sass/error.rb", "lib/sass/repl.rb", "lib/sass/tree/comment_node.rb", "lib/sass/tree/node.rb", "lib/sass/tree/for_node.rb", "lib/sass/tree/debug_node.rb", "lib/sass/tree/import_node.rb", "lib/sass/tree/while_node.rb", "lib/sass/tree/mixin_def_node.rb", "lib/sass/tree/if_node.rb", "lib/sass/tree/mixin_node.rb", "lib/sass/tree/directive_node.rb", "lib/sass/tree/rule_node.rb", "lib/sass/tree/prop_node.rb", "lib/sass/tree/variable_node.rb", "lib/sass/plugin/rails.rb", "lib/sass/plugin/merb.rb", "lib/sass/environment.rb", "lib/sass/files.rb", "lib/sass/engine.rb", "lib/sass/plugin.rb", "lib/haml/filters.rb", "lib/haml/exec.rb", "lib/haml/error.rb", "lib/haml/template.rb", "lib/haml/shared.rb", "lib/haml/engine.rb", "lib/haml/version.rb", "lib/haml/template/patch.rb", "lib/haml/template/plugin.rb", "lib/haml/helpers.rb", "lib/haml/buffer.rb", "lib/haml/html.rb", "lib/haml/precompiler.rb", "lib/haml/util.rb", "lib/haml/helpers/action_view_mods.rb", "lib/haml/helpers/xss_mods.rb", "lib/haml/helpers/action_view_extensions.rb", "lib/haml.rb", "bin/sass", "bin/css2sass", "bin/html2haml", "bin/haml", "test/linked_rails.rb", "test/benchmark.rb", "test/sass/script_test.rb", "test/sass/css2sass_test.rb", "test/sass/results/units.css", "test/sass/results/parent_ref.css", "test/sass/results/compressed.css", "test/sass/results/complex.css", "test/sass/results/compact.css", "test/sass/results/mixins.css", "test/sass/results/line_numbers.css", "test/sass/results/alt.css", "test/sass/results/subdir/subdir.css", "test/sass/results/subdir/nested_subdir/nested_subdir.css", "test/sass/results/nested.css", "test/sass/results/import.css", "test/sass/results/multiline.css", "test/sass/results/script.css", "test/sass/results/basic.css", "test/sass/results/expanded.css", "test/sass/more_results/more_import.css", "test/sass/more_results/more1_with_line_comments.css", "test/sass/more_results/more1.css", "test/sass/templates/basic.sass", "test/sass/templates/bork.sass", "test/sass/templates/compressed.sass", "test/sass/templates/import.sass", "test/sass/templates/script.sass", "test/sass/templates/expanded.sass", "test/sass/templates/nested.sass", "test/sass/templates/_partial.sass", "test/sass/templates/line_numbers.sass", "test/sass/templates/compact.sass", "test/sass/templates/subdir/subdir.sass", "test/sass/templates/subdir/nested_subdir/nested_subdir.sass", "test/sass/templates/subdir/nested_subdir/_nested_partial.sass", "test/sass/templates/parent_ref.sass", "test/sass/templates/alt.sass", "test/sass/templates/importee.sass", "test/sass/templates/mixins.sass", "test/sass/templates/multiline.sass", "test/sass/templates/units.sass", "test/sass/templates/complex.sass", "test/sass/templates/bork2.sass", "test/sass/more_templates/_more_partial.sass", "test/sass/more_templates/more1.sass", "test/sass/more_templates/more_import.sass", "test/sass/functions_test.rb", "test/sass/engine_test.rb", "test/sass/plugin_test.rb", "test/haml/mocks/article.rb", "test/haml/rhtml/_av_partial_2.rhtml", "test/haml/rhtml/standard.rhtml", "test/haml/rhtml/_av_partial_1.rhtml", "test/haml/rhtml/action_view.rhtml", "test/haml/util_test.rb", "test/haml/spec/ruby_haml_test.rb", "test/haml/spec/README.md", "test/haml/spec/lua_haml_spec.lua", "test/haml/spec/tests.json", "test/haml/html2haml_test.rb", "test/haml/template_test.rb", "test/haml/helper_test.rb", "test/haml/results/tag_parsing.xhtml", "test/haml/results/content_for_layout.xhtml", "test/haml/results/helpers.xhtml", "test/haml/results/original_engine.xhtml", "test/haml/results/very_basic.xhtml", "test/haml/results/helpful.xhtml", "test/haml/results/list.xhtml", "test/haml/results/partials.xhtml", "test/haml/results/eval_suppressed.xhtml", "test/haml/results/nuke_inner_whitespace.xhtml", "test/haml/results/whitespace_handling.xhtml", "test/haml/results/render_layout.xhtml", "test/haml/results/silent_script.xhtml", "test/haml/results/standard.xhtml", "test/haml/results/just_stuff.xhtml", "test/haml/results/partial_layout.xhtml", "test/haml/results/filters.xhtml", "test/haml/results/nuke_outer_whitespace.xhtml", "test/haml/markaby/standard.mab", "test/haml/templates/tag_parsing.haml", "test/haml/templates/nuke_inner_whitespace.haml", "test/haml/templates/partial_layout.haml", "test/haml/templates/_av_partial_2_ugly.haml", "test/haml/templates/partials.haml", "test/haml/templates/_layout_for_partial.haml", "test/haml/templates/original_engine.haml", "test/haml/templates/helpers.haml", "test/haml/templates/_layout.erb", "test/haml/templates/action_view_ugly.haml", "test/haml/templates/content_for_layout.haml", "test/haml/templates/silent_script.haml", "test/haml/templates/very_basic.haml", "test/haml/templates/render_layout.haml", "test/haml/templates/filters.haml", "test/haml/templates/_av_partial_1.haml", "test/haml/templates/standard_ugly.haml", "test/haml/templates/_partial.haml", "test/haml/templates/nuke_outer_whitespace.haml", "test/haml/templates/breakage.haml", "test/haml/templates/list.haml", "test/haml/templates/standard.haml", "test/haml/templates/whitespace_handling.haml", "test/haml/templates/eval_suppressed.haml", "test/haml/templates/action_view.haml", "test/haml/templates/_av_partial_2.haml", "test/haml/templates/partialize.haml", "test/haml/templates/just_stuff.haml", "test/haml/templates/helpful.haml", "test/haml/templates/_av_partial_1_ugly.haml", "test/haml/templates/_text_area.haml", "test/haml/engine_test.rb", "test/test_helper.rb", "extra/haml-mode.el", "extra/sass-mode.el", "extra/update_watch.rb", "Rakefile", "init.rb", ".yardopts", "VERSION_NAME", "CONTRIBUTING", "README.md", "MIT-LICENSE", "VERSION", "REVISION"] - s.homepage = %q{http://haml.hamptoncatlin.com/} - s.rdoc_options = ["--title", "Haml", "--main", "README.rdoc", "--exclude", "lib/haml/buffer.rb", "--line-numbers", "--inline-source"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{haml} - s.rubygems_version = %q{1.3.5} - s.summary = %q{An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.} - s.test_files = ["test/sass/script_test.rb", "test/sass/css2sass_test.rb", "test/sass/functions_test.rb", "test/sass/engine_test.rb", "test/sass/plugin_test.rb", "test/haml/util_test.rb", "test/haml/spec/ruby_haml_test.rb", "test/haml/html2haml_test.rb", "test/haml/template_test.rb", "test/haml/helper_test.rb", "test/haml/engine_test.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 0.2.3"]) - s.add_development_dependency(%q, [">= 0.5.9"]) - else - s.add_dependency(%q, [">= 0.2.3"]) - s.add_dependency(%q, [">= 0.5.9"]) - end - else - s.add_dependency(%q, [">= 0.2.3"]) - s.add_dependency(%q, [">= 0.5.9"]) - end -end diff --git a/vendor/gems/specifications/jeweler-1.3.0.gemspec b/vendor/gems/specifications/jeweler-1.3.0.gemspec deleted file mode 100644 index a725a51d..00000000 --- a/vendor/gems/specifications/jeweler-1.3.0.gemspec +++ /dev/null @@ -1,57 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{jeweler} - s.version = "1.3.0" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Josh Nichols"] - s.date = %q{2009-10-17} - s.default_executable = %q{jeweler} - s.description = %q{Simple and opinionated helper for creating Rubygem projects on GitHub} - s.email = %q{josh@technicalpickles.com} - s.executables = ["jeweler"] - s.extra_rdoc_files = ["ChangeLog.markdown", "LICENSE", "README.markdown"] - s.files = [".gitignore", "ChangeLog.markdown", "LICENSE", "README.markdown", "Rakefile", "VERSION.yml", "bin/jeweler", "features/generator/cucumber.feature", "features/generator/directory_layout.feature", "features/generator/dotdocument.feature", "features/generator/env_options.feature", "features/generator/git.feature", "features/generator/license.feature", "features/generator/rakefile.feature", "features/generator/readme.feature", "features/generator/test.feature", "features/generator/test_helper.feature", "features/placeholder.feature", "features/step_definitions/debug_steps.rb", "features/step_definitions/filesystem_steps.rb", "features/step_definitions/generator_steps.rb", "features/step_definitions/task_steps.rb", "features/support/env.rb", "features/tasks/build_gem.feature", "features/tasks/version.feature", "features/tasks/version_bumping.feature", "jeweler.gemspec", "lib/jeweler.rb", "lib/jeweler/commands.rb", "lib/jeweler/commands/build_gem.rb", "lib/jeweler/commands/check_dependencies.rb", "lib/jeweler/commands/install_gem.rb", "lib/jeweler/commands/release_to_gemcutter.rb", "lib/jeweler/commands/release_to_git.rb", "lib/jeweler/commands/release_to_github.rb", "lib/jeweler/commands/release_to_rubyforge.rb", "lib/jeweler/commands/setup_rubyforge.rb", "lib/jeweler/commands/validate_gemspec.rb", "lib/jeweler/commands/version/base.rb", "lib/jeweler/commands/version/bump_major.rb", "lib/jeweler/commands/version/bump_minor.rb", "lib/jeweler/commands/version/bump_patch.rb", "lib/jeweler/commands/version/write.rb", "lib/jeweler/commands/write_gemspec.rb", "lib/jeweler/errors.rb", "lib/jeweler/gemcutter_tasks.rb", "lib/jeweler/gemspec_helper.rb", "lib/jeweler/generator.rb", "lib/jeweler/generator/application.rb", "lib/jeweler/generator/bacon_mixin.rb", "lib/jeweler/generator/github_mixin.rb", "lib/jeweler/generator/micronaut_mixin.rb", "lib/jeweler/generator/minitest_mixin.rb", "lib/jeweler/generator/options.rb", "lib/jeweler/generator/rdoc_mixin.rb", "lib/jeweler/generator/riot_mixin.rb", "lib/jeweler/generator/rspec_mixin.rb", "lib/jeweler/generator/shoulda_mixin.rb", "lib/jeweler/generator/testspec_mixin.rb", "lib/jeweler/generator/testunit_mixin.rb", "lib/jeweler/generator/yard_mixin.rb", "lib/jeweler/rubyforge_tasks.rb", "lib/jeweler/specification.rb", "lib/jeweler/tasks.rb", "lib/jeweler/templates/.document", "lib/jeweler/templates/.gitignore", "lib/jeweler/templates/LICENSE", "lib/jeweler/templates/README.rdoc", "lib/jeweler/templates/Rakefile", "lib/jeweler/templates/bacon/flunking.rb", "lib/jeweler/templates/bacon/helper.rb", "lib/jeweler/templates/features/default.feature", "lib/jeweler/templates/features/support/env.rb", "lib/jeweler/templates/micronaut/flunking.rb", "lib/jeweler/templates/micronaut/helper.rb", "lib/jeweler/templates/minitest/flunking.rb", "lib/jeweler/templates/minitest/helper.rb", "lib/jeweler/templates/riot/flunking.rb", "lib/jeweler/templates/riot/helper.rb", "lib/jeweler/templates/rspec/flunking.rb", "lib/jeweler/templates/rspec/helper.rb", "lib/jeweler/templates/rspec/spec.opts", "lib/jeweler/templates/shoulda/flunking.rb", "lib/jeweler/templates/shoulda/helper.rb", "lib/jeweler/templates/testspec/flunking.rb", "lib/jeweler/templates/testspec/helper.rb", "lib/jeweler/templates/testunit/flunking.rb", "lib/jeweler/templates/testunit/helper.rb", "lib/jeweler/version_helper.rb", "test/fixtures/bar/VERSION.yml", "test/fixtures/bar/bin/foo_the_ultimate_bin", "test/fixtures/bar/hey_include_me_in_gemspec", "test/fixtures/bar/lib/foo_the_ultimate_lib.rb", "test/fixtures/existing-project-with-version-constant/.document", "test/fixtures/existing-project-with-version-constant/.gitignore", "test/fixtures/existing-project-with-version-constant/LICENSE", "test/fixtures/existing-project-with-version-constant/README.rdoc", "test/fixtures/existing-project-with-version-constant/Rakefile", "test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec", "test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-constant/test/test_helper.rb", "test/fixtures/existing-project-with-version-plaintext/.document", "test/fixtures/existing-project-with-version-plaintext/.gitignore", "test/fixtures/existing-project-with-version-plaintext/LICENSE", "test/fixtures/existing-project-with-version-plaintext/README.rdoc", "test/fixtures/existing-project-with-version-plaintext/Rakefile", "test/fixtures/existing-project-with-version-plaintext/VERSION", "test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec", "test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb", "test/fixtures/existing-project-with-version-yaml/.document", "test/fixtures/existing-project-with-version-yaml/.gitignore", "test/fixtures/existing-project-with-version-yaml/LICENSE", "test/fixtures/existing-project-with-version-yaml/README.rdoc", "test/fixtures/existing-project-with-version-yaml/Rakefile", "test/fixtures/existing-project-with-version-yaml/VERSION.yml", "test/fixtures/existing-project-with-version-yaml/bin/foo_the_ultimate_bin", "test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec", "test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-yaml/test/test_helper.rb", "test/geminstaller.yml", "test/jeweler/commands/test_build_gem.rb", "test/jeweler/commands/test_install_gem.rb", "test/jeweler/commands/test_release_to_gemcutter.rb", "test/jeweler/commands/test_release_to_git.rb", "test/jeweler/commands/test_release_to_github.rb", "test/jeweler/commands/test_release_to_rubyforge.rb", "test/jeweler/commands/test_setup_rubyforge.rb", "test/jeweler/commands/test_validate_gemspec.rb", "test/jeweler/commands/test_write_gemspec.rb", "test/jeweler/commands/version/test_base.rb", "test/jeweler/commands/version/test_bump_major.rb", "test/jeweler/commands/version/test_bump_minor.rb", "test/jeweler/commands/version/test_bump_patch.rb", "test/jeweler/commands/version/test_write.rb", "test/jeweler/generator/test_application.rb", "test/jeweler/generator/test_options.rb", "test/jeweler/test_gemspec_helper.rb", "test/jeweler/test_generator.rb", "test/jeweler/test_generator_initialization.rb", "test/jeweler/test_generator_mixins.rb", "test/jeweler/test_specification.rb", "test/jeweler/test_tasks.rb", "test/jeweler/test_version_helper.rb", "test/shoulda_macros/jeweler_macros.rb", "test/test_helper.rb", "test/test_jeweler.rb"] - s.homepage = %q{http://github.com/technicalpickles/jeweler} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{pickles} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Simple and opinionated helper for creating Rubygem projects on GitHub} - s.test_files = ["test/fixtures/bar/lib/foo_the_ultimate_lib.rb", "test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-constant/test/test_helper.rb", "test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb", "test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb", "test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb", "test/fixtures/existing-project-with-version-yaml/test/test_helper.rb", "test/jeweler/commands/test_build_gem.rb", "test/jeweler/commands/test_install_gem.rb", "test/jeweler/commands/test_release_to_gemcutter.rb", "test/jeweler/commands/test_release_to_git.rb", "test/jeweler/commands/test_release_to_github.rb", "test/jeweler/commands/test_release_to_rubyforge.rb", "test/jeweler/commands/test_setup_rubyforge.rb", "test/jeweler/commands/test_validate_gemspec.rb", "test/jeweler/commands/test_write_gemspec.rb", "test/jeweler/commands/version/test_base.rb", "test/jeweler/commands/version/test_bump_major.rb", "test/jeweler/commands/version/test_bump_minor.rb", "test/jeweler/commands/version/test_bump_patch.rb", "test/jeweler/commands/version/test_write.rb", "test/jeweler/generator/test_application.rb", "test/jeweler/generator/test_options.rb", "test/jeweler/test_gemspec_helper.rb", "test/jeweler/test_generator.rb", "test/jeweler/test_generator_initialization.rb", "test/jeweler/test_generator_mixins.rb", "test/jeweler/test_specification.rb", "test/jeweler/test_tasks.rb", "test/jeweler/test_version_helper.rb", "test/shoulda_macros/jeweler_macros.rb", "test/test_helper.rb", "test/test_jeweler.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 1.2.5"]) - s.add_runtime_dependency(%q, [">= 2.0.0"]) - s.add_runtime_dependency(%q, [">= 0.1.0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - else - s.add_dependency(%q, [">= 1.2.5"]) - s.add_dependency(%q, [">= 2.0.0"]) - s.add_dependency(%q, [">= 0.1.0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - end - else - s.add_dependency(%q, [">= 1.2.5"]) - s.add_dependency(%q, [">= 2.0.0"]) - s.add_dependency(%q, [">= 0.1.0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - end -end diff --git a/vendor/gems/specifications/json_pure-1.2.0.gemspec b/vendor/gems/specifications/json_pure-1.2.0.gemspec deleted file mode 100644 index d12f31fd..00000000 --- a/vendor/gems/specifications/json_pure-1.2.0.gemspec +++ /dev/null @@ -1,33 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{json_pure} - s.version = "1.2.0" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Florian Frank"] - s.date = %q{2009-11-07} - s.default_executable = %q{edit_json.rb} - s.description = %q{This is a JSON implementation in pure Ruby.} - s.email = %q{flori@ping.de} - s.executables = ["edit_json.rb", "prettify_json.rb"] - s.extra_rdoc_files = ["README"] - s.files = ["CHANGES", "bin/edit_json.rb", "bin/prettify_json.rb", "VERSION", "GPL", "TODO", "README", "benchmarks/parser_benchmark.rb", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat", "benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat", "benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat", "benchmarks/generator_benchmark.rb", "ext/json/ext/generator/extconf.rb", "ext/json/ext/generator/unicode.c", "ext/json/ext/generator/generator.c", "ext/json/ext/generator/unicode.h", "ext/json/ext/parser/extconf.rb", "ext/json/ext/parser/parser.rl", "ext/json/ext/parser/unicode.c", "ext/json/ext/parser/parser.c", "ext/json/ext/parser/unicode.h", "Rakefile", "tools/fuzz.rb", "tools/server.rb", "lib/json.rb", "lib/json/json.xpm", "lib/json/Key.xpm", "lib/json/String.xpm", "lib/json/Numeric.xpm", "lib/json/Hash.xpm", "lib/json/add/rails.rb", "lib/json/add/core.rb", "lib/json/common.rb", "lib/json/Array.xpm", "lib/json/FalseClass.xpm", "lib/json/pure/generator.rb", "lib/json/pure/parser.rb", "lib/json/TrueClass.xpm", "lib/json/pure.rb", "lib/json/version.rb", "lib/json/ext.rb", "lib/json/editor.rb", "lib/json/NilClass.xpm", "data/example.json", "data/index.html", "data/prototype.js", "tests/test_json_encoding.rb", "tests/test_json_addition.rb", "tests/fixtures/pass16.json", "tests/fixtures/fail4.json", "tests/fixtures/fail1.json", "tests/fixtures/fail28.json", "tests/fixtures/fail8.json", "tests/fixtures/fail19.json", "tests/fixtures/pass2.json", "tests/fixtures/pass26.json", "tests/fixtures/pass1.json", "tests/fixtures/fail3.json", "tests/fixtures/fail20.json", "tests/fixtures/pass3.json", "tests/fixtures/pass15.json", "tests/fixtures/fail12.json", "tests/fixtures/fail13.json", "tests/fixtures/fail22.json", "tests/fixtures/fail24.json", "tests/fixtures/fail9.json", "tests/fixtures/fail2.json", "tests/fixtures/fail14.json", "tests/fixtures/fail6.json", "tests/fixtures/fail21.json", "tests/fixtures/fail7.json", "tests/fixtures/pass17.json", "tests/fixtures/fail11.json", "tests/fixtures/fail25.json", "tests/fixtures/fail5.json", "tests/fixtures/fail18.json", "tests/fixtures/fail27.json", "tests/fixtures/fail10.json", "tests/fixtures/fail23.json", "tests/test_json_rails.rb", "tests/test_json.rb", "tests/test_json_generate.rb", "tests/test_json_unicode.rb", "tests/test_json_fixtures.rb", "COPYING", "install.rb"] - s.homepage = %q{http://json.rubyforge.org} - s.rdoc_options = ["--title", "JSON -- A JSON implemention", "--main", "README"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{json} - s.rubygems_version = %q{1.3.5} - s.summary = %q{A JSON implementation in Ruby} - s.test_files = ["tests/test_json_encoding.rb", "tests/test_json_addition.rb", "tests/test_json_rails.rb", "tests/test_json.rb", "tests/test_json_generate.rb", "tests/test_json_unicode.rb", "tests/test_json_fixtures.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/markaby-0.5.gemspec b/vendor/gems/specifications/markaby-0.5.gemspec deleted file mode 100644 index 92648622..00000000 --- a/vendor/gems/specifications/markaby-0.5.gemspec +++ /dev/null @@ -1,31 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{markaby} - s.version = "0.5" - - s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version= - s.authors = ["Tim Fletcher and _why"] - s.cert_chain = nil - s.date = %q{2006-10-02} - s.extra_rdoc_files = ["README"] - s.files = ["README", "Rakefile", "setup.rb", "test/test_markaby.rb", "lib/markaby", "lib/markaby.rb", "lib/markaby/metaid.rb", "lib/markaby/tags.rb", "lib/markaby/builder.rb", "lib/markaby/cssproxy.rb", "lib/markaby/rails.rb", "lib/markaby/template.rb", "tools/rakehelp.rb"] - s.require_paths = ["lib"] - s.required_ruby_version = Gem::Requirement.new("> 0.0.0") - s.rubygems_version = %q{1.3.5} - s.summary = %q{Markup as Ruby, write HTML in your native Ruby tongue} - s.test_files = ["test/test_markaby.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 1 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 2.0.0"]) - else - s.add_dependency(%q, [">= 2.0.0"]) - end - else - s.add_dependency(%q, [">= 2.0.0"]) - end -end diff --git a/vendor/gems/specifications/maruku-0.6.0.gemspec b/vendor/gems/specifications/maruku-0.6.0.gemspec deleted file mode 100644 index 182aed72..00000000 --- a/vendor/gems/specifications/maruku-0.6.0.gemspec +++ /dev/null @@ -1,32 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{maruku} - s.version = "0.6.0" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Andrea Censi"] - s.autorequire = %q{maruku} - s.date = %q{2009-05-04} - s.description = %q{Maruku is a Markdown interpreter in Ruby. It features native export to HTML and PDF (via Latex). The output is really beautiful!} - s.email = %q{andrea@rubyforge.org} - s.executables = ["maruku", "marutex"] - s.files = ["lib/maruku/attributes.rb", "lib/maruku/defaults.rb", "lib/maruku/errors_management.rb", "lib/maruku/ext/div.rb", "lib/maruku/ext/math/elements.rb", "lib/maruku/ext/math/latex_fix.rb", "lib/maruku/ext/math/mathml_engines/blahtex.rb", "lib/maruku/ext/math/mathml_engines/itex2mml.rb", "lib/maruku/ext/math/mathml_engines/none.rb", "lib/maruku/ext/math/mathml_engines/ritex.rb", "lib/maruku/ext/math/parsing.rb", "lib/maruku/ext/math/to_html.rb", "lib/maruku/ext/math/to_latex.rb", "lib/maruku/ext/math.rb", "lib/maruku/helpers.rb", "lib/maruku/input/charsource.rb", "lib/maruku/input/extensions.rb", "lib/maruku/input/html_helper.rb", "lib/maruku/input/linesource.rb", "lib/maruku/input/parse_block.rb", "lib/maruku/input/parse_doc.rb", "lib/maruku/input/parse_span_better.rb", "lib/maruku/input/rubypants.rb", "lib/maruku/input/type_detection.rb", "lib/maruku/input_textile2/t2_parser.rb", "lib/maruku/maruku.rb", "lib/maruku/output/s5/fancy.rb", "lib/maruku/output/s5/to_s5.rb", "lib/maruku/output/to_html.rb", "lib/maruku/output/to_latex.rb", "lib/maruku/output/to_latex_entities.rb", "lib/maruku/output/to_latex_strings.rb", "lib/maruku/output/to_markdown.rb", "lib/maruku/output/to_s.rb", "lib/maruku/string_utils.rb", "lib/maruku/structures.rb", "lib/maruku/structures_inspect.rb", "lib/maruku/structures_iterators.rb", "lib/maruku/tests/benchmark.rb", "lib/maruku/tests/new_parser.rb", "lib/maruku/tests/tests.rb", "lib/maruku/textile2.rb", "lib/maruku/toc.rb", "lib/maruku/usage/example1.rb", "lib/maruku/version.rb", "lib/maruku.rb", "docs/changelog.md", "docs/div_syntax.md", "docs/entity_test.md", "docs/markdown_syntax.md", "docs/maruku.md", "docs/math.md", "docs/other_stuff.md", "docs/proposal.md", "tests/bugs/code_in_links.md", "tests/bugs/complex_escaping.md", "tests/math/syntax.md", "tests/math_usage/document.md", "tests/others/abbreviations.md", "tests/others/blank.md", "tests/others/code.md", "tests/others/code2.md", "tests/others/code3.md", "tests/others/email.md", "tests/others/entities.md", "tests/others/escaping.md", "tests/others/extra_dl.md", "tests/others/extra_header_id.md", "tests/others/extra_table1.md", "tests/others/footnotes.md", "tests/others/headers.md", "tests/others/hrule.md", "tests/others/images.md", "tests/others/inline_html.md", "tests/others/links.md", "tests/others/list1.md", "tests/others/list2.md", "tests/others/list3.md", "tests/others/lists.md", "tests/others/lists_after_paragraph.md", "tests/others/lists_ol.md", "tests/others/misc_sw.md", "tests/others/one.md", "tests/others/paragraphs.md", "tests/others/sss06.md", "tests/others/test.md", "tests/s5/s5profiling.md", "tests/unittest/abbreviations.md", "tests/unittest/alt.md", "tests/unittest/attributes/att2.md", "tests/unittest/attributes/att3.md", "tests/unittest/attributes/attributes.md", "tests/unittest/attributes/circular.md", "tests/unittest/attributes/default.md", "tests/unittest/blank.md", "tests/unittest/blanks_in_code.md", "tests/unittest/bug_def.md", "tests/unittest/bug_table.md", "tests/unittest/code.md", "tests/unittest/code2.md", "tests/unittest/code3.md", "tests/unittest/data_loss.md", "tests/unittest/divs/div1.md", "tests/unittest/divs/div2.md", "tests/unittest/divs/div3_nest.md", "tests/unittest/easy.md", "tests/unittest/email.md", "tests/unittest/encoding/iso-8859-1.md", "tests/unittest/encoding/utf-8.md", "tests/unittest/entities.md", "tests/unittest/escaping.md", "tests/unittest/extra_dl.md", "tests/unittest/extra_header_id.md", "tests/unittest/extra_table1.md", "tests/unittest/footnotes.md", "tests/unittest/hang.md", "tests/unittest/headers.md", "tests/unittest/hex_entities.md", "tests/unittest/hrule.md", "tests/unittest/html2.md", "tests/unittest/html3.md", "tests/unittest/html4.md", "tests/unittest/html5.md", "tests/unittest/ie.md", "tests/unittest/images.md", "tests/unittest/images2.md", "tests/unittest/inline_html.md", "tests/unittest/inline_html2.md", "tests/unittest/links.md", "tests/unittest/links2.md", "tests/unittest/list1.md", "tests/unittest/list12.md", "tests/unittest/list2.md", "tests/unittest/list3.md", "tests/unittest/list4.md", "tests/unittest/lists.md", "tests/unittest/lists10.md", "tests/unittest/lists11.md", "tests/unittest/lists6.md", "tests/unittest/lists9.md", "tests/unittest/lists_after_paragraph.md", "tests/unittest/lists_ol.md", "tests/unittest/loss.md", "tests/unittest/math/equations.md", "tests/unittest/math/inline.md", "tests/unittest/math/math2.md", "tests/unittest/math/notmath.md", "tests/unittest/math/table.md", "tests/unittest/math/table2.md", "tests/unittest/misc_sw.md", "tests/unittest/notyet/escape.md", "tests/unittest/notyet/header_after_par.md", "tests/unittest/notyet/ticks.md", "tests/unittest/notyet/triggering.md", "tests/unittest/olist.md", "tests/unittest/one.md", "tests/unittest/paragraph.md", "tests/unittest/paragraph_rules/dont_merge_ref.md", "tests/unittest/paragraph_rules/tab_is_blank.md", "tests/unittest/paragraphs.md", "tests/unittest/pending/amps.md", "tests/unittest/pending/empty_cells.md", "tests/unittest/pending/link.md", "tests/unittest/pending/ref.md", "tests/unittest/recover/recover_links.md", "tests/unittest/red_tests/abbrev.md", "tests/unittest/red_tests/lists7.md", "tests/unittest/red_tests/lists7b.md", "tests/unittest/red_tests/lists8.md", "tests/unittest/red_tests/xml.md", "tests/unittest/references/long_example.md", "tests/unittest/references/spaces_and_numbers.md", "tests/unittest/smartypants.md", "tests/unittest/syntax_hl.md", "tests/unittest/table_attributes.md", "tests/unittest/test.md", "tests/unittest/underscore_in_words.md", "tests/unittest/wrapping.md", "tests/unittest/xml2.md", "tests/unittest/xml3.md", "tests/unittest/xml_instruction.md", "tests/utf8-files/simple.md", "bin/marudown", "bin/maruku", "bin/marutest", "bin/marutex", "unit_test_block.sh", "unit_test_span.sh", "Rakefile", "maruku_gem.rb"] - s.homepage = %q{http://maruku.rubyforge.org} - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} - s.summary = %q{Maruku is a Markdown-superset interpreter written in Ruby.} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 2 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 1.0.0"]) - else - s.add_dependency(%q, [">= 1.0.0"]) - end - else - s.add_dependency(%q, [">= 1.0.0"]) - end -end diff --git a/vendor/gems/specifications/net-scp-1.0.2.gemspec b/vendor/gems/specifications/net-scp-1.0.2.gemspec deleted file mode 100644 index b7ca0aff..00000000 --- a/vendor/gems/specifications/net-scp-1.0.2.gemspec +++ /dev/null @@ -1,37 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{net-scp} - s.version = "1.0.2" - - s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version= - s.authors = ["Jamis Buck"] - s.date = %q{2009-02-03} - s.description = %q{A pure Ruby implementation of the SCP client protocol} - s.email = %q{jamis@jamisbuck.org} - s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/net/scp/download.rb", "lib/net/scp/errors.rb", "lib/net/scp/upload.rb", "lib/net/scp/version.rb", "lib/net/scp.rb", "lib/uri/open-scp.rb", "lib/uri/scp.rb", "README.rdoc"] - s.files = ["CHANGELOG.rdoc", "lib/net/scp/download.rb", "lib/net/scp/errors.rb", "lib/net/scp/upload.rb", "lib/net/scp/version.rb", "lib/net/scp.rb", "lib/uri/open-scp.rb", "lib/uri/scp.rb", "Rakefile", "README.rdoc", "setup.rb", "test/common.rb", "test/test_all.rb", "test/test_download.rb", "test/test_scp.rb", "test/test_upload.rb", "Manifest", "net-scp.gemspec"] - s.homepage = %q{http://net-ssh.rubyforge.org/scp} - s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Net-scp", "--main", "README.rdoc"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{net-ssh} - s.rubygems_version = %q{1.3.5} - s.summary = %q{A pure Ruby implementation of the SCP client protocol} - s.test_files = ["test/test_all.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 2 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 1.99.1"]) - s.add_development_dependency(%q, [">= 0"]) - else - s.add_dependency(%q, [">= 1.99.1"]) - s.add_dependency(%q, [">= 0"]) - end - else - s.add_dependency(%q, [">= 1.99.1"]) - s.add_dependency(%q, [">= 0"]) - end -end diff --git a/vendor/gems/specifications/net-ssh-2.0.15.gemspec b/vendor/gems/specifications/net-ssh-2.0.15.gemspec deleted file mode 100644 index 473de335..00000000 --- a/vendor/gems/specifications/net-ssh-2.0.15.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{net-ssh} - s.version = "2.0.15" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Jamis Buck", "Delano Mandelbaum"] - s.date = %q{2009-09-02} - s.description = %q{Net::SSH: a pure-Ruby implementation of the SSH2 client protocol.} - s.email = ["net-ssh@solutious.com", "net-ssh@solutious.com"] - s.extra_rdoc_files = ["README.rdoc", "THANKS.rdoc", "CHANGELOG.rdoc"] - s.files = ["CHANGELOG.rdoc", "Manifest", "README.rdoc", "Rakefile", "Rudyfile", "THANKS.rdoc", "lib/net/ssh.rb", "lib/net/ssh/authentication/agent.rb", "lib/net/ssh/authentication/constants.rb", "lib/net/ssh/authentication/key_manager.rb", "lib/net/ssh/authentication/methods/abstract.rb", "lib/net/ssh/authentication/methods/hostbased.rb", "lib/net/ssh/authentication/methods/keyboard_interactive.rb", "lib/net/ssh/authentication/methods/password.rb", "lib/net/ssh/authentication/methods/publickey.rb", "lib/net/ssh/authentication/pageant.rb", "lib/net/ssh/authentication/session.rb", "lib/net/ssh/buffer.rb", "lib/net/ssh/buffered_io.rb", "lib/net/ssh/config.rb", "lib/net/ssh/connection/channel.rb", "lib/net/ssh/connection/constants.rb", "lib/net/ssh/connection/session.rb", "lib/net/ssh/connection/term.rb", "lib/net/ssh/errors.rb", "lib/net/ssh/key_factory.rb", "lib/net/ssh/known_hosts.rb", "lib/net/ssh/loggable.rb", "lib/net/ssh/packet.rb", "lib/net/ssh/prompt.rb", "lib/net/ssh/proxy/errors.rb", "lib/net/ssh/proxy/http.rb", "lib/net/ssh/proxy/socks4.rb", "lib/net/ssh/proxy/socks5.rb", "lib/net/ssh/ruby_compat.rb", "lib/net/ssh/service/forward.rb", "lib/net/ssh/test.rb", "lib/net/ssh/test/channel.rb", "lib/net/ssh/test/extensions.rb", "lib/net/ssh/test/kex.rb", "lib/net/ssh/test/local_packet.rb", "lib/net/ssh/test/packet.rb", "lib/net/ssh/test/remote_packet.rb", "lib/net/ssh/test/script.rb", "lib/net/ssh/test/socket.rb", "lib/net/ssh/transport/algorithms.rb", "lib/net/ssh/transport/cipher_factory.rb", "lib/net/ssh/transport/constants.rb", "lib/net/ssh/transport/hmac.rb", "lib/net/ssh/transport/hmac/abstract.rb", "lib/net/ssh/transport/hmac/md5.rb", "lib/net/ssh/transport/hmac/md5_96.rb", "lib/net/ssh/transport/hmac/none.rb", "lib/net/ssh/transport/hmac/sha1.rb", "lib/net/ssh/transport/hmac/sha1_96.rb", "lib/net/ssh/transport/identity_cipher.rb", "lib/net/ssh/transport/kex.rb", "lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb", "lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb", "lib/net/ssh/transport/openssl.rb", "lib/net/ssh/transport/packet_stream.rb", "lib/net/ssh/transport/server_version.rb", "lib/net/ssh/transport/session.rb", "lib/net/ssh/transport/state.rb", "lib/net/ssh/verifiers/lenient.rb", "lib/net/ssh/verifiers/null.rb", "lib/net/ssh/verifiers/strict.rb", "lib/net/ssh/version.rb", "net-ssh.gemspec", "setup.rb", "support/arcfour_check.rb", "test/authentication/methods/common.rb", "test/authentication/methods/test_abstract.rb", "test/authentication/methods/test_hostbased.rb", "test/authentication/methods/test_keyboard_interactive.rb", "test/authentication/methods/test_password.rb", "test/authentication/methods/test_publickey.rb", "test/authentication/test_agent.rb", "test/authentication/test_key_manager.rb", "test/authentication/test_session.rb", "test/common.rb", "test/configs/eqsign", "test/configs/exact_match", "test/configs/multihost", "test/configs/wild_cards", "test/connection/test_channel.rb", "test/connection/test_session.rb", "test/test_all.rb", "test/test_buffer.rb", "test/test_buffered_io.rb", "test/test_config.rb", "test/test_key_factory.rb", "test/transport/hmac/test_md5.rb", "test/transport/hmac/test_md5_96.rb", "test/transport/hmac/test_none.rb", "test/transport/hmac/test_sha1.rb", "test/transport/hmac/test_sha1_96.rb", "test/transport/kex/test_diffie_hellman_group1_sha1.rb", "test/transport/kex/test_diffie_hellman_group_exchange_sha1.rb", "test/transport/test_algorithms.rb", "test/transport/test_cipher_factory.rb", "test/transport/test_hmac.rb", "test/transport/test_identity_cipher.rb", "test/transport/test_packet_stream.rb", "test/transport/test_server_version.rb", "test/transport/test_session.rb", "test/transport/test_state.rb"] - s.homepage = %q{http://rubyforge.org/projects/net-ssh/} - s.rdoc_options = ["--line-numbers", "--title", "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol.", "--main", "README.rdoc"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{net-ssh} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Net::SSH: a pure-Ruby implementation of the SSH2 client protocol.} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/polyglot-0.2.9.gemspec b/vendor/gems/specifications/polyglot-0.2.9.gemspec deleted file mode 100644 index 8ca1f453..00000000 --- a/vendor/gems/specifications/polyglot-0.2.9.gemspec +++ /dev/null @@ -1,34 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{polyglot} - s.version = "0.2.9" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Clifford Heath"] - s.date = %q{2009-09-12} - s.description = %q{Allows custom language loaders for specified file extensions to be hooked into require} - s.email = %q{cjheath@rubyforge.org} - s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt"] - s.files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/polyglot.rb", "lib/polyglot/version.rb", "test/test_helper.rb", "test/test_polyglot.rb"] - s.homepage = %q{http://polyglot.rubyforge.org} - s.rdoc_options = ["--main", "README.txt"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{polyglot} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Allows custom language loaders for specified file extensions to be hooked into require} - s.test_files = ["test/test_helper.rb", "test/test_polyglot.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 2.3.2"]) - else - s.add_dependency(%q, [">= 2.3.2"]) - end - else - s.add_dependency(%q, [">= 2.3.2"]) - end -end diff --git a/vendor/gems/specifications/rdoc-2.4.3.gemspec b/vendor/gems/specifications/rdoc-2.4.3.gemspec deleted file mode 100644 index 76c7c4ba..00000000 --- a/vendor/gems/specifications/rdoc-2.4.3.gemspec +++ /dev/null @@ -1,47 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{rdoc} - s.version = "2.4.3" - - s.required_rubygems_version = Gem::Requirement.new(">= 1.3") if s.respond_to? :required_rubygems_version= - s.authors = ["Eric Hodel", "Dave Thomas", "Phil Hagelberg", "Tony Strauss"] - s.cert_chain = ["-----BEGIN CERTIFICATE-----\nMIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy\nYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu\nZXQwHhcNMDcxMjIxMDIwNDE0WhcNMDgxMjIwMDIwNDE0WjBBMRAwDgYDVQQDDAdk\ncmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ\nFgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbbgLrGLGIDE76\nLV/cvxdEzCuYuS3oG9PrSZnuDweySUfdp/so0cDq+j8bqy6OzZSw07gdjwFMSd6J\nU5ddZCVywn5nnAQ+Ui7jMW54CYt5/H6f2US6U0hQOjJR6cpfiymgxGdfyTiVcvTm\nGj/okWrQl0NjYOYBpDi+9PPmaH2RmLJu0dB/NylsDnW5j6yN1BEI8MfJRR+HRKZY\nmUtgzBwF1V4KIZQ8EuL6I/nHVu07i6IkrpAgxpXUfdJQJi0oZAqXurAV3yTxkFwd\ng62YrrW26mDe+pZBzR6bpLE+PmXCzz7UxUq3AE0gPHbiMXie3EFE0oxnsU3lIduh\nsCANiQ8BAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW\nBBS5k4Z75VSpdM0AclG2UvzFA/VW5DANBgkqhkiG9w0BAQUFAAOCAQEAHagT4lfX\nkP/hDaiwGct7XPuVGbrOsKRVD59FF5kETBxEc9UQ1clKWngf8JoVuEoKD774dW19\nbU0GOVWO+J6FMmT/Cp7nuFJ79egMf/gy4gfUfQMuvfcr6DvZUPIs9P/TlK59iMYF\nDIOQ3DxdF3rMzztNUCizN4taVscEsjCcgW6WkUJnGdqlu3OHWpQxZBJkBTjPCoc6\nUW6on70SFPmAy/5Cq0OJNGEWBfgD9q7rrs/X8GGwUWqXb85RXnUVi/P8Up75E0ag\n14jEc90kN+C7oI/AGCBN0j6JnEtYIEJZibjjDJTSMWlUKKkj30kq7hlUC2CepJ4v\nx52qPcexcYZR7w==\n-----END CERTIFICATE-----\n"] - s.date = %q{2009-04-01} - s.description = %q{RDoc is an application that produces documentation for one or more Ruby source -files. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying -online documentation. - -At this point in time, RDoc 2.x is a work in progress and may incur further -API changes beyond what has been made to RDoc 1.0.1. Command-line tools are -largely unaffected, but internal APIs may shift rapidly. - -See RDoc for a description of RDoc's markup and basic use.} - s.email = ["drbrain@segment7.net", "", "technomancy@gmail.com", "tony.strauss@designingpatterns.com"] - s.executables = ["rdoc", "ri"] - s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt", "RI.txt"] - s.files = [".autotest", ".document", "History.txt", "Manifest.txt", "README.txt", "RI.txt", "Rakefile", "bin/rdoc", "bin/ri", "lib/rdoc.rb", "lib/rdoc/alias.rb", "lib/rdoc/anon_class.rb", "lib/rdoc/any_method.rb", "lib/rdoc/attr.rb", "lib/rdoc/cache.rb", "lib/rdoc/class_module.rb", "lib/rdoc/code_object.rb", "lib/rdoc/code_objects.rb", "lib/rdoc/constant.rb", "lib/rdoc/context.rb", "lib/rdoc/diagram.rb", "lib/rdoc/dot.rb", "lib/rdoc/generator.rb", "lib/rdoc/generator/darkfish.rb", "lib/rdoc/generator/markup.rb", "lib/rdoc/generator/ri.rb", "lib/rdoc/generator/template/darkfish/.document", "lib/rdoc/generator/template/darkfish/classpage.rhtml", "lib/rdoc/generator/template/darkfish/filepage.rhtml", "lib/rdoc/generator/template/darkfish/images/brick.png", "lib/rdoc/generator/template/darkfish/images/brick_link.png", "lib/rdoc/generator/template/darkfish/images/bug.png", "lib/rdoc/generator/template/darkfish/images/bullet_black.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png", "lib/rdoc/generator/template/darkfish/images/date.png", "lib/rdoc/generator/template/darkfish/images/find.png", "lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif", "lib/rdoc/generator/template/darkfish/images/macFFBgHack.png", "lib/rdoc/generator/template/darkfish/images/package.png", "lib/rdoc/generator/template/darkfish/images/page_green.png", "lib/rdoc/generator/template/darkfish/images/page_white_text.png", "lib/rdoc/generator/template/darkfish/images/page_white_width.png", "lib/rdoc/generator/template/darkfish/images/plugin.png", "lib/rdoc/generator/template/darkfish/images/ruby.png", "lib/rdoc/generator/template/darkfish/images/tag_green.png", "lib/rdoc/generator/template/darkfish/images/wrench.png", "lib/rdoc/generator/template/darkfish/images/wrench_orange.png", "lib/rdoc/generator/template/darkfish/images/zoom.png", "lib/rdoc/generator/template/darkfish/index.rhtml", "lib/rdoc/generator/template/darkfish/js/darkfish.js", "lib/rdoc/generator/template/darkfish/js/jquery.js", "lib/rdoc/generator/template/darkfish/js/quicksearch.js", "lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js", "lib/rdoc/generator/template/darkfish/rdoc.css", "lib/rdoc/ghost_method.rb", "lib/rdoc/include.rb", "lib/rdoc/known_classes.rb", "lib/rdoc/markup.rb", "lib/rdoc/markup/attribute_manager.rb", "lib/rdoc/markup/formatter.rb", "lib/rdoc/markup/fragments.rb", "lib/rdoc/markup/inline.rb", "lib/rdoc/markup/lines.rb", "lib/rdoc/markup/preprocess.rb", "lib/rdoc/markup/to_flow.rb", "lib/rdoc/markup/to_html.rb", "lib/rdoc/markup/to_html_crossref.rb", "lib/rdoc/markup/to_latex.rb", "lib/rdoc/markup/to_test.rb", "lib/rdoc/markup/to_texinfo.rb", "lib/rdoc/meta_method.rb", "lib/rdoc/normal_class.rb", "lib/rdoc/normal_module.rb", "lib/rdoc/options.rb", "lib/rdoc/parser.rb", "lib/rdoc/parser/c.rb", "lib/rdoc/parser/perl.rb", "lib/rdoc/parser/ruby.rb", "lib/rdoc/parser/simple.rb", "lib/rdoc/rdoc.rb", "lib/rdoc/require.rb", "lib/rdoc/ri.rb", "lib/rdoc/ri/cache.rb", "lib/rdoc/ri/descriptions.rb", "lib/rdoc/ri/display.rb", "lib/rdoc/ri/driver.rb", "lib/rdoc/ri/formatter.rb", "lib/rdoc/ri/paths.rb", "lib/rdoc/ri/reader.rb", "lib/rdoc/ri/util.rb", "lib/rdoc/ri/writer.rb", "lib/rdoc/single_class.rb", "lib/rdoc/stats.rb", "lib/rdoc/task.rb", "lib/rdoc/tokenstream.rb", "lib/rdoc/top_level.rb", "test/binary.dat", "test/test.ja.rdoc", "test/test.ja.txt", "test/test_attribute_manager.rb", "test/test_rdoc_any_method.rb", "test/test_rdoc_code_object.rb", "test/test_rdoc_constant.rb", "test/test_rdoc_context.rb", "test/test_rdoc_include.rb", "test/test_rdoc_markup.rb", "test/test_rdoc_markup_attribute_manager.rb", "test/test_rdoc_markup_to_html.rb", "test/test_rdoc_markup_to_html_crossref.rb", "test/test_rdoc_normal_module.rb", "test/test_rdoc_parser.rb", "test/test_rdoc_parser_c.rb", "test/test_rdoc_parser_perl.rb", "test/test_rdoc_parser_ruby.rb", "test/test_rdoc_require.rb", "test/test_rdoc_ri_attribute_formatter.rb", "test/test_rdoc_ri_default_display.rb", "test/test_rdoc_ri_driver.rb", "test/test_rdoc_ri_formatter.rb", "test/test_rdoc_ri_html_formatter.rb", "test/test_rdoc_ri_overstrike_formatter.rb", "test/test_rdoc_task.rb", "test/test_rdoc_top_level.rb", "test/xref_data.rb", "test/xref_test_case.rb"] - s.homepage = %q{http://rdoc.rubyforge.org} - s.rdoc_options = ["--main", "README.txt"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{rdoc} - s.rubygems_version = %q{1.3.5} - s.summary = %q{RDoc is an application that produces documentation for one or more Ruby source files} - s.test_files = ["test/test_attribute_manager.rb", "test/test_rdoc_any_method.rb", "test/test_rdoc_code_object.rb", "test/test_rdoc_constant.rb", "test/test_rdoc_context.rb", "test/test_rdoc_include.rb", "test/test_rdoc_markup.rb", "test/test_rdoc_markup_attribute_manager.rb", "test/test_rdoc_markup_to_html.rb", "test/test_rdoc_markup_to_html_crossref.rb", "test/test_rdoc_normal_module.rb", "test/test_rdoc_parser.rb", "test/test_rdoc_parser_c.rb", "test/test_rdoc_parser_perl.rb", "test/test_rdoc_parser_ruby.rb", "test/test_rdoc_require.rb", "test/test_rdoc_ri_attribute_formatter.rb", "test/test_rdoc_ri_default_display.rb", "test/test_rdoc_ri_driver.rb", "test/test_rdoc_ri_formatter.rb", "test/test_rdoc_ri_html_formatter.rb", "test/test_rdoc_ri_overstrike_formatter.rb", "test/test_rdoc_task.rb", "test/test_rdoc_top_level.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, ["~> 1.3"]) - s.add_development_dependency(%q, [">= 1.12.1"]) - else - s.add_dependency(%q, ["~> 1.3"]) - s.add_dependency(%q, [">= 1.12.1"]) - end - else - s.add_dependency(%q, ["~> 1.3"]) - s.add_dependency(%q, [">= 1.12.1"]) - end -end diff --git a/vendor/gems/specifications/rspec-1.2.9.gemspec b/vendor/gems/specifications/rspec-1.2.9.gemspec deleted file mode 100644 index 13d5aa26..00000000 --- a/vendor/gems/specifications/rspec-1.2.9.gemspec +++ /dev/null @@ -1,58 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{rspec} - s.version = "1.2.9" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["RSpec Development Team"] - s.date = %q{2009-10-04} - s.description = %q{Behaviour Driven Development for Ruby.} - s.email = ["rspec-devel@rubyforge.org"] - s.executables = ["autospec", "spec"] - s.extra_rdoc_files = ["License.txt", "Manifest.txt", "TODO.txt", "examples/failing/README.txt"] - s.files = [".document", "History.rdoc", "License.txt", "Manifest.txt", "README.rdoc", "Rakefile", "Ruby1.9.rdoc", "TODO.txt", "Upgrade.rdoc", "bin/autospec", "bin/spec", "cucumber.yml", "examples/failing/README.txt", "examples/failing/diffing_spec.rb", "examples/failing/failing_implicit_docstrings_example.rb", "examples/failing/failure_in_after.rb", "examples/failing/failure_in_before.rb", "examples/failing/mocking_example.rb", "examples/failing/mocking_with_flexmock.rb", "examples/failing/mocking_with_mocha.rb", "examples/failing/mocking_with_rr.rb", "examples/failing/partial_mock_example.rb", "examples/failing/pending_example.rb", "examples/failing/predicate_example.rb", "examples/failing/raising_example.rb", "examples/failing/syntax_error_example.rb", "examples/failing/team_spec.rb", "examples/failing/timeout_behaviour.rb", "examples/passing/custom_formatter.rb", "examples/passing/custom_matchers.rb", "examples/passing/dynamic_spec.rb", "examples/passing/file_accessor.rb", "examples/passing/file_accessor_spec.rb", "examples/passing/filtered_formatter.rb", "examples/passing/filtered_formatter_example.rb", "examples/passing/greeter_spec.rb", "examples/passing/helper_method_example.rb", "examples/passing/implicit_docstrings_example.rb", "examples/passing/io_processor.rb", "examples/passing/io_processor_spec.rb", "examples/passing/mocking_example.rb", "examples/passing/multi_threaded_example_group_runner.rb", "examples/passing/nested_classes_example.rb", "examples/passing/options_example.rb", "examples/passing/options_formatter.rb", "examples/passing/partial_mock_example.rb", "examples/passing/pending_example.rb", "examples/passing/predicate_example.rb", "examples/passing/shared_example_group_example.rb", "examples/passing/shared_stack_examples.rb", "examples/passing/simple_matcher_example.rb", "examples/passing/stack.rb", "examples/passing/stack_spec.rb", "examples/passing/stack_spec_with_nested_example_groups.rb", "examples/passing/stubbing_example.rb", "examples/passing/yielding_example.rb", "examples/ruby1.9.compatibility/access_to_constants_spec.rb", "features/before_and_after_blocks/before_and_after_blocks.feature", "features/command_line/line_number_option.feature", "features/command_line/line_number_option_with_example_with_no_name.feature", "features/example_groups/define_example_attribute.feature", "features/example_groups/example_group_with_should_methods.feature", "features/example_groups/implicit_docstrings.feature", "features/example_groups/nested_groups.feature", "features/expectations/customized_message.feature", "features/expectations/expect_change.feature", "features/expectations/expect_error.feature", "features/extensions/custom_example_group.feature", "features/formatters/custom_formatter.feature", "features/interop/examples_and_tests_together.feature", "features/interop/rspec_output.feature", "features/interop/test_but_not_test_unit.feature", "features/interop/test_case_with_should_methods.feature", "features/load_paths/add_lib_to_load_path.feature", "features/load_paths/add_spec_to_load_path.feature", "features/matchers/define_diffable_matcher.feature", "features/matchers/define_matcher.feature", "features/matchers/define_matcher_outside_rspec.feature", "features/matchers/define_matcher_with_fluent_interface.feature", "features/matchers/define_wrapped_matcher.feature", "features/mock_framework_integration/use_flexmock.feature", "features/mock_framework_integration/use_mocha.feature", "features/mock_framework_integration/use_rr.feature", "features/mocks/mix_stubs_and_mocks.feature", "features/mocks/stub_implementation.feature", "features/pending/pending_examples.feature", "features/runner/specify_line_number.feature", "features/spec_helper/spec_helper.feature", "features/step_definitions/running_rspec_steps.rb", "features/subject/explicit_subject.feature", "features/subject/implicit_subject.feature", "features/support/env.rb", "features/support/matchers/smart_match.rb", "init.rb", "lib/autotest/discover.rb", "lib/autotest/rspec.rb", "lib/spec.rb", "lib/spec/adapters/mock_frameworks/flexmock.rb", "lib/spec/adapters/mock_frameworks/mocha.rb", "lib/spec/adapters/mock_frameworks/rr.rb", "lib/spec/adapters/mock_frameworks/rspec.rb", "lib/spec/autorun.rb", "lib/spec/deprecation.rb", "lib/spec/dsl.rb", "lib/spec/dsl/main.rb", "lib/spec/example.rb", "lib/spec/example/args_and_options.rb", "lib/spec/example/before_and_after_hooks.rb", "lib/spec/example/errors.rb", "lib/spec/example/example_group.rb", "lib/spec/example/example_group_factory.rb", "lib/spec/example/example_group_hierarchy.rb", "lib/spec/example/example_group_methods.rb", "lib/spec/example/example_group_proxy.rb", "lib/spec/example/example_matcher.rb", "lib/spec/example/example_methods.rb", "lib/spec/example/example_proxy.rb", "lib/spec/example/module_reopening_fix.rb", "lib/spec/example/pending.rb", "lib/spec/example/predicate_matchers.rb", "lib/spec/example/shared_example_group.rb", "lib/spec/example/subject.rb", "lib/spec/expectations.rb", "lib/spec/expectations/errors.rb", "lib/spec/expectations/extensions.rb", "lib/spec/expectations/extensions/kernel.rb", "lib/spec/expectations/fail_with.rb", "lib/spec/expectations/handler.rb", "lib/spec/interop/test.rb", "lib/spec/interop/test/unit/autorunner.rb", "lib/spec/interop/test/unit/testcase.rb", "lib/spec/interop/test/unit/testresult.rb", "lib/spec/interop/test/unit/testsuite_adapter.rb", "lib/spec/interop/test/unit/ui/console/testrunner.rb", "lib/spec/matchers.rb", "lib/spec/matchers/be.rb", "lib/spec/matchers/be_close.rb", "lib/spec/matchers/be_instance_of.rb", "lib/spec/matchers/be_kind_of.rb", "lib/spec/matchers/change.rb", "lib/spec/matchers/compatibility.rb", "lib/spec/matchers/dsl.rb", "lib/spec/matchers/eql.rb", "lib/spec/matchers/equal.rb", "lib/spec/matchers/errors.rb", "lib/spec/matchers/exist.rb", "lib/spec/matchers/extensions/instance_exec.rb", "lib/spec/matchers/generated_descriptions.rb", "lib/spec/matchers/has.rb", "lib/spec/matchers/have.rb", "lib/spec/matchers/include.rb", "lib/spec/matchers/match.rb", "lib/spec/matchers/match_array.rb", "lib/spec/matchers/matcher.rb", "lib/spec/matchers/method_missing.rb", "lib/spec/matchers/operator_matcher.rb", "lib/spec/matchers/pretty.rb", "lib/spec/matchers/raise_error.rb", "lib/spec/matchers/respond_to.rb", "lib/spec/matchers/satisfy.rb", "lib/spec/matchers/simple_matcher.rb", "lib/spec/matchers/throw_symbol.rb", "lib/spec/matchers/wrap_expectation.rb", "lib/spec/mocks.rb", "lib/spec/mocks/argument_expectation.rb", "lib/spec/mocks/argument_matchers.rb", "lib/spec/mocks/error_generator.rb", "lib/spec/mocks/errors.rb", "lib/spec/mocks/example_methods.rb", "lib/spec/mocks/extensions.rb", "lib/spec/mocks/extensions/object.rb", "lib/spec/mocks/framework.rb", "lib/spec/mocks/message_expectation.rb", "lib/spec/mocks/methods.rb", "lib/spec/mocks/mock.rb", "lib/spec/mocks/order_group.rb", "lib/spec/mocks/proxy.rb", "lib/spec/mocks/space.rb", "lib/spec/rake/spectask.rb", "lib/spec/rake/verify_rcov.rb", "lib/spec/ruby.rb", "lib/spec/runner.rb", "lib/spec/runner/backtrace_tweaker.rb", "lib/spec/runner/class_and_arguments_parser.rb", "lib/spec/runner/command_line.rb", "lib/spec/runner/configuration.rb", "lib/spec/runner/differs/default.rb", "lib/spec/runner/differs/load-diff-lcs.rb", "lib/spec/runner/drb_command_line.rb", "lib/spec/runner/example_group_runner.rb", "lib/spec/runner/extensions/kernel.rb", "lib/spec/runner/formatter/base_formatter.rb", "lib/spec/runner/formatter/base_text_formatter.rb", "lib/spec/runner/formatter/failing_example_groups_formatter.rb", "lib/spec/runner/formatter/failing_examples_formatter.rb", "lib/spec/runner/formatter/html_formatter.rb", "lib/spec/runner/formatter/nested_text_formatter.rb", "lib/spec/runner/formatter/no_op_method_missing.rb", "lib/spec/runner/formatter/profile_formatter.rb", "lib/spec/runner/formatter/progress_bar_formatter.rb", "lib/spec/runner/formatter/silent_formatter.rb", "lib/spec/runner/formatter/snippet_extractor.rb", "lib/spec/runner/formatter/specdoc_formatter.rb", "lib/spec/runner/formatter/text_mate_formatter.rb", "lib/spec/runner/heckle_runner.rb", "lib/spec/runner/heckle_runner_unsupported.rb", "lib/spec/runner/line_number_query.rb", "lib/spec/runner/option_parser.rb", "lib/spec/runner/options.rb", "lib/spec/runner/reporter.rb", "lib/spec/stubs/cucumber.rb", "lib/spec/test/unit.rb", "lib/spec/version.rb", "resources/helpers/cmdline.rb", "resources/rake/examples.rake", "resources/rake/examples_with_rcov.rake", "resources/rake/failing_examples_with_html.rake", "resources/rake/verify_rcov.rake", "spec/README.jruby", "spec/autotest/autotest_helper.rb", "spec/autotest/autotest_matchers.rb", "spec/autotest/discover_spec.rb", "spec/autotest/failed_results_re_spec.rb", "spec/autotest/rspec_spec.rb", "spec/ruby_forker.rb", "spec/spec.opts", "spec/spec/dsl/main_spec.rb", "spec/spec/example/example_group_class_definition_spec.rb", "spec/spec/example/example_group_factory_spec.rb", "spec/spec/example/example_group_methods_spec.rb", "spec/spec/example/example_group_proxy_spec.rb", "spec/spec/example/example_group_spec.rb", "spec/spec/example/example_matcher_spec.rb", "spec/spec/example/example_methods_spec.rb", "spec/spec/example/example_proxy_spec.rb", "spec/spec/example/helper_method_spec.rb", "spec/spec/example/nested_example_group_spec.rb", "spec/spec/example/pending_module_spec.rb", "spec/spec/example/predicate_matcher_spec.rb", "spec/spec/example/shared_example_group_spec.rb", "spec/spec/example/subclassing_example_group_spec.rb", "spec/spec/example/subject_spec.rb", "spec/spec/expectations/differs/default_spec.rb", "spec/spec/expectations/extensions/kernel_spec.rb", "spec/spec/expectations/fail_with_spec.rb", "spec/spec/expectations/handler_spec.rb", "spec/spec/expectations/wrap_expectation_spec.rb", "spec/spec/interop/test/unit/resources/spec_that_fails.rb", "spec/spec/interop/test/unit/resources/spec_that_passes.rb", "spec/spec/interop/test/unit/resources/spec_with_errors.rb", "spec/spec/interop/test/unit/resources/spec_with_options_hash.rb", "spec/spec/interop/test/unit/resources/test_case_that_fails.rb", "spec/spec/interop/test/unit/resources/test_case_that_passes.rb", "spec/spec/interop/test/unit/resources/test_case_with_errors.rb", "spec/spec/interop/test/unit/resources/test_case_with_various_names.rb", "spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb", "spec/spec/interop/test/unit/spec_spec.rb", "spec/spec/interop/test/unit/test_unit_spec_helper.rb", "spec/spec/interop/test/unit/testcase_spec.rb", "spec/spec/interop/test/unit/testsuite_adapter_spec.rb", "spec/spec/matchers/be_close_spec.rb", "spec/spec/matchers/be_instance_of_spec.rb", "spec/spec/matchers/be_kind_of_spec.rb", "spec/spec/matchers/be_spec.rb", "spec/spec/matchers/change_spec.rb", "spec/spec/matchers/compatibility_spec.rb", "spec/spec/matchers/description_generation_spec.rb", "spec/spec/matchers/dsl_spec.rb", "spec/spec/matchers/eql_spec.rb", "spec/spec/matchers/equal_spec.rb", "spec/spec/matchers/exist_spec.rb", "spec/spec/matchers/has_spec.rb", "spec/spec/matchers/have_spec.rb", "spec/spec/matchers/include_spec.rb", "spec/spec/matchers/match_array_spec.rb", "spec/spec/matchers/match_spec.rb", "spec/spec/matchers/matcher_methods_spec.rb", "spec/spec/matchers/matcher_spec.rb", "spec/spec/matchers/matchers_spec.rb", "spec/spec/matchers/operator_matcher_spec.rb", "spec/spec/matchers/raise_error_spec.rb", "spec/spec/matchers/respond_to_spec.rb", "spec/spec/matchers/satisfy_spec.rb", "spec/spec/matchers/simple_matcher_spec.rb", "spec/spec/matchers/throw_symbol_spec.rb", "spec/spec/mocks/any_number_of_times_spec.rb", "spec/spec/mocks/argument_expectation_spec.rb", "spec/spec/mocks/argument_matchers_spec.rb", "spec/spec/mocks/at_least_spec.rb", "spec/spec/mocks/at_most_spec.rb", "spec/spec/mocks/bug_report_10260_spec.rb", "spec/spec/mocks/bug_report_10263_spec.rb", "spec/spec/mocks/bug_report_11545_spec.rb", "spec/spec/mocks/bug_report_15719_spec.rb", "spec/spec/mocks/bug_report_496_spec.rb", "spec/spec/mocks/bug_report_600_spec.rb", "spec/spec/mocks/bug_report_7611_spec.rb", "spec/spec/mocks/bug_report_7805_spec.rb", "spec/spec/mocks/bug_report_8165_spec.rb", "spec/spec/mocks/bug_report_8302_spec.rb", "spec/spec/mocks/bug_report_830_spec.rb", "spec/spec/mocks/double_spec.rb", "spec/spec/mocks/failing_argument_matchers_spec.rb", "spec/spec/mocks/hash_including_matcher_spec.rb", "spec/spec/mocks/hash_not_including_matcher_spec.rb", "spec/spec/mocks/mock_ordering_spec.rb", "spec/spec/mocks/mock_space_spec.rb", "spec/spec/mocks/mock_spec.rb", "spec/spec/mocks/multiple_return_value_spec.rb", "spec/spec/mocks/nil_expectation_warning_spec.rb", "spec/spec/mocks/null_object_mock_spec.rb", "spec/spec/mocks/once_counts_spec.rb", "spec/spec/mocks/options_hash_spec.rb", "spec/spec/mocks/partial_mock_spec.rb", "spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb", "spec/spec/mocks/passing_argument_matchers_spec.rb", "spec/spec/mocks/precise_counts_spec.rb", "spec/spec/mocks/record_messages_spec.rb", "spec/spec/mocks/stub_chain_spec.rb", "spec/spec/mocks/stub_implementation_spec.rb", "spec/spec/mocks/stub_spec.rb", "spec/spec/mocks/stubbed_message_expectations_spec.rb", "spec/spec/mocks/twice_counts_spec.rb", "spec/spec/mocks/unstub_spec.rb", "spec/spec/package/bin_spec_spec.rb", "spec/spec/rake/spectask_spec.rb", "spec/spec/runner/class_and_argument_parser_spec.rb", "spec/spec/runner/command_line_spec.rb", "spec/spec/runner/configuration_spec.rb", "spec/spec/runner/drb_command_line_spec.rb", "spec/spec/runner/empty_file.txt", "spec/spec/runner/example_group_runner_spec.rb", "spec/spec/runner/examples.txt", "spec/spec/runner/failed.txt", "spec/spec/runner/formatter/base_formatter_spec.rb", "spec/spec/runner/formatter/base_text_formatter_spec.rb", "spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb", "spec/spec/runner/formatter/failing_examples_formatter_spec.rb", "spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html", "spec/spec/runner/formatter/html_formatted-1.8.6.html", "spec/spec/runner/formatter/html_formatted-1.8.7.html", "spec/spec/runner/formatter/html_formatted-1.9.1.html", "spec/spec/runner/formatter/html_formatter_spec.rb", "spec/spec/runner/formatter/nested_text_formatter_spec.rb", "spec/spec/runner/formatter/profile_formatter_spec.rb", "spec/spec/runner/formatter/progress_bar_formatter_spec.rb", "spec/spec/runner/formatter/snippet_extractor_spec.rb", "spec/spec/runner/formatter/specdoc_formatter_spec.rb", "spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.6.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.7.html", "spec/spec/runner/formatter/text_mate_formatted-1.9.1.html", "spec/spec/runner/formatter/text_mate_formatter_spec.rb", "spec/spec/runner/heckle_runner_spec.rb", "spec/spec/runner/heckler_spec.rb", "spec/spec/runner/line_number_query/line_number_query_fixture.rb", "spec/spec/runner/line_number_query_spec.rb", "spec/spec/runner/noisy_backtrace_tweaker_spec.rb", "spec/spec/runner/option_parser_spec.rb", "spec/spec/runner/options_spec.rb", "spec/spec/runner/output_one_time_fixture.rb", "spec/spec/runner/output_one_time_fixture_runner.rb", "spec/spec/runner/output_one_time_spec.rb", "spec/spec/runner/quiet_backtrace_tweaker_spec.rb", "spec/spec/runner/reporter_spec.rb", "spec/spec/runner/resources/a_bar.rb", "spec/spec/runner/resources/a_foo.rb", "spec/spec/runner/resources/a_spec.rb", "spec/spec/runner/resources/custom_example_group_runner.rb", "spec/spec/runner/resources/utf8_encoded.rb", "spec/spec/runner/spec.opts", "spec/spec/runner/spec_drb.opts", "spec/spec/runner/spec_spaced.opts", "spec/spec/runner_spec.rb", "spec/spec_helper.rb", "spec/support/macros.rb", "spec/support/spec_classes.rb"] - s.homepage = %q{http://rspec.info} - s.post_install_message = %q{************************************************** - - Thank you for installing rspec-1.2.9 - - Please be sure to read History.rdoc and Upgrade.rdoc - for useful information about this release. - -************************************************** -} - s.rdoc_options = ["--main", "README.rdoc"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{rspec} - s.rubygems_version = %q{1.3.5} - s.summary = %q{rspec 1.2.9} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 0.3"]) - s.add_development_dependency(%q, [">= 0.1.1"]) - s.add_development_dependency(%q, [">= 1.0"]) - s.add_development_dependency(%q, [">= 1.1.2"]) - s.add_development_dependency(%q, [">= 1.4.3"]) - s.add_development_dependency(%q, [">= 2.3.3"]) - else - s.add_dependency(%q, [">= 0.3"]) - s.add_dependency(%q, [">= 0.1.1"]) - s.add_dependency(%q, [">= 1.0"]) - s.add_dependency(%q, [">= 1.1.2"]) - s.add_dependency(%q, [">= 1.4.3"]) - s.add_dependency(%q, [">= 2.3.3"]) - end - else - s.add_dependency(%q, [">= 0.3"]) - s.add_dependency(%q, [">= 0.1.1"]) - s.add_dependency(%q, [">= 1.0"]) - s.add_dependency(%q, [">= 1.1.2"]) - s.add_dependency(%q, [">= 1.4.3"]) - s.add_dependency(%q, [">= 2.3.3"]) - end -end diff --git a/vendor/gems/specifications/rubyforge-2.0.3.gemspec b/vendor/gems/specifications/rubyforge-2.0.3.gemspec deleted file mode 100644 index fb9470ce..00000000 --- a/vendor/gems/specifications/rubyforge-2.0.3.gemspec +++ /dev/null @@ -1,43 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{rubyforge} - s.version = "2.0.3" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Ryan Davis", "Eric Hodel", "Ara T Howard", "Tom Copeland"] - s.date = %q{2009-10-10} - s.default_executable = %q{rubyforge} - s.description = %q{A script which automates a limited set of rubyforge operations. - -* Run 'rubyforge help' for complete usage. -* Setup: For first time users AND upgrades to 0.4.0: - * rubyforge setup (deletes your username and password, so run sparingly!) - * edit ~/.rubyforge/user-config.yml - * rubyforge config -* For all rubyforge upgrades, run 'rubyforge config' to ensure you have latest.} - s.email = ["ryand-ruby@zenspider.com", "drbrain@segment7.net", "ara.t.howard@gmail.com", "tom@infoether.com"] - s.executables = ["rubyforge"] - s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"] - s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/rubyforge", "lib/rubyforge.rb", "lib/rubyforge/client.rb", "test/test_rubyforge.rb", "test/test_rubyforge_client.rb"] - s.homepage = %q{http://codeforpeople.rubyforge.org/rubyforge/} - s.rdoc_options = ["--main", "README.txt"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{codeforpeople} - s.rubygems_version = %q{1.3.5} - s.summary = %q{A script which automates a limited set of rubyforge operations} - s.test_files = ["test/test_rubyforge.rb", "test/test_rubyforge_client.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 1.1.7"]) - else - s.add_dependency(%q, [">= 1.1.7"]) - end - else - s.add_dependency(%q, [">= 1.1.7"]) - end -end diff --git a/vendor/gems/specifications/sdoc-0.2.14.1.gemspec b/vendor/gems/specifications/sdoc-0.2.14.1.gemspec deleted file mode 100644 index 535e3523..00000000 --- a/vendor/gems/specifications/sdoc-0.2.14.1.gemspec +++ /dev/null @@ -1,35 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{sdoc} - s.version = "0.2.14.1" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Volodya Kolesnikov"] - s.date = %q{2009-08-13} - s.email = %q{voloko@gmail.com} - s.executables = ["sdoc", "sdoc-merge"] - s.extra_rdoc_files = ["LICENSE", "README.rdoc"] - s.files = [".gitignore", "LICENSE", "README.rdoc", "Rakefile", "VERSION.yml", "bin/sdoc", "bin/sdoc-merge", "lib/rdoc/discover.rb", "lib/sdoc.rb", "lib/sdoc/c_parser_fix.rb", "lib/sdoc/generator/shtml.rb", "lib/sdoc/generator/template/direct/_context.rhtml", "lib/sdoc/generator/template/direct/class.rhtml", "lib/sdoc/generator/template/direct/file.rhtml", "lib/sdoc/generator/template/direct/index.rhtml", "lib/sdoc/generator/template/direct/resources/apple-touch-icon.png", "lib/sdoc/generator/template/direct/resources/css/main.css", "lib/sdoc/generator/template/direct/resources/css/panel.css", "lib/sdoc/generator/template/direct/resources/css/reset.css", "lib/sdoc/generator/template/direct/resources/favicon.ico", "lib/sdoc/generator/template/direct/resources/i/arrows.png", "lib/sdoc/generator/template/direct/resources/i/results_bg.png", "lib/sdoc/generator/template/direct/resources/i/tree_bg.png", "lib/sdoc/generator/template/direct/resources/js/jquery-1.3.2.min.js", "lib/sdoc/generator/template/direct/resources/js/jquery-effect.js", "lib/sdoc/generator/template/direct/resources/js/main.js", "lib/sdoc/generator/template/direct/resources/js/searchdoc.js", "lib/sdoc/generator/template/direct/resources/panel/index.html", "lib/sdoc/generator/template/merge/index.rhtml", "lib/sdoc/generator/template/shtml/_context.rhtml", "lib/sdoc/generator/template/shtml/class.rhtml", "lib/sdoc/generator/template/shtml/file.rhtml", "lib/sdoc/generator/template/shtml/index.rhtml", "lib/sdoc/generator/template/shtml/resources/apple-touch-icon.png", "lib/sdoc/generator/template/shtml/resources/css/main.css", "lib/sdoc/generator/template/shtml/resources/css/panel.css", "lib/sdoc/generator/template/shtml/resources/css/reset.css", "lib/sdoc/generator/template/shtml/resources/favicon.ico", "lib/sdoc/generator/template/shtml/resources/i/arrows.png", "lib/sdoc/generator/template/shtml/resources/i/results_bg.png", "lib/sdoc/generator/template/shtml/resources/i/tree_bg.png", "lib/sdoc/generator/template/shtml/resources/js/jquery-1.3.2.min.js", "lib/sdoc/generator/template/shtml/resources/js/main.js", "lib/sdoc/generator/template/shtml/resources/js/searchdoc.js", "lib/sdoc/generator/template/shtml/resources/panel/index.html", "lib/sdoc/github.rb", "lib/sdoc/helpers.rb", "lib/sdoc/merge.rb", "lib/sdoc/templatable.rb", "sdoc.gemspec"] - s.homepage = %q{http://github.com/voloko/sdoc} - s.rdoc_options = ["--charset=UTF-8"] - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} - s.summary = %q{rdoc html with javascript search index.} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 1.1.3"]) - s.add_runtime_dependency(%q, [">= 2.4.2"]) - else - s.add_dependency(%q, [">= 1.1.3"]) - s.add_dependency(%q, [">= 2.4.2"]) - end - else - s.add_dependency(%q, [">= 1.1.3"]) - s.add_dependency(%q, [">= 2.4.2"]) - end -end diff --git a/vendor/gems/specifications/syntax-1.0.0.gemspec b/vendor/gems/specifications/syntax-1.0.0.gemspec deleted file mode 100644 index b45b277d..00000000 --- a/vendor/gems/specifications/syntax-1.0.0.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{syntax} - s.version = "1.0.0" - - s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version= - s.authors = ["Jamis Buck"] - s.autorequire = %q{syntax} - s.cert_chain = nil - s.date = %q{2005-06-18} - s.email = %q{jamis@jamisbuck.org} - s.files = ["data/ruby.css", "data/xml.css", "data/yaml.css", "lib/syntax", "lib/syntax.rb", "lib/syntax/common.rb", "lib/syntax/convertors", "lib/syntax/lang", "lib/syntax/version.rb", "lib/syntax/convertors/abstract.rb", "lib/syntax/convertors/html.rb", "lib/syntax/lang/ruby.rb", "lib/syntax/lang/xml.rb", "lib/syntax/lang/yaml.rb", "test/ALL-TESTS.rb", "test/syntax", "test/tc_syntax.rb", "test/syntax/tc_ruby.rb", "test/syntax/tc_xml.rb", "test/syntax/tc_yaml.rb", "test/syntax/tokenizer_testcase.rb"] - s.require_paths = ["lib"] - s.required_ruby_version = Gem::Requirement.new("> 0.0.0") - s.rubygems_version = %q{1.3.5} - s.summary = %q{Syntax is Ruby library for performing simple syntax highlighting.} - s.test_files = ["test/ALL-TESTS.rb"] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 1 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/term-ansicolor-1.0.4.gemspec b/vendor/gems/specifications/term-ansicolor-1.0.4.gemspec deleted file mode 100644 index 765669fe..00000000 --- a/vendor/gems/specifications/term-ansicolor-1.0.4.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{term-ansicolor} - s.version = "1.0.4" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Florian Frank"] - s.date = %q{2009-07-22} - s.description = %q{} - s.email = %q{flori@ping.de} - s.extra_rdoc_files = ["doc-main.txt"] - s.files = ["CHANGES", "COPYING", "README", "Rakefile", "VERSION", "examples/cdiff.rb", "examples/example.rb", "install.rb", "lib/term/ansicolor.rb", "lib/term/ansicolor/version.rb", "term-ansicolor.gemspec", "doc-main.txt"] - s.homepage = %q{http://term-ansicolor.rubyforge.org} - s.rdoc_options = ["--main", "doc-main.txt"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{term-ansicolor} - s.rubygems_version = %q{1.3.5} - s.summary = %q{Ruby library that colors strings using ANSI escape sequences} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end diff --git a/vendor/gems/specifications/treetop-1.4.2.gemspec b/vendor/gems/specifications/treetop-1.4.2.gemspec deleted file mode 100644 index c333514b..00000000 --- a/vendor/gems/specifications/treetop-1.4.2.gemspec +++ /dev/null @@ -1,32 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{treetop} - s.version = "1.4.2" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Nathan Sobo"] - s.autorequire = %q{treetop} - s.date = %q{2009-09-10} - s.default_executable = %q{tt} - s.email = %q{nathansobo@gmail.com} - s.executables = ["tt"] - s.files = ["LICENSE", "README.md", "Rakefile", "lib/treetop/bootstrap_gen_1_metagrammar.rb", "lib/treetop/compiler/grammar_compiler.rb", "lib/treetop/compiler/lexical_address_space.rb", "lib/treetop/compiler/metagrammar.rb", "lib/treetop/compiler/metagrammar.treetop", "lib/treetop/compiler/node_classes/anything_symbol.rb", "lib/treetop/compiler/node_classes/atomic_expression.rb", "lib/treetop/compiler/node_classes/character_class.rb", "lib/treetop/compiler/node_classes/choice.rb", "lib/treetop/compiler/node_classes/declaration_sequence.rb", "lib/treetop/compiler/node_classes/grammar.rb", "lib/treetop/compiler/node_classes/inline_module.rb", "lib/treetop/compiler/node_classes/nonterminal.rb", "lib/treetop/compiler/node_classes/optional.rb", "lib/treetop/compiler/node_classes/parenthesized_expression.rb", "lib/treetop/compiler/node_classes/parsing_expression.rb", "lib/treetop/compiler/node_classes/parsing_rule.rb", "lib/treetop/compiler/node_classes/predicate.rb", "lib/treetop/compiler/node_classes/predicate_block.rb", "lib/treetop/compiler/node_classes/repetition.rb", "lib/treetop/compiler/node_classes/sequence.rb", "lib/treetop/compiler/node_classes/terminal.rb", "lib/treetop/compiler/node_classes/transient_prefix.rb", "lib/treetop/compiler/node_classes/treetop_file.rb", "lib/treetop/compiler/node_classes.rb", "lib/treetop/compiler/ruby_builder.rb", "lib/treetop/compiler.rb", "lib/treetop/ruby_extensions/string.rb", "lib/treetop/ruby_extensions.rb", "lib/treetop/runtime/compiled_parser.rb", "lib/treetop/runtime/interval_skip_list/head_node.rb", "lib/treetop/runtime/interval_skip_list/interval_skip_list.rb", "lib/treetop/runtime/interval_skip_list/node.rb", "lib/treetop/runtime/interval_skip_list.rb", "lib/treetop/runtime/syntax_node.rb", "lib/treetop/runtime/terminal_parse_failure.rb", "lib/treetop/runtime/terminal_parse_failure_debug.rb", "lib/treetop/runtime/terminal_syntax_node.rb", "lib/treetop/runtime.rb", "lib/treetop/version.rb", "lib/treetop.rb", "bin/tt", "doc/contributing_and_planned_features.markdown", "doc/grammar_composition.markdown", "doc/index.markdown", "doc/pitfalls_and_advanced_techniques.markdown", "doc/semantic_interpretation.markdown", "doc/site.rb", "doc/sitegen.rb", "doc/syntactic_recognition.markdown", "doc/using_in_ruby.markdown", "examples/lambda_calculus/arithmetic.rb", "examples/lambda_calculus/arithmetic.treetop", "examples/lambda_calculus/arithmetic_node_classes.rb", "examples/lambda_calculus/arithmetic_test.rb", "examples/lambda_calculus/lambda_calculus", "examples/lambda_calculus/lambda_calculus.rb", "examples/lambda_calculus/lambda_calculus.treetop", "examples/lambda_calculus/lambda_calculus_node_classes.rb", "examples/lambda_calculus/lambda_calculus_test.rb", "examples/lambda_calculus/test_helper.rb"] - s.homepage = %q{http://functionalform.blogspot.com} - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} - s.summary = %q{A Ruby-based text parsing and interpretation DSL} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 0.2.5"]) - else - s.add_dependency(%q, [">= 0.2.5"]) - end - else - s.add_dependency(%q, [">= 0.2.5"]) - end -end