Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Релиз 2023.1 #10

Merged
merged 65 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e9aae0e
Test getting the index
embraceddd May 6, 2022
30a7f7b
Test csvTableRow class methods
embraceddd May 15, 2022
aeeb17f
Fix unit tests
embraceddd May 18, 2022
188c0d1
Merge pull request #4 from embraceddd/tests
vananiev Oct 9, 2022
4fd5b0b
fix tests
vananiev Oct 9, 2022
a55e0a8
fix tests run (junit 5 requires maven-surefire-plugin >= 2.22.0)
vananiev Oct 9, 2022
a6c5d35
Merge pull request #5 from spacious-team/task-fix-gh-4-tests
vananiev Oct 9, 2022
40f3bda
fix copyright
vananiev Oct 9, 2022
c180027
add idea spelling checks
vananiev Oct 9, 2022
095c0d1
add unit tests GitHub actions
vananiev Oct 22, 2022
9e9bc52
add coverage shield
vananiev Oct 22, 2022
e611f06
Merge pull request #9 from spacious-team/task-github-ci
vananiev Oct 22, 2022
18272f6
fix shield
vananiev Oct 22, 2022
2ebc066
update .gitignore
vananiev Oct 9, 2022
5434d00
impl tests for all methods of CsvTableCell
vananiev Oct 10, 2022
5bb1501
impl tests for all methods of CsvTableRow
vananiev Oct 10, 2022
4bb0c09
make date time format changeable
vananiev Oct 22, 2022
f6071f5
fix CsvTableCellTest
vananiev Oct 22, 2022
b5878d3
fix some code smells
vananiev Oct 23, 2022
13dbe59
add @Nullable annotation
vananiev Nov 18, 2022
c952e7a
add CsvTableRow test
vananiev Nov 18, 2022
70dcd63
improve CsvCellDataAccessObject.getInstantValue(): can parse time zone
vananiev Nov 19, 2022
11fd3fe
add new date time format support, add tests
vananiev Nov 19, 2022
aa28506
extract InstantParser
vananiev Nov 20, 2022
935344b
update table-wrapper-api
vananiev Nov 20, 2022
0b96d13
add CsvReportPage tests
vananiev Nov 21, 2022
fea684a
add CsvTable tests
vananiev Nov 21, 2022
af3fdba
fix CsvTable tests
vananiev Nov 21, 2022
7328283
fix CsvTable toString() test
vananiev Nov 21, 2022
929c871
add CsvTableCell toString() test
vananiev Nov 22, 2022
cc5bd05
remove RowAndIndex class
vananiev Nov 22, 2022
44df5e0
refactor CsvTableCell
vananiev Nov 22, 2022
688c779
add CsvTableFactory test
vananiev Nov 22, 2022
12ed676
add some CsvTableRow tests
vananiev Nov 22, 2022
91cb887
add CsvTableHelper test
vananiev Nov 22, 2022
71a8c01
fix npe warning
vananiev Nov 22, 2022
5857c02
Merge pull request #7 from spacious-team/task-add-tests
vananiev Nov 22, 2022
352f32b
fix long lines
vananiev Nov 22, 2022
9392175
refactor CsvTable
vananiev Nov 24, 2022
ee25522
update package-info.java copyright
vananiev Dec 12, 2022
d3ce42a
update checkerframework
vananiev Mar 1, 2023
69c17d1
fix " system modules path not set in conjunction with -source 11" warn
vananiev Mar 1, 2023
9250717
fix checkerframework error on idea test with coverage run
vananiev Mar 4, 2023
227fa9a
update table-wrapper-api
vananiev Mar 12, 2023
f662d52
rows with same row number shouldn't equal each other
vananiev Mar 12, 2023
768fc59
update equals and hashCode for row and cell objects
vananiev Mar 12, 2023
6242a6a
update table-wrapper-api
vananiev Mar 13, 2023
fd6da74
add table cell instant parse with millis test
vananiev Mar 13, 2023
84975e3
update table-wrapper-api
vananiev Mar 13, 2023
a7393b0
update table-wrapper-api
vananiev Mar 29, 2023
08fb986
refactor CsvTableHelper
vananiev Apr 5, 2023
d775efa
update table-wrapper-api
vananiev Apr 5, 2023
e2853c1
update table-wrapper-api
vananiev Apr 6, 2023
51e0f40
update deps
vananiev Apr 8, 2023
b2fafdc
fix CsvTableCell equals() and hashCode()
vananiev Apr 8, 2023
0dab5e9
update table-wrapper-api
vananiev Apr 8, 2023
14dccb0
refactor CsvTableHelper
vananiev Apr 9, 2023
555b2ae
add CsvReportPage test
vananiev Apr 10, 2023
195f978
fix jitpack artifact build
vananiev Apr 10, 2023
b307901
update usage doc
vananiev Apr 10, 2023
eae8d53
update link to spring boot starter
vananiev Apr 18, 2023
41d7db2
update README.md
vananiev Apr 18, 2023
6a77afd
update maven wrapper
vananiev Apr 18, 2023
79759eb
update CsvTableFactory
vananiev Apr 18, 2023
5b51467
version 2023.1
vananiev May 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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