1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove all Journey constant from public API

There were never public API only there by mistake.

[ci skip]
This commit is contained in:
Rafael Mendonça França 2016-10-26 15:25:02 -02:00
parent ec4aaccb1b
commit 3b50fb6b2f
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948
5 changed files with 17 additions and 7 deletions

View file

@ -1,10 +1,11 @@
require "action_controller/metal/exceptions"
module ActionDispatch
# :stopdoc:
module Journey
# The Formatter class is used for formatting URLs. For example, parameters
# passed to +url_for+ in Rails will eventually call Formatter#generate.
class Formatter # :nodoc:
class Formatter
attr_reader :routes
def initialize(routes)
@ -178,4 +179,5 @@ module ActionDispatch
end
end
end
# :stopdoc:
end

View file

@ -8,6 +8,7 @@ require "racc/parser.rb"
require "action_dispatch/journey/parser_extras"
module ActionDispatch
# :stopdoc:
module Journey
class Parser < Racc::Parser
##### State transition tables begin ###
@ -193,4 +194,5 @@ module ActionDispatch
end
end # class Parser
end # module Journey
# :startdoc:
end # module ActionDispatch

View file

@ -2,8 +2,9 @@ require "action_dispatch/journey/scanner"
require "action_dispatch/journey/nodes/node"
module ActionDispatch
module Journey # :nodoc:
class Parser < Racc::Parser # :nodoc:
# :stopdoc:
module Journey
class Parser < Racc::Parser
include Journey::Nodes
def self.parse(string)
@ -24,4 +25,5 @@ module ActionDispatch
end
end
end
# :startdoc:
end

View file

@ -1,6 +1,7 @@
module ActionDispatch
module Journey # :nodoc:
class Route # :nodoc:
# :stopdoc:
module Journey
class Route
attr_reader :app, :path, :defaults, :name, :precedence
attr_reader :constraints, :internal
@ -80,7 +81,7 @@ module ActionDispatch
end
end
def requirements # :nodoc:
def requirements
# needed for rails `rails routes`
@defaults.merge(path.requirements).delete_if { |_,v|
/.+?/ == v
@ -176,4 +177,5 @@ module ActionDispatch
end
end
end
# :startdoc:
end

View file

@ -1,5 +1,6 @@
module ActionDispatch
module Journey # :nodoc:
# :stopdoc:
module Journey
class Format
ESCAPE_PATH = ->(value) { Router::Utils.escape_path(value) }
ESCAPE_SEGMENT = ->(value) { Router::Utils.escape_segment(value) }
@ -261,4 +262,5 @@ module ActionDispatch
end
end
end
# :startdoc:
end