Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GPrimola committed Feb 17, 2024
1 parent 9789c4f commit 419b5c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Yamel
# Yamel - Yaml Serializer and Parser

![CI](https://github.com/GPrimola/yamel/workflows/Main%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/GPrimola/yamel/badge.svg?branch=master)](https://coveralls.io/github/GPrimola/yamel?branch=master)
Expand Down
21 changes: 0 additions & 21 deletions scripts/update_version.exs
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@

# {:ok, version} = File.read(version_file)
# version = String.trim(version)
# IO.puts("Updating to version #{version}")
# {:ok, mix_exs} = File.read(mix_exs_file)
# {:ok, readme} = File.read(readme_file)
# IO.puts("Updating #{mix_exs_file}...")
# mix_exs = String.replace(mix_exs, ~r/@version \".*\"/, "@version \"#{version}\"", global: false)
# mix_exs_file_update = File.write!(mix_exs_file, mix_exs)
# if mix_exs_file_update == :ok,
# do: IO.puts("#{mix_exs_file} updated successfully!"),
# else: raise "Could not update #{mix_exs_file} to version #{version}. #{inspect(mix_exs_file_update)}"
#
# IO.puts("Updating #{readme_file}...")
# readme = String.replace(readme, ~r/{:yamel, \"~> .*\"}/, "{:yamel, \"~> #{version}\"}")
# readme_file_update = File.write!(readme_file, readme)
#
# if readme_file_update == :ok,
# do: IO.puts("#{readme_file} updated successfully!"),
# else: raise "Could not update #{readme_file} to version #{version}. #{inspect(readme_file_update)}"

defmodule UpdateVersion do
@version_file "./version"
@mix_exs_file "./mix.exs"
Expand Down

0 comments on commit 419b5c4

Please sign in to comment.