lib/twee2.rb in twee2-0.3.2 vs lib/twee2.rb in twee2-0.3.3
- old
+ new
@@ -36,15 +36,17 @@
def self.formats
puts "I understand the following output formats:"
puts StoryFormat.known_names.join("\n")
end
- # Reverse-engineers a Twee2/Twine 2 output HTML file into a Twee2 source file
- def self.decompile(url, output)
- File::open(output, 'w') do |out|
- out.print Decompiler::decompile(url)
+ unless Gem.win_platform?
+ # Reverse-engineers a Twee2/Twine 2 output HTML file into a Twee2 source file
+ def self.decompile(url, output)
+ File::open(output, 'w') do |out|
+ out.print Decompiler::decompile(url)
+ end
+ puts "Done"
end
- puts "Done"
end
def self.help
puts "Twee2 #{Twee2::VERSION}"
puts File.read(buildpath('doc/usage.txt'))