You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/10/24 17:58:37 UTC

[whimsy] branch master updated: No longer needed now that rspec test exists

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 314c7fb  No longer needed now that rspec test exists
314c7fb is described below

commit 314c7fb06b8e0b91f49a3718b0fbf4511a985954
Author: Sebb <se...@apache.org>
AuthorDate: Thu Oct 24 18:58:33 2019 +0100

    No longer needed now that rspec test exists
---
 lib/whimsy/asf/site.rb | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/lib/whimsy/asf/site.rb b/lib/whimsy/asf/site.rb
index 3f41884..ef127cf 100644
--- a/lib/whimsy/asf/site.rb
+++ b/lib/whimsy/asf/site.rb
@@ -1,8 +1,3 @@
-if __FILE__ == $0 # testing only
-  require 'wunderbar'
-  require_relative 'config' 
-  require_relative 'svn' 
-end
 require 'yaml'
 
 module ASF
@@ -83,31 +78,3 @@ module ASF
     end
   end
 end
-
-if __FILE__ == $0
-  require 'tempfile'
-  board = ASF::SVN.find('board')
-  file = File.join(board, 'committee-info.yaml')
-  if not File.exist?(file)
-    Wunderbar.error "Unable to find 'committee-info.yaml'"
-    return
-  end
-  input = File.read(file)
-  output = ASF::Site.appendtlp(input,'ant','ABCD.')
-  puts (output == input)
-  output = ASF::Site.appendtlp(input,'comdev','ABCD.')
-  puts (output == input)
-  output = ASF::Site.appendtlp(input,'antic1','ABCD.')
-  puts (output == input)
-  output = ASF::Site.appendtlp(output,'antic2','ABCD.')
-  puts (output == input)
-  Tempfile.create('site-ciy1') do |f|
-    Tempfile.create('site-ciy2') do |g|
-      f.write(input)
-      g.write(output)
-      f.close()
-      g.close()
-      system("diff #{f.path} #{g.path}")
-    end
-  end
-end