Skip to content

Commit

Permalink
1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
florinpatrascu committed Mar 4, 2019
1 parent 0e024c7 commit def38ca
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Changelog

## 1.3.0

- 1.3.0 stable release. Many thanks to Dominique VASSARD, for his awesome contributions.

## 1.3.0-rc2
- Fix some types

- Fix some typos
- add json encoding capability

## 1.2.2-rc2

- Bug fix: Nanoseconds formating was erroneous. Example: 54 nanoseconds was formated to "PT0.54S" instead of "PT0.000000054S"
- Bug fix: Large amount of nanoseconds (>= 1_000_000) wasn't treated and lead to Neo4j errors. Now large amount of nanosconds are converted in seconds, with the remainder in nanoseconds.
- Bug fix: Large amount of nanoseconds (>= 1_000_000) wasn't treated and lead to Neo4j errors. Now large amount of nanoseconds are converted in seconds, with the remainder in nanoseconds.

## 1.2.1-rc2

Expand Down
17 changes: 10 additions & 7 deletions lib/mix/tasks/cypher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ defmodule Mix.Tasks.Bolt.Cypher do
def run(args) do
Application.ensure_all_started(:bolt_sips)

{cli_opts, args, _} =
OptionParser.parse(args, aliases: [u: :url, s: :ssl], shitches: [], strict: true)
{cli_opts, args, _} = OptionParser.parse(args, aliases: [u: :url, s: :ssl], switches: [])

options = run_options(cli_opts, Application.get_env(:bolt_sips, Bolt))

Expand All @@ -47,12 +46,16 @@ defmodule Mix.Tasks.Bolt.Cypher do
# display the cypher command
log_cypher(cypher)

case Neo4j.query(Bolt.Sips.conn(), cypher) do
{:ok, row} ->
row |> log_response
with {:ok, response} <- Neo4j.query(Bolt.Sips.conn(), cypher) do
response |> log_response
else
{:error, [code: code, message: message]} ->
log_error(
inspect(code) <> " - cannot execute the command, see error above.Details" <> message
)

{:error, code} ->
log_error("Cannot execute the command, see error above; #{inspect(code)}")
e ->
log_error("Unknown error: #{inspect(e)}")
end
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule BoltSips.Mixfile do
use Mix.Project

@version "1.3.0-rc2"
@version "1.3.0"

def project do
[
Expand Down

0 comments on commit def38ca

Please sign in to comment.