dry-monads-sorbet 1.1.0.pre.3 → 1.1.0.pre.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25a93b041e4baf53b6fa51998212c47fe9d7c16938ff60d44c19a54aacea6d4b
4
- data.tar.gz: c88032974560073402f9bc1b539b1422c22cef83ba12621d85a088ffbfa2d810
3
+ metadata.gz: 3704faf9058a337f617d13a61127c3dcb960736ca41e5376fad4789db361d0f7
4
+ data.tar.gz: f783228f5f4614bab5478825e2cad5204bfaf70b63f747df036e0e051a0b2fdd
5
5
  SHA512:
6
- metadata.gz: 1dc7220b391495f40c97468aac15bfac66c271af44ae2f81186dc178575e2f5bb8970f02f7d9d67b128c0f83d07812e976b28fb5d266892352dd83ca83abab5e
7
- data.tar.gz: 36713776cfd3ebbe94cba193f940ce930a1b333149c25dca8a38846143a94c9f27565c6760d35be1e425fe0f84295c06ef3e3db4638e23e89e4b1dbe66cba7d5
6
+ metadata.gz: ae16dc69ba60bd8fa11f6b6d60826a9c067582817fb9b064c05b732c5a9283b1f452112557a6fd3e6fb8511ccdbe0c315f0d6fcff3222a847f8a8119b033ee3b
7
+ data.tar.gz: 97b657d04c751aecfedb2b950e5c92600b882b7b9923da41b428a2798af1bbc8253d3112e70a7eb0014628a91bd117d7dec467ffa38842780255c86e7aee2add
@@ -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 }]}]}'
@@ -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', '~> 10.0'
32
- spec.add_development_dependency 'rspec', '~> 3.0'
31
+ spec.add_development_dependency 'rake', '>= 13.0'
32
+ spec.add_development_dependency 'rspec', '>= 3.0'
33
33
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry/monads/all'
4
+ require 'dry/monads/sorbet'
@@ -3,7 +3,7 @@
3
3
  module Dry
4
4
  module Monads
5
5
  module Sorbet
6
- VERSION = '1.1.0.pre.3'
6
+ VERSION = '1.1.0.pre.8'
7
7
  end
8
8
  end
9
9
  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.3
4
+ version: 1.1.0.pre.8
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: '10.0'
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: '10.0'
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/rspec.yml"
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
@@ -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