Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into react-document-colors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Mar 6, 2021
2 parents c4cddac + b90e447 commit c8d8e3b
Show file tree
Hide file tree
Showing 66 changed files with 91 additions and 8,460 deletions.
2 changes: 2 additions & 0 deletions .templates/elixir/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ erl_crash.dump

.deps
.tested
.compile_messages
.setup_mix_and_get_dependencies
2 changes: 2 additions & 0 deletions gherkin/elixir/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ erl_crash.dump

.deps
.tested
.compile_messages
.setup_mix_and_get_dependencies
3 changes: 3 additions & 0 deletions messages/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

* [Elixir] Make sure messages.proto is updated with ../messages.proto
* [Elixir] Generated new message modules based on the new messages.proto file

## [14.0.1] - 2021-02-08

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions messages/elixir/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ erl_crash.dump

.deps
.tested
.compile_messages
.setup_mix_and_get_dependencies
1 change: 1 addition & 0 deletions messages/elixir/.rsync
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
../../LICENSE LICENSE
../../.templates/github/ .github/
../../.templates/elixir/ .
../messages.proto messages.proto
24 changes: 24 additions & 0 deletions messages/elixir/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
include default.mk

clean:
rm -rf _build deps .deps .tested
rm -rf lib/cucumber_messages/generated/*

.deps: setup_mix_and_get_dependencies update_proto_file compile_messages revert_proto_file
touch .deps

setup_mix_and_get_dependencies:
mix local.hex --force
mix deps.get
.PHONY: setup_mix_and_get_dependencies

update_proto_file: messages.proto
mv $< $<.bak
cat $<.bak | sed "s/package io.cucumber.messages/package cucumber_messages/" > $<

compile_messages:
MIX_ENV=prod mix protox.generate --multiple-files --output-path=lib/cucumber_messages/generated messages.proto
.PHONY: compile_messages

revert_proto_file: messages.proto.bak
mv messages.proto.bak messages.proto
.PHONY: revert_proto_file
2 changes: 2 additions & 0 deletions messages/elixir/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CucumberMessages

This package is released at [hex.pm](https://hex.pm/packages/cucumber_messages).

## Credits

This library is originally funded by [UCLL](https://www.ucll.be) its "First Time Right" research project.
6 changes: 0 additions & 6 deletions messages/elixir/lib/cucumber_message.ex
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
defmodule CucumberMessages do
@moduledoc """
This small library its sole purpose is to convert the protobuf schema to Elixir code. In order to use this library, you do not need protoc installed at all!
If you want to contribute to this library (or just update the protobuf schema and code), make sure you have `protoc` installed and run:
`MIX_ENV=prod mix protox.generate --output-path=lib/cucumber_messages/messages.ex messages.proto`
If you want to contribute, please be so kind to run `mix format` as well (this can take a while with an unformatted `messages.ex` file).
"""

@doc """
Expand Down
1 change: 1 addition & 0 deletions messages/elixir/lib/cucumber_messages/generated/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*.ex

This file was deleted.

This file was deleted.

Loading

0 comments on commit c8d8e3b

Please sign in to comment.