janus-ar 7.2.2 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abaa44daa4820589fe37b9524a37a8190e9bb856b95498b0d66b6273ed3c8672
4
- data.tar.gz: 100aa33fe074292a34dc758c64a122e16664a067a0117e976437dd1b415dceda
3
+ metadata.gz: 192027338ca77fe74dcf3d4ce10209514d57518e55be909c7d7fdf18c6bfcd44
4
+ data.tar.gz: 7d9cb1c366f05c08c19f07a6435673ddbbe8bc9ae07ab495e2f9901973ea932d
5
5
  SHA512:
6
- metadata.gz: 452aebf630ed525f284d379b82d45b8f81665d44887fb21ee7d768e2310696446754df0c09b5d101dcd0142d9eab4cc3260fe0c06359e807f30652c186717fca
7
- data.tar.gz: 9417eacddc58ec5f1bfc879b260d9a3f362f833db80f897efb634e1eade1ba185f7bc6461290551ef933971da0619652f7a24c783660d190f3985f28a65db3b3
6
+ metadata.gz: 6325a5fde59fc041a93182f97d294025a614e99ea974a9a018996af67895fcd28e1f9f156cebffe2366725b37fafca55b11d846dd7fe7ab4a1bd07c369d406f5
7
+ data.tar.gz: 1eea960641c63b5ba76e4fe285de967d04e79fea4e5de8eaeeffc082c97596dfcb9c3f0cb4e6524b452b59a8a4df8fc50ae2537c56561880c98f233502e34dc0
@@ -1,60 +1,68 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- pull_request:
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- fail-fast: false
14
- matrix:
15
- ruby:
16
- - '3.2'
17
- name: Ruby ${{ matrix.ruby }}
18
- services:
19
- mysql:
20
- image: mysql:8
21
- env:
22
- MYSQL_DATABASE: test
23
- MYSQL_ROOT_PASSWORD: password
24
- MYSQL_USER: test
25
- MYSQL_PASSWORD: test_password
26
- ports:
27
- - 3306:3306
28
- options: >-
29
- --health-cmd "mysqladmin ping"
30
- --health-interval 10s
31
- --health-timeout 5s
32
- --health-retries 5
33
- steps:
34
- - uses: actions/checkout@v2
35
- - uses: ruby/setup-ruby@v1
36
- with:
37
- ruby-version: ${{ matrix.ruby }}
38
- bundler-cache: true
39
- - run: |
40
- mysql -e "CREATE USER 'replica'@'%' IDENTIFIED BY 'replica_password';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
41
- mysql -e "GRANT SELECT ON test.* TO 'replica'@'%'" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
42
-
43
- mysql -e "CREATE USER 'primary'@'%' IDENTIFIED BY 'primary_password';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
44
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'primary'@'%';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
45
- mysql -e "FLUSH PRIVILEGES;" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
46
- - run: |
47
- bundle exec rspec
48
- env:
49
- MYSQL_HOST: 127.0.0.1
50
- RAILS_ENV: test
51
- RuboCop:
52
- runs-on: ubuntu-latest
53
- steps:
54
- - uses: actions/checkout@v2
55
- - uses: ruby/setup-ruby@v1
56
- with:
57
- ruby-version: '3.2'
58
- bundler-cache: true
59
- - run: |
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby:
16
+ - '3.2'
17
+ - '3.3'
18
+ - '3.4'
19
+ - '4.0'
20
+ gemfile:
21
+ - gemfiles/activerecord_8_0.gemfile
22
+ - gemfiles/activerecord_8_1.gemfile
23
+ name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }}
24
+ env:
25
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
26
+ services:
27
+ mysql:
28
+ image: mysql:8.0
29
+ env:
30
+ MYSQL_DATABASE: test
31
+ MYSQL_ROOT_PASSWORD: password
32
+ MYSQL_USER: test
33
+ MYSQL_PASSWORD: test_password
34
+ ports:
35
+ - 3306:3306
36
+ options: >-
37
+ --health-cmd "mysqladmin ping"
38
+ --health-interval 10s
39
+ --health-timeout 5s
40
+ --health-retries 5
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: ruby/setup-ruby@v1
44
+ with:
45
+ ruby-version: ${{ matrix.ruby }}
46
+ bundler-cache: true
47
+ - run: |
48
+ mysql -e "CREATE USER 'replica'@'%' IDENTIFIED BY 'replica_password';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
49
+ mysql -e "GRANT SELECT ON test.* TO 'replica'@'%'" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
50
+
51
+ mysql -e "CREATE USER 'primary'@'%' IDENTIFIED BY 'primary_password';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
52
+ mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'primary'@'%';" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
53
+ mysql -e "FLUSH PRIVILEGES;" -u root -p${{ env.MYSQL_PASSWORD || 'password' }} -h 127.0.0.1
54
+ - run: |
55
+ bundle exec rspec
56
+ env:
57
+ MYSQL_HOST: 127.0.0.1
58
+ RAILS_ENV: test
59
+ RuboCop:
60
+ runs-on: ubuntu-latest
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ - uses: ruby/setup-ruby@v1
64
+ with:
65
+ ruby-version: '3.2'
66
+ bundler-cache: true
67
+ - run: |
60
68
  bundle exec rubocop --parallel --color
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  janus-ar-*.gem
2
2
  .rubocop-*
3
+ gemfiles/*.gemfile.lock
data/.rubocop.yml CHANGED
@@ -1,26 +1,29 @@
1
- inherit_from:
2
- - https://tech.olioex.com/.support/rubocop-styling-v1.0
3
-
4
- require:
5
- - rubocop-rails
6
-
7
- Style/Documentation:
8
- Enabled: false
9
-
10
- Rails/Delegate:
11
- Enabled: false
12
-
13
- Metrics/BlockLength:
14
- Exclude:
15
- - spec/**/*
16
-
17
- Style/GlobalVars:
18
- Exclude:
19
- - 'spec/**/*'
20
-
21
- Naming/FileName:
22
- Exclude:
23
- - lib/janus-ar.rb
24
-
25
- Metrics/AbcSize:
26
- Max: 25
1
+ inherit_from:
2
+ - https://tech.olioex.com/.support/rubocop-styling-v1.0
3
+
4
+ require:
5
+ - rubocop-rails
6
+
7
+ AllCops:
8
+ SuggestExtensions: false
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ Rails/Delegate:
14
+ Enabled: false
15
+
16
+ Metrics/BlockLength:
17
+ Exclude:
18
+ - spec/**/*
19
+
20
+ Style/GlobalVars:
21
+ Exclude:
22
+ - 'spec/**/*'
23
+
24
+ Naming/FileName:
25
+ Exclude:
26
+ - lib/janus-ar.rb
27
+
28
+ Metrics/AbcSize:
29
+ Max: 25
data/Gemfile.lock CHANGED
@@ -1,124 +1,142 @@
1
- PATH
2
- remote: .
3
- specs:
4
- janus-ar (7.2.2)
5
- activerecord (~> 7.2)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- activemodel (7.2.1)
11
- activesupport (= 7.2.1)
12
- activerecord (7.2.1)
13
- activemodel (= 7.2.1)
14
- activesupport (= 7.2.1)
15
- timeout (>= 0.4.0)
16
- activesupport (7.2.1)
17
- base64
18
- bigdecimal
19
- concurrent-ruby (~> 1.0, >= 1.3.1)
20
- connection_pool (>= 2.2.5)
21
- drb
22
- i18n (>= 1.6, < 2)
23
- logger (>= 1.4.2)
24
- minitest (>= 5.1)
25
- securerandom (>= 0.3)
26
- tzinfo (~> 2.0, >= 2.0.5)
27
- ast (2.4.2)
28
- base64 (0.2.0)
29
- bigdecimal (3.1.8)
30
- coderay (1.1.3)
31
- concurrent-ruby (1.3.4)
32
- connection_pool (2.4.1)
33
- diff-lcs (1.5.1)
34
- drb (2.2.1)
35
- i18n (1.14.5)
36
- concurrent-ruby (~> 1.0)
37
- json (2.7.2)
38
- language_server-protocol (3.17.0.3)
39
- logger (1.6.0)
40
- method_source (1.0.0)
41
- minitest (5.25.1)
42
- mysql2 (0.5.6)
43
- parallel (1.26.3)
44
- parser (3.3.4.2)
45
- ast (~> 2.4.1)
46
- racc
47
- pry (0.14.2)
48
- coderay (~> 1.1)
49
- method_source (~> 1.0)
50
- racc (1.8.1)
51
- rack (3.1.7)
52
- rainbow (3.1.1)
53
- rake (13.2.1)
54
- regexp_parser (2.9.2)
55
- rexml (3.3.6)
56
- strscan
57
- rspec (3.13.0)
58
- rspec-core (~> 3.13.0)
59
- rspec-expectations (~> 3.13.0)
60
- rspec-mocks (~> 3.13.0)
61
- rspec-core (3.13.0)
62
- rspec-support (~> 3.13.0)
63
- rspec-expectations (3.13.0)
64
- diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.13.0)
66
- rspec-mocks (3.13.0)
67
- diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.13.0)
69
- rspec-support (3.13.1)
70
- rubocop (1.65.1)
71
- json (~> 2.3)
72
- language_server-protocol (>= 3.17.0)
73
- parallel (~> 1.10)
74
- parser (>= 3.3.0.2)
75
- rainbow (>= 2.2.2, < 4.0)
76
- regexp_parser (>= 2.4, < 3.0)
77
- rexml (>= 3.2.5, < 4.0)
78
- rubocop-ast (>= 1.31.1, < 2.0)
79
- ruby-progressbar (~> 1.7)
80
- unicode-display_width (>= 2.4.0, < 3.0)
81
- rubocop-ast (1.32.1)
82
- parser (>= 3.3.1.0)
83
- rubocop-performance (1.21.1)
84
- rubocop (>= 1.48.1, < 2.0)
85
- rubocop-ast (>= 1.31.1, < 2.0)
86
- rubocop-rails (2.26.0)
87
- activesupport (>= 4.2.0)
88
- rack (>= 1.1)
89
- rubocop (>= 1.52.0, < 2.0)
90
- rubocop-ast (>= 1.31.1, < 2.0)
91
- rubocop-rspec (3.0.4)
92
- rubocop (~> 1.61)
93
- rubocop-thread_safety (0.5.1)
94
- rubocop (>= 0.90.0)
95
- ruby-progressbar (1.13.0)
96
- securerandom (0.3.1)
97
- strscan (3.1.0)
98
- timeout (0.4.1)
99
- trilogy (2.8.1)
100
- tzinfo (2.0.6)
101
- concurrent-ruby (~> 1.0)
102
- unicode-display_width (2.5.0)
103
-
104
- PLATFORMS
105
- arm64-darwin-23
106
- x86_64-darwin-19
107
- x86_64-linux
108
-
109
- DEPENDENCIES
110
- activesupport (>= 7.2.0)
111
- janus-ar!
112
- mysql2
113
- pry
114
- rake
115
- rspec (~> 3)
116
- rubocop (~> 1.65.0)
117
- rubocop-performance
118
- rubocop-rails (~> 2.26.0)
119
- rubocop-rspec
120
- rubocop-thread_safety
121
- trilogy
122
-
123
- BUNDLED WITH
124
- 2.4.22
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ janus-ar (8.0.0)
5
+ activerecord (>= 8.0, < 9.0)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ activemodel (8.1.3)
11
+ activesupport (= 8.1.3)
12
+ activerecord (8.1.3)
13
+ activemodel (= 8.1.3)
14
+ activesupport (= 8.1.3)
15
+ timeout (>= 0.4.0)
16
+ activesupport (8.1.3)
17
+ base64
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
+ connection_pool (>= 2.2.5)
21
+ drb
22
+ i18n (>= 1.6, < 2)
23
+ json
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ uri (>= 0.13.1)
29
+ ast (2.4.3)
30
+ base64 (0.3.0)
31
+ bigdecimal (4.1.2)
32
+ coderay (1.1.3)
33
+ concurrent-ruby (1.3.6)
34
+ connection_pool (3.0.2)
35
+ diff-lcs (1.6.2)
36
+ drb (2.2.3)
37
+ i18n (1.14.8)
38
+ concurrent-ruby (~> 1.0)
39
+ io-console (0.8.2)
40
+ json (2.19.9)
41
+ language_server-protocol (3.17.0.5)
42
+ lint_roller (1.1.0)
43
+ logger (1.7.0)
44
+ method_source (1.1.0)
45
+ minitest (6.0.6)
46
+ drb (~> 2.0)
47
+ prism (~> 1.5)
48
+ mysql2 (0.5.7)
49
+ bigdecimal
50
+ parallel (1.28.0)
51
+ parser (3.3.11.1)
52
+ ast (~> 2.4.1)
53
+ racc
54
+ prism (1.9.0)
55
+ pry (0.16.0)
56
+ coderay (~> 1.1)
57
+ method_source (~> 1.0)
58
+ reline (>= 0.6.0)
59
+ racc (1.8.1)
60
+ rack (3.2.6)
61
+ rainbow (3.1.1)
62
+ rake (13.4.2)
63
+ regexp_parser (2.12.0)
64
+ reline (0.6.3)
65
+ io-console (~> 0.5)
66
+ rspec (3.13.2)
67
+ rspec-core (~> 3.13.0)
68
+ rspec-expectations (~> 3.13.0)
69
+ rspec-mocks (~> 3.13.0)
70
+ rspec-core (3.13.6)
71
+ rspec-support (~> 3.13.0)
72
+ rspec-expectations (3.13.5)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.13.0)
75
+ rspec-mocks (3.13.7)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.13.0)
78
+ rspec-support (3.13.7)
79
+ rubocop (1.88.0)
80
+ json (~> 2.3)
81
+ language_server-protocol (~> 3.17.0.2)
82
+ lint_roller (~> 1.1.0)
83
+ parallel (>= 1.10)
84
+ parser (>= 3.3.0.2)
85
+ rainbow (>= 2.2.2, < 4.0)
86
+ regexp_parser (>= 2.9.3, < 3.0)
87
+ rubocop-ast (>= 1.49.0, < 2.0)
88
+ ruby-progressbar (~> 1.7)
89
+ unicode-display_width (>= 2.4.0, < 4.0)
90
+ rubocop-ast (1.49.1)
91
+ parser (>= 3.3.7.2)
92
+ prism (~> 1.7)
93
+ rubocop-performance (1.26.1)
94
+ lint_roller (~> 1.1)
95
+ rubocop (>= 1.75.0, < 2.0)
96
+ rubocop-ast (>= 1.47.1, < 2.0)
97
+ rubocop-rails (2.35.4)
98
+ activesupport (>= 4.2.0)
99
+ lint_roller (~> 1.1)
100
+ rack (>= 1.1)
101
+ rubocop (>= 1.75.0, < 2.0)
102
+ rubocop-ast (>= 1.44.0, < 2.0)
103
+ rubocop-rspec (3.10.2)
104
+ lint_roller (~> 1.1)
105
+ regexp_parser (>= 2.0)
106
+ rubocop (~> 1.86, >= 1.86.2)
107
+ rubocop-thread_safety (0.7.3)
108
+ lint_roller (~> 1.1)
109
+ rubocop (~> 1.72, >= 1.72.1)
110
+ rubocop-ast (>= 1.44.0, < 2.0)
111
+ ruby-progressbar (1.13.0)
112
+ securerandom (0.4.1)
113
+ timeout (0.6.1)
114
+ trilogy (2.12.5)
115
+ bigdecimal
116
+ tzinfo (2.0.6)
117
+ concurrent-ruby (~> 1.0)
118
+ unicode-display_width (3.2.0)
119
+ unicode-emoji (~> 4.1)
120
+ unicode-emoji (4.2.0)
121
+ uri (1.1.1)
122
+
123
+ PLATFORMS
124
+ arm64-darwin-23
125
+ x86_64-linux
126
+
127
+ DEPENDENCIES
128
+ activesupport (>= 8.0)
129
+ janus-ar!
130
+ mysql2
131
+ pry
132
+ rake
133
+ rspec (~> 3)
134
+ rubocop (~> 1.88.0)
135
+ rubocop-performance
136
+ rubocop-rails (~> 2.35.2)
137
+ rubocop-rspec
138
+ rubocop-thread_safety
139
+ trilogy
140
+
141
+ BUNDLED WITH
142
+ 2.4.22