Skip to content

Commit 15bac4a

Browse files
authored
Merge pull request #137 from doctolib/developement-misc
Misc updates to facilitate development / contributions
2 parents 0e9100c + 55a604a commit 15bac4a

13 files changed

+71
-27
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
env:
2-
RUBY_VERSION: 3.1.2
2+
RUBY_VERSION: 3.2.3
33
POSTGRES_USER: postgres
44
POSTGRES_PASSWORD: postgres
55
POSTGRES_DB: safe_pg_migrations_test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.gem
33

44
/debug.log
5+
/gemfiles/*.lock

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
3.2.3

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ruby-syntax-tree.vscode-syntax-tree",
4+
"shopify.ruby-lsp"
5+
]
6+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "ruby_lsp",
6+
"request": "launch",
7+
"name": "Debug test file",
8+
"program": "ruby -Itest ${relativeFile}",
9+
},
10+
]
11+
}

.vscode/tasks.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"group": "test",
8+
"label": "Run all tests",
9+
"type": "shell",
10+
"command": "bundle exec rake test",
11+
"problemMatcher": [],
12+
"presentation": {
13+
"clear": true
14+
}
15+
},
16+
{
17+
"group": "test",
18+
"label": "Run tests for current file",
19+
"type": "shell",
20+
"command": "bundle exec rake test TEST=${file}",
21+
"problemMatcher": [],
22+
"presentation": {
23+
"clear": true
24+
}
25+
}
26+
]
27+
}

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
## Running tests
44

55
```bash
6-
bundle
76
psql -h localhost -c 'CREATE DATABASE safe_pg_migrations_test'
8-
rake test
7+
8+
bundle
9+
bundle exec rake test
910
```
1011

1112
You may want to use one of the specific gemfiles, to test against some exotic setups. To do so, run:

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ source 'https://rubygems.org/'
55
gemspec
66

77
group :development, :test do
8+
gem 'debug'
89
gem 'minitest', '>= 5'
910
gem 'mocha'
1011
gem 'pg'
11-
gem 'pry'
12-
gem 'pry-coolline'
1312
gem 'rake'
1413
gem 'rubocop'
1514
gem 'strong_migrations'

Gemfile.lock

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,21 @@ GEM
2727
ast (2.4.2)
2828
base64 (0.2.0)
2929
bigdecimal (3.1.4)
30-
coderay (1.1.3)
3130
concurrent-ruby (1.2.2)
3231
connection_pool (2.4.1)
33-
coolline (0.5.0)
34-
unicode_utils (~> 1.4)
32+
debug (1.9.1)
33+
irb (~> 1.10)
34+
reline (>= 0.3.8)
3535
drb (2.2.0)
3636
ruby2_keywords
3737
i18n (1.14.1)
3838
concurrent-ruby (~> 1.0)
39+
io-console (0.7.2)
40+
irb (1.11.2)
41+
rdoc
42+
reline (>= 0.4.2)
3943
json (2.6.3)
4044
language_server-protocol (3.17.0.3)
41-
method_source (1.0.0)
4245
minitest (5.18.1)
4346
mocha (2.0.4)
4447
ruby2_keywords (>= 0.0.5)
@@ -48,16 +51,16 @@ GEM
4851
ast (~> 2.4.1)
4952
racc
5053
pg (1.5.3)
51-
pry (0.14.2)
52-
coderay (~> 1.1)
53-
method_source (~> 1.0)
54-
pry-coolline (0.2.6)
55-
coolline (~> 0.5)
56-
pry (~> 0.13)
54+
psych (5.1.2)
55+
stringio
5756
racc (1.7.1)
5857
rainbow (3.1.1)
5958
rake (13.0.6)
59+
rdoc (6.6.2)
60+
psych (>= 4.0.0)
6061
regexp_parser (2.8.1)
62+
reline (0.4.2)
63+
io-console (~> 0.5)
6164
rexml (3.2.5)
6265
rubocop (1.53.1)
6366
json (~> 2.3)
@@ -74,23 +77,22 @@ GEM
7477
parser (>= 3.2.1.0)
7578
ruby-progressbar (1.13.0)
7679
ruby2_keywords (0.0.5)
80+
stringio (3.1.0)
7781
strong_migrations (1.4.3)
7882
activerecord (>= 5.2)
7983
timeout (0.4.1)
8084
tzinfo (2.0.6)
8185
concurrent-ruby (~> 1.0)
8286
unicode-display_width (2.4.2)
83-
unicode_utils (1.4.0)
8487

8588
PLATFORMS
8689
ruby
8790

8891
DEPENDENCIES
92+
debug
8993
minitest (>= 5)
9094
mocha
9195
pg
92-
pry
93-
pry-coolline
9496
rake
9597
rubocop
9698
safe-pg-migrations!

gemfiles/activerecord61.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ gemspec path: '..'
66

77
gem 'activerecord', '~> 6.1.0'
88
gem 'bundler'
9+
gem 'debug'
910
gem 'minitest', '>= 5'
1011
gem 'mocha'
1112
gem 'pg', '~> 1.4.3'
12-
gem 'pry'
13-
gem 'pry-coolline'
1413
gem 'rake'
1514
gem 'rubocop'

0 commit comments

Comments
 (0)