19 lines
		
	
	
	
		
			556 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
	
		
			556 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
								 | 
							
								#!/usr/bin/env ruby
							 | 
						||
| 
								 | 
							
								$:.unshift('vendor/ruby-mediawiki/lib')
							 | 
						||
| 
								 | 
							
								$:.unshift('vendor/htree')
							 | 
						||
| 
								 | 
							
								require 'mediawiki/dotfile'
							 | 
						||
| 
								 | 
							
								@wiki = MediaWiki.dotfile(nil,'entropia')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@wiki.allpages.each do |title|
							 | 
						||
| 
								 | 
							
								  if @wiki.article(title).text.match("We are delicate. We do not delete your content.")
							 | 
						||
| 
								 | 
							
								    puts title
							 | 
						||
| 
								 | 
							
								  end
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  # FIXME: We might better want to specify a namespace in MediaWiki::allpages
							 | 
						||
| 
								 | 
							
								  discussion_title = "Diskussion:#{title}"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  if @wiki.article(discussion_title).text.match("We are delicate. We do not delete your content.")
							 | 
						||
| 
								 | 
							
								    puts discussion_title
							 | 
						||
| 
								 | 
							
								  end
							 | 
						||
| 
								 | 
							
								end
							 |