Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to master, use github shortcut

  • Loading branch information...
commit eb34d8f5e9e46a0192fad71c999fdcfd25041fea 1 parent 9afb92e
@josevalim josevalim authored
View
2  lib/mix/dynamo.ex
@@ -13,7 +13,7 @@ defmodule Mix.Dynamo do
env files and the mix file.
"""
def stale_app?(app) do
- mix_file = Mix.Utils.source(Mix.Project.current)
+ mix_file = Mix.Utils.source(Mix.Project.get!)
env_file = "config/environments/#{Dynamo.env}.exs"
app_beam = File.join(Mix.project[:compile_path], "#{app}.beam")
Mix.Utils.stale?([app_file(), mix_file, env_file], [app_beam])
View
2  lib/mix/tasks/dynamo.app.ex
@@ -7,7 +7,7 @@ defmodule Mix.Tasks.Dynamo.App do
"""
def run(args) do
{ opts, _ } = OptionParser.parse(args)
- mixfile = Mix.Utils.source(Mix.Project.current)
+ mixfile = Mix.Utils.source(Mix.Project.get!)
Dynamo.start(Mix.env, File.dirname(mixfile))
app =
View
5 lib/mix/tasks/dynamo.ex
@@ -52,7 +52,7 @@ defmodule Mix.Tasks.Dynamo do
dynamo = if opts[:dev] do
%b(raw: "#{File.expand_path("../../../..", __FILE__)}")
else
- %b(git: "https://github.com/josevalim/dynamo.git")
+ %b(github: "josevalim/dynamo")
end
assigns = [app: app, mod: mod, dynamo: dynamo, version: @version]
@@ -124,8 +124,7 @@ defmodule Mix.Tasks.Dynamo do
end
defp deps do
- [ { :mimetypes, git: "https://github.com/spawngrid/mimetypes.git" },
- { :cowboy, "0.6.1", git: "https://github.com/josevalim/cowboy.git" },
+ [ { :cowboy, "0.6.1", github: "josevalim/cowboy" },
{ :dynamo, "<%= @version %>", <%= @dynamo %> } ]
end
end
View
8 mix.exs
@@ -10,14 +10,14 @@ defmodule Dynamo.Mixfile do
end
def deps do
- [ { :mimetypes, git: "https://github.com/spawngrid/mimetypes.git" },
- { :cowboy, git: "https://github.com/josevalim/cowboy.git" } ]
+ [ { :mimetypes, github: "spawngrid/mimetypes" },
+ { :cowboy, github: "josevalim/cowboy" } ]
end
def test_deps do
deps ++
- [ { :edown, git: "https://github.com/esl/edown.git" }, ## Hackney dependency
- { :hackney, git: "https://github.com/benoitc/hackney.git" } ]
+ [ { :edown, github: "esl/edown" }, ## Hackney dependency
+ { :hackney, github: "benoitc/hackney" } ]
end
def application do
View
2  test/mix/tasks/dynamo_test.exs
@@ -18,7 +18,7 @@ defmodule Mix.Tasks.DynamoTest do
assert file =~ %r(app: :my_app)
assert file =~ %r(version: "0.0.1")
assert file =~ %r({ :dynamo)
- assert file =~ %r(git: "https://github.com/josevalim/dynamo.git")
+ assert file =~ %r(github: "josevalim/dynamo")
end
assert_file "README.md", %r(# MyApp)
Please sign in to comment.
Something went wrong with that request. Please try again.