lib/serious.rb in serious-0.2.12 vs lib/serious.rb in serious-0.3.0
- old
+ new
@@ -1,12 +1,18 @@
# encoding: utf-8
-Encoding.default_internal = 'utf-8' if RUBY_VERSION =~ /^1\.9/
+if "1.9".respond_to?(:encoding)
+ Encoding.default_external = 'UTF-8'
+ Encoding.default_internal = 'UTF-8'
+end
+
require 'rubygems'
-gem 'sinatra', '>= 1.0.0'
+require 'bundler'
+Bundler.setup(:default)
require 'sinatra/base'
require 'stupid_formatter'
require 'yaml'
require 'builder'
+
$:.unshift File.dirname(__FILE__)
require 'ruby_ext'
class Serious < Sinatra::Base