janus-ar 8.0.0 → 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: 612d3c32af790b83f526dfe55c6a657e527c0d08c9dc7959c7203e5fe794fec0
4
- data.tar.gz: f98329224347cbe2e08a2fadef8d3e9e705afb281066a18aa29a7757fd0adf26
3
+ metadata.gz: 192027338ca77fe74dcf3d4ce10209514d57518e55be909c7d7fdf18c6bfcd44
4
+ data.tar.gz: 7d9cb1c366f05c08c19f07a6435673ddbbe8bc9ae07ab495e2f9901973ea932d
5
5
  SHA512:
6
- metadata.gz: 8565f506ef40bb85d1a453f3978961af94d3fcc0d4e743d691c443c656c4e2eaeb078c07e453abc7580fc7ff6e31184ca774fd90f6ffa33753d3de3c2646f4fe
7
- data.tar.gz: 653188ccf586dfd9d1d30bb666b62f09f053749a8b5b04c6403f05a5d6f02f8ae188c1d5eb1a00ee7944c9023cbd7796c482d2ac1c45e291af516d15abfe4b6c
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,125 +1,142 @@
1
- PATH
2
- remote: .
3
- specs:
4
- janus-ar (7.2.0)
5
- activerecord (>= 8.0, < 9.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- activemodel (8.0.1)
11
- activesupport (= 8.0.1)
12
- activerecord (8.0.1)
13
- activemodel (= 8.0.1)
14
- activesupport (= 8.0.1)
15
- timeout (>= 0.4.0)
16
- activesupport (8.0.1)
17
- base64
18
- benchmark (>= 0.3)
19
- bigdecimal
20
- concurrent-ruby (~> 1.0, >= 1.3.1)
21
- connection_pool (>= 2.2.5)
22
- drb
23
- i18n (>= 1.6, < 2)
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.2)
30
- base64 (0.2.0)
31
- benchmark (0.4.0)
32
- bigdecimal (3.1.9)
33
- coderay (1.1.3)
34
- concurrent-ruby (1.3.4)
35
- connection_pool (2.4.1)
36
- diff-lcs (1.5.1)
37
- drb (2.2.1)
38
- i18n (1.14.6)
39
- concurrent-ruby (~> 1.0)
40
- json (2.9.1)
41
- language_server-protocol (3.17.0.3)
42
- logger (1.6.4)
43
- method_source (1.1.0)
44
- minitest (5.25.4)
45
- mysql2 (0.5.6)
46
- parallel (1.26.3)
47
- parser (3.3.6.0)
48
- ast (~> 2.4.1)
49
- racc
50
- pry (0.15.2)
51
- coderay (~> 1.1)
52
- method_source (~> 1.0)
53
- racc (1.8.1)
54
- rack (3.1.8)
55
- rainbow (3.1.1)
56
- rake (13.2.1)
57
- regexp_parser (2.10.0)
58
- rspec (3.13.0)
59
- rspec-core (~> 3.13.0)
60
- rspec-expectations (~> 3.13.0)
61
- rspec-mocks (~> 3.13.0)
62
- rspec-core (3.13.0)
63
- rspec-support (~> 3.13.0)
64
- rspec-expectations (3.13.0)
65
- diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.13.0)
67
- rspec-mocks (3.13.0)
68
- diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.13.0)
70
- rspec-support (3.13.1)
71
- rubocop (1.69.2)
72
- json (~> 2.3)
73
- language_server-protocol (>= 3.17.0)
74
- parallel (~> 1.10)
75
- parser (>= 3.3.0.2)
76
- rainbow (>= 2.2.2, < 4.0)
77
- regexp_parser (>= 2.9.3, < 3.0)
78
- rubocop-ast (>= 1.36.2, < 2.0)
79
- ruby-progressbar (~> 1.7)
80
- unicode-display_width (>= 2.4.0, < 4.0)
81
- rubocop-ast (1.37.0)
82
- parser (>= 3.3.1.0)
83
- rubocop-performance (1.23.1)
84
- rubocop (>= 1.48.1, < 2.0)
85
- rubocop-ast (>= 1.31.1, < 2.0)
86
- rubocop-rails (2.28.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.2.0)
92
- rubocop (~> 1.61)
93
- rubocop-thread_safety (0.6.0)
94
- rubocop (>= 1.48.1)
95
- ruby-progressbar (1.13.0)
96
- securerandom (0.4.1)
97
- timeout (0.4.3)
98
- trilogy (2.9.0)
99
- tzinfo (2.0.6)
100
- concurrent-ruby (~> 1.0)
101
- unicode-display_width (3.1.3)
102
- unicode-emoji (~> 4.0, >= 4.0.4)
103
- unicode-emoji (4.0.4)
104
- uri (1.0.2)
105
-
106
- PLATFORMS
107
- arm64-darwin-23
108
- x86_64-linux
109
-
110
- DEPENDENCIES
111
- activesupport (>= 8.0)
112
- janus-ar!
113
- mysql2
114
- pry
115
- rake
116
- rspec (~> 3)
117
- rubocop (~> 1.69.2)
118
- rubocop-performance
119
- rubocop-rails (~> 2.28.0)
120
- rubocop-rspec
121
- rubocop-thread_safety
122
- trilogy
123
-
124
- BUNDLED WITH
125
- 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