by_star 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/mysql.yml +92 -92
- data/.github/workflows/postgresql.yml +99 -99
- data/.gitignore +6 -6
- data/.travis.yml +92 -92
- data/CHANGELOG.md +63 -59
- data/Gemfile +18 -18
- data/MIT-LICENSE +20 -20
- data/README.md +616 -616
- data/Rakefile +18 -18
- data/UPGRADING +4 -4
- data/by_star.gemspec +34 -34
- data/cleaner.rb +24 -24
- data/lib/by_star/base.rb +69 -69
- data/lib/by_star/between.rb +185 -185
- data/lib/by_star/directional.rb +35 -35
- data/lib/by_star/kernel/date.rb +41 -41
- data/lib/by_star/kernel/in_time_zone.rb +20 -20
- data/lib/by_star/kernel/time.rb +41 -41
- data/lib/by_star/normalization.rb +156 -156
- data/lib/by_star/orm/active_record/by_star.rb +75 -75
- data/lib/by_star/orm/mongoid/by_star.rb +90 -90
- data/lib/by_star/orm/mongoid/reorder.rb +23 -23
- data/lib/by_star/version.rb +3 -3
- data/lib/by_star.rb +18 -18
- data/spec/database.yml +15 -15
- data/spec/fixtures/active_record/models.rb +12 -12
- data/spec/fixtures/active_record/schema.rb +19 -19
- data/spec/fixtures/mongoid/models.rb +31 -31
- data/spec/fixtures/shared/seeds.rb +36 -36
- data/spec/gemfiles/Gemfile.rails +5 -5
- data/spec/gemfiles/Gemfile.rails32 +7 -7
- data/spec/gemfiles/Gemfile.rails40 +7 -7
- data/spec/gemfiles/Gemfile.rails41 +7 -7
- data/spec/gemfiles/Gemfile.rails42 +7 -7
- data/spec/gemfiles/Gemfile.rails50 +7 -7
- data/spec/gemfiles/Gemfile.rails51 +7 -7
- data/spec/gemfiles/Gemfile.rails52 +7 -7
- data/spec/gemfiles/Gemfile.rails60 +7 -7
- data/spec/gemfiles/Gemfile.rails61 +7 -7
- data/spec/integration/active_record/active_record_spec.rb +41 -41
- data/spec/integration/mongoid/mongoid_spec.rb +39 -39
- data/spec/integration/shared/at_time.rb +53 -53
- data/spec/integration/shared/between_dates.rb +99 -99
- data/spec/integration/shared/between_times.rb +99 -99
- data/spec/integration/shared/by_calendar_month.rb +55 -55
- data/spec/integration/shared/by_cweek.rb +54 -54
- data/spec/integration/shared/by_day.rb +120 -120
- data/spec/integration/shared/by_direction.rb +126 -126
- data/spec/integration/shared/by_fortnight.rb +48 -48
- data/spec/integration/shared/by_month.rb +50 -50
- data/spec/integration/shared/by_quarter.rb +49 -49
- data/spec/integration/shared/by_week.rb +54 -54
- data/spec/integration/shared/by_weekend.rb +49 -49
- data/spec/integration/shared/by_year.rb +48 -48
- data/spec/integration/shared/index_scope_parameter.rb +111 -111
- data/spec/integration/shared/offset_parameter.rb +32 -32
- data/spec/integration/shared/order_parameter.rb +36 -36
- data/spec/integration/shared/relative.rb +174 -174
- data/spec/spec_helper.rb +33 -33
- data/spec/unit/kernel_date_spec.rb +113 -113
- data/spec/unit/kernel_time_spec.rb +57 -57
- data/spec/unit/normalization_spec.rb +384 -384
- data/tmp/.gitignore +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd3d75b02a82124876d494939608637ee8afe18fae34f84ed4721a86cc609a7
|
4
|
+
data.tar.gz: dc0d558b3c579515b38441f98c165a045c50dd017205604019db7636a3590926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd0cf04c47b2a005198685ad0be11f8a66b4366c671b431fe1c20639a9d7ebe01364c0f243f62d4c135acddc593c4d3fd826fdf7e3944b222406853713cf2284
|
7
|
+
data.tar.gz: e17406f6a21702072c8b23835a437545981fcb301eabedc05a0a754aa35d1af479c57f64ae926a973ed474c6eee60e54bc168496a79537ccd891f4becfd68cd8
|
data/.github/workflows/mysql.yml
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
name: MySQL tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
# Trigger the workflow on push or pull request,
|
5
|
-
# but only for the master branch
|
6
|
-
push:
|
7
|
-
branches:
|
8
|
-
- master
|
9
|
-
pull_request:
|
10
|
-
branches:
|
11
|
-
- master
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
mysql:
|
15
|
-
strategy:
|
16
|
-
fail-fast: false
|
17
|
-
matrix:
|
18
|
-
ruby_version: [3.0, 2.7, 2.6, 2.5, jruby]
|
19
|
-
gemfile:
|
20
|
-
[
|
21
|
-
spec/gemfiles/Gemfile.rails50,
|
22
|
-
spec/gemfiles/Gemfile.rails51,
|
23
|
-
spec/gemfiles/Gemfile.rails52,
|
24
|
-
spec/gemfiles/Gemfile.rails60,
|
25
|
-
spec/gemfiles/Gemfile.rails61,
|
26
|
-
spec/gemfiles/Gemfile.rails,
|
27
|
-
]
|
28
|
-
exclude:
|
29
|
-
# Ruby 3.x is not supported by Rails 5.2.x
|
30
|
-
- ruby_version: 3.0
|
31
|
-
gemfile: spec/gemfiles/Gemfile.rails52
|
32
|
-
# Ruby 3.x is not supported by Rails 5.1.x
|
33
|
-
- ruby_version: 3.0
|
34
|
-
gemfile: spec/gemfiles/Gemfile.rails51
|
35
|
-
# Ruby 3.x is not supported by Rails 5.0.x
|
36
|
-
- ruby_version: 3.0
|
37
|
-
gemfile: spec/gemfiles/Gemfile.rails50
|
38
|
-
|
39
|
-
- ruby_version: 2.6
|
40
|
-
gemfile: spec/gemfiles/Gemfile.rails32
|
41
|
-
|
42
|
-
# Ruby 2.6.x is not supported by Rails main
|
43
|
-
- ruby_version: 2.6
|
44
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
45
|
-
|
46
|
-
# Ruby 2.5.x is not supported by Rails main
|
47
|
-
- ruby_version: 2.5
|
48
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
49
|
-
|
50
|
-
# Ruby 2.4.x is not supported by Rails main
|
51
|
-
- ruby_version: 2.4
|
52
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
53
|
-
# Ruby 2.4.x is not supported by Rails 6.1.x
|
54
|
-
- ruby_version: 2.4
|
55
|
-
gemfile: spec/gemfiles/Gemfile.rails61
|
56
|
-
# Ruby 2.4.x is not supported by Rails 6.0.x
|
57
|
-
- ruby_version: 2.4
|
58
|
-
gemfile: spec/gemfiles/Gemfile.rails60
|
59
|
-
# Ruby 2.3.x is not supported by Rails 6.1.x
|
60
|
-
- ruby_version: 2.3
|
61
|
-
gemfile: spec/gemfiles/Gemfile.rails61
|
62
|
-
# Ruby 2.3.x is not supported by Rails main
|
63
|
-
- ruby_version: 2.3
|
64
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
65
|
-
# Ruby 2.3.x is not supported by Rails 6.0.x
|
66
|
-
- ruby_version: 2.3
|
67
|
-
gemfile: spec/gemfiles/Gemfile.rails60
|
68
|
-
# JRuby is not supported by Rails main
|
69
|
-
- ruby_version: jruby
|
70
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
71
|
-
|
72
|
-
runs-on: ubuntu-latest
|
73
|
-
|
74
|
-
steps:
|
75
|
-
- uses: actions/checkout@v2
|
76
|
-
|
77
|
-
- name: Set up Ruby
|
78
|
-
uses: ruby/setup-ruby@master
|
79
|
-
with:
|
80
|
-
ruby-version: ${{ matrix.ruby_version }}
|
81
|
-
|
82
|
-
- name: Start MySQL
|
83
|
-
- run: sudo /etc/init.d/mysql start
|
84
|
-
|
85
|
-
- name: Build and test with Rake
|
86
|
-
env:
|
87
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
88
|
-
DB: "postgres"
|
89
|
-
run: |
|
90
|
-
gem install bundler
|
91
|
-
bundle install --jobs 4 --retry 3
|
92
|
-
bundle exec rake
|
1
|
+
name: MySQL tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
# Trigger the workflow on push or pull request,
|
5
|
+
# but only for the master branch
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
pull_request:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
mysql:
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
ruby_version: [3.0, 2.7, 2.6, 2.5, jruby]
|
19
|
+
gemfile:
|
20
|
+
[
|
21
|
+
spec/gemfiles/Gemfile.rails50,
|
22
|
+
spec/gemfiles/Gemfile.rails51,
|
23
|
+
spec/gemfiles/Gemfile.rails52,
|
24
|
+
spec/gemfiles/Gemfile.rails60,
|
25
|
+
spec/gemfiles/Gemfile.rails61,
|
26
|
+
spec/gemfiles/Gemfile.rails,
|
27
|
+
]
|
28
|
+
exclude:
|
29
|
+
# Ruby 3.x is not supported by Rails 5.2.x
|
30
|
+
- ruby_version: 3.0
|
31
|
+
gemfile: spec/gemfiles/Gemfile.rails52
|
32
|
+
# Ruby 3.x is not supported by Rails 5.1.x
|
33
|
+
- ruby_version: 3.0
|
34
|
+
gemfile: spec/gemfiles/Gemfile.rails51
|
35
|
+
# Ruby 3.x is not supported by Rails 5.0.x
|
36
|
+
- ruby_version: 3.0
|
37
|
+
gemfile: spec/gemfiles/Gemfile.rails50
|
38
|
+
|
39
|
+
- ruby_version: 2.6
|
40
|
+
gemfile: spec/gemfiles/Gemfile.rails32
|
41
|
+
|
42
|
+
# Ruby 2.6.x is not supported by Rails main
|
43
|
+
- ruby_version: 2.6
|
44
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
45
|
+
|
46
|
+
# Ruby 2.5.x is not supported by Rails main
|
47
|
+
- ruby_version: 2.5
|
48
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
49
|
+
|
50
|
+
# Ruby 2.4.x is not supported by Rails main
|
51
|
+
- ruby_version: 2.4
|
52
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
53
|
+
# Ruby 2.4.x is not supported by Rails 6.1.x
|
54
|
+
- ruby_version: 2.4
|
55
|
+
gemfile: spec/gemfiles/Gemfile.rails61
|
56
|
+
# Ruby 2.4.x is not supported by Rails 6.0.x
|
57
|
+
- ruby_version: 2.4
|
58
|
+
gemfile: spec/gemfiles/Gemfile.rails60
|
59
|
+
# Ruby 2.3.x is not supported by Rails 6.1.x
|
60
|
+
- ruby_version: 2.3
|
61
|
+
gemfile: spec/gemfiles/Gemfile.rails61
|
62
|
+
# Ruby 2.3.x is not supported by Rails main
|
63
|
+
- ruby_version: 2.3
|
64
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
65
|
+
# Ruby 2.3.x is not supported by Rails 6.0.x
|
66
|
+
- ruby_version: 2.3
|
67
|
+
gemfile: spec/gemfiles/Gemfile.rails60
|
68
|
+
# JRuby is not supported by Rails main
|
69
|
+
- ruby_version: jruby
|
70
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
71
|
+
|
72
|
+
runs-on: ubuntu-latest
|
73
|
+
|
74
|
+
steps:
|
75
|
+
- uses: actions/checkout@v2
|
76
|
+
|
77
|
+
- name: Set up Ruby
|
78
|
+
uses: ruby/setup-ruby@master
|
79
|
+
with:
|
80
|
+
ruby-version: ${{ matrix.ruby_version }}
|
81
|
+
|
82
|
+
- name: Start MySQL
|
83
|
+
- run: sudo /etc/init.d/mysql start
|
84
|
+
|
85
|
+
- name: Build and test with Rake
|
86
|
+
env:
|
87
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
88
|
+
DB: "postgres"
|
89
|
+
run: |
|
90
|
+
gem install bundler
|
91
|
+
bundle install --jobs 4 --retry 3
|
92
|
+
bundle exec rake
|
@@ -1,99 +1,99 @@
|
|
1
|
-
name: PostgreSQL tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
# Trigger the workflow on push or pull request,
|
5
|
-
# but only for the master branch
|
6
|
-
push:
|
7
|
-
branches:
|
8
|
-
- master
|
9
|
-
pull_request:
|
10
|
-
branches:
|
11
|
-
- master
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
postgresql:
|
15
|
-
strategy:
|
16
|
-
fail-fast: false
|
17
|
-
matrix:
|
18
|
-
ruby_version: [3.0, 2.7, 2.6, 2.5, jruby]
|
19
|
-
gemfile:
|
20
|
-
[
|
21
|
-
spec/gemfiles/Gemfile.rails50,
|
22
|
-
spec/gemfiles/Gemfile.rails51,
|
23
|
-
spec/gemfiles/Gemfile.rails52,
|
24
|
-
spec/gemfiles/Gemfile.rails60,
|
25
|
-
spec/gemfiles/Gemfile.rails61,
|
26
|
-
spec/gemfiles/Gemfile.rails,
|
27
|
-
]
|
28
|
-
exclude:
|
29
|
-
# Ruby 3.x is not supported by Rails 5.2.x
|
30
|
-
- ruby_version: 3.0
|
31
|
-
gemfile: spec/gemfiles/Gemfile.rails52
|
32
|
-
# Ruby 3.x is not supported by Rails 5.1.x
|
33
|
-
- ruby_version: 3.0
|
34
|
-
gemfile: spec/gemfiles/Gemfile.rails51
|
35
|
-
# Ruby 3.x is not supported by Rails 5.0.x
|
36
|
-
- ruby_version: 3.0
|
37
|
-
gemfile: spec/gemfiles/Gemfile.rails50
|
38
|
-
|
39
|
-
- ruby_version: 2.6
|
40
|
-
gemfile: spec/gemfiles/Gemfile.rails32
|
41
|
-
|
42
|
-
# Ruby 2.6.x is not supported by Rails main
|
43
|
-
- ruby_version: 2.6
|
44
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
45
|
-
|
46
|
-
# Ruby 2.5.x is not supported by Rails main
|
47
|
-
- ruby_version: 2.5
|
48
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
49
|
-
|
50
|
-
# Ruby 2.4.x is not supported by Rails main
|
51
|
-
- ruby_version: 2.4
|
52
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
53
|
-
# Ruby 2.4.x is not supported by Rails 6.1.x
|
54
|
-
- ruby_version: 2.4
|
55
|
-
gemfile: spec/gemfiles/Gemfile.rails61
|
56
|
-
# Ruby 2.4.x is not supported by Rails 6.0.x
|
57
|
-
- ruby_version: 2.4
|
58
|
-
gemfile: spec/gemfiles/Gemfile.rails60
|
59
|
-
# Ruby 2.3.x is not supported by Rails 6.1.x
|
60
|
-
- ruby_version: 2.3
|
61
|
-
gemfile: spec/gemfiles/Gemfile.rails61
|
62
|
-
# Ruby 2.3.x is not supported by Rails main
|
63
|
-
- ruby_version: 2.3
|
64
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
65
|
-
# Ruby 2.3.x is not supported by Rails 6.0.x
|
66
|
-
- ruby_version: 2.3
|
67
|
-
gemfile: spec/gemfiles/Gemfile.rails60
|
68
|
-
# JRuby is not supported by Rails main
|
69
|
-
- ruby_version: jruby
|
70
|
-
gemfile: spec/gemfiles/Gemfile.rails
|
71
|
-
|
72
|
-
runs-on: ubuntu-latest
|
73
|
-
|
74
|
-
steps:
|
75
|
-
- uses: actions/checkout@v2
|
76
|
-
|
77
|
-
- name: Set up Ruby
|
78
|
-
uses: ruby/setup-ruby@master
|
79
|
-
with:
|
80
|
-
ruby-version: ${{ matrix.ruby_version }}
|
81
|
-
|
82
|
-
- uses: harmon758/postgresql-action@v1
|
83
|
-
with:
|
84
|
-
postgresql version: '11'
|
85
|
-
|
86
|
-
- name: Start PostgreSQL
|
87
|
-
run: |
|
88
|
-
sudo service postgresql start
|
89
|
-
sudo -u postgres createuser --superuser "$USER"
|
90
|
-
createdb by_star_test
|
91
|
-
|
92
|
-
- name: Build and test with Rake
|
93
|
-
env:
|
94
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
95
|
-
DB: "postgres"
|
96
|
-
run: |
|
97
|
-
gem install bundler
|
98
|
-
bundle install --jobs 4 --retry 3
|
99
|
-
bundle exec rake
|
1
|
+
name: PostgreSQL tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
# Trigger the workflow on push or pull request,
|
5
|
+
# but only for the master branch
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
pull_request:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
postgresql:
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
ruby_version: [3.0, 2.7, 2.6, 2.5, jruby]
|
19
|
+
gemfile:
|
20
|
+
[
|
21
|
+
spec/gemfiles/Gemfile.rails50,
|
22
|
+
spec/gemfiles/Gemfile.rails51,
|
23
|
+
spec/gemfiles/Gemfile.rails52,
|
24
|
+
spec/gemfiles/Gemfile.rails60,
|
25
|
+
spec/gemfiles/Gemfile.rails61,
|
26
|
+
spec/gemfiles/Gemfile.rails,
|
27
|
+
]
|
28
|
+
exclude:
|
29
|
+
# Ruby 3.x is not supported by Rails 5.2.x
|
30
|
+
- ruby_version: 3.0
|
31
|
+
gemfile: spec/gemfiles/Gemfile.rails52
|
32
|
+
# Ruby 3.x is not supported by Rails 5.1.x
|
33
|
+
- ruby_version: 3.0
|
34
|
+
gemfile: spec/gemfiles/Gemfile.rails51
|
35
|
+
# Ruby 3.x is not supported by Rails 5.0.x
|
36
|
+
- ruby_version: 3.0
|
37
|
+
gemfile: spec/gemfiles/Gemfile.rails50
|
38
|
+
|
39
|
+
- ruby_version: 2.6
|
40
|
+
gemfile: spec/gemfiles/Gemfile.rails32
|
41
|
+
|
42
|
+
# Ruby 2.6.x is not supported by Rails main
|
43
|
+
- ruby_version: 2.6
|
44
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
45
|
+
|
46
|
+
# Ruby 2.5.x is not supported by Rails main
|
47
|
+
- ruby_version: 2.5
|
48
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
49
|
+
|
50
|
+
# Ruby 2.4.x is not supported by Rails main
|
51
|
+
- ruby_version: 2.4
|
52
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
53
|
+
# Ruby 2.4.x is not supported by Rails 6.1.x
|
54
|
+
- ruby_version: 2.4
|
55
|
+
gemfile: spec/gemfiles/Gemfile.rails61
|
56
|
+
# Ruby 2.4.x is not supported by Rails 6.0.x
|
57
|
+
- ruby_version: 2.4
|
58
|
+
gemfile: spec/gemfiles/Gemfile.rails60
|
59
|
+
# Ruby 2.3.x is not supported by Rails 6.1.x
|
60
|
+
- ruby_version: 2.3
|
61
|
+
gemfile: spec/gemfiles/Gemfile.rails61
|
62
|
+
# Ruby 2.3.x is not supported by Rails main
|
63
|
+
- ruby_version: 2.3
|
64
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
65
|
+
# Ruby 2.3.x is not supported by Rails 6.0.x
|
66
|
+
- ruby_version: 2.3
|
67
|
+
gemfile: spec/gemfiles/Gemfile.rails60
|
68
|
+
# JRuby is not supported by Rails main
|
69
|
+
- ruby_version: jruby
|
70
|
+
gemfile: spec/gemfiles/Gemfile.rails
|
71
|
+
|
72
|
+
runs-on: ubuntu-latest
|
73
|
+
|
74
|
+
steps:
|
75
|
+
- uses: actions/checkout@v2
|
76
|
+
|
77
|
+
- name: Set up Ruby
|
78
|
+
uses: ruby/setup-ruby@master
|
79
|
+
with:
|
80
|
+
ruby-version: ${{ matrix.ruby_version }}
|
81
|
+
|
82
|
+
- uses: harmon758/postgresql-action@v1
|
83
|
+
with:
|
84
|
+
postgresql version: '11'
|
85
|
+
|
86
|
+
- name: Start PostgreSQL
|
87
|
+
run: |
|
88
|
+
sudo service postgresql start
|
89
|
+
sudo -u postgres createuser --superuser "$USER"
|
90
|
+
createdb by_star_test
|
91
|
+
|
92
|
+
- name: Build and test with Rake
|
93
|
+
env:
|
94
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
95
|
+
DB: "postgres"
|
96
|
+
run: |
|
97
|
+
gem install bundler
|
98
|
+
bundle install --jobs 4 --retry 3
|
99
|
+
bundle exec rake
|
data/.gitignore
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
.idea
|
2
|
-
tmp
|
3
|
-
spec/fixtures/database.yml
|
4
|
-
pkg
|
5
|
-
by_star.sqlite3
|
6
|
-
Gemfile.lock
|
1
|
+
.idea
|
2
|
+
tmp
|
3
|
+
spec/fixtures/database.yml
|
4
|
+
pkg
|
5
|
+
by_star.sqlite3
|
6
|
+
Gemfile.lock
|
data/.travis.yml
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
services: mongodb
|
2
|
-
|
3
|
-
before_script:
|
4
|
-
- "mysql -e 'create database by_star_test;'"
|
5
|
-
- "psql -c 'create database by_star_test;' -U postgres"
|
6
|
-
|
7
|
-
env:
|
8
|
-
- DB=sqlite
|
9
|
-
- DB=mysql
|
10
|
-
- DB=postgres
|
11
|
-
- DB=mongodb
|
12
|
-
|
13
|
-
gemfile:
|
14
|
-
- spec/gemfiles/Gemfile.rails32
|
15
|
-
- spec/gemfiles/Gemfile.rails40
|
16
|
-
- spec/gemfiles/Gemfile.rails41
|
17
|
-
- spec/gemfiles/Gemfile.rails42
|
18
|
-
- spec/gemfiles/Gemfile.rails50
|
19
|
-
- spec/gemfiles/Gemfile.rails51
|
20
|
-
- spec/gemfiles/Gemfile.rails52
|
21
|
-
- spec/gemfiles/Gemfile.master
|
22
|
-
|
23
|
-
rvm:
|
24
|
-
- 2.0.0
|
25
|
-
- 2.1.10
|
26
|
-
- 2.2.10
|
27
|
-
- 2.3.8
|
28
|
-
- 2.4.6
|
29
|
-
- 2.5.5
|
30
|
-
- 2.6.3
|
31
|
-
|
32
|
-
matrix:
|
33
|
-
fast_finish: true
|
34
|
-
|
35
|
-
exclude:
|
36
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
37
|
-
rvm: 2.2.10
|
38
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
39
|
-
rvm: 2.3.8
|
40
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
41
|
-
rvm: 2.4.6
|
42
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
43
|
-
rvm: 2.5.5
|
44
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
45
|
-
rvm: 2.6.3
|
46
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
47
|
-
rvm: 2.4.6
|
48
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
49
|
-
rvm: 2.5.5
|
50
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
51
|
-
rvm: 2.6.3
|
52
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
53
|
-
rvm: 2.4.6
|
54
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
55
|
-
rvm: 2.5.5
|
56
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
57
|
-
rvm: 2.6.3
|
58
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
59
|
-
rvm: 2.0.0
|
60
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
61
|
-
rvm: 2.1.10
|
62
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
63
|
-
rvm: 2.6.3
|
64
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
65
|
-
rvm: 2.0.0
|
66
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
67
|
-
rvm: 2.1.10
|
68
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
69
|
-
rvm: 2.6.3
|
70
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails52'
|
71
|
-
rvm: 2.0.0
|
72
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails52'
|
73
|
-
rvm: 2.1.10
|
74
|
-
|
75
|
-
allow_failures:
|
76
|
-
- gemfile: 'spec/gemfiles/Gemfile.master'
|
77
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
78
|
-
env: 'DB=sqlite'
|
79
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
80
|
-
env: 'DB=mysql'
|
81
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
82
|
-
env: 'DB=sqlite'
|
83
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
84
|
-
env: 'DB=mysql'
|
85
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
86
|
-
env: 'DB=sqlite'
|
87
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
88
|
-
env: 'DB=mysql'
|
89
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails42'
|
90
|
-
env: 'DB=sqlite'
|
91
|
-
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
92
|
-
env: 'DB=sqlite'
|
1
|
+
services: mongodb
|
2
|
+
|
3
|
+
before_script:
|
4
|
+
- "mysql -e 'create database by_star_test;'"
|
5
|
+
- "psql -c 'create database by_star_test;' -U postgres"
|
6
|
+
|
7
|
+
env:
|
8
|
+
- DB=sqlite
|
9
|
+
- DB=mysql
|
10
|
+
- DB=postgres
|
11
|
+
- DB=mongodb
|
12
|
+
|
13
|
+
gemfile:
|
14
|
+
- spec/gemfiles/Gemfile.rails32
|
15
|
+
- spec/gemfiles/Gemfile.rails40
|
16
|
+
- spec/gemfiles/Gemfile.rails41
|
17
|
+
- spec/gemfiles/Gemfile.rails42
|
18
|
+
- spec/gemfiles/Gemfile.rails50
|
19
|
+
- spec/gemfiles/Gemfile.rails51
|
20
|
+
- spec/gemfiles/Gemfile.rails52
|
21
|
+
- spec/gemfiles/Gemfile.master
|
22
|
+
|
23
|
+
rvm:
|
24
|
+
- 2.0.0
|
25
|
+
- 2.1.10
|
26
|
+
- 2.2.10
|
27
|
+
- 2.3.8
|
28
|
+
- 2.4.6
|
29
|
+
- 2.5.5
|
30
|
+
- 2.6.3
|
31
|
+
|
32
|
+
matrix:
|
33
|
+
fast_finish: true
|
34
|
+
|
35
|
+
exclude:
|
36
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
37
|
+
rvm: 2.2.10
|
38
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
39
|
+
rvm: 2.3.8
|
40
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
41
|
+
rvm: 2.4.6
|
42
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
43
|
+
rvm: 2.5.5
|
44
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
45
|
+
rvm: 2.6.3
|
46
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
47
|
+
rvm: 2.4.6
|
48
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
49
|
+
rvm: 2.5.5
|
50
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
51
|
+
rvm: 2.6.3
|
52
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
53
|
+
rvm: 2.4.6
|
54
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
55
|
+
rvm: 2.5.5
|
56
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
57
|
+
rvm: 2.6.3
|
58
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
59
|
+
rvm: 2.0.0
|
60
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
61
|
+
rvm: 2.1.10
|
62
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
63
|
+
rvm: 2.6.3
|
64
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
65
|
+
rvm: 2.0.0
|
66
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
67
|
+
rvm: 2.1.10
|
68
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails51'
|
69
|
+
rvm: 2.6.3
|
70
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails52'
|
71
|
+
rvm: 2.0.0
|
72
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails52'
|
73
|
+
rvm: 2.1.10
|
74
|
+
|
75
|
+
allow_failures:
|
76
|
+
- gemfile: 'spec/gemfiles/Gemfile.master'
|
77
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
78
|
+
env: 'DB=sqlite'
|
79
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails32'
|
80
|
+
env: 'DB=mysql'
|
81
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
82
|
+
env: 'DB=sqlite'
|
83
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails40'
|
84
|
+
env: 'DB=mysql'
|
85
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
86
|
+
env: 'DB=sqlite'
|
87
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails41'
|
88
|
+
env: 'DB=mysql'
|
89
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails42'
|
90
|
+
env: 'DB=sqlite'
|
91
|
+
- gemfile: 'spec/gemfiles/Gemfile.rails50'
|
92
|
+
env: 'DB=sqlite'
|