Skip to content

Commit 04c482f

Browse files
authored
Merge pull request #10 from spacious-team/develop
Релиз 2023.1
2 parents 27e1b04 + 5b51467 commit 04c482f

31 files changed

+1459
-486
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Отчет об ошибке
3+
about: Создайте отчет об ошибке, чтобы улучшить приложение
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Опишите ошибку**
11+
Ясное и краткое описание ошибки.
12+
13+
**Последовательность действий для воспроизведения**
14+
Шаги по воспроизведению ошибки.
15+
16+
**Ожидаемый результат**
17+
Ясное и краткое описание того, что вы ожидали.
18+
19+
**Скриншоты**
20+
Если возможно, добавьте скриншоты, чтобы объяснить проблему.
21+
22+
**Окружение:**
23+
- ОС: [например windows 10]
24+
- Версия Java [например 19]
25+
- Версия приложения[например 2020.1]
26+
27+
**Дополнительный контекст**
28+
Любой другой контекст проблемы.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Запрос новой функциональности
3+
about: Предложите идею для этого проекта
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
**Связан ли ваш запрос новой функциональности с проблемой? Пожалуйста, опишите.**
11+
Четкое и краткое описание проблемы. Например, я всегда расстраиваюсь, когда [...]
12+
13+
**Опишите желаемое решение**
14+
Четкое и краткое описание того, что вы хотите сделать.
15+
16+
**Опишите альтернативы, которые вы рассмотрели**
17+
Четкое и краткое описание любых рассмотренных вами альтернативных решений или функций.
18+
19+
**Дополнительный контекст**
20+
Любой другой контекст.

.github/workflows/unit-tests.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Unit Tests
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- 'master'
8+
- 'develop'
9+
push:
10+
branches:
11+
- 'master'
12+
- 'develop'
13+
14+
jobs:
15+
tests:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Set up JDK
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '18'
26+
distribution: 'liberica'
27+
cache: maven
28+
29+
- name: Maven Tests
30+
run: mvn --batch-mode clean test
31+
32+
- name: Test Coverage
33+
uses: codecov/codecov-action@v3
34+
35+
- name: SonarCloud Analyze
36+
run: >
37+
mvn --batch-mode sonar:sonar
38+
-Dsonar.projectKey=spacious-team_table-wrapper-csv-impl
39+
-Dsonar.organization=spacious-team
40+
-Dsonar.host.url=https://sonarcloud.io
41+
-Dsonar.login=$SONAR_TOKEN
42+
-Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
target/
22
.mvn
33
!.mvn/wrapper/maven-wrapper.properties
4-
!.mvn/wrapper/MavenWrapperDownloader.java
54
!**/src/main/**
65
!**/src/test/**
76

@@ -22,6 +21,7 @@ target/
2221
!.idea/runConfigurations
2322
!.idea/codeStyles
2423
!.idea/copyright
24+
!.idea/inspectionProfiles
2525

2626
### NetBeans ###
2727
/nbproject/private/

.idea/copyright/GNU_AGPLv3.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Inspections.xml

+26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mvn/wrapper/MavenWrapperDownloader.java

-117
This file was deleted.

.mvn/wrapper/maven-wrapper.jar

-49.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

README.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
![java-version](https://img.shields.io/badge/Java-11-brightgreen?style=flat-square)
2-
![jitpack-last-release](https://jitpack.io/v/spacious-team/table-wrapper-csv-impl.svg?style=flat-square)
2+
[![jitpack-last-release](https://jitpack.io/v/spacious-team/table-wrapper-csv-impl.svg?style=flat-square)](
3+
https://jitpack.io/#spacious-team/table-wrapper-csv-impl)
4+
[![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)](
5+
https://github.com/spacious-team/table-wrapper-csv-impl/actions/workflows/unit-tests.yml)
6+
[![Coverage](https://img.shields.io/codecov/c/github/spacious-team/table-wrapper-csv-impl/develop?label=Coverage&style=flat-square&token=abjh1TArzE)](
7+
https://codecov.io/gh/spacious-team/table-wrapper-csv-impl)
38

49
### Назначение
510
Предоставляет реализацию `Table Wrapper API` для удобного доступа к табличным данным, сохраненным в файлах формата `csv`.
11+
12+
Если не используется [Spring Boot Starter](https://github.com/spacious-team/table-wrapper-spring-boot-starter),
13+
то сначала в реестр доступных фабрик нужно зарегистрировать фабрику csv таблиц:
14+
```java
15+
TableFactoryRegistry.add(new CsvTableFactory());
16+
```
617
Пример создания таблиц из файла `1.csv`
718
```java
819
ReportPage reportPage = new CsvReportPage(Path.of("1.csv"));
@@ -34,7 +45,7 @@ Table tableN = reportPage.create("Table N description", ...);
3445
</repository>
3546
</repositories>
3647
```
37-
и добавить зависимость
48+
Далее следует добавить зависимость
3849
```xml
3950
<dependency>
4051
<groupId>com.github.spacious-team</groupId>
@@ -45,4 +56,4 @@ Table tableN = reportPage.create("Table N description", ...);
4556
В качестве версии можно использовать:
4657
- версию [релиза](https://github.com/spacious-team/table-wrapper-csv-impl/releases) на github;
4758
- паттерн `<branch>-SNAPSHOT` для сборки зависимости с последнего коммита выбранной ветки;
48-
- короткий 10-ти значный номер коммита для сборки зависимости с указанного коммита.
59+
- короткий десяти значный номер коммита для сборки зависимости с указанного коммита.

jitpack.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Workaround for any java version not supported by Jitpack.io yet
2+
# https://github.com/jitpack/jitpack.io/issues/4260
3+
#before_install:
4+
# - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
5+
# - source install-jdk.sh --feature 15
6+
# - jshell --version
7+
jdk:
8+
- openjdk11

0 commit comments

Comments
 (0)