spaced 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/Gemfile +5 -4
- data/Gemfile.lock +22 -24
- data/lib/spaced/version.rb +1 -1
- data/lib/spaced.rb +2 -2
- metadata +4 -9
- data/Rakefile +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de61b3e87ec85ff4891a034a0d75fd51c3f9cf2e2084ecd5ad6da538d2c05c5a
|
4
|
+
data.tar.gz: e7a182e85a619b15576208934038428fa6f5faf46b0fa7ab0352753db0ba8cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39cd159a4d8ab8ceba3e0166ff894ad9a64d1224109330df87a71efe1326f5ba1af7feaeb82d41306d0e4ee21ee43e3e9ffbbec2c0aad1b48191afb9060dac3
|
7
|
+
data.tar.gz: '025450092956b818c9e5f703b47aa27652937a584d8ad9c6bf0a31bd507c811256ceca4b92d8ebecb73dd78eabcff45b5c4274a2da8a40c4c7228797fcce117c'
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -5,8 +5,9 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in spaced.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
|
9
|
-
gem "rubocop"
|
10
|
-
gem "rubocop-minitest"
|
11
|
-
|
8
|
+
group :development do
|
9
|
+
gem "rubocop"
|
10
|
+
gem "rubocop-minitest"
|
11
|
+
end
|
12
|
+
|
12
13
|
gem "sus", group: :test
|
data/Gemfile.lock
CHANGED
@@ -1,56 +1,54 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
spaced (0.
|
4
|
+
spaced (0.6.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
|
-
json (2.
|
10
|
+
json (2.9.1)
|
11
11
|
language_server-protocol (3.17.0.3)
|
12
|
-
parallel (1.
|
13
|
-
parser (3.3.0
|
12
|
+
parallel (1.26.3)
|
13
|
+
parser (3.3.6.0)
|
14
14
|
ast (~> 2.4.1)
|
15
15
|
racc
|
16
|
-
racc (1.
|
16
|
+
racc (1.8.1)
|
17
17
|
rainbow (3.1.1)
|
18
|
-
|
19
|
-
|
20
|
-
rexml (3.2.6)
|
21
|
-
rubocop (1.63.2)
|
18
|
+
regexp_parser (2.10.0)
|
19
|
+
rubocop (1.70.0)
|
22
20
|
json (~> 2.3)
|
23
21
|
language_server-protocol (>= 3.17.0)
|
24
22
|
parallel (~> 1.10)
|
25
23
|
parser (>= 3.3.0.2)
|
26
24
|
rainbow (>= 2.2.2, < 4.0)
|
27
|
-
regexp_parser (>=
|
28
|
-
|
29
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
25
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
26
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
30
27
|
ruby-progressbar (~> 1.7)
|
31
|
-
unicode-display_width (>= 2.4.0, <
|
32
|
-
rubocop-ast (1.
|
33
|
-
parser (>= 3.3.0
|
34
|
-
rubocop-minitest (0.
|
28
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
29
|
+
rubocop-ast (1.37.0)
|
30
|
+
parser (>= 3.3.1.0)
|
31
|
+
rubocop-minitest (0.36.0)
|
35
32
|
rubocop (>= 1.61, < 2.0)
|
36
33
|
rubocop-ast (>= 1.31.1, < 2.0)
|
37
|
-
rubocop-rake (0.6.0)
|
38
|
-
rubocop (~> 1.0)
|
39
34
|
ruby-progressbar (1.13.0)
|
40
|
-
sus (0.
|
41
|
-
unicode-display_width (
|
35
|
+
sus (0.32.0)
|
36
|
+
unicode-display_width (3.1.4)
|
37
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
38
|
+
unicode-emoji (4.0.4)
|
42
39
|
|
43
40
|
PLATFORMS
|
44
41
|
arm64-darwin-21
|
45
42
|
arm64-darwin-22
|
43
|
+
arm64-darwin-23
|
44
|
+
arm64-darwin-24
|
45
|
+
x86_64-linux
|
46
46
|
|
47
47
|
DEPENDENCIES
|
48
|
-
|
49
|
-
rubocop (~> 1.21)
|
48
|
+
rubocop
|
50
49
|
rubocop-minitest
|
51
|
-
rubocop-rake
|
52
50
|
spaced!
|
53
51
|
sus
|
54
52
|
|
55
53
|
BUNDLED WITH
|
56
|
-
2.
|
54
|
+
2.6.2
|
data/lib/spaced/version.rb
CHANGED
data/lib/spaced.rb
CHANGED
@@ -14,13 +14,13 @@ module Spaced
|
|
14
14
|
end
|
15
15
|
|
16
16
|
module ClassMethods
|
17
|
-
def namespace(name, klass = nil, &) # rubocop:disable Metrics
|
17
|
+
def namespace(name, klass = nil, &block) # rubocop:disable Metrics,Naming/BlockForwarding,Lint/UnusedMethodArgument
|
18
18
|
if klass
|
19
19
|
raise "#{klass} must be a subclass of Spaced::Base" unless klass < Spaced::Base
|
20
20
|
else
|
21
21
|
class_name = name.to_s.split("_").collect(&:capitalize).join
|
22
22
|
klass = module_eval <<-RUBY, __FILE__, __LINE__ + 1
|
23
|
-
#{self}::#{class_name} = Class.new(Base, &) # Parent::Namespace = Class.new(Base, &)
|
23
|
+
#{self}::#{class_name} = Class.new(Base, &block) # Parent::Namespace = Class.new(Base, &block)
|
24
24
|
RUBY
|
25
25
|
end
|
26
26
|
|
metadata
CHANGED
@@ -1,16 +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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
|
-
description:
|
14
12
|
email:
|
15
13
|
- joel@developwithstyle.com
|
16
14
|
executables: []
|
@@ -23,7 +21,6 @@ files:
|
|
23
21
|
- Gemfile.lock
|
24
22
|
- LICENSE.txt
|
25
23
|
- README.md
|
26
|
-
- Rakefile
|
27
24
|
- fixtures/daddy.rb
|
28
25
|
- fixtures/test_helper.rb
|
29
26
|
- fixtures/user.rb
|
@@ -38,7 +35,6 @@ metadata:
|
|
38
35
|
source_code_uri: https://github.com/joelmoss/spaced
|
39
36
|
changelog_uri: https://github.com/joelmoss/proscenium/releases
|
40
37
|
rubygems_mfa_required: 'true'
|
41
|
-
post_install_message:
|
42
38
|
rdoc_options: []
|
43
39
|
require_paths:
|
44
40
|
- lib
|
@@ -46,15 +42,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
42
|
requirements:
|
47
43
|
- - ">="
|
48
44
|
- !ruby/object:Gem::Version
|
49
|
-
version: 3.
|
45
|
+
version: 3.2.0
|
50
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
47
|
requirements:
|
52
48
|
- - ">="
|
53
49
|
- !ruby/object:Gem::Version
|
54
50
|
version: '0'
|
55
51
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
57
|
-
signing_key:
|
52
|
+
rubygems_version: 3.6.2
|
58
53
|
specification_version: 4
|
59
54
|
summary: Super simple and convenient way to isolate and namespace a collection of
|
60
55
|
related methods
|