ree 1.0.40 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ree/object_compiler.rb +7 -18
- data/lib/ree/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3718d079d89d559261699484fcf0386395bcd8f9aad0faa9aaa81dbd77f8b22
|
4
|
+
data.tar.gz: f2ce896f83ea0f670a5a17279f84abbab3bbcb296cb90c58e4b367d827deed8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 368cbacf27970b8df6f0e4f7e527f2ef551b09660714464a33fb788b54672ab7b09ea22863e9ddd9c0ef2f5e44bface5bcfe0b1ea74d70d2cca60db1b62fcf43
|
7
|
+
data.tar.gz: 011c48a7763e2fe8ca22830322402d41af35bd78e1794b11f320808800fd610a4d01ba35de4df0903353bfcc1b261b88991cf58caef71d6dfa6ae954417f4d07
|
data/Gemfile.lock
CHANGED
data/lib/ree/object_compiler.rb
CHANGED
@@ -82,40 +82,29 @@ class Ree::ObjectCompiler
|
|
82
82
|
end
|
83
83
|
|
84
84
|
if object.factory || object.singleton
|
85
|
-
eval_list.push(indent + "def self.new
|
85
|
+
eval_list.push(indent + "def self.new")
|
86
86
|
|
87
87
|
if object.singleton
|
88
88
|
eval_list.push(indent + " SEMAPHORE.synchronize do")
|
89
|
-
eval_list.push(indent + "
|
90
|
-
eval_list.push(indent + " if (obj_links & kwargs.keys).size == 0")
|
91
|
-
eval_list.push(indent + " @__instance ||= begin")
|
89
|
+
eval_list.push(indent + " @__instance ||= begin")
|
92
90
|
|
93
91
|
if object.factory
|
94
|
-
eval_list.push(indent + "
|
92
|
+
eval_list.push(indent + " super.#{object.factory}")
|
95
93
|
else
|
96
|
-
eval_list.push(indent + "
|
97
|
-
end
|
98
|
-
|
99
|
-
eval_list.push(indent + " end")
|
100
|
-
eval_list.push(indent + " else")
|
101
|
-
|
102
|
-
if object.factory
|
103
|
-
eval_list.push(indent + " super(**kwargs).#{object.factory}")
|
104
|
-
else
|
105
|
-
eval_list.push(indent + " super(**kwargs)")
|
94
|
+
eval_list.push(indent + " super")
|
106
95
|
end
|
107
96
|
|
108
97
|
eval_list.push(indent + " end")
|
109
98
|
eval_list.push(indent + " end")
|
110
99
|
else
|
111
|
-
eval_list.push(indent + " super
|
100
|
+
eval_list.push(indent + " super.#{object.factory}")
|
112
101
|
end
|
113
102
|
|
114
103
|
eval_list.push(indent + "end")
|
115
104
|
end
|
116
105
|
|
117
106
|
eval_list.push("\n")
|
118
|
-
eval_list.push(indent + "def initialize
|
107
|
+
eval_list.push(indent + "def initialize")
|
119
108
|
|
120
109
|
indent = inc_indent(indent)
|
121
110
|
|
@@ -126,7 +115,7 @@ class Ree::ObjectCompiler
|
|
126
115
|
|
127
116
|
@packages_facade.load_package_object(pckg.name, obj.name)
|
128
117
|
|
129
|
-
eval_list.push(indent + "@#{_.as} =
|
118
|
+
eval_list.push(indent + "@#{_.as} = #{obj.klass}.new")
|
130
119
|
end
|
131
120
|
|
132
121
|
if object.after_init?
|
data/lib/ree/version.rb
CHANGED