Skip to content

Commit 6f4a276

Browse files
committed
Merge branch 'master' of https://github.com/jacobwilliams/json-fortran into speed
2 parents 1cc10f3 + 280ae0e commit 6f4a276

File tree

8 files changed

+57
-15
lines changed

8 files changed

+57
-15
lines changed

.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.2.5
1+
8.3.0

CHANGELOG.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [Change Log](#change-log)
66
- [Unreleased](#unreleased)
7+
- [8.3.0 (2022-05-07)](#830-2022-05-07)
78
- [8.2.5 (2021-08-17)](#825-2021-08-17)
89
- [8.2.4 (2021-08-15)](#824-2021-08-15)
910
- [8.2.3 (2021-06-05)](#823-2021-06-05)
@@ -44,7 +45,25 @@
4445

4546
### [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
4647

47-
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.2.5...HEAD)
48+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.3.0...HEAD)
49+
50+
### [8.3.0](https://github.com/jacobwilliams/json-fortran/tree/8.3.0) (2022-05-07)
51+
52+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.2.5...8.3.0)
53+
or [Download v8.3.0](https://github.com/jacobwilliams/json-fortran/releases/tag/8.3.0)
54+
55+
**Enhancements:**
56+
57+
- Added procedure to query version of json-fortran [\#505](https://github.com/jacobwilliams/json-fortran/issues/505) [\#512](https://github.com/jacobwilliams/json-fortran/pull/512) [\#516](https://github.com/jacobwilliams/json-fortran/pull/516) ([jacobwilliams](https://github.com/jacobwilliams))
58+
- Updates to the CI [\#509](https://github.com/jacobwilliams/json-fortran/pull/509) [\#508](https://github.com/jacobwilliams/json-fortran/issues/508) ([jacobwilliams](https://github.com/jacobwilliams))
59+
- Add information on conda-forge distribution [\#506](https://github.com/jacobwilliams/json-fortran/pull/506) ([awvwgk](https://github.com/awvwgk)) [\#507](https://github.com/jacobwilliams/json-fortran/issues/507)
60+
- Updated CMake to export include directories with target [\#504](https://github.com/jacobwilliams/json-fortran/pull/504) [\#503](https://github.com/jacobwilliams/json-fortran/issues/503) ([awvwgk](https://github.com/awvwgk))
61+
62+
63+
**Bug Fixes:**
64+
65+
- Fixed a minor standards violation [\#510](https://github.com/jacobwilliams/json-fortran/issues/510) [\#511](https://github.com/jacobwilliams/json-fortran/pull/511) ([jacobwilliams](https://github.com/jacobwilliams))
66+
- Minor changes to work around issues with nvfortran compiler [\#496](https://github.com/jacobwilliams/json-fortran/pull/496) ([vyu16](https://github.com/vyu16))
4867

4968
### [8.2.5](https://github.com/jacobwilliams/json-fortran/tree/8.2.5) (2021-08-17)
5069

@@ -59,8 +78,7 @@ or [Download v8.2.5](https://github.com/jacobwilliams/json-fortran/releases/tag/
5978
**Bug Fixes:**
6079

6180
- Fixed a potential uninitialized variable issue in `get_current_line_from_file_stream`
62-
- Fixed a memory leak when parsing an invalid JSON
63-
- Fixed various memory issues in the unit tests [\#495](https://github.com/jacobwilliams/json-fortran/pull/495) ([jacobwilliams](https://github.com/jacobwilliams))
81+
- Fixed a memory leak when parsing an invalid JSON. Fixed various memory issues in the unit tests [\#494](https://github.com/jacobwilliams/json-fortran/issues/494) [\#495](https://github.com/jacobwilliams/json-fortran/pull/495) ([jacobwilliams](https://github.com/jacobwilliams))
6482

6583
### [8.2.4](https://github.com/jacobwilliams/json-fortran/tree/8.2.4) (2021-08-15)
6684

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ JSON-Fortran: A Modern Fortran JSON API
2121
Status
2222
------
2323
[![Build Status](https://github.com/jacobwilliams/json-fortran/actions/workflows/CI.yml/badge.svg)](https://github.com/jacobwilliams/json-fortran/actions)
24-
[![GitHub issues](https://img.shields.io/github/issues/jacobwilliams/json-fortran.png?style=plastic)](https://github.com/jacobwilliams/json-fortran/issues)
24+
[![GitHub issues](https://img.shields.io/github/issues/jacobwilliams/json-fortran.png)](https://github.com/jacobwilliams/json-fortran/issues)
2525
[![Codecov](https://codecov.io/gh/jacobwilliams/json-fortran/branch/master/graph/badge.svg)](https://codecov.io/gh/jacobwilliams/json-fortran)
26+
[![last-commit](https://img.shields.io/github/last-commit/jacobwilliams/json-fortran)](https://github.com/jacobwilliams/json-fortran/commits/master)
27+
2628

2729
Take a look at the
2830
[CHANGELOG](https://github.com/jacobwilliams/json-fortran/blob/master/CHANGELOG.md#unreleased)
@@ -40,9 +42,9 @@ JSON-Fortran is a user-friendly, thread-safe, and object-oriented API for readin
4042
Download
4143
--------------------
4244

43-
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/json-fortran.svg?style=plastic)](https://github.com/jacobwilliams/json-fortran/releases)
44-
[![homebrew version](https://img.shields.io/homebrew/v/json-fortran.svg?style=plastic)](https://formulae.brew.sh/formula/json-fortran)
45-
[![Conda (channel only)](https://img.shields.io/conda/vn/conda-forge/json-fortran?style=plastic)](https://github.com/conda-forge/json-fortran-feedstock)
45+
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/json-fortran.svg)](https://github.com/jacobwilliams/json-fortran/releases)
46+
[![homebrew version](https://img.shields.io/homebrew/v/json-fortran.svg)](https://formulae.brew.sh/formula/json-fortran)
47+
[![Conda (channel only)](https://img.shields.io/conda/vn/conda-forge/json-fortran)](https://github.com/conda-forge/json-fortran-feedstock)
4648

4749
Download the official versioned releases
4850
[here](https://github.com/jacobwilliams/json-fortran/releases/latest).
@@ -137,7 +139,7 @@ cmake_minimum_required ( VERSION 2.8.8 FATAL_ERROR )
137139
enable_language ( Fortran )
138140
project ( jf_test NONE )
139141
140-
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.2.5 REQUIRED )
142+
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.3.0 REQUIRED )
141143
142144
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
143145
foreach ( UNIT_TEST ${JF_TEST_SRCS} )

pages/development-resources/release-checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ remain accurate.
5252
1. Add `pages/releases/index.md` to the git index: `git add pages/releases/index.md`
5353
1. Update the version string in remaining files requiring manual edits:
5454
1. Edit the `.VERSION` file
55-
1. Edit the CMake example on line 124 of `README.md`
55+
1. Edit the CMake example on line 142 of `README.md`
5656
1. Edit the `json_fortran_version` string in `json_module.F90`
5757
1. Add these files to the git index: `git add .VERSION README.md ./src/json_module.F90`
5858
1. Commit the changes to the master branch: `git commit`

pages/releases/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ documentation from the documentation for official releases other than
2525
using the browser's back button. Feel free to bookmark this page, or
2626
the [main project page](|url|/index.html) for convenient navigation.
2727

28+
* [8.3.0](https://jacobwilliams.github.io/json-fortran/prev/8.3.0/index.html)
29+
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
30+
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/8.3.0)
2831
* [8.2.5](https://jacobwilliams.github.io/json-fortran/prev/8.2.5/index.html)
2932
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
3033
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/8.2.5)

src/json_module.F90

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,32 @@ module json_module
7373

7474
implicit none
7575

76-
character(kind=json_CK,len=5),protected :: json_fortran_version = '8.2.5'
76+
character(kind=json_CK,len=*),parameter,private :: version = '8.3.0'
7777
!! JSON-Fortran version.
7878
!!
7979
!!@note This string should match the one in the `.VERSION` file (which is used
80-
!! for the documentation generation.)
80+
!! for the documentation generation.)
8181

8282
public
8383

84+
contains
85+
!*****************************************************************************************
86+
87+
!*****************************************************************************************
88+
!>
89+
! Returns the JSON-Fortran version string.
90+
91+
function json_fortran_version() result(ver)
92+
93+
implicit none
94+
95+
character(len=:),allocatable :: ver !! JSON-Fortran version string
96+
97+
ver = version
98+
99+
end function json_fortran_version
100+
!*****************************************************************************************
101+
102+
!*****************************************************************************************
84103
end module json_module
85104
!*****************************************************************************************

src/json_parameters.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ module json_parameters
5757
character(kind=CK,len=*),parameter :: dot = CK_'.' !! path separator for [[json_get_by_path_default]]
5858
character(kind=CK,len=*),parameter :: tilde = CK_'~' !! RFC 6901 escape character
5959
character(kind=CK,len=*),parameter :: single_quote = CK_"'" !! for JSONPath bracket-notation
60-
character(kind=CK,len=*),parameter :: slash = CK_'/' !! JSON special character
61-
character(kind=CK,len=*),parameter :: backslash = CK_'\' !! JSON special character
6260
character(kind=CK,len=*),parameter :: quotation_mark = CK_'"' !! JSON special character
6361
character(kind=CK,len=*),parameter :: bspace = achar(8, kind=CK) !! JSON special character
6462
character(kind=CK,len=*),parameter :: horizontal_tab = achar(9, kind=CK) !! JSON special character
6563
character(kind=CK,len=*),parameter :: newline = achar(10, kind=CK) !! JSON special character
6664
character(kind=CK,len=*),parameter :: formfeed = achar(12, kind=CK) !! JSON special character
6765
character(kind=CK,len=*),parameter :: carriage_return = achar(13, kind=CK) !! JSON special character
66+
character(kind=CK,len=*),parameter :: slash = achar(47, kind=CK) !! JSON special character
67+
character(kind=CK,len=*),parameter :: backslash = achar(92, kind=CK) !! JSON special character
6868

6969
!> default real number format statement (for writing real values to strings and files).
7070
! Note that this can be overridden by calling [[json_initialize]].

src/tests/jf_test_01.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ subroutine test_1(error_cnt)
5757
write(error_unit,'(A)') '================================='
5858
write(error_unit,'(A)') ''
5959

60-
write(error_unit,'(A)') 'JSON-Fortran version: '//json_fortran_version
60+
write(error_unit,'(A)') 'JSON-Fortran version: '//json_fortran_version()
6161

6262
! parse the json file:
6363
write(error_unit,'(A)') ''

0 commit comments

Comments
 (0)