eqq 0.0.7 → 0.1.1

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: becfb749a93e73ea402265899e57d3deea45bf0eb457a29a66eafa03965b1572
4
- data.tar.gz: 3f6578bd2f0b3334369834ff1f344b4b033318172586a9324496027a057507a0
3
+ metadata.gz: dbc7af119664c115468e578edb51c0702530299538f1b067520295b41a150f7d
4
+ data.tar.gz: e47dbde377b0ca22a2e92a620c3cb5f87b4b09a061833416ebb4ffc88c311521
5
5
  SHA512:
6
- metadata.gz: 3d76a45da1f1e181d77b6f9cbfc6f80d88af6abed0782b1da92f6562934bf551c2f55e5691be7108d0acf0521562a042bb5cba6f54f9846af78b7ba4031d35fb
7
- data.tar.gz: 2ec4137407dfaf6b4189255532e59669798ac9ed57be8e6ecdb07c31525d132b9246da9d9fd6b98975e31b712e002e2693f523acf285d172df1b13c7c46617d5
6
+ metadata.gz: c43cd582ac38023b1bc1521abc9dd1f15ec56e7bd2608553e1c7cddccecbf1765f331863c1e1ffabff4a9016698776aec99da16d6bc11ac63758e19af273e9da
7
+ data.tar.gz: b1f5c8d9868a02bc159b6a7eb18f3f8d7c1894af2f9b0f093867f30e73083add427ab4d79bb707381fe883317f8abb3c9cd8dcef79a36cf2a077ace202a4f295
data/README.md CHANGED
@@ -12,7 +12,7 @@ Require Ruby 2.6 or later
12
12
  Add below code into your Gemfile
13
13
 
14
14
  ```ruby
15
- gem 'eqq', '>= 0.0.7', '< 0.1.0'
15
+ gem 'eqq', '~> 0.1.1'
16
16
  ```
17
17
 
18
18
  ### Overview
@@ -117,7 +117,7 @@ Reuse as you wish!
117
117
  ### Best fit for RSpec's `satisfy` matcher too
118
118
 
119
119
  All builders actually generate a `Proc (lambda)` instance.
120
- The signature will fit for RSpec's built-in [`satisfy` matcher](https://relishapp.com/rspec/rspec-expectations/v/3-10/docs/built-in-matchers/satisfy-matcher) too.
120
+ The signature will fit for RSpec's built-in ["satisfy" matcher](https://relishapp.com/rspec/rspec-expectations/v/3-10/docs/built-in-matchers/satisfy-matcher) too.
121
121
 
122
122
  ```ruby
123
123
  RSpec.describe RSpec::Matchers::BuiltIn::Satisfy do
@@ -153,4 +153,4 @@ When you felt annoy to write `Eqq` in many place, some ways exist.
153
153
 
154
154
  ## NOTE
155
155
 
156
- * [`eqq` is the implementation name of `#===` in CRuby](https://github.com/ruby/ruby/blob/2a685da1fcd928530509e99f5edb4117bc377994/range.c#L1859)
156
+ * ["eqq" is the implementation name of "#===" in CRuby](https://github.com/ruby/ruby/blob/2a685da1fcd928530509e99f5edb4117bc377994/range.c#L1859)
data/lib/eqq/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
 
4
4
  module Eqq
5
5
  # This will be same as latest published gem version
6
- VERSION = '0.0.7'
6
+ VERSION = '0.1.1'
7
7
  end
data/lib/eqq.rb CHANGED
@@ -28,16 +28,13 @@ module Eqq
28
28
  end
29
29
  end
30
30
 
31
- # @deprecated Use {pattern?} instead. This will be dropped since `0.1.0`
32
- def valid?(object)
33
- pattern?(object)
34
- end
35
-
36
31
  # @api private
37
32
  def satisfy?(object)
38
33
  (Proc === object) && object.lambda? && (object.arity == 1) && object.respond_to?(:inspect)
39
34
  end
40
35
 
36
+ # In the block scope, all builder methods can be used without receiver
37
+ #
41
38
  # @return [Proc]
42
39
  # @raise [InvalidProductError] if the return value is not looks to be built with builders
43
40
  def build(&block)
@@ -48,11 +45,6 @@ module Eqq
48
45
 
49
46
  pattern
50
47
  end
51
-
52
- # @deprecated Use {build} instead. This will be dropped since `0.1.0`
53
- def define(&block)
54
- build(&block)
55
- end
56
48
  end
57
49
  end
58
50
 
data/sig/eqq.rbs CHANGED
@@ -106,16 +106,10 @@ module Eqq
106
106
  # Returns `true` when given object has patternable signature
107
107
  def self.pattern?: (untyped object) -> bool
108
108
 
109
- # Alias of `pattern?`. But deperecated. Do not use in your code anymore.
110
- def self.valid?: (untyped object) -> bool
111
-
112
109
  # Returns `true` when given object has correct signature as a product of builders
113
110
  # Basically this is a private API. Should not be used in your code.
114
111
  def self.satisfy?: (untyped object) -> bool
115
112
 
116
113
  # In the block scope, all builder methods can be used without receiver
117
114
  def self.build: { () -> _Patternable } -> _Patternable
118
-
119
- # Alias of `build`. But deperecated. Do not use in your code anymore.
120
- def self.define: { () -> _Patternable } -> _Patternable
121
115
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eqq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenichi Kamiya
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-06 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Pattern objects builder.
@@ -38,7 +38,8 @@ metadata:
38
38
  homepage_uri: https://github.com/kachick/eqq
39
39
  source_code_uri: https://github.com/kachick/eqq
40
40
  bug_tracker_uri: https://github.com/kachick/eqq/issues
41
- post_install_message:
41
+ rubygems_mfa_required: 'true'
42
+ post_install_message:
42
43
  rdoc_options: []
43
44
  require_paths:
44
45
  - lib
@@ -53,8 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  requirements: []
56
- rubygems_version: 3.2.15
57
- signing_key:
57
+ rubygems_version: 3.3.7
58
+ signing_key:
58
59
  specification_version: 4
59
60
  summary: Pattern objects builder
60
61
  test_files: []