Skip to content

Commit

Permalink
Merge pull request #10 from spacious-team/develop
Browse files Browse the repository at this point in the history
Релиз 2023.1
  • Loading branch information
vananiev authored May 31, 2023
2 parents 27e1b04 + 5b51467 commit 04c482f
Show file tree
Hide file tree
Showing 31 changed files with 1,459 additions and 486 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Отчет об ошибке
about: Создайте отчет об ошибке, чтобы улучшить приложение
title: ''
labels: bug
assignees: ''

---

**Опишите ошибку**
Ясное и краткое описание ошибки.

**Последовательность действий для воспроизведения**
Шаги по воспроизведению ошибки.

**Ожидаемый результат**
Ясное и краткое описание того, что вы ожидали.

**Скриншоты**
Если возможно, добавьте скриншоты, чтобы объяснить проблему.

**Окружение:**
- ОС: [например windows 10]
- Версия Java [например 19]
- Версия приложения[например 2020.1]

**Дополнительный контекст**
Любой другой контекст проблемы.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Запрос новой функциональности
about: Предложите идею для этого проекта
title: ''
labels: feature
assignees: ''

---

**Связан ли ваш запрос новой функциональности с проблемой? Пожалуйста, опишите.**
Четкое и краткое описание проблемы. Например, я всегда расстраиваюсь, когда [...]

**Опишите желаемое решение**
Четкое и краткое описание того, что вы хотите сделать.

**Опишите альтернативы, которые вы рассмотрели**
Четкое и краткое описание любых рассмотренных вами альтернативных решений или функций.

**Дополнительный контекст**
Любой другой контекст.
45 changes: 45 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Unit Tests

on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'develop'
push:
branches:
- 'master'
- 'develop'

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'liberica'
cache: maven

- name: Maven Tests
run: mvn --batch-mode clean test

- name: Test Coverage
uses: codecov/codecov-action@v3

- name: SonarCloud Analyze
run: >
mvn --batch-mode sonar:sonar
-Dsonar.projectKey=spacious-team_table-wrapper-csv-impl
-Dsonar.organization=spacious-team
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=$SONAR_TOKEN
-Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
target/
.mvn
!.mvn/wrapper/maven-wrapper.properties
!.mvn/wrapper/MavenWrapperDownloader.java
!**/src/main/**
!**/src/test/**

Expand All @@ -22,6 +21,7 @@ target/
!.idea/runConfigurations
!.idea/codeStyles
!.idea/copyright
!.idea/inspectionProfiles

### NetBeans ###
/nbproject/private/
Expand Down
2 changes: 1 addition & 1 deletion .idea/copyright/GNU_AGPLv3.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .idea/inspectionProfiles/Inspections.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 0 additions & 117 deletions .mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

Binary file removed .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
20 changes: 18 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
![java-version](https://img.shields.io/badge/Java-11-brightgreen?style=flat-square)
![jitpack-last-release](https://jitpack.io/v/spacious-team/table-wrapper-csv-impl.svg?style=flat-square)
[![jitpack-last-release](https://jitpack.io/v/spacious-team/table-wrapper-csv-impl.svg?style=flat-square)](
https://jitpack.io/#spacious-team/table-wrapper-csv-impl)
[![Unit tests](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fspacious-team%2Ftable-wrapper-csv-impl%2Fbadge%3Fref%3Ddevelop&style=flat-square&label=Test&logo=none)](
https://github.com/spacious-team/table-wrapper-csv-impl/actions/workflows/unit-tests.yml)
[![Coverage](https://img.shields.io/codecov/c/github/spacious-team/table-wrapper-csv-impl/develop?label=Coverage&style=flat-square&token=abjh1TArzE)](
https://codecov.io/gh/spacious-team/table-wrapper-csv-impl)

### Назначение
Предоставляет реализацию `Table Wrapper API` для удобного доступа к табличным данным, сохраненным в файлах формата `csv`.

Если не используется [Spring Boot Starter](https://github.com/spacious-team/table-wrapper-spring-boot-starter),
то сначала в реестр доступных фабрик нужно зарегистрировать фабрику csv таблиц:
```java
TableFactoryRegistry.add(new CsvTableFactory());
```
Пример создания таблиц из файла `1.csv`
```java
ReportPage reportPage = new CsvReportPage(Path.of("1.csv"));
Expand Down Expand Up @@ -34,7 +45,7 @@ Table tableN = reportPage.create("Table N description", ...);
</repository>
</repositories>
```
и добавить зависимость
Далее следует добавить зависимость
```xml
<dependency>
<groupId>com.github.spacious-team</groupId>
Expand All @@ -45,4 +56,4 @@ Table tableN = reportPage.create("Table N description", ...);
В качестве версии можно использовать:
- версию [релиза](https://github.com/spacious-team/table-wrapper-csv-impl/releases) на github;
- паттерн `<branch>-SNAPSHOT` для сборки зависимости с последнего коммита выбранной ветки;
- короткий 10-ти значный номер коммита для сборки зависимости с указанного коммита.
- короткий десяти значный номер коммита для сборки зависимости с указанного коммита.
8 changes: 8 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Workaround for any java version not supported by Jitpack.io yet
# https://github.com/jitpack/jitpack.io/issues/4260
#before_install:
# - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
# - source install-jdk.sh --feature 15
# - jshell --version
jdk:
- openjdk11
Loading

0 comments on commit 04c482f

Please sign in to comment.