spaced 0.4.0 → 0.5.0
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/Gemfile.lock +15 -14
- data/README.md +1 -1
- data/fixtures/user.rb +1 -1
- data/lib/spaced/version.rb +1 -1
- data/lib/spaced.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76a45f4639e8fef5d2efb99dd8aec566912cb61930aaa61d52b16bfd6e0c6f2
|
4
|
+
data.tar.gz: 8b1d370e2b948d2bd9fcfdc03736dcadcef9d95eeef2d4e017f3cea53d9e723a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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.
|
10
|
+
json (2.7.2)
|
11
11
|
language_server-protocol (3.17.0.3)
|
12
|
-
parallel (1.
|
13
|
-
parser (3.
|
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
|
19
|
-
regexp_parser (2.
|
18
|
+
rake (13.2.1)
|
19
|
+
regexp_parser (2.9.0)
|
20
20
|
rexml (3.2.6)
|
21
|
-
rubocop (1.
|
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.
|
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.
|
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.
|
33
|
-
parser (>= 3.
|
34
|
-
rubocop-minitest (0.
|
35
|
-
rubocop (>= 1.
|
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.
|
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
|
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
data/lib/spaced/version.rb
CHANGED
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}
|
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}
|
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}
|
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
|
+
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:
|
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.
|
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
|