sorbet-rails 0.7.20 → 0.7.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/publish-gem.yml +13 -4
- data/lib/sorbet-rails/model_utils.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c089b34f04fa829aa30f1e844626e4ffe72f95f4adb9a3690250287ae626af4f
|
4
|
+
data.tar.gz: 7e7afb8c3de657085ea4fce31584bbd324f27b57c66520f74967ada5ffee24dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eded78f1d240d92dfa8d52849846897f430756324e5999ec86ce04f595dc7f39906b8d145e7e30836bfa77cece8ddb26d80087dcfc26e3ca01c691efa320af74
|
7
|
+
data.tar.gz: 5f0bbab68508ed1cd968e2dcb098268cac25a29c917a5cb2517bc024f69ee27bada1e180f57cb54e9dff4d3964847f3d74084c886c0a8546d26f1a7cd5cb5dce
|
data/.github/workflows/ci.yml
CHANGED
@@ -15,7 +15,6 @@ jobs:
|
|
15
15
|
|
16
16
|
env:
|
17
17
|
RAILS_VERSION: ${{ matrix.rails }}
|
18
|
-
CI: true
|
19
18
|
|
20
19
|
steps:
|
21
20
|
- uses: actions/checkout@v2
|
@@ -24,3 +23,4 @@ jobs:
|
|
24
23
|
ruby-version: ${{ matrix.ruby }}
|
25
24
|
# bundler-cache: true -- this messes up some dynamic constants
|
26
25
|
- run: "./spec/bin/run_spec.sh"
|
26
|
+
- run: bundle exec srb tc
|
@@ -1,17 +1,26 @@
|
|
1
1
|
name: publish-gem
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
push:
|
6
|
-
|
7
|
-
|
4
|
+
pull_request: # test with pull request
|
5
|
+
# push:
|
6
|
+
# branches: # Trigger only on the main branch to avoid duplicate runs on PR branches
|
7
|
+
# - master
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
build:
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
|
13
|
+
env:
|
14
|
+
RAILS_VERSION: 6.0
|
15
|
+
|
13
16
|
steps:
|
14
17
|
- uses: actions/checkout@v2
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.7
|
21
|
+
# bundler-cache: true -- this messes up some dynamic constants
|
22
|
+
- run: "./spec/bin/run_spec.sh"
|
23
|
+
- run: bundle exec srb tc
|
15
24
|
- name: Release Gem
|
16
25
|
uses: dawidd6/action-publish-gem@v1
|
17
26
|
with:
|
@@ -90,7 +90,7 @@ module SorbetRails::ModelUtils
|
|
90
90
|
# where, limit, etc and not something like a named scope. It should likely
|
91
91
|
# only be set to `true` when called from the ActiveRecordQuerying plugin.
|
92
92
|
builtin_query_method: T::Boolean,
|
93
|
-
custom_return_value: String,
|
93
|
+
custom_return_value: T.nilable(String),
|
94
94
|
).void
|
95
95
|
}
|
96
96
|
def add_relation_query_method(
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chan Zuckerberg Initiative
|
@@ -689,7 +689,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
689
689
|
- !ruby/object:Gem::Version
|
690
690
|
version: '0'
|
691
691
|
requirements: []
|
692
|
-
rubygems_version: 3.1.
|
692
|
+
rubygems_version: 3.1.6
|
693
693
|
signing_key:
|
694
694
|
specification_version: 4
|
695
695
|
summary: Set of tools to make Sorbet work with Rails seamlessly.
|