Skip to content

Commit b0748f4

Browse files
committed
.
1 parent 99d8726 commit b0748f4

File tree

8 files changed

+171
-113
lines changed

8 files changed

+171
-113
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,52 @@ jobs:
44
build:
55
if: "!contains(github.event.head_commit.message, '[skip ci]')"
66
runs-on: ubuntu-latest
7+
services:
8+
postgres:
9+
image: postgres:15
10+
env:
11+
POSTGRES_DB: action-store-test
12+
POSTGRES_USER: "postgres"
13+
POSTGRES_PASSWORD: "123456"
14+
ports:
15+
- 5432:5432
16+
options: >-
17+
--health-cmd pg_isready
18+
--health-interval 10s
19+
--health-timeout 5s
20+
--health-retries 5
721
strategy:
822
fail-fast: false
923
matrix:
1024
include:
11-
- ruby: 3.2
25+
- ruby: 3.3
1226
gemfile: Gemfile
13-
postgres: 10
27+
rails_version: 7.2
28+
- ruby: 3.2
29+
gemfile: gemfiles/Gemfile-7-1
1430
rails_version: 7.1
1531
- ruby: 3.2
1632
gemfile: gemfiles/Gemfile-7-0
17-
postgres: 10
1833
rails_version: 7.0
1934
- ruby: 2.7
2035
gemfile: gemfiles/Gemfile-6-1
21-
postgres: 10
2236
rails_version: 6.1
2337
- ruby: 2.6
2438
gemfile: gemfiles/Gemfile-6-0
25-
postgres: 10
2639
rails_version: 6.0
2740
- ruby: 2.6
2841
gemfile: gemfiles/Gemfile-5-2
29-
postgres: 10
3042
rails_version: 5.0
3143

3244
env:
3345
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
3446
USE_OFFICIAL_GEM_SOURCE: 1
3547
RAILS_VERSION: ${{ matrix.rails_version }}
48+
DATABASE_URL: postgres://postgres:123456@localhost:5432/action-store-test
3649
steps:
3750
- uses: actions/checkout@v2
3851
- uses: ruby/setup-ruby@v1
3952
with:
4053
ruby-version: ${{ matrix.ruby }}
4154
bundler-cache: true
42-
- uses: ankane/setup-postgres@v1
43-
with:
44-
postgres-version: ${{ matrix.postgres }}
45-
- run: createdb action-store-test
4655
- run: bundle exec rails test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/test/version_tmp/
1111
/tmp/
1212
test/dummy/log/**/*
13+
test/dummy/tmp/**/*
1314

1415
# Used by dotenv library to load environment variables.
1516
# .env

DEVELOPMENT

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DEVELOPMENT GUIDE
2+
3+
```bash
4+
docker-compose up -d
5+
```
6+
7+
Create local datebase
8+
9+
```bash
10+
bundle install
11+
rails db:create db:migrate
12+
```
13+
14+
Run tests
15+
16+
```bash
17+
rails test
18+
```
19+
20+
## Publish new RubyGem version
21+
22+
- Update version in `lib/action_store/version.rb`
23+
- Run `bundle install`.
24+
- Create a new tag in the format `vX.X.X` and push it to the repository.
25+
- Run `rake release` to publish the new version to RubyGems.
26+
- Write release notes in GitHub releases: https://github.com/rails-engine/action-store/releases

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
source "https://rubygems.org"
44

55
gemspec
6-
gem "rails", "~> 7.1.0"
6+
gem "rails", "~> 7.2.0"

Gemfile.lock

Lines changed: 99 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -7,182 +7,179 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
actioncable (7.1.1)
11-
actionpack (= 7.1.1)
12-
activesupport (= 7.1.1)
10+
actioncable (7.2.1)
11+
actionpack (= 7.2.1)
12+
activesupport (= 7.2.1)
1313
nio4r (~> 2.0)
1414
websocket-driver (>= 0.6.1)
1515
zeitwerk (~> 2.6)
16-
actionmailbox (7.1.1)
17-
actionpack (= 7.1.1)
18-
activejob (= 7.1.1)
19-
activerecord (= 7.1.1)
20-
activestorage (= 7.1.1)
21-
activesupport (= 7.1.1)
22-
mail (>= 2.7.1)
23-
net-imap
24-
net-pop
25-
net-smtp
26-
actionmailer (7.1.1)
27-
actionpack (= 7.1.1)
28-
actionview (= 7.1.1)
29-
activejob (= 7.1.1)
30-
activesupport (= 7.1.1)
31-
mail (~> 2.5, >= 2.5.4)
32-
net-imap
33-
net-pop
34-
net-smtp
16+
actionmailbox (7.2.1)
17+
actionpack (= 7.2.1)
18+
activejob (= 7.2.1)
19+
activerecord (= 7.2.1)
20+
activestorage (= 7.2.1)
21+
activesupport (= 7.2.1)
22+
mail (>= 2.8.0)
23+
actionmailer (7.2.1)
24+
actionpack (= 7.2.1)
25+
actionview (= 7.2.1)
26+
activejob (= 7.2.1)
27+
activesupport (= 7.2.1)
28+
mail (>= 2.8.0)
3529
rails-dom-testing (~> 2.2)
36-
actionpack (7.1.1)
37-
actionview (= 7.1.1)
38-
activesupport (= 7.1.1)
30+
actionpack (7.2.1)
31+
actionview (= 7.2.1)
32+
activesupport (= 7.2.1)
3933
nokogiri (>= 1.8.5)
40-
rack (>= 2.2.4)
34+
racc
35+
rack (>= 2.2.4, < 3.2)
4136
rack-session (>= 1.0.1)
4237
rack-test (>= 0.6.3)
4338
rails-dom-testing (~> 2.2)
4439
rails-html-sanitizer (~> 1.6)
45-
actiontext (7.1.1)
46-
actionpack (= 7.1.1)
47-
activerecord (= 7.1.1)
48-
activestorage (= 7.1.1)
49-
activesupport (= 7.1.1)
40+
useragent (~> 0.16)
41+
actiontext (7.2.1)
42+
actionpack (= 7.2.1)
43+
activerecord (= 7.2.1)
44+
activestorage (= 7.2.1)
45+
activesupport (= 7.2.1)
5046
globalid (>= 0.6.0)
5147
nokogiri (>= 1.8.5)
52-
actionview (7.1.1)
53-
activesupport (= 7.1.1)
48+
actionview (7.2.1)
49+
activesupport (= 7.2.1)
5450
builder (~> 3.1)
5551
erubi (~> 1.11)
5652
rails-dom-testing (~> 2.2)
5753
rails-html-sanitizer (~> 1.6)
58-
activejob (7.1.1)
59-
activesupport (= 7.1.1)
54+
activejob (7.2.1)
55+
activesupport (= 7.2.1)
6056
globalid (>= 0.3.6)
61-
activemodel (7.1.1)
62-
activesupport (= 7.1.1)
63-
activerecord (7.1.1)
64-
activemodel (= 7.1.1)
65-
activesupport (= 7.1.1)
57+
activemodel (7.2.1)
58+
activesupport (= 7.2.1)
59+
activerecord (7.2.1)
60+
activemodel (= 7.2.1)
61+
activesupport (= 7.2.1)
6662
timeout (>= 0.4.0)
67-
activestorage (7.1.1)
68-
actionpack (= 7.1.1)
69-
activejob (= 7.1.1)
70-
activerecord (= 7.1.1)
71-
activesupport (= 7.1.1)
63+
activestorage (7.2.1)
64+
actionpack (= 7.2.1)
65+
activejob (= 7.2.1)
66+
activerecord (= 7.2.1)
67+
activesupport (= 7.2.1)
7268
marcel (~> 1.0)
73-
activesupport (7.1.1)
69+
activesupport (7.2.1)
7470
base64
7571
bigdecimal
76-
concurrent-ruby (~> 1.0, >= 1.0.2)
72+
concurrent-ruby (~> 1.0, >= 1.3.1)
7773
connection_pool (>= 2.2.5)
7874
drb
7975
i18n (>= 1.6, < 2)
76+
logger (>= 1.4.2)
8077
minitest (>= 5.1)
81-
mutex_m
82-
tzinfo (~> 2.0)
83-
base64 (0.1.1)
84-
bigdecimal (3.1.4)
85-
builder (3.2.4)
86-
concurrent-ruby (1.2.2)
78+
securerandom (>= 0.3)
79+
tzinfo (~> 2.0, >= 2.0.5)
80+
base64 (0.2.0)
81+
bigdecimal (3.1.8)
82+
builder (3.3.0)
83+
concurrent-ruby (1.3.4)
8784
connection_pool (2.4.1)
8885
crass (1.0.6)
89-
date (3.3.3)
90-
drb (2.1.1)
91-
ruby2_keywords
92-
erubi (1.12.0)
86+
date (3.3.4)
87+
drb (2.2.1)
88+
erubi (1.13.0)
9389
factory_bot (6.2.0)
9490
activesupport (>= 5.0.0)
9591
globalid (1.2.1)
9692
activesupport (>= 6.1)
97-
i18n (1.14.1)
93+
i18n (1.14.6)
9894
concurrent-ruby (~> 1.0)
99-
io-console (0.6.0)
100-
irb (1.8.1)
101-
rdoc
102-
reline (>= 0.3.8)
103-
loofah (2.21.4)
95+
io-console (0.7.2)
96+
irb (1.14.0)
97+
rdoc (>= 4.0.0)
98+
reline (>= 0.4.2)
99+
logger (1.6.1)
100+
loofah (2.22.0)
104101
crass (~> 1.0.2)
105102
nokogiri (>= 1.12.0)
106103
mail (2.8.1)
107104
mini_mime (>= 0.1.1)
108105
net-imap
109106
net-pop
110107
net-smtp
111-
marcel (1.0.2)
108+
marcel (1.0.4)
112109
mini_mime (1.1.5)
113-
mini_portile2 (2.8.4)
114-
minitest (5.20.0)
115-
mutex_m (0.1.2)
116-
net-imap (0.4.1)
110+
mini_portile2 (2.8.7)
111+
minitest (5.25.1)
112+
net-imap (0.4.16)
117113
date
118114
net-protocol
119115
net-pop (0.1.2)
120116
net-protocol
121-
net-protocol (0.2.1)
117+
net-protocol (0.2.2)
122118
timeout
123-
net-smtp (0.4.0)
119+
net-smtp (0.5.0)
124120
net-protocol
125-
nio4r (2.5.9)
126-
nokogiri (1.15.4)
121+
nio4r (2.7.3)
122+
nokogiri (1.16.7)
127123
mini_portile2 (~> 2.8.2)
128124
racc (~> 1.4)
129125
pg (1.5.4)
130-
psych (5.1.1)
126+
psych (5.1.2)
131127
stringio
132-
racc (1.7.1)
133-
rack (3.0.8)
128+
racc (1.8.1)
129+
rack (3.1.7)
134130
rack-session (2.0.0)
135131
rack (>= 3.0.0)
136132
rack-test (2.1.0)
137133
rack (>= 1.3)
138134
rackup (2.1.0)
139135
rack (>= 3)
140136
webrick (~> 1.8)
141-
rails (7.1.1)
142-
actioncable (= 7.1.1)
143-
actionmailbox (= 7.1.1)
144-
actionmailer (= 7.1.1)
145-
actionpack (= 7.1.1)
146-
actiontext (= 7.1.1)
147-
actionview (= 7.1.1)
148-
activejob (= 7.1.1)
149-
activemodel (= 7.1.1)
150-
activerecord (= 7.1.1)
151-
activestorage (= 7.1.1)
152-
activesupport (= 7.1.1)
137+
rails (7.2.1)
138+
actioncable (= 7.2.1)
139+
actionmailbox (= 7.2.1)
140+
actionmailer (= 7.2.1)
141+
actionpack (= 7.2.1)
142+
actiontext (= 7.2.1)
143+
actionview (= 7.2.1)
144+
activejob (= 7.2.1)
145+
activemodel (= 7.2.1)
146+
activerecord (= 7.2.1)
147+
activestorage (= 7.2.1)
148+
activesupport (= 7.2.1)
153149
bundler (>= 1.15.0)
154-
railties (= 7.1.1)
150+
railties (= 7.2.1)
155151
rails-dom-testing (2.2.0)
156152
activesupport (>= 5.0.0)
157153
minitest
158154
nokogiri (>= 1.6)
159155
rails-html-sanitizer (1.6.0)
160156
loofah (~> 2.21)
161157
nokogiri (~> 1.14)
162-
railties (7.1.1)
163-
actionpack (= 7.1.1)
164-
activesupport (= 7.1.1)
165-
irb
158+
railties (7.2.1)
159+
actionpack (= 7.2.1)
160+
activesupport (= 7.2.1)
161+
irb (~> 1.13)
166162
rackup (>= 1.0.0)
167163
rake (>= 12.2)
168164
thor (~> 1.0, >= 1.2.2)
169165
zeitwerk (~> 2.6)
170-
rake (13.0.6)
171-
rdoc (6.5.0)
166+
rake (13.2.1)
167+
rdoc (6.7.0)
172168
psych (>= 4.0.0)
173-
reline (0.3.9)
169+
reline (0.5.10)
174170
io-console (~> 0.5)
175-
ruby2_keywords (0.0.5)
176-
stringio (3.0.8)
177-
thor (1.2.2)
178-
timeout (0.4.0)
171+
securerandom (0.3.1)
172+
stringio (3.1.1)
173+
thor (1.3.2)
174+
timeout (0.4.1)
179175
tzinfo (2.0.6)
180176
concurrent-ruby (~> 1.0)
177+
useragent (0.16.10)
181178
webrick (1.8.1)
182179
websocket-driver (0.7.6)
183180
websocket-extensions (>= 0.1.0)
184181
websocket-extensions (0.1.5)
185-
zeitwerk (2.6.12)
182+
zeitwerk (2.6.18)
186183

187184
PLATFORMS
188185
ruby
@@ -191,7 +188,7 @@ DEPENDENCIES
191188
action-store!
192189
factory_bot
193190
pg
194-
rails (~> 7.1.0)
191+
rails (~> 7.2.0)
195192

196193
BUNDLED WITH
197-
2.2.3
194+
2.5.3

0 commit comments

Comments
 (0)