Skip to content

Commit 5f3d131

Browse files
authored
Version 15.2.0 (#33)
Version 15.2.0. See below the CHANGELOG. Changed: - Various little cleanings ([#28](#28)) Fixed: - Some failings commands (parameter issues, failures in `sed`) ([#28](#28)) Removed: - Useless CSV option ([#28](#28)) Signed-off-by: Pierre-Yves Lapersonne <dev@pylapersonne.info>
1 parent 4e65759 commit 5f3d131

16 files changed

+135
-129
lines changed

CHANGELOG.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
# Tips'n'tools library changelog
22

33
All notable changes to this project will be documented in this file.
4-
This project adheres to [Semantic Versioning](http://semver.org/).
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
56

6-
## [Unreleased](https://github.com/pylapp/Tips-tools/compare/15.1.1...dev)
7+
## [Unreleased](https://github.com/pylapp/Tips-tools/compare/15.2.0...dev)
8+
9+
## [15.2.0](https://github.com/pylapp/Tips-tools/compare/15.1.1...15.2.0) - 2024-11-22
10+
11+
### Changed
12+
13+
- Various little cleanings ([#28](https://github.com/pylapp/Tips-tools/issues/28))
14+
15+
### Fixed
16+
17+
- Some failings commands (parameter issues, failures in `sed`) ([#28](https://github.com/pylapp/Tips-tools/issues/28))
18+
19+
### Removed
20+
21+
- Useless CSV option ([#28](https://github.com/pylapp/Tips-tools/issues/28))
722

823
## [15.1.1](https://github.com/pylapp/Tips-tools/compare/15.1.0...15.1.1) - 2024-08-10
924

@@ -30,13 +45,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3045

3146
### Fixed
3247

33-
- [#7](https://github.com/pylapp/Tips-tools/issues/7) Pick hard-coded fixes and improve versions
48+
- Pick hard-coded fixes and improve versions ([#7](https://github.com/pylapp/Tips-tools/issues/7))
3449

3550
### Changed
3651

37-
- [#15](https://github.com/pylapp/Tips-tools/issues/15) Add dry-run script
38-
- [#10](https://github.com/pylapp/Tips-tools/issues/10) Deal with GNU/Linux and macOS primitives
39-
- [#14](https://github.com/pylapp/Tips-tools/issues/14) Add CC-BY license for generated and ODS file
52+
- Add dry-run script ([#15](https://github.com/pylapp/Tips-tools/issues/15))
53+
- Deal with GNU/Linux and macOS primitives ([#10](https://github.com/pylapp/Tips-tools/issues/10))
54+
- Add CC-BY license for generated and ODS file ([#14](https://github.com/pylapp/Tips-tools/issues/14))
4055
- Improve check of URL in CSV files
4156
- Update sources headers
4257
- Refactor file tree
@@ -76,7 +91,7 @@ _This version is dedicated to macOS users, and is based on v14.3.0_
7691

7792
## [14.3.0] - 2023-08-28
7893

79-
_This version id dedicated to GNU/Linux users_
94+
_This version is dedicated to GNU/Linux users_
8095

8196
### Changed
8297

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository-code: 'https://github.com/pylapp/Tips-tools'
1414
url: 'https://github.com/pylapp/Tips-tools'
1515
abstract: >-
1616
Tips'n'tools is a project which has the aim of making searches faster and improving technical watch.
17-
Indeed, sometimes you need to share usefull web links and cool libraries to your colleagues,
17+
Indeed, sometimes you need to share useful web links and cool libraries to your colleagues,
1818
but which platform to use?
1919
2020
Your company's inner social network? Lost time if you move from your job.
@@ -40,5 +40,5 @@ keywords:
4040
- Ruby
4141
- PWA
4242
license: MIT
43-
version: 15.0.0
44-
date-released: '2023-09-25'
43+
version: 15.2.0
44+
date-released: '2024-11-22'

README.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Opened issues](https://img.shields.io/github/issues-raw/pylapp/Tips-tools?style=for-the-badge)](https://github.com/pylapp/Tips-tools/issues)
22
[![MIT license](https://img.shields.io/github/license/pylapp/Tips-tools?style=for-the-badge)](https://github.com/pylapp/Tips-tools/blob/master/LICENSE.txt)
33
[![Versions](https://img.shields.io/github/v/release/pylapp/Tips-tools?label=Last%20version&style=for-the-badge)](https://github.com/pylapp/Tips-tools/releases)
4-
[![Still maintained](https://img.shields.io/maintenance/yes/2023?style=for-the-badge)](https://github.com/pylapp/Tips-tools/issues?q=is%3Aissue+is%3Aclosed)
4+
[![Still maintained](https://img.shields.io/maintenance/yes/2024?style=for-the-badge)](https://github.com/pylapp/Tips-tools/issues?q=is%3Aissue+is%3Aclosed)
55

66
[![Code size](https://img.shields.io/github/languages/code-size/pylapp/Tips-Tools?style=for-the-badge)](https://github.com/pylapp/Tips-tools/tree/content)
77

@@ -32,8 +32,8 @@ width="500"/>
3232

3333
<em>Keep time and be faster with your own cache of references, tools and specifications useful for developers!</em>
3434

35-
_Tips'n'tools_ is a project which has the aim of making searches a bit more fast and improving technical watch.
36-
Indeed sometimes you need to share usefull web links and cool libraries to your colleagues, but which platform to use?
35+
_Tips'n'tools_ is a project which has the aim of making searches a bit faster and improving technical watch.
36+
Indeed sometimes you need to share useful web links and cool libraries to your colleagues, but which platform to use?
3737
Your company's inner social network? Lost time if you move from your job.
3838
A public social media? Lost time if this medium is closed.
3939
Fill your web browser's bookmarks? Yeah, got stolen or reinitialized your computer and you are done.
@@ -49,7 +49,7 @@ Then you can:
4949
**_Tips'n'tools_ may be useful if you want to compile, in one place, plenty of references and data interesting for your projects.
5050
Never rely on social networks or corporate heavy tools, make your own cache and bring it everywhere!**
5151

52-
You can get more detials [in the wiki](https://github.com/pylapp/Tips-tools/wiki).
52+
You can get more details [in the wiki](https://github.com/pylapp/Tips-tools/wiki).
5353

5454
## The doctor
5555

@@ -61,33 +61,37 @@ bash doctor.sh
6161

6262
## The main script
6363

64-
Run
64+
### Get help about commands
65+
6566
```shell
6667
bash tipsntools.sh --help
6768
```
68-
to get some help about the commands ;-)
6969

70-
Run
70+
### Make queries using regexp
71+
7172
```shell
72-
bash tipsntools.sh {--findAll | --findWeb | --findDevices | --findTools | --findSocs} yourRegex {--json | --csv}
73+
bash tipsntools.sh {--findAll | --findWeb | --findDevices | --findTools | --findSocs} yourRegex {--json}
7374
```
74-
to make some searches in files with a regular expression as a filter. The _--json_ flag after the regex makes the script produce JSON-based data.
7575

76-
Run
76+
It makes some searches in files with a regular expression as a filter. The _--json_ flag after the regex makes the script produce JSON-based data.
77+
78+
### Update corpora
79+
7780
```shell
7881
bash tipsntools.sh --update
7982
```
80-
to build HTML and JSON files from your CSV files, and build a global web page and the little web app (to see as a Progressive Web App or Single Page Application if you like buzzwords)
83+
It builds HTML and JSON files from your CSV files, and build a global web page and the little web app (to see as a Progressive Web App or Single Page Application if you like buzzwords).
8184

8285
## Add new elements in spreadsheets and other files
8386

8487
You can fill the _.ods_ spreadsheet file with new data you want to save.
8588
You should keep the columns order.
86-
Then run
89+
Then export the spreadsheet tabs in CSV format (UTF8 encoded) in the suitable folders.
90+
And run the command bellow to update the _.html_ and _.json_ files.
91+
8792
```shell
8893
bash tipsntools.sh --update
8994
```
90-
to update the _.html_ and _.json_ files.
9195

9296
## Who's who
9397

@@ -99,14 +103,14 @@ Finally, the CSV files you should export from ODS (preserving UTF8), and the gen
99103

100104
## Customize the project
101105

102-
In most of case nothing is hard-coded. Feel free to customize the Shell scripts, the HTML assets, etc.
106+
In most of case nothing is hard-coded, I hope. Feel free to customize the Shell scripts, the HTML assets, etc.
103107
The thing is, if you want to add a column in one of the spreadsheet's sheets, do not forget to update the dedicated Shell scripts and the HTML elements (CSS style sheets, HTML tables, etc.).
104108

105109
## Run the web app
106110

107111
The web app here is a kind of "Progressive Web App" as a "Single App Application" (one page, offline, installable, with a cache, responsive, etc), BUT it remains web before all and it's a bit crapy.
108-
So because web browsers world is fu****g missy (and also coz' I enjoy native apps <3), it remains web browsers which do not support Service Workers, Web Workers, IndexedDB, Promises, ES6 or common and nowadays tools blablabla.
109-
Thus you should use an up-to-date web browser. And sometimes it still won't work. "Web is universal and cool" they said (U_U))
112+
So because web browsers world is fu****g missy (and also coz' I enjoy native apps), it remains web browsers which do not support Service Workers, Web Workers, IndexedDB, Promises, ES6 or common and nowadays tools blablabla.
113+
Thus you should use an up-to-date web browser. And sometimes it still won't work. "Web is universal and cool" they said (U_U)
110114
Because Service Workers are used, you should reach the web app through HTTPS or a local web server (_localhost_).
111115

112116
_If you saw newbie things I did, feel free to submit a pull request!_
@@ -144,7 +148,8 @@ Here is the file tree for this version:
144148
## Note
145149

146150
It seems some web browsers (Firefox 58 for Android and Ubuntu) have bugs with IndexedDB. So you won't use the web app with them.
147-
You ask why Shell and Ruby are used instead of full cross-platforms languages? Power, effectiveness, and free and open-source OS ;-)
151+
You ask why Shell and Ruby are used instead of full cross-platforms languages? Power, effectiveness, and free and open-source OS.
152+
This project was, and in fact still is, a side project without too much ambitions with naive implementations. Feel free to subit pull requests to improve it.
148153

149154
## Must-read note
150155

@@ -156,7 +161,7 @@ If you get errors like _sed: RE error: illegal byte sequence_, please refer to t
156161
It seems some files (like CSV files) you produce contain special characters '�' making `sed` fail.
157162
https://stackoverflow.com/questions/19242275/re-error-illegal-byte-sequence-on-mac-os-x
158163

159-
You may also have in the wepp app error like _"An error occured with the JSON data gotten from the feed Web API. The degraded mode is still available"_. By looking in the developer console, you may find there is unexpected error in the JSON data returned by the script.
164+
You may also have in the web app error like _"An error occured with the JSON data gotten from the feed Web API. The degraded mode is still available"_. By looking in the developer console, you may find there is unexpected error in the JSON data returned by the script.
160165
In this case you should have a look on the CSV files you exported ; maybe there are not well formatted and make the produced JSON bad.
161166

162167
In addition, if you install the web app on your computer, you may have different behaviors if you choose Brave, Chrome or Firefox :-/

project/build/manifest.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"short_name": "Tips'n'tools",
3+
"name": "Tips'n'tools (v15.2.0)",
4+
"description": "Your own cache of references and tools",
5+
"icons": [
6+
{
7+
"src": "webapp/pictures/logo-96.png",
8+
"sizes": "96x96",
9+
"type": "image/png"
10+
},
11+
{
12+
"src": "webapp/pictures/logo-144.png",
13+
"sizes": "144x144",
14+
"type": "image/png"
15+
},
16+
{
17+
"src": "webapp/pictures/logo-192.png",
18+
"sizes": "192x192",
19+
"type": "image/png"
20+
}
21+
],
22+
"serviceworker": {
23+
"src": "./serviceworker.js",
24+
"scope": "/",
25+
"update_via_cache": "none"
26+
},
27+
"start_url": "./webapp.html",
28+
"display": "standalone",
29+
"orientation": "portrait",
30+
"dir": "auto",
31+
"lang": "en"
32+
}

project/doctor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ if [ -d "/proc" ]; then
132132
warningPointsCount=$(($warningPointsCount + 1))
133133
fi
134134
else # Maybe on macOS
135-
echo "Supposing you are in macOS operating system (don(t say you are on Windows)"
135+
echo "Supposing you are in macOS operating system (don't say you are on Window$)"
136136
if ! grep -q "bash" "$SHELL" ; then
137137
echo "This script should be run with bash shell (zsh is fine too)"
138138
warningPointsCount=$(($warningPointsCount + 1))

0 commit comments

Comments
 (0)