Skip to content

Commit

Permalink
Un-nest files inside directories in the std
Browse files Browse the repository at this point in the history
  • Loading branch information
Ary Borenszweig committed Jun 9, 2016
1 parent 0f172ab commit 4c21f1a
Show file tree
Hide file tree
Showing 33 changed files with 47 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/benchmark/benchmark.cr → src/benchmark.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./**"
require "./benchmark/**"

# The Benchmark module provides methods for benchmarking Crystal code, giving
# detailed reports on the time taken for each task.
Expand Down
4 changes: 4 additions & 0 deletions src/big.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require "./big/lib_gmp"
require "./big/big_int"
require "./big/big_float"
require "./big/big_rational"
4 changes: 0 additions & 4 deletions src/big/big.cr

This file was deleted.

2 changes: 1 addition & 1 deletion src/concurrent/concurrent.cr → src/concurrent.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "fiber"
require "./*"
require "./concurrent/*"

# Blocks the current fiber for the specified number of seconds.
#
Expand Down
2 changes: 1 addition & 1 deletion src/csv/csv.cr → src/csv.cr
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,4 @@ class CSV
end
end

require "./**"
require "./csv/**"
2 changes: 1 addition & 1 deletion src/csv/lexer/io_based.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "../csv"
require "csv"

# :nodoc:
class CSV::Lexer::IOBased < CSV::Lexer
Expand Down
2 changes: 1 addition & 1 deletion src/csv/lexer/string_based.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "../csv"
require "csv"

# :nodoc:
class CSV::Lexer::StringBased < CSV::Lexer
Expand Down
8 changes: 4 additions & 4 deletions src/docs_main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ require "./crypto/**"
require "./csv"
require "./digest/**"
require "./ecr"
require "./event/**"
require "./fiber/**"
require "./event"
require "./fiber"
require "./gc/**"
require "./html"
require "./http/**"
require "./io/**"
require "./json/**"
require "./json"
require "./llvm/**"
require "./logger"
require "./macros"
Expand All @@ -31,7 +31,7 @@ require "./string/**"
require "./thread/**"
require "./time/**"
require "./xml/**"
require "./yaml/**"
require "./yaml"
require "./benchmark"
require "./array"
require "./bit_array"
Expand Down
2 changes: 1 addition & 1 deletion src/ecr/ecr.cr → src/ecr.cr
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ module ECR
end
end

require "./lexer"
require "./ecr/lexer"
2 changes: 1 addition & 1 deletion src/event/event.cr → src/event.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./*"
require "./event/*"

# :nodoc:
module Event
Expand Down
4 changes: 4 additions & 0 deletions src/ext.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@[Link(ldflags: "#{__DIR__}/ext/libcrystal.a")]
lib LibExt
fun setup_sigfault_handler
end
4 changes: 0 additions & 4 deletions src/ext/ext.cr

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion src/http/http.cr → src/http.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "uri"
require "./**"
require "./http/**"

# The HTTP module contains `HTTP::Client`, `HTTP::Server` and `HTTP::WebSocket` implementations.
module HTTP
Expand Down
4 changes: 2 additions & 2 deletions src/http/client/client.cr → src/http/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -622,5 +622,5 @@ require "openssl" ifdef !without_openssl
require "socket"
require "uri"
require "base64"
require "./response"
require "../common"
require "./client/response"
require "./common"
2 changes: 1 addition & 1 deletion src/http/client/response.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./client"
require "../client"
require "../common"

class HTTP::Client::Response
Expand Down
8 changes: 4 additions & 4 deletions src/http/server/server.cr → src/http/server.cr
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require "openssl" ifdef !without_openssl
require "socket"
require "./context"
require "./handler"
require "./response"
require "../common"
require "./server/context"
require "./server/handler"
require "./server/response"
require "./common"

# An HTTP server.
#
Expand Down
2 changes: 1 addition & 1 deletion src/json/json.cr → src/json.cr
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ module JSON
end
end

require "./*"
require "./json/*"
File renamed without changes.
2 changes: 1 addition & 1 deletion src/llvm/llvm.cr → src/llvm.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./**"
require "./llvm/**"
require "c/string"

module LLVM
Expand Down
2 changes: 1 addition & 1 deletion src/markdown/markdown.cr → src/markdown.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class Markdown
end
end

require "./*"
require "./markdown/*"
2 changes: 1 addition & 1 deletion src/oauth/oauth.cr → src/oauth.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ require "uri"
require "secure_random"
require "openssl/hmac"
require "base64"
require "./**"
require "./oauth/**"
2 changes: 1 addition & 1 deletion src/oauth2/oauth2.cr → src/oauth2.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "http/client"
require "http/params"
require "json"
require "./**"
require "./oauth2/**"
12 changes: 6 additions & 6 deletions src/openssl/openssl.cr → src/openssl.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./lib_ssl"
require "./openssl/lib_ssl"

module OpenSSL
class Error < Exception
Expand Down Expand Up @@ -76,8 +76,8 @@ module OpenSSL
end
end

require "./bio"
require "./ssl/*"
require "./digest/*"
require "./md5"
require "./x509"
require "./openssl/bio"
require "./openssl/ssl/*"
require "./openssl/digest/*"
require "./openssl/md5"
require "./openssl/x509/x509"
2 changes: 1 addition & 1 deletion src/process/process.cr → src/process.cr
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ def fork
Process.fork
end

require "./*"
require "./process/*"
2 changes: 1 addition & 1 deletion src/regex/regex.cr → src/regex.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./*"
require "./regex/*"

# A Regex represents a regular expression, a pattern that describes the
# contents of strings. A Regex can determine whether or not a string matches
Expand Down
2 changes: 1 addition & 1 deletion src/socket/socket.cr → src/socket.cr
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@ class Socket < IO::FileDescriptor
end
end

require "./*"
require "./socket/*"
2 changes: 1 addition & 1 deletion src/spec/spec.cr → src/spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module Spec
end
end

require "./*"
require "./spec/*"

OptionParser.parse! do |opts|
opts.banner = "crystal spec runner"
Expand Down
2 changes: 1 addition & 1 deletion src/thread/thread.cr → src/thread.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "c/pthread"
require "./*"
require "./thread/*"

# :nodoc:
class Thread(T, R)
Expand Down
2 changes: 1 addition & 1 deletion src/time/time.cr → src/time.cr
Original file line number Diff line number Diff line change
Expand Up @@ -619,4 +619,4 @@ struct Time
end
end

require "./**"
require "./time/**"
2 changes: 1 addition & 1 deletion src/xml/xml.cr → src/xml.cr
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ module XML
end
end

require "./*"
require "./xml/*"
2 changes: 1 addition & 1 deletion src/yaml/yaml.cr → src/yaml.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./*"
require "./yaml/*"

# The YAML module provides serialization and deserialization of YAML to/from native Crystal data structures.
#
Expand Down
4 changes: 1 addition & 3 deletions src/zlib/zlib.cr → src/zlib.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require "./lib_zlib"
require "./deflate"
require "./inflate"
require "./zlib/*"

# The Zlib module provides access to the [zlib library](http://zlib.net/) for
# lossless data compression and decompression in zlib and gzip format:
Expand Down

0 comments on commit 4c21f1a

Please sign in to comment.