potrubi 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/potrubi/klass/syntax/braket.rb +2 -1
- data/lib/potrubi/mixin/bootstrap_common.rb +1 -0
- data/lib/potrubi/mixin/dynamic.rb +1 -1
- data/lib/potrubi/mixin/initialize.rb +2 -2
- data/lib/potrubi/mixin/konstant.rb +19 -19
- data/lib/potrubi/mixin/logger.rb +1 -1
- data/lib/potrubi/mixin/text-snippets/methods-text-snippets.rb +2 -2
- data/lib/potrubi/mixin/text-snippets.rb +2 -2
- data/lib/potrubi/mixin/util.rb +1 -1
- data/lib/potrubi/version.rb +1 -1
- metadata +1 -1
@@ -190,7 +190,8 @@ klassContent = Class.new do
|
|
190
190
|
|
191
191
|
end
|
192
192
|
|
193
|
-
Potrubi::Core.assign_class_constant_or_croak(klassContent, __FILE__)
|
193
|
+
#Potrubi::Core.assign_class_constant_or_croak(klassContent, __FILE__)
|
194
|
+
Potrubi::Core.assign_class_constant_or_croak(klassContent, :Potrubi, :Klass, :Syntax, :Braket)
|
194
195
|
|
195
196
|
__END__
|
196
197
|
|
@@ -12,7 +12,7 @@ metaclassMethods = Module.new do
|
|
12
12
|
#=begin
|
13
13
|
def dynamic_apply_edits(editSpecInput, *textValues, &block)
|
14
14
|
eye = :dyn_apy_edts
|
15
|
-
eyeTale = '"TEXT EDITS'
|
15
|
+
#eyeTale = '"TEXT EDITS'
|
16
16
|
|
17
17
|
#editSpec.is_a?(Hash) || editSpec.is_a?(Enumerator) || (raise ArgumentError,"editSpec >#{editSpec.class}< >#{editSpec}< not hash")
|
18
18
|
editSpec = case editSpecInput
|
@@ -16,8 +16,8 @@ mixinContent = Module.new do
|
|
16
16
|
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
Potrubi::Core.assign_module_constant_or_croak(mixinContent, __FILE__)
|
19
|
+
Potrubi::Core.assign_module_constant_or_croak(mixinContent, :Potrubi, :Mixin, :Initialize)
|
20
|
+
#Potrubi::Core.assign_module_constant_or_croak(mixinContent, __FILE__)
|
21
21
|
|
22
22
|
__END__
|
23
23
|
|
@@ -284,6 +284,24 @@ moduleContent = Module.new do
|
|
284
284
|
alias_method :normalise_module_contents_or_croak, :normalise_mixin_contents_or_croak
|
285
285
|
#=end
|
286
286
|
|
287
|
+
|
288
|
+
|
289
|
+
end
|
290
|
+
|
291
|
+
# Make the methods both instance and class
|
292
|
+
|
293
|
+
module Potrubi
|
294
|
+
module Mixin
|
295
|
+
module Konstant
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
###Potrubi::Mixin::Konstant.extend(moduleContent)
|
301
|
+
Potrubi::Mixin::Konstant.__send__(:include, moduleContent) # Instance Methods
|
302
|
+
|
303
|
+
__END__
|
304
|
+
|
287
305
|
#=begin
|
288
306
|
def resolve_module_constants_or_croak(*resolvMaps)
|
289
307
|
eye = :rsv_mod_cons
|
@@ -303,7 +321,7 @@ moduleContent = Module.new do
|
|
303
321
|
requireNames = [*resolvMap[:requires]].flatten.compact
|
304
322
|
requirePath = resolvMap[:path]
|
305
323
|
requirePath && potrubi_bootstrap_mustbe_directory_or_croak(requirePath)
|
306
|
-
requirePaths = requirePath ? requireNames.each_with_object({}) {|n,h| h[n] = File.join(requirePath, n) } : requireNames.each_with_object({}) {|n,
|
324
|
+
requirePaths = requirePath ? requireNames.each_with_object({}) {|n,h| h[n] = File.join(requirePath, n) } : requireNames.each_with_object({}) {|n,h1| h1[n] = n}
|
307
325
|
|
308
326
|
$DEBUG_POTRUBI_BOOTSTRAP && potrubi_bootstrap_logger_ms(eye, 'REQUIRES', potrubi_bootstrap_logger_fmt_who(:paths => requirePaths, :names => requireNames, :path => requirePath))
|
309
327
|
$DEBUG_POTRUBI_BOOTSTRAP && potrubi_bootstrap_logger_ms(eye, 'LOADED FEATURES', potrubi_bootstrap_logger_fmt_who(:loaded => $LOADED_FEATURES))
|
@@ -348,21 +366,3 @@ moduleContent = Module.new do
|
|
348
366
|
moduleConstants
|
349
367
|
end
|
350
368
|
#=end
|
351
|
-
|
352
|
-
end
|
353
|
-
|
354
|
-
# Make the methods both instance and class
|
355
|
-
|
356
|
-
module Potrubi
|
357
|
-
module Mixin
|
358
|
-
module Konstant
|
359
|
-
end
|
360
|
-
end
|
361
|
-
end
|
362
|
-
|
363
|
-
###Potrubi::Mixin::Konstant.extend(moduleContent)
|
364
|
-
Potrubi::Mixin::Konstant.__send__(:include, moduleContent) # Instance Methods
|
365
|
-
|
366
|
-
__END__
|
367
|
-
|
368
|
-
|
data/lib/potrubi/mixin/logger.rb
CHANGED
@@ -17,7 +17,7 @@ module Potrubi
|
|
17
17
|
@logger ||= new_logger(logrArgs)
|
18
18
|
end
|
19
19
|
|
20
|
-
def self.
|
20
|
+
def self.new_logger(logrArgs=nil)
|
21
21
|
|
22
22
|
logrArgs && (logrArgs.is_a?(Hash) || raise(ArgumentError,"logrArgs >#{logrArgs}< not hash",caller))
|
23
23
|
###log = Log4r.new(STDOUT)
|
@@ -139,8 +139,8 @@
|
|
139
139
|
|
140
140
|
mustbeMethodCompareText = <<-'ENDOFMETHOD'
|
141
141
|
def mustbe_MUSTBE_NAME_or_croak(arg1, arg2, *args)
|
142
|
-
eye = :MUSTBE_NAME
|
143
|
-
arg1.is_a?(arg2.class) || contract_exception(arg1, "DIFFERNT CLASSES arg1 >#{arg1.class}< >#{arg1}< arg2 >#{arg2.class}< >#{arg2}< opr >MUSTBE_SPEC<", *args)
|
142
|
+
#eye = :MUSTBE_NAME
|
143
|
+
arg1.is_a?(arg2.class) || contract_exception(arg1, :MUSTBE_NAME, "DIFFERNT CLASSES arg1 >#{arg1.class}< >#{arg1}< arg2 >#{arg2.class}< >#{arg2}< opr >MUSTBE_SPEC<", *args)
|
144
144
|
argC = (arg1 MUSTBE_SPEC arg2)
|
145
145
|
# puts "<=> #{eye} argC >#{argC.class}< >#{argC}< arg1 >#{arg1.class}< >#{arg1}< arg2 >#{arg2.class}< >#{arg2}< opr >MUSTBE_SPEC<"
|
146
146
|
argC ? arg1 : contract_exception(argC, "argC >#{argC.class}< >#{argC}< arg1 >#{arg1.class}< >#{arg1}< arg2 >#{arg2.class}< >#{arg2}< opr >MUSTBE_SPEC<", *args)
|
data/lib/potrubi/mixin/util.rb
CHANGED
data/lib/potrubi/version.rb
CHANGED