Skip to content

Commit

Permalink
Removed require statements and put all files in the same directory in…
Browse files Browse the repository at this point in the history
… lib.
  • Loading branch information
beakr committed May 21, 2012
1 parent 75e866c commit 2e30e2c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 31 deletions.
File renamed without changes.
File renamed without changes.
24 changes: 0 additions & 24 deletions lib/teacup.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
require 'codependency'
require 'pathname'

module Teacup

# - - - - - - - - - - - - - - - - - - -
# Thanks to https://github.com/jeremyruppel/lotion/
# for this bit.
# - - - - - - - - - - - - - - - - - - -

SOURCE = Dir[ File.expand_path( File.join(__FILE__, '../teacup/**/*.rb') ) ]
FILES = Codependency::Graph.new( SOURCE ).files.freeze
PATHS = FILES.map { |f| Pathname.new(f) }.freeze

def self::Dependencies(file)
path = Pathname.new(file).dirname
PATHS.map { |p| p.relative_path_from(path).to_s }
end

# - - - - - - - - - - - - - - - - - - -
# Config
# - - - - - - - - - - - - - - - - - - -
Expand Down Expand Up @@ -85,10 +68,3 @@ def current_sheet
end
end
end

require 'teacup/helpers/helpers.rb'
require 'teacup/version'
require 'teacup/contributors'
require 'teacup/helpers/helpers'
require 'teacup/style_sheet'
require 'teacup/contributors'
7 changes: 0 additions & 7 deletions lib/teacup/helpers/helpers.rb

This file was deleted.

File renamed without changes.

0 comments on commit 2e30e2c

Please sign in to comment.