Skip to content

Commit

Permalink
add compatibility with Ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
eparreno committed Aug 8, 2012
1 parent 4ebe51e commit 0da3a1d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ Apiary.io CLI
This gem is not the official apiaryio gem and is under development. You can find the
official gem from Apiary at https://rubygems.org/gems/apiaryio

## Requirements

Ruby 1.9.x

## Description

Apiaryio gem provides a way to display your API documentation on your local
Expand Down
6 changes: 2 additions & 4 deletions lib/apiary.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'rubygems'
require "apiary/version"
require "apiary/cli"
require 'apiary/command/runner'
require 'apiary/command/preview'
require 'apiary/command/help'
require 'apiary/command/version'
Dir["#{File.dirname(__FILE__)}/apiary/command/*.rb"].each { |f| require(f) }

module Apiary
end
1 change: 0 additions & 1 deletion lib/apiary/cli.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: utf-8
require 'optparse'

module Apiary
class CLI

Expand Down
7 changes: 3 additions & 4 deletions lib/apiary/command/preview.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# encoding: utf-8
require "rest_client"
require "rack"

require 'rest_client'
require 'rack'
module Apiary
module Command
# Display preview of local blueprint file
class Preview

BROWSERS ||= {
BROWSERS = {
:safari => "Safari",
:chrome => "Google Chrome",
:firefox => "Firefox"
Expand Down

0 comments on commit 0da3a1d

Please sign in to comment.