Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Final fixes for unserializer autoselect.

  • Loading branch information...
commit 9b9b1dd35973e330d7e00faebda87036e98dfa4a 1 parent 0614e8d
@louismullie authored
View
1  .travis.yml
@@ -2,7 +2,6 @@ language: ruby
rvm:
- 1.9.2
- 1.9.3
- - rbx-19mode
before_script:
- sudo apt-get install antiword
- sudo apt-get install poppler-utils
View
5 lib/treat/entities/abilities/buildable.rb
@@ -174,9 +174,8 @@ def from_file(file, options)
fmt = Treat::Formatters::Readers::Autoselect.
detect_format(file, dflt)
options[:_format] = fmt
-
- # Humanize the yaml extension.
- if fmt == :yaml ||
+
+ if fmt == :yaml || fmt == :yml ||
(fmt == :xml && is_treat_xml?(file))
f = from_serialized_file(file, options)
else
View
1  lib/treat/extractors/name_tag/stanford.rb
@@ -4,7 +4,6 @@
class Treat::Extractors::NameTag::Stanford
require 'treat/loaders/stanford'
- Treat::Loaders::Stanford.load
@@classifiers = {}
View
2  lib/treat/formatters/readers/xml.rb
@@ -1,8 +1,6 @@
class Treat::Formatters::Readers::XML
require 'treat/loaders/stanford'
- Treat::Loaders::Stanford.load
-
require 'cgi'
# By default, don't backup the XML
View
1  lib/treat/installer.rb
@@ -180,7 +180,6 @@ def self.install_binaries
end
def self.download_stanford(package = :minimal)
- package = :minimal
f = StanfordPackages[package]
loc = Treat::Downloader.download(
'http', Server, 'treat', f, Treat.tmp)
Please sign in to comment.
Something went wrong with that request. Please try again.