1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Upgrade to Phoenix 1.3

I've also moved everything around to match the new Phoenix 1.3 directory
structure.
This commit is contained in:
Daniel Barber 2018-01-12 16:47:26 -05:00
parent 3397f2048a
commit 43a4299478
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
59 changed files with 6154 additions and 109 deletions

17
.gitignore vendored
View File

@ -7,18 +7,21 @@
# Generated on crash by the VM # Generated on crash by the VM
erl_crash.dump erl_crash.dump
# Static artifacts # Generated on crash by NPM
/node_modules npm-debug.log
# Since we are building assets from web/static, # Static artifacts
/assets/node_modules
# Since we are building assets from assets/,
# we ignore priv/static. You may want to comment # we ignore priv/static. You may want to comment
# this depending on your deployment strategy. # this depending on your deployment strategy.
/priv/static/ /priv/static/
# The config/prod.secret.exs file by default contains sensitive # Files matching config/*.secret.exs pattern contain sensitive
# data and you should not commit it into version control. # data and you should not commit them into version control.
# #
# Alternatively, you may comment the line below and commit the # Alternatively, you may comment the line below and commit the
# secrets file as long as you replace its contents by environment # secrets files as long as you replace their contents by environment
# variables. # variables.
/config/prod.secret.exs /config/*.secret.exs

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
elixir 1.5.2

View File

@ -20,21 +20,18 @@ exports.config = {
conventions: { conventions: {
// This option sets where we should place non-css and non-js assets in. // This option sets where we should place non-css and non-js assets in.
// By default, we set this to "/web/static/assets". Files in this directory // By default, we set this to "/assets/static". Files in this directory
// will be copied to `paths.public`, which is "priv/static" by default. // will be copied to `paths.public`, which is "priv/static" by default.
assets: /^(web\/static\/assets)/ assets: /^(static)/
}, },
// Phoenix paths configuration // Phoenix paths configuration
paths: { paths: {
// Dependencies and current project directories to watch // Dependencies and current project directories to watch
watched: [ watched: ["static", "css", "js", "vendor"],
"web/static",
"test/static"
],
// Where to compile files to // Where to compile files to
public: "priv/static" public: "../priv/static"
}, },
// Configure your plugins // Configure your plugins
@ -42,13 +39,13 @@ exports.config = {
babel: { babel: {
// Do not use ES6 compiler in vendor code // Do not use ES6 compiler in vendor code
presets: ["es2015", "es2016", "react"], presets: ["es2015", "es2016", "react"],
ignore: [/web\/static\/vendor/] ignore: [/vendor/]
} }
}, },
modules: { modules: {
autoRequire: { autoRequire: {
"js/app.js": ["web/static/js/application"] "js/app.js": ["js/app"]
} }
}, },

6041
assets/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,8 +10,8 @@
"immutable": "^3.8.1", "immutable": "^3.8.1",
"jquery": "^3.1.1", "jquery": "^3.1.1",
"lodash": "^4.17.2", "lodash": "^4.17.2",
"phoenix": "file:deps/phoenix", "phoenix": "file:../deps/phoenix",
"phoenix_html": "file:deps/phoenix_html", "phoenix_html": "file:../deps/phoenix_html",
"react": "^15.4.1", "react": "^15.4.1",
"react-dom": "^15.4.1", "react-dom": "^15.4.1",
"react-redux": "^4.4.6", "react-redux": "^4.4.6",

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 806 B

After

Width:  |  Height:  |  Size: 806 B

View File

Before

Width:  |  Height:  |  Size: 806 B

After

Width:  |  Height:  |  Size: 806 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -10,11 +10,11 @@ config :chess,
ecto_repos: [Chess.Repo] ecto_repos: [Chess.Repo]
# Configures the endpoint # Configures the endpoint
config :chess, Chess.Endpoint, config :chess, ChessWeb.Endpoint,
url: [host: "localhost"], url: [host: "localhost"],
secret_key_base: "iiTDTKorCWTFoeBgAkr35XZp22cNIM2RsmnHiHdzKAuSHXUGXx42z7lawAwiu1B1", secret_key_base: "iiTDTKorCWTFoeBgAkr35XZp22cNIM2RsmnHiHdzKAuSHXUGXx42z7lawAwiu1B1",
render_errors: [view: Chess.ErrorView, accepts: ~w(html json)], render_errors: [view: ChessWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: Chess.PubSub, pubsub: [name: ChessWeb.PubSub,
adapter: Phoenix.PubSub.PG2] adapter: Phoenix.PubSub.PG2]
# Configures Elixir's Logger # Configures Elixir's Logger

View File

@ -6,23 +6,23 @@ use Mix.Config
# The watchers configuration can be used to run external # The watchers configuration can be used to run external
# watchers to your application. For example, we use it # watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources. # with brunch.io to recompile .js and .css sources.
config :chess, Chess.Endpoint, config :chess, ChessWeb.Endpoint,
http: [port: 4000], http: [port: 4000],
debug_errors: true, debug_errors: true,
code_reloader: true, code_reloader: true,
check_origin: false, check_origin: false,
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin", watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
cd: Path.expand("../", __DIR__)]] cd: Path.expand("../assets", __DIR__)]]
# Watch static and templates for browser reloading. # Watch static and templates for browser reloading.
config :chess, Chess.Endpoint, config :chess, ChessWeb.Endpoint,
live_reload: [ live_reload: [
patterns: [ patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$}, ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$}, ~r{priv/gettext/.*(po)$},
~r{web/views/.*(ex)$}, ~r{lib/chess_web/views/.*(ex)$},
~r{web/templates/.*(eex)$} ~r{lib/chess_web/templates/.*(eex)$}
] ]
] ]

View File

@ -11,10 +11,10 @@ use Mix.Config
# containing the digested version of static files. This # containing the digested version of static files. This
# manifest is generated by the mix phoenix.digest task # manifest is generated by the mix phoenix.digest task
# which you typically run after static files are built. # which you typically run after static files are built.
config :chess, Chess.Endpoint, config :chess, ChessWeb.Endpoint,
http: [port: {:system, "PORT"}], http: [port: {:system, "PORT"}],
url: [host: "example.com", port: 80], url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/manifest.json" cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production # Do not print debug messages in production
config :logger, level: :info config :logger, level: :info
@ -24,7 +24,7 @@ config :logger, level: :info
# To get SSL working, you will need to add the `https` key # To get SSL working, you will need to add the `https` key
# to the previous section and set your `:url` port to 443: # to the previous section and set your `:url` port to 443:
# #
# config :chess, Chess.Endpoint, # config :chess, ChessWeb.Endpoint,
# ... # ...
# url: [host: "example.com", port: 443], # url: [host: "example.com", port: 443],
# https: [port: 443, # https: [port: 443,
@ -38,7 +38,7 @@ config :logger, level: :info
# We also recommend setting `force_ssl`, ensuring no data is # We also recommend setting `force_ssl`, ensuring no data is
# ever sent via http, always redirecting to https: # ever sent via http, always redirecting to https:
# #
# config :chess, Chess.Endpoint, # config :chess, ChessWeb.Endpoint,
# force_ssl: [hsts: true] # force_ssl: [hsts: true]
# #
# Check `Plug.SSL` for all available options in `force_ssl`. # Check `Plug.SSL` for all available options in `force_ssl`.
@ -53,12 +53,12 @@ config :logger, level: :info
# Alternatively, you can configure exactly which server to # Alternatively, you can configure exactly which server to
# start per endpoint: # start per endpoint:
# #
# config :chess, Chess.Endpoint, server: true # config :chess, ChessWeb.Endpoint, server: true
# #
# You will also need to set the application root to `.` in order # You will also need to set the application root to `.` in order
# for the new static assets to be served after a hot upgrade: # for the new static assets to be served after a hot upgrade:
# #
# config :chess, Chess.Endpoint, root: "." # config :chess, ChessWeb.Endpoint, root: "."
# Finally import the config/prod.secret.exs # Finally import the config/prod.secret.exs
# which should be versioned separately. # which should be versioned separately.

View File

@ -2,7 +2,7 @@ use Mix.Config
# We don't run a server during test. If one is required, # We don't run a server during test. If one is required,
# you can enable the server option below. # you can enable the server option below.
config :chess, Chess.Endpoint, config :chess, ChessWeb.Endpoint,
http: [port: 4001], http: [port: 4001],
server: true server: true

View File

@ -11,7 +11,7 @@ defmodule Chess do
# Start the Ecto repository # Start the Ecto repository
supervisor(Chess.Repo, []), supervisor(Chess.Repo, []),
# Start the endpoint when the application starts # Start the endpoint when the application starts
supervisor(Chess.Endpoint, []), supervisor(ChessWeb.Endpoint, []),
# Start your own worker by calling: Chess.Worker.start_link(arg1, arg2, arg3) # Start your own worker by calling: Chess.Worker.start_link(arg1, arg2, arg3)
# worker(Chess.Worker, [arg1, arg2, arg3]), # worker(Chess.Worker, [arg1, arg2, arg3]),
] ]
@ -25,7 +25,7 @@ defmodule Chess do
# Tell Phoenix to update the endpoint configuration # Tell Phoenix to update the endpoint configuration
# whenever the application is updated. # whenever the application is updated.
def config_change(changed, _new, removed) do def config_change(changed, _new, removed) do
Chess.Endpoint.config_change(changed, removed) ChessWeb.Endpoint.config_change(changed, removed)
:ok :ok
end end
end end

View File

@ -30,20 +30,21 @@ defmodule Chess.Web do
def controller do def controller do
quote do quote do
use Phoenix.Controller use Phoenix.Controller, namespace: ChessWeb
alias Chess.Repo alias Chess.Repo
import Ecto import Ecto
import Ecto.Query import Ecto.Query
import Chess.Router.Helpers import ChessWeb.Router.Helpers
import Chess.Gettext import ChessWeb.Gettext
end end
end end
def view do def view do
quote do quote do
use Phoenix.View, root: "web/templates" use Phoenix.View, root: "lib/chess_web/templates",
namespace: ChessWeb
# Import convenience functions from controllers # Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1] import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
@ -51,9 +52,9 @@ defmodule Chess.Web do
# Use all HTML functionality (forms, tags, etc) # Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML use Phoenix.HTML
import Chess.Router.Helpers import ChessWeb.Router.Helpers
import Chess.ErrorHelpers import ChessWeb.ErrorHelpers
import Chess.Gettext import ChessWeb.Gettext
end end
end end
@ -70,7 +71,7 @@ defmodule Chess.Web do
alias Chess.Repo alias Chess.Repo
import Ecto import Ecto
import Ecto.Query import Ecto.Query
import Chess.Gettext import ChessWeb.Gettext
end end
end end

View File

@ -1,4 +1,4 @@
defmodule Chess.UserSocket do defmodule ChessWeb.UserSocket do
use Phoenix.Socket use Phoenix.Socket
## Channels ## Channels

View File

@ -1,4 +1,4 @@
defmodule Chess.Api.GameController do defmodule ChessWeb.Api.GameController do
use Chess.Web, :controller use Chess.Web, :controller
alias Chess.Game alias Chess.Game

View File

@ -1,4 +1,4 @@
defmodule Chess.GameController do defmodule ChessWeb.GameController do
use Chess.Web, :controller use Chess.Web, :controller
alias Chess.Game alias Chess.Game

View File

@ -1,7 +1,7 @@
defmodule Chess.Endpoint do defmodule ChessWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :chess use Phoenix.Endpoint, otp_app: :chess
socket "/socket", Chess.UserSocket socket "/socket", ChessWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory. # Serve at "/" the static files from "priv/static" directory.
# #
@ -38,5 +38,5 @@ defmodule Chess.Endpoint do
key: "_chess_key", key: "_chess_key",
signing_salt: "9LqUhZTU" signing_salt: "9LqUhZTU"
plug Chess.Router plug ChessWeb.Router
end end

View File

@ -1,4 +1,4 @@
defmodule Chess.Gettext do defmodule ChessWeb.Gettext do
@moduledoc """ @moduledoc """
A module providing Internationalization with a gettext-based API. A module providing Internationalization with a gettext-based API.

View File

@ -1,4 +1,4 @@
defmodule Chess.Router do defmodule ChessWeb.Router do
use Chess.Web, :router use Chess.Web, :router
pipeline :browser do pipeline :browser do
@ -13,7 +13,7 @@ defmodule Chess.Router do
plug :accepts, ["json"] plug :accepts, ["json"]
end end
scope "/", Chess do scope "/", ChessWeb do
pipe_through :browser # Use the default browser stack pipe_through :browser # Use the default browser stack
get "/", GameController, :index get "/", GameController, :index
@ -21,7 +21,7 @@ defmodule Chess.Router do
end end
# Other scopes may use custom stacks. # Other scopes may use custom stacks.
scope "/api", Chess do scope "/api", ChessWeb do
pipe_through :api pipe_through :api
resources "/games", Api.GameController, only: [:show, :update] resources "/games", Api.GameController, only: [:show, :update]

View File

@ -1,4 +1,4 @@
defmodule Chess.Api.GameView do defmodule ChessWeb.Api.GameView do
use Chess.Web, :view use Chess.Web, :view
alias Chess.Board alias Chess.Board

View File

@ -1,4 +1,4 @@
defmodule Chess.ErrorHelpers do defmodule ChessWeb.ErrorHelpers do
@moduledoc """ @moduledoc """
Conveniences for translating and building error messages. Conveniences for translating and building error messages.
""" """
@ -32,9 +32,9 @@ defmodule Chess.ErrorHelpers do
# dgettext "errors", "is invalid" # dgettext "errors", "is invalid"
# #
if count = opts[:count] do if count = opts[:count] do
Gettext.dngettext(Chess.Gettext, "errors", msg, msg, count, opts) Gettext.dngettext(ChessWeb.Gettext, "errors", msg, msg, count, opts)
else else
Gettext.dgettext(Chess.Gettext, "errors", msg, opts) Gettext.dgettext(ChessWeb.Gettext, "errors", msg, opts)
end end
end end
end end

View File

@ -1,4 +1,4 @@
defmodule Chess.ErrorView do defmodule ChessWeb.ErrorView do
use Chess.Web, :view use Chess.Web, :view
def render("404.html", _assigns) do def render("404.html", _assigns) do

View File

@ -0,0 +1,3 @@
defmodule ChessWeb.GameView do
use Chess.Web, :view
end

View File

@ -0,0 +1,3 @@
defmodule ChessWeb.LayoutView do
use Chess.Web, :view
end

View File

@ -0,0 +1,3 @@
defmodule ChessWeb.PageView do
use Chess.Web, :view
end

12
mix.exs
View File

@ -23,21 +23,21 @@ defmodule Chess.Mixfile do
end end
# Specifies which paths to compile per environment. # Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"] defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"] defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies. # Specifies your project dependencies.
# #
# Type `mix help deps` for examples and options. # Type `mix help deps` for examples and options.
defp deps do defp deps do
[{:credo, "~> 0.5", only: [:dev, :test]}, [{:credo, "~> 0.8", only: [:dev, :test]},
{:phoenix, "~> 1.2.0"}, {:phoenix, "~> 1.3.0"},
{:phoenix_pubsub, "~> 1.0"}, {:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"}, {:phoenix_ecto, "~> 3.0"},
{:postgrex, ">= 0.0.0"}, {:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"}, {:phoenix_html, "~> 2.0"},
{:phoenix_live_reload, "~> 1.0", only: :dev}, {:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"}, {:gettext, "~> 0.0"},
{:hound, "~> 1.0"}, {:hound, "~> 1.0"},
{:cowboy, "~> 1.0"}, {:cowboy, "~> 1.0"},
{:timex_ecto, "~> 3.0"}] {:timex_ecto, "~> 3.0"}]

View File

@ -1,33 +1,35 @@
%{"bunt": {:hex, :bunt, "0.1.6", "5d95a6882f73f3b9969fdfd1953798046664e6f77ec4e486e6fafc7caad97c6f", [:mix], []}, %{"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
"certifi": {:hex, :certifi, "0.7.0", "861a57f3808f7eb0c2d1802afeaae0fa5de813b0df0979153cbafcd853ababaf", [:rebar3], []}, "certifi": {:hex, :certifi, "2.0.0", "a0c0e475107135f76b8c1d5bc7efb33cd3815cb3cf3dea7aefdd174dabead064", [:rebar3], [], "hexpm"},
"combine": {:hex, :combine, "0.9.6", "8d1034a127d4cbf6924c8a5010d3534d958085575fa4d9b878f200d79ac78335", [:mix], []}, "combine": {:hex, :combine, "0.10.0", "eff8224eeb56498a2af13011d142c5e7997a80c8f5b97c499f84c841032e429f", [:mix], [], "hexpm"},
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [], []}, "connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [:mix], [], "hexpm"},
"cowboy": {:hex, :cowboy, "1.0.4", "a324a8df9f2316c833a470d918aaf73ae894278b8aa6226ce7a9bf699388f878", [], [{:cowlib, "~> 1.0.0", [hex: :cowlib, optional: false]}, {:ranch, "~> 1.0", [hex: :ranch, optional: false]}]}, "cowboy": {:hex, :cowboy, "1.1.2", "61ac29ea970389a88eca5a65601460162d370a70018afe6f949a29dca91f3bb0", [:rebar3], [{:cowlib, "~> 1.0.2", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "~> 1.3.2", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm"},
"cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [], []}, "cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [:make], [], "hexpm"},
"credo": {:hex, :credo, "0.5.3", "0c405b36e7651245a8ed63c09e2d52c2e2b89b6d02b1570c4d611e0fcbecf4a2", [:mix], [{:bunt, "~> 0.1.6", [hex: :bunt, optional: false]}]}, "credo": {:hex, :credo, "0.8.10", "261862bb7363247762e1063713bb85df2bbd84af8d8610d1272cd9c1943bba63", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}], "hexpm"},
"db_connection": {:hex, :db_connection, "1.1.0", "b2b88db6d7d12f99997b584d09fad98e560b817a20dab6a526830e339f54cdb3", [], [{:connection, "~> 1.0.2", [hex: :connection, optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]}, "db_connection": {:hex, :db_connection, "1.1.2", "2865c2a4bae0714e2213a0ce60a1b12d76a6efba0c51fbda59c9ab8d1accc7a8", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
"decimal": {:hex, :decimal, "1.3.1", "157b3cedb2bfcb5359372a7766dd7a41091ad34578296e951f58a946fcab49c6", [], []}, "decimal": {:hex, :decimal, "1.4.1", "ad9e501edf7322f122f7fc151cce7c2a0c9ada96f2b0155b8a09a795c2029770", [:mix], [], "hexpm"},
"ecto": {:hex, :ecto, "2.1.3", "ffb24e150b519a4c0e4c84f9eabc8587199389bc499195d5d1a93cd3b2d9a045", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]}, "ecto": {:hex, :ecto, "2.2.7", "2074106ff4a5cd9cb2b54b12ca087c4b659ddb3f6b50be4562883c1d763fb031", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
"file_system": {:hex, :file_system, "0.2.4", "f0bdda195c0e46e987333e986452ec523aed21d784189144f647c43eaf307064", [:mix], [], "hexpm"},
"fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [], []}, "fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [], []},
"gettext": {:hex, :gettext, "0.13.0", "daafbddc5cda12738bb93b01d84105fe75b916a302f1c50ab9fb066b95ec9db4", [:mix], []}, "gettext": {:hex, :gettext, "0.14.0", "1a019a2e51d5ad3d126efe166dcdf6563768e5d06c32a99ad2281a1fa94b4c72", [:mix], [], "hexpm"},
"hackney": {:hex, :hackney, "1.6.5", "8c025ee397ac94a184b0743c73b33b96465e85f90a02e210e86df6cbafaa5065", [:rebar3], [{:certifi, "0.7.0", [hex: :certifi, optional: false]}, {:idna, "1.2.0", [hex: :idna, optional: false]}, {:metrics, "1.0.1", [hex: :metrics, optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, optional: false]}]}, "hackney": {:hex, :hackney, "1.10.1", "c38d0ca52ea80254936a32c45bb7eb414e7a96a521b4ce76d00a69753b157f21", [:rebar3], [{:certifi, "2.0.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "5.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},
"hound": {:hex, :hound, "1.0.2", "b6dd20142d00c28009fad503a23fa4a76bc11899e0d198f36a9c1448427788b2", [:mix], [{:httpoison, "~> 0.8", [hex: :httpoison, optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, optional: false]}]}, "hound": {:hex, :hound, "1.0.4", "31db3c013f0ed321b5eb4c573bf3fbc0b74e12fc8da134f9f616527bf0906431", [:mix], [{:hackney, "~> 1.5", [hex: :hackney, repo: "hexpm", optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"httpoison": {:hex, :httpoison, "0.11.0", "b9240a9c44fc46fcd8618d17898859ba09a3c1b47210b74316c0ffef10735e76", [:mix], [{:hackney, "~> 1.6.3", [hex: :hackney, optional: false]}]}, "httpoison": {:hex, :httpoison, "0.11.0", "b9240a9c44fc46fcd8618d17898859ba09a3c1b47210b74316c0ffef10735e76", [:mix], [{:hackney, "~> 1.6.3", [hex: :hackney, optional: false]}]},
"idna": {:hex, :idna, "1.2.0", "ac62ee99da068f43c50dc69acf700e03a62a348360126260e87f2b54eced86b2", [:rebar3], []}, "idna": {:hex, :idna, "5.1.0", "d72b4effeb324ad5da3cab1767cb16b17939004e789d8c0ad5b70f3cea20c89a", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"},
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], []}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"},
"mime": {:hex, :mime, "1.0.1", "05c393850524767d13a53627df71beeebb016205eb43bfbd92d14d24ec7a1b51", [], []}, "mime": {:hex, :mime, "1.2.0", "78adaa84832b3680de06f88f0997e3ead3b451a440d183d688085be2d709b534", [:mix], [], "hexpm"},
"mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], []}, "mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], [], "hexpm"},
"phoenix": {:hex, :phoenix, "1.2.1", "6dc592249ab73c67575769765b66ad164ad25d83defa3492dc6ae269bd2a68ab", [], [{:cowboy, "~> 1.0", [hex: :cowboy, optional: true]}, {:phoenix_pubsub, "~> 1.0", [hex: :phoenix_pubsub, optional: false]}, {:plug, "~> 1.1", [hex: :plug, optional: false]}, {:poison, "~> 1.5 or ~> 2.0", [hex: :poison, optional: false]}]}, "phoenix": {:hex, :phoenix, "1.3.0", "1c01124caa1b4a7af46f2050ff11b267baa3edb441b45dbf243e979cd4c5891b", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 1.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.3 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"phoenix_ecto": {:hex, :phoenix_ecto, "3.2.1", "6cf11d590c61977f50fcb98ad8a10ee90ba8670a82cbf5eaf49cfaee2e95e8b7", [:mix], [{:ecto, "~> 2.1", [hex: :ecto, optional: false]}, {:phoenix_html, "~> 2.9", [hex: :phoenix_html, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: false]}]}, "phoenix_ecto": {:hex, :phoenix_ecto, "3.3.0", "702f6e164512853d29f9d20763493f2b3bcfcb44f118af2bc37bb95d0801b480", [:mix], [{:ecto, "~> 2.1", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.9", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
"phoenix_html": {:hex, :phoenix_html, "2.9.2", "371160b30cf4e10443b015efce6f03e1f19aae98ff6487620477b13a5b2ef660", [:mix], [{:plug, "~> 1.0", [hex: :plug, optional: false]}]}, "phoenix_html": {:hex, :phoenix_html, "2.10.5", "4f9df6b0fb7422a9440a73182a566cb9cbe0e3ffe8884ef9337ccf284fc1ef0a", [:mix], [{:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.0.6", "4490d588c4f60248b1c5f1f0dc0a7271e1aed4bddbd8b1542630f7bf6bc7b012", [], [{:fs, "~> 0.9.1", [hex: :fs, optional: false]}, {:phoenix, "~> 1.0 or ~> 1.2-rc", [hex: :phoenix, optional: false]}]}, "phoenix_live_reload": {:hex, :phoenix_live_reload, "1.1.3", "1d178429fc8950b12457d09c6afec247bfe1fcb6f36209e18fbb0221bdfe4d41", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.0 or ~> 1.2 or ~> 1.3", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm"},
"phoenix_pubsub": {:hex, :phoenix_pubsub, "1.0.1", "c10ddf6237007c804bf2b8f3c4d5b99009b42eca3a0dfac04ea2d8001186056a", [], []}, "phoenix_pubsub": {:hex, :phoenix_pubsub, "1.0.2", "bfa7fd52788b5eaa09cb51ff9fcad1d9edfeb68251add458523f839392f034c1", [:mix], [], "hexpm"},
"plug": {:hex, :plug, "1.3.0", "6e2b01afc5db3fd011ca4a16efd9cb424528c157c30a44a0186bcc92c7b2e8f3", [], [{:cowboy, "~> 1.0.1 or ~> 1.1", [hex: :cowboy, optional: true]}, {:mime, "~> 1.0", [hex: :mime, optional: false]}]}, "plug": {:hex, :plug, "1.4.3", "236d77ce7bf3e3a2668dc0d32a9b6f1f9b1f05361019946aae49874904be4aed", [:mix], [{:cowboy, "~> 1.0.1 or ~> 1.1", [hex: :cowboy, repo: "hexpm", optional: true]}, {:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}], "hexpm"},
"poison": {:hex, :poison, "2.2.0", "4763b69a8a77bd77d26f477d196428b741261a761257ff1cf92753a0d4d24a63", [], []}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"},
"poolboy": {:hex, :poolboy, "1.5.1", "6b46163901cfd0a1b43d692657ed9d7e599853b3b21b95ae5ae0a777cf9b6ca8", [], []}, "poolboy": {:hex, :poolboy, "1.5.1", "6b46163901cfd0a1b43d692657ed9d7e599853b3b21b95ae5ae0a777cf9b6ca8", [:rebar], [], "hexpm"},
"postgrex": {:hex, :postgrex, "0.13.0", "e101ab47d0725955c5c8830ae8812412992e02e4bd9db09e17abb0a5d82d09c7", [:mix], [{:connection, "~> 1.0", [hex: :connection, optional: false]}, {:db_connection, "~> 1.1", [hex: :db_connection, optional: false]}, {:decimal, "~> 1.0", [hex: :decimal, optional: false]}]}, "postgrex": {:hex, :postgrex, "0.13.3", "c277cfb2a9c5034d445a722494c13359e361d344ef6f25d604c2353185682bfc", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm"},
"ranch": {:hex, :ranch, "1.2.1", "a6fb992c10f2187b46ffd17ce398ddf8a54f691b81768f9ef5f461ea7e28c762", [], []}, "ranch": {:hex, :ranch, "1.3.2", "e4965a144dc9fbe70e5c077c65e73c57165416a901bd02ea899cfd95aa890986", [:rebar3], [], "hexpm"},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], []}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], [], "hexpm"},
"timex": {:hex, :timex, "3.1.7", "71f9c32e13ff4860e86a314303757cc02b3ead5db6e977579a2935225ce9a666", [:mix], [{:combine, "~> 0.7", [hex: :combine, optional: false]}, {:gettext, "~> 0.10", [hex: :gettext, optional: false]}, {:tzdata, "~> 0.1.8 or ~> 0.5", [hex: :tzdata, optional: false]}]}, "timex": {:hex, :timex, "3.1.24", "d198ae9783ac807721cca0c5535384ebdf99da4976be8cefb9665a9262a1e9e3", [:mix], [{:combine, "~> 0.7", [hex: :combine, repo: "hexpm", optional: false]}, {:gettext, "~> 0.10", [hex: :gettext, repo: "hexpm", optional: false]}, {:tzdata, "~> 0.1.8 or ~> 0.5", [hex: :tzdata, repo: "hexpm", optional: false]}], "hexpm"},
"timex_ecto": {:hex, :timex_ecto, "3.1.1", "37d54f6879d96a6789bb497296531cfb853631de78e152969d95cff03c1368dd", [:mix], [{:ecto, "~> 2.1.0", [hex: :ecto, optional: false]}, {:timex, "~> 3.0", [hex: :timex, optional: false]}]}, "timex_ecto": {:hex, :timex_ecto, "3.2.1", "461140751026e1ca03298fab628f78ab189e78784175f5e301eefa034ee530aa", [:mix], [{:ecto, "~> 2.2", [hex: :ecto, repo: "hexpm", optional: false]}, {:timex, "~> 3.1", [hex: :timex, repo: "hexpm", optional: false]}], "hexpm"},
"tzdata": {:hex, :tzdata, "0.5.10", "087e8dfe8c0283473115ad8ca6974b898ecb55ca5c725427a142a79593391e90", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, optional: false]}]}} "tzdata": {:hex, :tzdata, "0.5.15", "d49241b0ca52c0b7354cb28ab87d290c30270194a436f9dc649bdc56ba97ceb7", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"},
"unicode_util_compat": {:hex, :unicode_util_compat, "0.3.1", "a1f612a7b512638634a603c8f401892afbf99b8ce93a45041f8aaca99cadb85e", [:rebar3], [], "hexpm"}}

View File

@ -1,4 +1,4 @@
defmodule Chess.ChannelCase do defmodule ChessWeb.ChannelCase do
@moduledoc """ @moduledoc """
This module defines the test case to be used by This module defines the test case to be used by
channel tests. channel tests.
@ -27,7 +27,7 @@ defmodule Chess.ChannelCase do
# The default endpoint for testing # The default endpoint for testing
@endpoint Chess.Endpoint @endpoint ChessWeb.Endpoint
end end
end end

View File

@ -1,4 +1,4 @@
defmodule Chess.ConnCase do defmodule ChessWeb.ConnCase do
@moduledoc """ @moduledoc """
This module defines the test case to be used by This module defines the test case to be used by
tests that require setting up a connection. tests that require setting up a connection.
@ -25,10 +25,10 @@ defmodule Chess.ConnCase do
import Ecto.Changeset import Ecto.Changeset
import Ecto.Query import Ecto.Query
import Chess.Router.Helpers import ChessWeb.Router.Helpers
# The default endpoint for testing # The default endpoint for testing
@endpoint Chess.Endpoint @endpoint ChessWeb.Endpoint
end end
end end

View File

@ -1,3 +0,0 @@
defmodule Chess.GameView do
use Chess.Web, :view
end

View File

@ -1,3 +0,0 @@
defmodule Chess.LayoutView do
use Chess.Web, :view
end

View File

@ -1,3 +0,0 @@
defmodule Chess.PageView do
use Chess.Web, :view
end