Skip to content

Commit 37f2907

Browse files
committed
Update README with ruby fixes and instructions. Update jekyll and deps. | Not one conflict, today was a good day. (C) whatthecommit.com :)
1 parent feac0f1 commit 37f2907

File tree

9 files changed

+240
-129
lines changed

9 files changed

+240
-129
lines changed

.travis.yml

Lines changed: 17 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
- secure: hw6pdShvlvOYQE2N8qVUigZ3A06bj55LmOB786/B3zxWzwAa8mjfPo7jYD5eHTkiuUSpVKMhnr0MsKy//NJu+UIm2OqwZjhTMqYaiZx3a3mtontKgbcLsHJI7IyfQF3OqQVsvhoi+3yf8rfyysq4tnP+0RPlfqtYnrrNNolOBQRdaixQgACfzqYfkYM11EdInXZY6WZkfkIJHvmYhFJKB6D8LgEKdrY6q7W/KmPB9T37c2fcMxe/4aSaoHzFX3JPi6OLc3tT21Kv+XRQPYV7tp3XP67M6rGq2RKzXrKzLoYEjIU5d0pFbygmwE5YBdfn7j7C10rxAeFZ/UOXYJtCJW9ZojKkitwiDzUvo3Bu+Q3v0XDPE/hQ4RwC4zbmeT8DH2GnSSTNnAq+55ESbVXPGAo4FsW/PBlqBx4KlfOpjNbyBPeECGy1xYbOi547YqAYxkqVn3augp5OgZ/bNFRM80ib9k6lv81hFhBrC7Yp1b8GmO6XeUG0QZoOkKclO0DtzhM972uQiYL2Wb6i+Ll7cVeP6Oss+8VNENZTne2+weVVsl/tHFbjLI8mWaQmROqfVpekYl1UzJVx3iJQKSFiRTJlhXjnZYxabet+HPAggw0r40yWJUZRsRH3rFekBNmdjaVRQ+8nihdUOPS9bzCHYO/IUYuTrKDN7B3IJrFiVVU=
1111

1212
language: java
13-
jdk: openjdk8
13+
jdk: openjdk11
1414
rvm: 2.6.4
1515

1616
addons:
@@ -24,18 +24,10 @@ addons:
2424
- bash
2525
- curl
2626
- unzip
27-
- python3-dev
28-
- python3-pip
29-
- python3-six
30-
- python3-setuptools
27+
- httpie
3128

3229
install: true
3330
before_install:
34-
- export PATH=$HOME/.local/bin:$PATH
35-
- pip3 install --user $(whoami) --upgrade pip >/dev/null
36-
- pip install --user $(whoami) --upgrade httpie >/dev/null 2>&1
37-
- http --version --debug
38-
#
3931
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
4032
- stop_any 80 8001 8002 8080 5432
4133

@@ -47,10 +39,9 @@ jobs:
4739
include:
4840

4941
- stage: test
50-
jdk: openjdk8
51-
name: mvn
42+
name: test
5243
script:
53-
- cd $TRAVIS_BUILD_DIR && ./mvnw -U >/dev/null
44+
- cd $TRAVIS_BUILD_DIR && ./mvnw
5445
- java -jar $TRAVIS_BUILD_DIR/target/*-all.jar &
5546
- wait_for 8080
5647
- |
@@ -85,88 +76,34 @@ jobs:
8576
]' | http post :8080/events/collection
8677
8778
- http :8080/events/00000000-0000-0000-0000-000000000001/collection Accept:application/json
88-
- http :8080/events/00000000-0000-0000-0000-000000000000 Accept:application/json
79+
- http :8080/events/00000000-0000-0000-0000-000000000000 Accept:application/json
8980
- http :8080/events
9081
- http delete :8080/events
9182

9283
- http :8080/counter
93-
- http post :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterCreated counterName=hi
94-
- http put :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterIncremented by=travis withValue=1
95-
- http put :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterIncremented withValue=2
96-
- http delete :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterSuspended reason="just because I can"
97-
- http :8080/counter/00000000-0000-0000-0000-000000000000
98-
- http :8080/counter
84+
- http post :8080/counter aggregateId=0-0-0-0-0 type=CounterCreated counterName=hi
85+
- http put :8080/counter aggregateId=0-0-0-0-0 type=CounterIncremented by=travis withValue=1
86+
- http put :8080/counter aggregateId=0-0-0-0-0 type=CounterIncremented withValue=2
87+
- http delete :8080/counter aggregateId=0-0-0-0-0 type=CounterSuspended reason="just because I can"
88+
- http get :8080/counter/0-0-0-0-0
89+
- http get :8080/counter
9990
- http delete :8080/events
100-
- http :8080/counter/00000000-0000-0000-0000-000000000000
91+
- http get :8080/counter/0-0-0-0-0
10192
- stop_any 80 8080
10293

10394
- stage: test
104-
jdk: openjdk8
95+
jdk: openjdk11
10596
name: display-property-updates
10697
script: cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-property-updates -U
10798

10899
- stage: test
109-
jdk: openjdk11
110-
name: test jdk11
100+
name: test documentation build
111101
script:
112-
- cd $TRAVIS_BUILD_DIR && ./mvnw
113-
- java -jar $TRAVIS_BUILD_DIR/target/*-all.jar &
114-
- wait_for 8080
115-
- |
116-
echo '[
117-
{
118-
"type":"CounterCreated",
119-
"aggregateId": "00000000-0000-0000-0000-000000000000",
120-
"counterName": "hello 1"
121-
},
122-
{
123-
"type":"CounterIncremented",
124-
"aggregateId": "00000000-0000-0000-0000-000000000000",
125-
"by": "max",
126-
"withValue": 2
127-
},
128-
{
129-
"type":"CounterIncremented",
130-
"aggregateId": "00000000-0000-0000-0000-000000000000",
131-
"by": "max",
132-
"withValue": 3
133-
},
134-
{
135-
"type":"CounterIncremented",
136-
"aggregateId": "00000000-0000-0000-0000-000000000000",
137-
"by": "max"
138-
},
139-
{
140-
"type":"CounterSuspended",
141-
"aggregateId": "00000000-0000-0000-0000-000000000000",
142-
"reason": "because!"
143-
}
144-
]' | http post :8080/events/collection
145-
146-
- http :8080/events/00000000-0000-0000-0000-000000000001/collection Accept:application/json
147-
- http :8080/events/00000000-0000-0000-0000-000000000000 Accept:application/json
148-
- http :8080/events
149-
- http delete :8080/events
150-
151-
- http :8080/counter
152-
- http post :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterCreated counterName=hi
153-
- http put :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterIncremented by=travis withValue=1
154-
- http put :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterIncremented withValue=2
155-
- http delete :8080/counter aggregateId=00000000-0000-0000-0000-000000000000 type=CounterSuspended reason="just because I can"
156-
- http :8080/counter/00000000-0000-0000-0000-000000000000
157-
- http :8080/counter
158-
- http delete :8080/events
159-
- http :8080/counter/00000000-0000-0000-0000-000000000000
160-
- stop_any 80 8080
161-
162-
- stage: test
163-
jdk: openjdk11
164-
name: display-property-updates jdk11
165-
script: cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-property-updates -U
102+
- cd $TRAVIS_BUILD_DIR && ./mvnw exec:exec
103+
- cd $TRAVIS_BUILD_DIR && ./mvnw -Pjekyll-search
104+
- cd $TRAVIS_BUILD_DIR && ./mvnw -Pjekyll-build
166105

167106
- stage: deploy
168-
jdk: openjdk11
169-
rvm: 2.6.4
170107
name: GitHub release and GitHub pages deployment
171108
script: skip
172109
if: branch = "master" AND type NOT IN (pull_request)
@@ -188,7 +125,6 @@ jobs:
188125
condition: "$TRAVIS_PULL_REQUEST = false"
189126

190127
cache:
191-
pip: true
192128
bundler: true
193129
packages: true
194130
directories:

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@ _fat jar_
4747
./mvnw clean ; ./mvnw ; java -jar ./target/*-all.jar
4848
```
4949

50+
build _docs_ on my macOS:
51+
52+
```bash
53+
brew reinstall libffi
54+
export LDFLAGS="-L/usr/local/opt/libffi/lib"
55+
export CPPFLAGS="-I/usr/local/opt/libffi/include"
56+
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
57+
export PATH=$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH
58+
gem install --user-install bundler jekyll just-the-docs
59+
60+
./mvnw -Dbundle=`which bundle` exec:exec
61+
#./mvnw -Dbundle=`which bundle` -P jekyll-serve
62+
63+
./mvnw -Dbundle=`which bundle` -P gem-install ; \
64+
./mvnw -Dbundle=`which bundle` -P bundle-update-jekyll ; \
65+
./mvnw -Dbundle=`which bundle` -P bundle-install ; \
66+
./mvnw -Dbundle=`which bundle` -P jekyll-search ; \
67+
./mvnw -Dbundle=`which bundle` -P jekyll-build
68+
```
69+
5070
NOTE: _This project has been based on [GitHub: daggerok/main-starter (branch: maven-java)](https://github.com/daggerok/main-starter/tree/maven-java)_
5171

5272
links:

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
_site
22
.sass-cache
33
.jekyll-metadata
4+
.jekyll-cache

docs/Gemfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
gem "jekyll", "~> 3.8.6"
11+
gem "jekyll", "~> 4.2.0"
1212

1313
# This is the default theme for new Jekyll sites. You may change this to anything you like.
14-
gem "just-the-docs", "~> 0.2.6"
14+
gem "just-the-docs", "~> 0.3.3"
1515

1616
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1717
# uncomment the line below. To upgrade, run `bundle update github-pages`.
1818
# gem "github-pages", group: :jekyll_plugins
1919

2020
# If you have any plugins, put them here!
2121
group :jekyll_plugins do
22-
gem "jekyll-feed", "~> 0.6"
22+
gem "jekyll-feed", "~> 0.12"
2323
end
2424

2525
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
@@ -30,5 +30,8 @@ install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
3030
end
3131

3232
# Performance-booster for watching directories on Windows
33-
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
33+
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
34+
35+
# bundle exec jekyll serve workaround:
36+
gem "webrick"
3437

docs/Gemfile.lock

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,80 +4,86 @@ GEM
44
addressable (2.7.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.5)
8-
em-websocket (0.5.1)
7+
concurrent-ruby (1.1.8)
8+
em-websocket (0.5.2)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12-
ffi (1.11.1)
12+
ffi (1.15.0)
1313
forwardable-extended (2.6.0)
1414
http_parser.rb (0.6.0)
15-
i18n (0.9.5)
15+
i18n (1.8.9)
1616
concurrent-ruby (~> 1.0)
17-
jekyll (3.8.6)
17+
jekyll (4.2.0)
1818
addressable (~> 2.4)
1919
colorator (~> 1.0)
2020
em-websocket (~> 0.5)
21-
i18n (~> 0.7)
22-
jekyll-sass-converter (~> 1.0)
21+
i18n (~> 1.0)
22+
jekyll-sass-converter (~> 2.0)
2323
jekyll-watch (~> 2.0)
24-
kramdown (~> 1.14)
24+
kramdown (~> 2.3)
25+
kramdown-parser-gfm (~> 1.0)
2526
liquid (~> 4.0)
26-
mercenary (~> 0.3.3)
27+
mercenary (~> 0.4.0)
2728
pathutil (~> 0.9)
28-
rouge (>= 1.7, < 4)
29+
rouge (~> 3.0)
2930
safe_yaml (~> 1.0)
31+
terminal-table (~> 2.0)
3032
jekyll-feed (0.12.1)
3133
jekyll (>= 3.7, < 5.0)
32-
jekyll-sass-converter (1.5.2)
33-
sass (~> 3.4)
34-
jekyll-seo-tag (2.6.1)
35-
jekyll (>= 3.3, < 5.0)
34+
jekyll-sass-converter (2.1.0)
35+
sassc (> 2.0.1, < 3.0)
36+
jekyll-seo-tag (2.7.1)
37+
jekyll (>= 3.8, < 5.0)
3638
jekyll-watch (2.2.1)
3739
listen (~> 3.0)
38-
just-the-docs (0.2.6)
39-
jekyll (~> 3.8.5)
40+
just-the-docs (0.3.3)
41+
jekyll (>= 3.8.5)
4042
jekyll-seo-tag (~> 2.0)
41-
rake (~> 12.3.1)
42-
kramdown (1.17.0)
43+
rake (>= 12.3.1, < 13.1.0)
44+
kramdown (2.3.0)
45+
rexml
46+
kramdown-parser-gfm (1.1.0)
47+
kramdown (~> 2.0)
4348
liquid (4.0.3)
44-
listen (3.1.5)
45-
rb-fsevent (~> 0.9, >= 0.9.4)
46-
rb-inotify (~> 0.9, >= 0.9.7)
47-
ruby_dep (~> 1.2)
48-
mercenary (0.3.6)
49+
listen (3.4.1)
50+
rb-fsevent (~> 0.10, >= 0.10.3)
51+
rb-inotify (~> 0.9, >= 0.9.10)
52+
mercenary (0.4.0)
4953
pathutil (0.16.2)
5054
forwardable-extended (~> 2.6)
51-
public_suffix (4.0.1)
52-
rake (12.3.3)
53-
rb-fsevent (0.10.3)
54-
rb-inotify (0.10.0)
55+
public_suffix (4.0.6)
56+
rake (13.0.3)
57+
rb-fsevent (0.10.4)
58+
rb-inotify (0.10.1)
5559
ffi (~> 1.0)
56-
rouge (3.9.0)
57-
ruby_dep (1.5.0)
60+
rexml (3.2.4)
61+
rouge (3.26.0)
5862
safe_yaml (1.0.5)
59-
sass (3.7.4)
60-
sass-listen (~> 4.0.0)
61-
sass-listen (4.0.0)
62-
rb-fsevent (~> 0.9, >= 0.9.4)
63-
rb-inotify (~> 0.9, >= 0.9.7)
63+
sassc (2.4.0)
64+
ffi (~> 1.9)
65+
terminal-table (2.0.0)
66+
unicode-display_width (~> 1.1, >= 1.1.1)
6467
thread_safe (0.3.6)
6568
tzinfo (1.2.5)
6669
thread_safe (~> 0.1)
6770
tzinfo-data (1.2019.2)
6871
tzinfo (>= 1.0.0)
72+
unicode-display_width (1.7.0)
6973
wdm (0.1.1)
74+
webrick (1.7.0)
7075

7176
PLATFORMS
7277
ruby
7378

7479
DEPENDENCIES
75-
jekyll (~> 3.8.6)
76-
jekyll-feed (~> 0.6)
77-
just-the-docs (~> 0.2.6)
80+
jekyll (~> 4.2.0)
81+
jekyll-feed (~> 0.12)
82+
just-the-docs (~> 0.3.3)
7883
tzinfo (~> 1.2)
7984
tzinfo-data
80-
wdm (~> 0.1.0)
85+
wdm (~> 0.1.1)
86+
webrick
8187

8288
BUNDLED WITH
83-
2.0.2
89+
2.2.14

docs/assets/images/favicon.ico

-1.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)