Skip to content

Commit 24b5d64

Browse files
committed
published on hex.pm
1 parent acf2c0c commit 24b5d64

File tree

5 files changed

+28
-17
lines changed

5 files changed

+28
-17
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v0.5.0-dev
2+
3+
* Enhancements
4+
* upgraded to DBConnection 2.0.6
5+
* Refactored code
6+
* replaced deprecated op_code by database commands
7+
18
## v0.4.8-dev
29

310
* Enhancements

lib/mongo/mongo_db_connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule Mongo.MongoDBConnection do
5555

5656
case result do
5757
{:ok, state} ->
58-
#IO.puts inspect state
58+
IO.puts inspect state
5959
{:ok, state}
6060

6161
{:disconnect, reason, state} ->

lib/mongo/monitor.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ defmodule Mongo.Monitor do
4242
|> Keyword.put(:backoff_type, :rand)
4343
|> Keyword.put(:connection_type, :monitor)
4444
|> Keyword.put(:topology_pid, topology_pid)
45+
|> Keyword.put(:pool_size, 1)
4546

4647
{:ok, pid} = DBConnection.start_link(Mongo.MongoDBConnection, opts)
4748
:ok = GenServer.cast(self(), :check)

mix.exs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
defmodule Mongodb.Mixfile do
22
use Mix.Project
33

4-
@version "0.4.7"
4+
@version "0.5.0"
55

6-
def project do
7-
[app: :mongodb,
6+
def project() do
7+
[app: :mongodb_driver,
88
version: @version,
99
elixirc_paths: elixirc_paths(Mix.env),
1010
elixir: "~> 1.4",
11-
name: "Mongodb",
11+
name: "mongodb-driver",
1212
deps: deps(),
1313
docs: docs(),
1414
description: description(),
@@ -25,7 +25,7 @@ defmodule Mongodb.Mixfile do
2525
defp elixirc_paths(:test), do: ["lib", "test/support"]
2626
defp elixirc_paths(_), do: ["lib"]
2727

28-
def application do
28+
def application() do
2929
[applications: applications(Mix.env),
3030
mod: {Mongo.App, []},
3131
env: []]
@@ -34,32 +34,32 @@ defmodule Mongodb.Mixfile do
3434
def applications(:test), do: [:logger, :connection, :db_connection]
3535
def applications(_), do: [:logger, :connection, :db_connection]
3636

37-
defp deps do
37+
defp deps() do
3838
[
3939
{:connection, "~> 1.0"},
4040
{:db_connection, "~> 2.0.6"},
4141
{:decimal, "~> 1.0"},
4242
{:jason, "~> 1.0.0", only: :test},
43-
{:ex_doc, ">= 0.0.0", only: :dev},
43+
{:ex_doc, "~> 0.20.1 ", only: :dev},
4444
{:earmark, ">= 0.0.0", only: :dev},
4545
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false}
4646
]
4747
end
4848

49-
defp docs do
49+
defp docs() do
5050
[main: "readme",
5151
extras: ["README.md"],
5252
source_ref: "v#{@version}",
53-
source_url: "https://github.com/ankhers/mongodb"]
53+
source_url: "https://github.com/zookzook/elixir-mongodb-driver"]
5454
end
5555

56-
defp description do
57-
"MongoDB driver for Elixir"
56+
defp description() do
57+
"An alternative MongoDB driver for Elixir"
5858
end
5959

60-
defp package do
61-
[maintainers: ["Eric Meadows-Jönsson", "Justin Wood"],
60+
defp package() do
61+
[maintainers: ["Michael Maier"],
6262
licenses: ["Apache 2.0"],
63-
links: %{"GitHub" => "https://github.com/ankhers/mongodb"}]
63+
links: %{"GitHub" => "https://github.com/zookzook/elixir-mongodb-driver"}]
6464
end
6565
end

mix.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"db_connection": {:hex, :db_connection, "2.0.6", "bde2f85d047969c5b5800cb8f4b3ed6316c8cb11487afedac4aa5f93fd39abfa", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm"},
44
"decimal": {:hex, :decimal, "1.5.0", "b0433a36d0e2430e3d50291b1c65f53c37d56f83665b43d79963684865beab68", [:mix], [], "hexpm"},
55
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.4", "71b42f5ee1b7628f3e3a6565f4617dfb02d127a0499ab3e72750455e986df001", [:mix], [{:erlex, "~> 0.1", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
6-
"earmark": {:hex, :earmark, "1.2.4", "99b637c62a4d65a20a9fb674b8cffb8baa771c04605a80c911c4418c69b75439", [:mix], [], "hexpm"},
6+
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"},
77
"erlex": {:hex, :erlex, "0.1.6", "c01c889363168d3fdd23f4211647d8a34c0f9a21ec726762312e08e083f3d47e", [:mix], [], "hexpm"},
8-
"ex_doc": {:hex, :ex_doc, "0.18.1", "37c69d2ef62f24928c1f4fdc7c724ea04aecfdf500c4329185f8e3649c915baf", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
8+
"ex_doc": {:hex, :ex_doc, "0.20.1", "88eaa16e67c505664fd6a66f42ddb962d424ad68df586b214b71443c69887123", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
99
"jason": {:hex, :jason, "1.0.0", "0f7cfa9bdb23fed721ec05419bcee2b2c21a77e926bce0deda029b5adc716fe2", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
10+
"makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
11+
"makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
12+
"nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"},
1013
"poolboy": {:hex, :poolboy, "1.5.2", "392b007a1693a64540cead79830443abf5762f5d30cf50bc95cb2c1aaafa006b", [:rebar3], [], "hexpm"},
1114
}

0 commit comments

Comments
 (0)