rexer 0.10.0 → 0.11.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: 35c79e74d0ffb8e149f5d608a67bd6c9fa709bb5da7d4442e6851453e5a66a43
4
- data.tar.gz: f216971952e8e873e7959f8861fc55c674e0e22765cc2e12cd485793b6d65c8e
3
+ metadata.gz: 86612492af231c5ed6d00b8fe44c305a62013b2aeb3571bbb70c4d53e8ed6b30
4
+ data.tar.gz: 1cf5c21eb32b9a30829c1dcc9b823902dd9a560190a44ae9976288f4c340e5f3
5
5
  SHA512:
6
- metadata.gz: 52467965bc3cdfe91c72af5ea5504681e2fc12d2be7179309d464e131e7b766fc0efc6aeea7affcda9c287af129550828cf64ec5cd3b94c38deb1b880cf5d7e1
7
- data.tar.gz: bcbffc9a28d139cf185cd068bed5ca594a163d97d054c33b62463794aec39f453d162e9e9f1abf071d7f2d81efcd910aa6a25c765cb185a653234ff7c666f0e0
6
+ metadata.gz: da47f60be431db339d94dbaa944b4732495cc2f29088413826a3828c03c6e140fa438c967f38ed68881058f89d2caff0c3751adf569c9110579e508c29016135
7
+ data.tar.gz: 4c48a3ebffb2341d93adde02983cb9019587e00f0be83060f57237967c07fa955a94e2ba34a129392d33be3bc862b557586b931dc02ad4e74135556f17dc239c
@@ -1,3 +1,5 @@
1
+ require "paint"
2
+
1
3
  module Rexer
2
4
  module Commands
3
5
  class Init
@@ -63,7 +63,7 @@ module Rexer
63
63
  end
64
64
 
65
65
  def build_source(opts)
66
- type = opts.keys.find { Rexer::Source.names.include?(_1) }
66
+ type = opts.keys.find { Rexer::Source.const_defined?(_1.capitalize) }
67
67
  Source.new(type, opts[type]) if type
68
68
  end
69
69
  end
@@ -1,10 +1,6 @@
1
1
  module Rexer
2
2
  module Source
3
3
  class Base
4
- def self.inherited(subclass)
5
- Source.names << subclass.name.split("::").last.downcase.to_sym
6
- end
7
-
8
4
  # Load the source to the given path.
9
5
  def load(_path)
10
6
  raise "Not implemented"
data/lib/rexer/source.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  module Rexer
2
2
  module Source
3
- def self.names = @names ||= []
4
-
5
3
  def self.from_definition(source)
6
4
  const_get(source.type.capitalize).new(**source.options)
7
5
  end
data/lib/rexer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rexer
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
data/lib/rexer.rb CHANGED
@@ -32,4 +32,3 @@ require "zeitwerk"
32
32
 
33
33
  loader = Zeitwerk::Loader.for_gem
34
34
  loader.setup
35
- loader.eager_load
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Hidaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor