Skip to content

Commit a60219d

Browse files
authored
Fix Rebar Support (#27)
With this, projects using rebar should be able to use rec2json again (e.g., resolves #26 ).
1 parent 2eb811b commit a60219d

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ test/*.beam
88
.local_dialyzer_plt
99
.erlang.mk
1010
rec2json.d
11+
.rec2json.plt

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ language: erlang
22
otp_release:
33
- 18.0
44
- 17.0
5+
6+
script: make tests

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
PROJECT = rec2json
22
PROJECT_DESCRIPTION = Compile erlang record definitions into modules to convert them to/from json easily.
3-
PROJECT_VERSION = 3.2.0
3+
PROJECT_VERSION = 3.2.1
44

55
TEST_DEPS = proper jsx
66
dep_proper = git https://github.com/manopapad/proper master
77
dep_jsx = git https://github.com/talentdeficit/jsx v2.4.0
88

9+
app:: rebar.config
10+
911
include erlang.mk

ebin/rec2json.app

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{application, rec2json, [
2+
{description, "Compile erlang record definitions into modules to convert them to/from json easily."},
3+
{vsn, "3.2.1"},
4+
{modules, ['r2j_compile','r2j_type','rec2json']},
5+
{registered, []},
6+
{applications, [kernel,stdlib]}
7+
]}.

rebar.config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{deps, [
2+
3+
]}.
4+
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard]}.

0 commit comments

Comments
 (0)