fear 2.0.0 → 2.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/spec.yml +7 -6
- data/Gemfile.lock +19 -21
- data/README.md +1 -1
- data/lib/fear/option_api.rb +1 -1
- data/lib/fear/version.rb +1 -1
- data/spec/spec_helper.rb +0 -4
- 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: 478065fc6d889020eb722d84eed56c46187431bb500a359985ee6e2fcb3277a2
|
4
|
+
data.tar.gz: 9a92582747a64d9525967dec128f8d4cf7e36a32cfc184b6a06ffe1dbc71cf8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2ac3a10810f8916efd3dffaa5b71fc57d2c08689ece14dc0fd7e29e9563703221b02f8f482c890cd4c87db784c0459a83395fb2e97acf4cc24a0ca299e5bf4
|
7
|
+
data.tar.gz: 25f4758ea5c8cb2953e6942e2c64414d135c93f1ffa79f3850dcfe813a4d0b61efc68bb3b6292a3a16f1b76b07e81351393d608728297bdc877ef6b8368db371
|
data/.github/workflows/spec.yml
CHANGED
@@ -7,21 +7,22 @@ jobs:
|
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby: ['2.7
|
10
|
+
ruby: ['2.7' , '3.0', '3.1', "3.2", "truffleruby+graalvm-head"]
|
11
11
|
name: ${{ matrix.ruby }}
|
12
12
|
|
13
13
|
steps:
|
14
14
|
- uses: actions/checkout@v1
|
15
15
|
- name: Set up ruby
|
16
|
-
uses:
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
18
|
ruby-version: ${{ matrix.ruby }}
|
19
19
|
- name: Install dependencies
|
20
|
-
run:
|
21
|
-
gem install bundler --force --version=2.0.1
|
22
|
-
bundler --version
|
23
|
-
bundle install --jobs 4 --retry 3
|
20
|
+
run: bundle install
|
24
21
|
- name: Test
|
22
|
+
if: ${{ contains(matrix.ruby, 'truffleruby') }}
|
23
|
+
run: bundle exec rspec --exclude-pattern "**/*_pattern_matching_spec.rb"
|
24
|
+
- name: Test
|
25
|
+
if: ${{ !contains(matrix.ruby, 'truffleruby') }}
|
25
26
|
run: bundle exec rspec
|
26
27
|
- name: Coveralls
|
27
28
|
uses: coverallsapp/github-action@v1.1.2
|
data/Gemfile.lock
CHANGED
@@ -8,17 +8,17 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
fear (2.0.
|
11
|
+
fear (2.0.1)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
16
|
any (0.1.0)
|
17
17
|
ast (2.4.2)
|
18
|
-
benchmark-ips (2.
|
19
|
-
concurrent-ruby (1.
|
18
|
+
benchmark-ips (2.12.0)
|
19
|
+
concurrent-ruby (1.2.2)
|
20
20
|
diff-lcs (1.5.0)
|
21
|
-
docile (1.
|
21
|
+
docile (1.4.0)
|
22
22
|
dry-configurable (0.12.1)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
24
|
dry-core (~> 0.5, >= 0.5.0)
|
@@ -54,23 +54,23 @@ GEM
|
|
54
54
|
parser (3.1.2.0)
|
55
55
|
ast (~> 2.4.1)
|
56
56
|
rainbow (3.1.1)
|
57
|
-
rake (13.0
|
57
|
+
rake (13.1.0)
|
58
58
|
regexp_parser (2.5.0)
|
59
59
|
reline (0.0.7)
|
60
60
|
rexml (3.2.5)
|
61
|
-
rspec (3.
|
62
|
-
rspec-core (~> 3.
|
63
|
-
rspec-expectations (~> 3.
|
64
|
-
rspec-mocks (~> 3.
|
65
|
-
rspec-core (3.
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-expectations (3.
|
61
|
+
rspec (3.12.0)
|
62
|
+
rspec-core (~> 3.12.0)
|
63
|
+
rspec-expectations (~> 3.12.0)
|
64
|
+
rspec-mocks (~> 3.12.0)
|
65
|
+
rspec-core (3.12.0)
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-expectations (3.12.0)
|
68
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
-
rspec-support (~> 3.
|
70
|
-
rspec-mocks (3.
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-mocks (3.12.0)
|
71
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-support (3.
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-support (3.12.0)
|
74
74
|
rubocop (1.32.0)
|
75
75
|
json (~> 2.3)
|
76
76
|
parallel (~> 1.10)
|
@@ -88,17 +88,15 @@ GEM
|
|
88
88
|
ruby-progressbar (1.11.0)
|
89
89
|
ruby_coding_standard (0.4.0)
|
90
90
|
rubocop (~> 1.32.0)
|
91
|
-
simplecov (0.
|
91
|
+
simplecov (0.22.0)
|
92
92
|
docile (~> 1.1)
|
93
93
|
simplecov-html (~> 0.11)
|
94
94
|
simplecov_json_formatter (~> 0.1)
|
95
95
|
simplecov-html (0.12.3)
|
96
96
|
simplecov-lcov (0.8.0)
|
97
|
-
simplecov_json_formatter (0.1.
|
97
|
+
simplecov_json_formatter (0.1.4)
|
98
98
|
unicode-display_width (2.2.0)
|
99
|
-
|
100
|
-
yard (0.9.28)
|
101
|
-
webrick (~> 1.7.0)
|
99
|
+
yard (0.9.34)
|
102
100
|
|
103
101
|
PLATFORMS
|
104
102
|
ruby
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Fear
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/fear.svg)](https://badge.fury.io/rb/fear)
|
3
|
-
![
|
3
|
+
[![Spec](https://github.com/bolshakov/fear/actions/workflows/spec.yml/badge.svg)](https://github.com/bolshakov/fear/actions/workflows/spec.yml)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/01030620c59e9f40961b/maintainability)](https://codeclimate.com/github/bolshakov/fear/maintainability)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/bolshakov/fear/badge.svg?branch=master)](https://coveralls.io/github/bolshakov/fear?branch=master)
|
6
6
|
|
data/lib/fear/option_api.rb
CHANGED
@@ -7,7 +7,7 @@ module Fear
|
|
7
7
|
# An +Option+ factory which creates +Some+ if the argument is
|
8
8
|
# not +nil+, and +None+ if it is +nil+.
|
9
9
|
# @param value [any]
|
10
|
-
# @return [Fear::
|
10
|
+
# @return [Fear::Option<any>]
|
11
11
|
#
|
12
12
|
# @example
|
13
13
|
# Fear.option(nil) #=> #<Fear::None>
|
data/lib/fear/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -9,10 +9,6 @@ require "date"
|
|
9
9
|
require "fear/rspec"
|
10
10
|
|
11
11
|
RSpec.configure do |config|
|
12
|
-
unless RUBY_VERSION >= "2.7"
|
13
|
-
config.exclude_pattern = "**/*pattern_matching_spec.rb"
|
14
|
-
end
|
15
|
-
|
16
12
|
# rspec-expectations config goes here. You can use an alternate
|
17
13
|
# assertion/expectation library such as wrong or the stdlib/minitest
|
18
14
|
# assertions if you prefer.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tema Bolshakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|