Skip to content

Commit

Permalink
Merge pull request #187 from ArkEcosystem/release/1.4.1
Browse files Browse the repository at this point in the history
release: 1.4.1
  • Loading branch information
faustbrian authored Mar 9, 2020
2 parents 392ad9a + 974b9ed commit 751212f
Show file tree
Hide file tree
Showing 23 changed files with 200 additions and 138 deletions.
4 changes: 0 additions & 4 deletions .codacy.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .codeclimate.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/codeclimate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test/clang_format.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash

grep -nr '\s$' src test .gitignore 2>&1 > /dev/null
if $?; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test/clang_tidy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# run clang tidy
cmake -DENABLE_CLANG_TIDY=ON -DUNIT_TEST=ON .
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test/install_platform_io.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# install PlatformIO
sudo pip install -U platformio

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test/script_desktop.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# run desktop builds
cmake . -DCMAKE_BUILD_TYPE=Coverage -DBUILD_TESTING=OFF
cmake --build .
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test/script_platform_io.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# run PlatformIO builds
platformio run

Expand Down
33 changes: 19 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,58 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.4.0] - 2020-02-13
## [1.4.1] - 2020-03-06

### Added
- added first and last block methods ([#183])

## [1.4.0-arduino] - 2020-02-13
### Changed
- improved building as a project dependency ([#176])

## [1.4.0] - 2020-02-13

### Added
- added Core 2.6 endpoints ([#159])

## [1.3.0] - 2019-10-09

## [1.3.0-arduino] - 2019-10-09

### Added
- added Blockchain API endpoint ([#104])

### Changed
- moved external libraries out of source tree ([#140])
- improved API query usage to accept strings ([#114])
- improved class members and test coverage ([#93])
- improved formatting and maintainability ([#92])
- dropped Hunter Package Manager in favor of git submodules in OS builds ([#90])
- updated ArduinoJson 5.13.2 >> 6.10.1, usage patterns, and documentation/examples ([#87])
- moved external libraries out of source tree ([#140])

### Fixed
- fixed typos in Arduino examples ([#86])
- changed to "statusCode" '422' to test API Post response for empty Transactions objects ([#85])

## [1.2.0] - 2019-02-16
## [1.2.0-arduino] - 2019-02-16

### Added
- arduino CircleCI config ([#73])

### Changed
- removed `./src/stl` library ([#78])
- updated `keywords.txt`. ([#77])
- updated `./library.json` package export settings ([#70])
- updated `ARDUINO_IDE.sh` script to reflect `lib/` changes ([#76])
- reorganized files and documentation ([#75])
- removed `./src/stl` library ([#78])
- automated `ARDUINO_IDE.sh` script ([#72])
- updated `ARDUINO_IDE.sh` script to reflect `lib/` changes ([#76])
- updated `./library.json` package export settings ([#70])

## [1.1.0] - 2019-02-07

### Added
- added an API `send()` method for the `Transactions` class ([#64])
- added Arduino Sketch Paths to `library.json` ([#67])
- added an API `send()` method for the `Transactions` class ([#64])

### Fixed
- fixed unterminated comment which resulted in skipped `Node` tests ([#63])
- renamed `Helpers` class to avoid naming collision with Cpp-Crypto `Helpers` ([#65])
- fixed unterminated comment which resulted in skipped `Node` tests ([#63])

## [1.0.0] - 2019-01-19
- Initial Release
Expand All @@ -70,7 +75,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
[#77]: https://github.com/ArkEcosystem/cpp-client/pull/77
[#78]: https://github.com/ArkEcosystem/cpp-client/pull/78
[1.2.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.1.0...1.2.0
[1.2.0-arduino]: https://github.com/ArkEcosystem/cpp-client/compare/1.1.0-arduino...1.2.0-arduino
[#85]: https://github.com/ArkEcosystem/cpp-client/pull/85
[#86]: https://github.com/ArkEcosystem/cpp-client/pull/86
[#87]: https://github.com/ArkEcosystem/cpp-client/pull/87
Expand All @@ -80,8 +84,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
[#104]: https://github.com/ArkEcosystem/cpp-client/pull/104
[#114]: https://github.com/ArkEcosystem/cpp-client/pull/114
[#140]: https://github.com/ArkEcosystem/cpp-client/pull/140
[1.3.0-arduino]: https://github.com/ArkEcosystem/cpp-client/compare/1.2.0-arduino...1.3.0-arduino
[1.3.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.2.0...1.3.0
[#159]: https://github.com/ArkEcosystem/cpp-client/pull/159
[1.4.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.3.0...1.4.0
[1.4.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.3.0-arduino...1.4.0-arduino
[#176]: https://github.com/ArkEcosystem/cpp-client/pull/176
[#183]: https://github.com/ArkEcosystem/cpp-client/pull/183
[1.4.1]: https://github.com/ArkEcosystem/cpp-client/compare/1.4.0...1.4.1
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

rm -dfr build
mkdir build
Expand Down
2 changes: 1 addition & 1 deletion cmake/External.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (APPLE)
endif()

# Set the configuration
configure_file(${CMAKE_SOURCE_DIR}/cmake/extern/CURL.txt.in
configure_file(${CMAKE_INSTALL_PREFIX}/cmake/extern/CURL.txt.in
${EXTERNAL_LIBRARY_DIR}/curl/CMakeLists.txt)

# Execute Git Clone and run Cmake
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/ArkEcosystem/Cpp-Client.git"
},
"version": "1.4.0",
"version": "1.4.1",
"authors": [
{
"name": "Ark Ecosystem",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Ark-Cpp-Client
version=1.4.0
version=1.4.1
author=Ark Ecosystem
maintainer=Ark Ecosystem
sentence=A simple API client implementation in C++ for the ARK Blockchain.
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

rm -dfr build
mkdir build
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project(ark_cpp_client C CXX)
# External Libraries
# ------------------------------------------------------------------------------

include(${CMAKE_SOURCE_DIR}/cmake/External.cmake)
include(${CMAKE_INSTALL_PREFIX}/cmake/External.cmake)

# ------------------------------------------------------------------------------

Expand Down
12 changes: 12 additions & 0 deletions src/api/blocks/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ std::string Blocks::get(const char* blockId) {

/**/

std::string Blocks::first() {
return http_->get(paths::Blocks::first(this->host_).c_str());
}

/**/

std::string Blocks::last() {
return http_->get(paths::Blocks::last(this->host_).c_str());
}

/**/

std::string Blocks::all(const char* const query) {
return http_->get(paths::Blocks::all(this->host_, query).c_str());
}
Expand Down
Loading

0 comments on commit 751212f

Please sign in to comment.