Skip to content

Commit

Permalink
fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Mar 21, 2024
1 parent 0d93920 commit 56af974
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: geonapi
Type: Package
Title: 'GeoNetwork' API R Interface
Version: 0.7-1
Version: 0.7-2
Date: 2024-03-21
Authors@R: c(person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762")))
Maintainer: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [geonapi 0.7-2](https://github.com/eblondel/geonapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://github.com/eblondel/geonapi)

**Bug fixes**

* [#31](https://github.com/eblondel/geonapi/issues/31) Empty response for thumbnail publication

## [geonapi 0.7-1](https://github.com/eblondel/geonapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://github.com/eblondel/geonapi)

**Enhancements**
Expand Down
3 changes: 1 addition & 2 deletions R/GNOpenAPIManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ GNOpenAPIManager <- R6Class("GNOpenAPIManager",
)
if(status_code(req) == 204){
self$INFO("Successfully published thumbnail!")
response <- content(req)
out <- response
out <- TRUE
}else{
self$ERROR(sprintf("Error while publishing thumbnail - %s", message_for_status(status_code(req))))
self$ERROR(content(req))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
===========

[![Build Status](https://github.com/eblondel/geonapi/actions/workflows/r-cmd-check.yml/badge.svg?branch=master)](https://github.com/eblondel/geonapi/actions/workflows/r-cmd-check.yml)
[![Github_Status_Badge](https://img.shields.io/badge/Github-0.7--1-blue.svg)](https://github.com/eblondel/geonapi)
[![Github_Status_Badge](https://img.shields.io/badge/Github-0.7--2-blue.svg)](https://github.com/eblondel/geonapi)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/geonapi)](https://cran.r-project.org/package=geonapi)
[![CRAN checks](https://badges.cranchecks.info/worst/geosapi.svg)](https://cran.r-project.org/web/checks/check_results_geonapi.html)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345012.svg)](https://doi.org/10.5281/zenodo.1345012)
Expand Down

0 comments on commit 56af974

Please sign in to comment.