dry-monads-sorbet 1.1.0.pre → 1.1.0.pre.6
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 +52 -0
- data/.ruby-version +1 -1
- data/README.md +2 -2
- data/dry-monads-sorbet.gemspec +2 -2
- data/lib/dry-monads-sorbet.rb +4 -0
- data/lib/dry/monads/sorbet/version.rb +1 -1
- data/rbi/{dry-monads.rbi → dry-monads-sorbet.rbi} +11 -14
- metadata +12 -12
- data/.github/workflows/rspec.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01a587a745c74e7403e001687906bb86f47f9207f421078129bc6725ffae6727
|
4
|
+
data.tar.gz: 6282cf4854b839968987673dbca89c225e0d24c8d8b84361216fc84b25e981a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3559837cf125ff9c02ba899bd141b56d788fe7b4c435250d8a6852629a9be050aadcd503224f18acf29faaaeebef79c3396d85fff5d6c5152764b63708c34455
|
7
|
+
data.tar.gz: 732d53844aa4998458378508e0edf2826f7b078617a42b557e8dc5c9c66812cb4646710cff36d1b00edcaed6c891e26bd0e698184f127c901ec1a91d89cd85c5
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
name: Continuous Integration
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches-ignore:
|
6
|
+
- refs/tags/*_staging
|
7
|
+
- refs/tags/*_production
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
runs-on: ubuntu-18.04
|
11
|
+
steps:
|
12
|
+
- name: Checkout branch
|
13
|
+
uses: actions/checkout@v2
|
14
|
+
- name: Extract branch name
|
15
|
+
shell: bash
|
16
|
+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
17
|
+
id: extract_branch
|
18
|
+
- name: Install Linux dependencies
|
19
|
+
run: sudo apt-get update -qq && sudo apt-get install -y libsqlite3-dev
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: actions/setup-ruby@v1.1.1
|
22
|
+
with:
|
23
|
+
ruby-version: 2.6.6
|
24
|
+
- name: Cache gems
|
25
|
+
uses: actions/cache@v1
|
26
|
+
with:
|
27
|
+
path: vendor/bundle
|
28
|
+
key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/dry-monads-sorbet.gemspec')
|
29
|
+
}}"
|
30
|
+
restore-keys: "${{ runner.OS }}-gem-cache-\n"
|
31
|
+
- name: Install bundler
|
32
|
+
run: (bundler -v | grep "2.1.4") || gem install bundler:2.1.4
|
33
|
+
- name: Install gems
|
34
|
+
run: bundle install --jobs $(nproc) --retry 3 --without metrics --path vendor/bundle
|
35
|
+
- name: Create cache directory
|
36
|
+
run: mkdir -p tmp/cache
|
37
|
+
- name: Run RSpec test suite
|
38
|
+
run: bundle exec rspec spec
|
39
|
+
env:
|
40
|
+
METRICS: '1'
|
41
|
+
- name: Post to Slack if build fails
|
42
|
+
if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable')
|
43
|
+
uses: pullreminders/slack-action@master
|
44
|
+
env:
|
45
|
+
SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
|
46
|
+
with:
|
47
|
+
args: '{\"channel\":\"C33574SJJ\",\"text\":\"* ${{ github.repository }} BUILD
|
48
|
+
FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":
|
49
|
+
\"#ff0000\", \"fields\": [{\"title\": \"Branch\", \"value\":\"${{ steps.extract_branch.outputs.branch
|
50
|
+
}}\"}, {\"title\": \"Who broke it\", \"value\":\"${{ github.actor }}\"},
|
51
|
+
{ \"title\": \"Build output\", \"value\": \"https://github.com/${{ github.repository
|
52
|
+
}}/commit/${{ github.sha }}/checks\", \"short\": false }]}]}'
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/README.md
CHANGED
data/dry-monads-sorbet.gemspec
CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler'
|
30
30
|
spec.add_development_dependency 'pry'
|
31
|
-
spec.add_development_dependency 'rake', '
|
32
|
-
spec.add_development_dependency 'rspec', '
|
31
|
+
spec.add_development_dependency 'rake', '>= 13.0'
|
32
|
+
spec.add_development_dependency 'rspec', '>= 3.0'
|
33
33
|
end
|
@@ -1,9 +1,7 @@
|
|
1
|
-
# typed:
|
1
|
+
# typed: strong
|
2
2
|
#
|
3
3
|
# dry-monads-1.3.1
|
4
4
|
#
|
5
|
-
# Note: This file depends on dry/monads/sorbet to define generics.
|
6
|
-
|
7
5
|
module Dry
|
8
6
|
end
|
9
7
|
module Dry::Monads
|
@@ -39,8 +37,10 @@ module Dry::Monads::Transformer
|
|
39
37
|
def fmap3(*args); end
|
40
38
|
end
|
41
39
|
class Dry::Monads::Maybe
|
42
|
-
extend T::
|
40
|
+
extend T::Sig
|
43
41
|
extend T::Generic
|
42
|
+
extend T::Helpers
|
43
|
+
|
44
44
|
Elem = type_member
|
45
45
|
|
46
46
|
abstract!
|
@@ -81,21 +81,14 @@ class Dry::Monads::Maybe
|
|
81
81
|
end
|
82
82
|
def to_result(val = nil, &blk); end
|
83
83
|
|
84
|
-
sig {returns(T::Boolean)}
|
85
84
|
def failure?; end
|
86
85
|
def monad; end
|
87
|
-
|
88
|
-
sig {returns(T::Boolean)}
|
89
86
|
def none?; end
|
90
87
|
def self.coerce(value); end
|
91
88
|
def self.lift(*args, &block); end
|
92
89
|
def self.pure(value = nil, &block); end
|
93
90
|
def self.to_proc; end
|
94
|
-
|
95
|
-
sig {returns(T::Boolean)}
|
96
91
|
def some?; end
|
97
|
-
|
98
|
-
sig {returns(T::Boolean)}
|
99
92
|
def success?; end
|
100
93
|
def to_maybe; end
|
101
94
|
def to_monad; end
|
@@ -165,10 +158,13 @@ module Dry::Monads::Maybe::Hash
|
|
165
158
|
def self.filter(hash); end
|
166
159
|
end
|
167
160
|
class Dry::Monads::Result
|
168
|
-
extend T::
|
161
|
+
extend T::Sig
|
169
162
|
extend T::Generic
|
163
|
+
extend T::Helpers
|
164
|
+
|
170
165
|
FailureType = type_member
|
171
166
|
SuccessType = type_member
|
167
|
+
|
172
168
|
abstract!
|
173
169
|
sealed!
|
174
170
|
|
@@ -210,8 +206,9 @@ class Dry::Monads::Result
|
|
210
206
|
def failure; end
|
211
207
|
|
212
208
|
sig do
|
213
|
-
|
214
|
-
.returns(Dry::Monads::Result[
|
209
|
+
type_parameters(:NewFailureType)
|
210
|
+
.params(blk: T.proc.params(arg0: FailureType).returns(Dry::Monads::Result[T.type_parameter(:out, :NewFailureType), SuccessType]))
|
211
|
+
.returns(Dry::Monads::Result[T.type_parameter(:out, :NewFailureType), SuccessType])
|
215
212
|
end
|
216
213
|
def or(&blk); end
|
217
214
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-monads-sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.pre
|
4
|
+
version: 1.1.0.pre.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Worth
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet
|
@@ -84,28 +84,28 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '13.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '13.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '3.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '3.0'
|
111
111
|
description:
|
@@ -115,7 +115,7 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
-
- ".github/workflows/
|
118
|
+
- ".github/workflows/ci.yml"
|
119
119
|
- ".gitignore"
|
120
120
|
- ".reek.yml"
|
121
121
|
- ".rspec"
|
@@ -129,9 +129,10 @@ files:
|
|
129
129
|
- bin/console
|
130
130
|
- bin/setup
|
131
131
|
- dry-monads-sorbet.gemspec
|
132
|
+
- lib/dry-monads-sorbet.rb
|
132
133
|
- lib/dry/monads/sorbet.rb
|
133
134
|
- lib/dry/monads/sorbet/version.rb
|
134
|
-
- rbi/dry-monads.rbi
|
135
|
+
- rbi/dry-monads-sorbet.rbi
|
135
136
|
homepage: https://github.com/tricycle/dry-monads-sorbet
|
136
137
|
licenses:
|
137
138
|
- MIT
|
@@ -151,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: 1.3.1
|
153
154
|
requirements: []
|
154
|
-
|
155
|
-
rubygems_version: 2.7.6.2
|
155
|
+
rubygems_version: 3.1.2
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Sorbet type hints for Dry::Monads
|
data/.github/workflows/rspec.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
name: RSpec Test Suite
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
steps:
|
9
|
-
- name: Checkout branch
|
10
|
-
uses: actions/checkout@v1
|
11
|
-
- name: Set up Ruby
|
12
|
-
uses: actions/setup-ruby@v1
|
13
|
-
with:
|
14
|
-
ruby-version: 2.5.5
|
15
|
-
- name: Install system packages
|
16
|
-
run: |
|
17
|
-
sudo apt-get install libsqlite3-dev
|
18
|
-
command -v bundler || gem install bundler
|
19
|
-
- name: Install gems
|
20
|
-
run: bundle install --jobs $(nproc) --retry 3
|
21
|
-
- name: Run RSpec test suite
|
22
|
-
run: bundle exec rspec spec
|