spaced 0.4.0 → 0.5.0

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: a2da420b63a66615b4f9227fb1064c16e443b120ac506b1ebaeb820ddfb80216
4
- data.tar.gz: 0b52d7dd0de000a0895a98f42d1cac4e1a5fb426b1865eb48c923fecc40c4654
3
+ metadata.gz: d76a45f4639e8fef5d2efb99dd8aec566912cb61930aaa61d52b16bfd6e0c6f2
4
+ data.tar.gz: 8b1d370e2b948d2bd9fcfdc03736dcadcef9d95eeef2d4e017f3cea53d9e723a
5
5
  SHA512:
6
- metadata.gz: e5c2ebb06e5298dcdfb3e9d4654fb3397e5d91c32cfd7a2bac1f2426f23d7f256fba70f948a7ccc5adcbb9dd5728db76acec16b05b7803f07f18f33a997d8326
7
- data.tar.gz: 5e745b116152c80528a3f3c2c585a826925edff33458a368188d992ba3f86883950f2016c53d5fb9e8cf1d7e47d222d5ccda0c8910545562e1c3436263e9ba57
6
+ metadata.gz: 15281d8d117f2bac3f6fff7a676de0b09fbb5817930356b71ca16d294c2facacbae6e7e18c3f07566ab98a349ae80a139187b2eeb1eb250f81dd5652ebe166a1
7
+ data.tar.gz: eadbae3132d5130a5290852dc14247f1ca180863a0f5d6b846d0ec008a0c8f062fd3f619e748e61dc48b98cee0dafa413d5289f5d22b2c08c5ac0b225c95b690
data/Gemfile.lock CHANGED
@@ -1,42 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spaced (0.4.0)
4
+ spaced (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
- json (2.7.1)
10
+ json (2.7.2)
11
11
  language_server-protocol (3.17.0.3)
12
- parallel (1.23.0)
13
- parser (3.2.2.4)
12
+ parallel (1.24.0)
13
+ parser (3.3.0.5)
14
14
  ast (~> 2.4.1)
15
15
  racc
16
16
  racc (1.7.3)
17
17
  rainbow (3.1.1)
18
- rake (13.1.0)
19
- regexp_parser (2.8.3)
18
+ rake (13.2.1)
19
+ regexp_parser (2.9.0)
20
20
  rexml (3.2.6)
21
- rubocop (1.58.0)
21
+ rubocop (1.63.2)
22
22
  json (~> 2.3)
23
23
  language_server-protocol (>= 3.17.0)
24
24
  parallel (~> 1.10)
25
- parser (>= 3.2.2.4)
25
+ parser (>= 3.3.0.2)
26
26
  rainbow (>= 2.2.2, < 4.0)
27
27
  regexp_parser (>= 1.8, < 3.0)
28
28
  rexml (>= 3.2.5, < 4.0)
29
- rubocop-ast (>= 1.30.0, < 2.0)
29
+ rubocop-ast (>= 1.31.1, < 2.0)
30
30
  ruby-progressbar (~> 1.7)
31
31
  unicode-display_width (>= 2.4.0, < 3.0)
32
- rubocop-ast (1.30.0)
33
- parser (>= 3.2.1.0)
34
- rubocop-minitest (0.33.0)
35
- rubocop (>= 1.39, < 2.0)
32
+ rubocop-ast (1.31.2)
33
+ parser (>= 3.3.0.4)
34
+ rubocop-minitest (0.35.0)
35
+ rubocop (>= 1.61, < 2.0)
36
+ rubocop-ast (>= 1.31.1, < 2.0)
36
37
  rubocop-rake (0.6.0)
37
38
  rubocop (~> 1.0)
38
39
  ruby-progressbar (1.13.0)
39
- sus (0.24.0)
40
+ sus (0.24.6)
40
41
  unicode-display_width (2.5.0)
41
42
 
42
43
  PLATFORMS
data/README.md CHANGED
@@ -8,7 +8,7 @@ Spaced is a super simple and convenient way to isolate and namespace a collectio
8
8
  class User
9
9
  include Spaced
10
10
 
11
- # Pass a black with a bunch of methods.
11
+ # Pass a block with a bunch of methods.
12
12
  namespace :twitter do
13
13
  def create(msg)
14
14
  api.create_tweet msg
data/fixtures/user.rb CHANGED
@@ -35,7 +35,7 @@ class User
35
35
  "Lesley Moss#{append}"
36
36
  end
37
37
 
38
- def _?
38
+ def _?(*, **)
39
39
  true
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spaced
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
data/lib/spaced.rb CHANGED
@@ -61,15 +61,15 @@ module Spaced
61
61
 
62
62
  if methods.include?(:_?)
63
63
  module_eval <<-RUBY, __FILE__, __LINE__ + 1
64
- def #{name}?; #{name}._?; end # def user?; user._?; end
64
+ def #{name}?(...); #{name}._?(...); end # def user?; user._?; end
65
65
  RUBY
66
66
  elsif methods.include?(:"#{name}?")
67
67
  module_eval <<-RUBY, __FILE__, __LINE__ + 1
68
- def #{name}?; #{name}.#{name}?; end # def user?; user.user?; end
68
+ def #{name}?(...); #{name}.#{name}?(...); end # def user?; user.user?; end
69
69
  RUBY
70
70
  elsif methods.include?(:predicate) # DEPRECATED
71
71
  module_eval <<-RUBY, __FILE__, __LINE__ + 1
72
- def #{name}?; #{name}.predicate; end # def user?; user.predicate; end
72
+ def #{name}?(...); #{name}.predicate(...); end # def user?; user.predicate; end
73
73
  RUBY
74
74
  else
75
75
  define_method :"#{name}?" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubygems_version: 3.4.22
56
+ rubygems_version: 3.5.7
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Super simple and convenient way to isolate and namespace a collection of