Skip to content

Commit 60cd19c

Browse files
committed
Merge pull request #129 from zbeekman/changelog-and-other-small-fixes
Changelog and other small fixes
2 parents a8480f9 + fc5b54c commit 60cd19c

File tree

6 files changed

+100
-22
lines changed

6 files changed

+100
-22
lines changed

.travis.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ env:
1212
# CMake build with unit tests, no documentation, with coverage analysis
1313
# No unicode so that coverage combined with the build script will cover unicode
1414
# and non-unicode code paths
15-
- BUILD_SCRIPT="mkdir cmake-build && cd cmake-build && cmake -DCMAKE_BUILD_TYPE=COVERAGE .. && make -j 4 check"
15+
- >
16+
BUILD_SCRIPT="mkdir cmake-build &&
17+
cd cmake-build &&
18+
cmake -DCMAKE_BUILD_TYPE=COVERAGE .. &&
19+
make -j 4 check"
1620
SPECIFIC_DEPENDS="cmake nodejs"
1721
JLINT="yes"
1822
DOCS="yes"
@@ -36,21 +40,50 @@ env:
3640

3741
before_install:
3842
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
39-
- if [[ $SPECIFIC_DEPENDS == *cmake* ]]; then sudo apt-add-repository -y ppa:kalakris/cmake; fi
43+
- |
44+
if [[ $SPECIFIC_DEPENDS == *cmake* ]]; then
45+
sudo apt-add-repository -y ppa:kalakris/cmake
46+
fi
4047
- sudo apt-get update -qq
41-
- if [[ $JLINT == [yY]* ]]; then curl -sL https://deb.nodesource.com/setup | sudo bash -x - ; fi
42-
- if [[ $CHECK_README_PROGS == [yY]* ]]; then wget http://people.sc.fsu.edu/~jburkardt/f_src/f90split/f90split.f90; fi
43-
- if [[ $DOCS == [yY]* ]]; then export DEPENDS="$DEPENDS exuberant-ctags"; fi
48+
- |
49+
if [[ $JLINT == [yY]* ]]; then
50+
curl -sL https://deb.nodesource.com/setup | sudo bash -x -
51+
fi
52+
- |
53+
if [[ $CHECK_README_PROGS == [yY]* ]]; then
54+
wget http://people.sc.fsu.edu/~jburkardt/f_src/f90split/f90split.f90
55+
fi
56+
- |
57+
if [[ $DOCS == [yY]* ]]; then
58+
export DEPENDS="$DEPENDS exuberant-ctags"
59+
fi
4460
- ulimit -s unlimited
4561

4662
install:
4763
- sudo apt-get install -y $SPECIFIC_DEPENDS $DEPENDS
48-
- if [[ $JLINT == [yY]* ]]; then sudo npm install -g jsonlint; fi
64+
- |
65+
if [[ $JLINT == [yY]* ]]; then
66+
sudo npm install -g jsonlint
67+
fi
4968
- sudo ln -fs /usr/bin/gfortran-4.9 /usr/bin/gfortran && gfortran --version
5069
- sudo ln -fs /usr/bin/gcov-4.9 /usr/bin/gcov && gcov --version
51-
- if [[ $FoBiS == [yY]* ]]; then sudo -H pip install FoBiS.py && FoBiS.py --version; fi
52-
- if [[ $DOCS == [yY]* ]]; then sudo -H pip install ford && ford --version; fi
53-
- if [[ $CHECK_README_PROGS == [yY]* ]]; then gfortran -o f90split f90split.f90 && ./f90split README.md && for f in example*.md; do mv $f src/tests/jf_test_${f%.md}.f90; done; rm f90split.f90 f90split; fi
70+
- |
71+
if [[ $FoBiS == [yY]* ]]; then
72+
sudo -H pip install FoBiS.py && FoBiS.py --version
73+
fi
74+
- |
75+
if [[ $DOCS == [yY]* ]]; then
76+
sudo -H pip install ford && ford --version
77+
fi
78+
- |
79+
if [[ $CHECK_README_PROGS == [yY]* ]]; then
80+
gfortran -o f90split f90split.f90 && \
81+
./f90split README.md && \
82+
for f in example*.md; do
83+
mv $f src/tests/jf_test_${f%.md}.f90
84+
done
85+
rm f90split.f90 f90split
86+
fi
5487
5588
script:
5689
- echo $BUILD_SCRIPT

CHANGELOG.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
11
# Change Log
22

3+
**Table of Contents**
4+
5+
- [Change Log](#change-log)
6+
- [Unreleased](#unreleased)
7+
- [4.1.1 (2015-05-27)](#411-2015-05-27)
8+
- [4.1.0 (2015-05-05)](#410-2015-05-05)
9+
- [4.0.0 (2015-03-16)](#400-2015-03-16)
10+
- [3.1.0 (2015-02-28)](#310-2015-02-28)
11+
- [3.0.0 (2015-01-18)](#300-2015-01-18)
12+
- [2.0.0 (2014-12-27)](#200-2014-12-27)
13+
- [1.0.0 (2014-06-23)](#100-2014-06-23)
14+
315
## [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
416

517
[Full Changelog](https://github.com/jacobwilliams/json-fortran/compare/4.1.1...HEAD)
618

719
**Enhancements**
20+
- Add a
21+
[CHANGELOG](https://github.com/jacobwilliams/json-fortran/blob/master/CHANGELOG.md)
22+
[\#120](https://github.com/jacobwilliams/json-fortran/issues/120)
23+
via
24+
[PR \#123](https://github.com/jacobwilliams/json-fortran/pull/123)
25+
from [zbeekman](https://github.com/zbeekman)
26+
- Spell 'Fortran' correctly
27+
[\#118](https://github.com/jacobwilliams/json-fortran/issues/118)
28+
via
29+
[PR \#124](https://github.com/jacobwilliams/json-fortran/pull/124)
30+
from [zbeekman](https://github.com/zbeekman)
831
- Migrate to
932
[Codecov.io](https://codecov.io/github/jacobwilliams/json-fortran?branch=master)
1033
[\#106](https://github.com/jacobwilliams/json-fortran/issues/106)
@@ -19,6 +42,12 @@
1942

2043
**Fixed issues:**
2144

45+
- Fixed innacurate coverage reports via
46+
[PR \#109](https://github.com/jacobwilliams/json-fortran/pull/109)
47+
from [zbeekman](https://github.com/zbeekman)
48+
- Fixed a small consistency issue when outputing floating point
49+
numbers via
50+
[PR \#125](https://github.com/jacobwilliams/json-fortran/pull/125)
2251
- Problems writing JSON to `error_unit` (0) due to JSON-Fortran's
2352
special interpretation of `unit=0`
2453
[\#85](https://github.com/jacobwilliams/json-fortran/issues/85)
@@ -34,15 +63,12 @@
3463
- Documentation fixes & coverage improvements
3564
[\#112](https://github.com/jacobwilliams/json-fortran/pull/112)
3665
([zbeekman](https://github.com/zbeekman))
37-
- Small FoBiS coverage fix
38-
[\#109](https://github.com/jacobwilliams/json-fortran/pull/109)
39-
([zbeekman](https://github.com/zbeekman))
40-
4166

4267

4368
## [4.1.1](https://github.com/jacobwilliams/json-fortran/tree/4.1.1) (2015-05-27)
4469

4570
[Full Changelog](https://github.com/jacobwilliams/json-fortran/compare/4.1.0...4.1.1)
71+
or [Download v4.1.1](https://github.com/jacobwilliams/json-fortran/releases/tag/4.1.1)
4672

4773
**Enhancements**
4874

@@ -78,6 +104,7 @@
78104
## [4.1.0](https://github.com/jacobwilliams/json-fortran/tree/4.1.0) (2015-05-05)
79105

80106
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/4.0.0...4.1.0)
107+
or [Download v4.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/4.1.0)
81108

82109
**Enhancements:**
83110

@@ -98,6 +125,7 @@
98125
## [4.0.0](https://github.com/jacobwilliams/json-fortran/tree/4.0.0) (2015-03-16)
99126

100127
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/3.1.0...4.0.0)
128+
or [Download v4.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/4.0.0)
101129

102130
**Enhancements**
103131

@@ -168,6 +196,7 @@
168196
## [3.1.0](https://github.com/jacobwilliams/json-fortran/tree/3.1.0) (2015-02-28)
169197

170198
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/3.0.0...3.1.0)
199+
or [Download v3.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/3.1.0)
171200

172201
**Enhancements:**
173202

@@ -239,6 +268,7 @@
239268
## [3.0.0](https://github.com/jacobwilliams/json-fortran/tree/3.0.0) (2015-01-18)
240269

241270
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/2.0.0...3.0.0)
271+
or [Download v3.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/3.0.0)
242272

243273
**Fixed issues:**
244274

@@ -273,6 +303,7 @@
273303
## [2.0.0](https://github.com/jacobwilliams/json-fortran/tree/2.0.0) (2014-12-27)
274304

275305
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/1.0.0...2.0.0)
306+
or [Download v2.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/2.0.0)
276307

277308
**Enhancements:**
278309
- Significant changes to the API including new procedures
@@ -288,6 +319,8 @@
288319

289320
## [1.0.0](https://github.com/jacobwilliams/json-fortran/tree/1.0.0) (2014-06-23)
290321

322+
[Download v1.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/1.0.0)
323+
291324
**Enhancements:**
292325

293326
- Validate hex values in strings

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ Looking to contribute something to [json-fortran](README.md)? **Here's how you c
5252
- Try not to pollute your pull request with unintended changes--keep them simple and small
5353
- Pull requests should address one issue at a time, and each commit should be a set of self contained, related changes. If you forget something in a commit, please use `git rebase -i <ref>^` to amend and/or squash erroneous commits. Here `<ref>` is the reference to to oldest commit needing to be modified (SHA, or `HEAD~4`, etc.)
5454
- Each commit should compile, and ideally pass the tests. Very complicated new features or fixes, may have commits that don't pass tests, if otherwise the commit history would include far to many changes in any given commit. Use an interactive rebase to fix any of these issues, as described above.
55+
- Each commit should have a concise, descriptive message following the
56+
guidlines laid out
57+
[here](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
58+
- Make sure to document your changes in the
59+
[CHANGELOG](https://github.com/jacobwilliams/json-fortran/blob/master/CHANGELOG.md)
60+
under the
61+
['unreleased'](https://github.com/jacobwilliams/json-fortran/blob/master/CHANGELOG.md#unreleased)
62+
heading.
5563
- Pull requests should always be based on the upstream master,
5664
`jacobwilliams/json-fortran:master`. Please `rebase` your branch on top
5765
of the latest upstream master. Assuming you are on your branch and you've added the upstream remote by running something like:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ A Fortran 2008 JSON API
2626
Status
2727
------
2828
[![Build Status](https://img.shields.io/travis/jacobwilliams/json-fortran/master.svg?style=plastic)](https://travis-ci.org/jacobwilliams/json-fortran)
29-
[![codecov.io](http://codecov.io/github/jacobwilliams/json-fortran/coverage.svg?branch=master)](http://codecov.io/github/jacobwilliams/json-fortran?branch=master)<br/>
29+
[![Codecov](https://img.shields.io/codecov/c/github/jacobwilliams/json-fortran.svg?style=plastic)](http://codecov.io/github/jacobwilliams/json-fortran?branch=master)
30+
3031
[![GitHub issues](https://img.shields.io/github/issues/jacobwilliams/json-fortran.png?style=plastic)](https://github.com/jacobwilliams/json-fortran/issues)
3132
[![Blocked by Vendor Bug](https://badge.waffle.io/jacobwilliams/json-fortran.png?label=vendor%20bug&title=Blocked%20by%20Vendor%20Bug)](https://waffle.io/jacobwilliams/json-fortran)
3233
[![Ready in backlog](https://badge.waffle.io/jacobwilliams/json-fortran.png?label=Ready&title=Ready)](https://github.com/jacobwilliams/json-fortran/#contributing)
3334
[![In Progress](https://badge.waffle.io/jacobwilliams/json-fortran.png?label=In%20Progress&title=In%20Progress)](https://waffle.io/jacobwilliams/json-fortran)
3435
[![Needs Review](https://badge.waffle.io/jacobwilliams/json-fortran.png?label=Needs%20Review&title=Needs%20Review)](https://waffle.io/jacobwilliams/json-fortran)
3536

37+
Take a look at the
38+
[CHANGELOG](https://github.com/jacobwilliams/json-fortran/blob/master/CHANGELOG.md#unreleased)
39+
for a list of changes since the latest release.
3640
[top](#json-fortran)
3741

3842
Brief description

json-fortran.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ macro: USE_UCS4
55
output_dir: ./doc
66
media_dir: ./media
77
project_github: https://github.com/jacobwilliams/json-fortran
8-
summary: JSON-FORTRAN -- A Fortran 2008 JSON API
8+
summary: JSON-Fortran -- A Fortran 2008 JSON API
99
author: Jacob Williams
1010
github: https://github.com/jacobwilliams
1111
website: http://degenerateconic.com

src/json_module.F90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
!> author: Jacob Williams
33
! license: BSD
44
!
5-
!# JSON-FORTRAN:
5+
!# JSON-Fortran:
66
! A Fortran 2008 JSON (JavaScript Object Notation) API.
77
!
88
! [TOC]
@@ -22,12 +22,12 @@
2222
! The documentation given here assumes ```USE_UCS4``` **is not** defined.
2323
#endif
2424
!
25-
!@warning ```CK``` and ```CDK``` are the json-fortran character kind and json-fortran default
25+
!@warning ```CK``` and ```CDK``` are the JSON-Fortran character kind and JSON-Fortran default
2626
! character kind respectively. Client code **MUST** ensure characters of ```kind=CK```
27-
! are used for all character variables and strings passed to the json-fortran
27+
! are used for all character variables and strings passed to the JSON-Fortran
2828
! library *EXCEPT* for file names which must be of ```'DEFAULT'``` character kind,
2929
! provided here as ```CDK```. In particular, any variable that is a: json path, string
30-
! value or object name passed to the json-fortran library **MUST** be of type ```CK```.
30+
! value or object name passed to the JSON-Fortran library **MUST** be of type ```CK```.
3131
!
3232
!@note Most string literal constants of default kind are fine to pass as arguments to
3333
! JSON-Fortran procedures since they have been overloaded to accept ```intent(in)```
@@ -37,7 +37,7 @@
3737
!
3838
!## License
3939
!
40-
! **json-fortran License:**
40+
! **JSON-Fortran License:**
4141
!
4242
! JSON-Fortran: A Fortran 2008 JSON API
4343
!
@@ -151,7 +151,7 @@ module json_module
151151

152152
!*********************************************************
153153
!>
154-
! Default character kind used by json-fortran.
154+
! Default character kind used by JSON-Fortran.
155155
! If ISO 10646 (UCS4) support is available, use that,
156156
! otherwise, gracefully fall back on 'DEFAULT' characters.
157157
! Currently only gfortran >= 4.9.2 will correctly support
@@ -1550,7 +1550,7 @@ end subroutine wrap_json_file_get_string_vec
15501550
!> author: Jacob Williams
15511551
! date: 12/4/2013
15521552
!
1553-
! Initialize the json-fortran module.
1553+
! Initialize the JSON-Fortran module.
15541554
! The routine must be called before any of the routines are used.
15551555
! It can also be called after using the module and encountering exceptions.
15561556
!

0 commit comments

Comments
 (0)