potrubi 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -34,6 +34,7 @@ module Potrubi
34
34
  $DEBUG_POTRUBI_BOOTSTRAP && #{loggerMethod}(*a, &b)
35
35
  end;
36
36
  ENDOFHERE
37
+ text
37
38
  end.compact.flatten.join("\n")
38
39
 
39
40
  ###puts("bootstrapLoggerText >\n#{bootstrapLoggerText}")
@@ -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
- #Potrubi::Mixin::Konstant.assign_module_constant_or_croak(mixinContent, :Potrubi, :Mixin, :Initialize)
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,h| h[n] = 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
-
@@ -17,7 +17,7 @@ module Potrubi
17
17
  @logger ||= new_logger(logrArgs)
18
18
  end
19
19
 
20
- def self.logger(logrArgs=nil)
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)
@@ -7,8 +7,8 @@
7
7
 
8
8
  require_relative '../bootstrap'
9
9
 
10
- requireList = %w(dynamic)
11
- requireList.each {|r| require_relative "#{r}"}
10
+ #requireList = %w(dynamic)
11
+ #requireList.each {|r| require_relative "#{r}"}
12
12
 
13
13
  mixinContent = Module.new do
14
14
 
@@ -48,6 +48,6 @@ mixinContent = Module.new do
48
48
  #=end
49
49
  end
50
50
 
51
- Potrubi::Core.assign_module_constant_or_croak(mixinContent, __FILE__)
51
+ Potrubi::Core.assign_module_constant_or_croak(mixinContent, :Potrubi, :Mixin, :Util)
52
52
 
53
53
  __END__
@@ -2,5 +2,5 @@
2
2
  # Version for Potrubi
3
3
 
4
4
  module Potrubi
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potrubi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: