dry-monads-sorbet 1.1.0.pre.2 → 1.1.0.pre.7
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 +4 -4
- data/.github/workflows/ci.yml +52 -0
- 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 -0
- metadata +10 -9
- 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: dfa24b4b90a0d252cbd575f69069f9d3126f0774ca7ce3ba4353f09a10cbee33
|
4
|
+
data.tar.gz: 494d7a8533a72991e49b4c446d8b5f9be934919c10a2883f725065f7134c2f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d76379cb691279f2c12b90c20b0a3835fb1d131fce8697ad69b743988a4b91de18977cee0d09e195c5f88573fafa09a1d44f8044b48bb6a80a2a9e09056cef
|
7
|
+
data.tar.gz: 72a544da11f794c507e1ade9b84fb54703b09d0c553c8b59cac54da6f28c8be6e3815bdda0395d9fcbbd8f7d0320fb739c39a7f05304b4296f03bf411c401ea4
|
@@ -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/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
|
@@ -37,7 +37,12 @@ module Dry::Monads::Transformer
|
|
37
37
|
def fmap3(*args); end
|
38
38
|
end
|
39
39
|
class Dry::Monads::Maybe
|
40
|
+
extend T::Sig
|
41
|
+
extend T::Generic
|
40
42
|
extend T::Helpers
|
43
|
+
|
44
|
+
Elem = type_member
|
45
|
+
|
41
46
|
abstract!
|
42
47
|
sealed!
|
43
48
|
|
@@ -153,7 +158,13 @@ module Dry::Monads::Maybe::Hash
|
|
153
158
|
def self.filter(hash); end
|
154
159
|
end
|
155
160
|
class Dry::Monads::Result
|
161
|
+
extend T::Sig
|
162
|
+
extend T::Generic
|
156
163
|
extend T::Helpers
|
164
|
+
|
165
|
+
FailureType = type_member
|
166
|
+
SuccessType = type_member
|
167
|
+
|
157
168
|
abstract!
|
158
169
|
sealed!
|
159
170
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Worth
|
@@ -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
|
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
|