./lib/joshua.rb in joshua-0.2.4 vs ./lib/joshua.rb in joshua-0.2.7

- old
+ new

@@ -1,24 +1,8 @@ -unless ''.respond_to?(:dasherize) - require 'dry/inflector' - - class String - %w( - classify - constantize - dasherize - ordinalize - pluralize - singularize - tableize - underscore - ).each do |name| - define_method name do - Dry::Inflector.new.send(name, self) - end - end - end +unless ''.respond_to?(:classify) + require 'sequel' + Sequel.extension :inflector end require 'json' require 'typero' require 'html-tag' @@ -28,9 +12,9 @@ require_relative './joshua/base_class' require_relative './joshua/response' require_relative './joshua/render_proxy' require_relative './doc/doc' -require_relative './doc/special' +require_relative './doc/postman_schema'