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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c806baccc97f2a671627bb9988a5019e1827f0ecad6781b4936adb9dfeaa8337
4
- data.tar.gz: 65786f392d68aa7213a25a46d25c9b5fcdca2161a8ba1647c925fca63e2c885b
3
+ metadata.gz: c3718d079d89d559261699484fcf0386395bcd8f9aad0faa9aaa81dbd77f8b22
4
+ data.tar.gz: f2ce896f83ea0f670a5a17279f84abbab3bbcb296cb90c58e4b367d827deed8a
5
5
  SHA512:
6
- metadata.gz: 963769f03216f645f0454512eb671eca21d6525967e88179c974dd1cc66a35f9c1be0460288c0fc74f0816037931d93a679d32b019f13aaba156aaa49b518b16
7
- data.tar.gz: fbb55a02c5bf9a385a469da241863c0f2f327183075f02061c59f250f1df3428b9201457c1139cd4f3007ca28b6b0ca4df1cf32588514114645b50e5424f10fc
6
+ metadata.gz: 368cbacf27970b8df6f0e4f7e527f2ef551b09660714464a33fb788b54672ab7b09ea22863e9ddd9c0ef2f5e44bface5bcfe0b1ea74d70d2cca60db1b62fcf43
7
+ data.tar.gz: 011c48a7763e2fe8ca22830322402d41af35bd78e1794b11f320808800fd610a4d01ba35de4df0903353bfcc1b261b88991cf58caef71d6dfa6ae954417f4d07
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree (1.0.40)
4
+ ree (1.0.41)
5
5
  commander (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -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(**kwargs)")
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 + " obj_links = #{links.map(&:as).inspect}")
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 + " super(**kwargs).#{object.factory}")
92
+ eval_list.push(indent + " super.#{object.factory}")
95
93
  else
96
- eval_list.push(indent + " super(**kwargs)")
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(**kwargs).#{object.factory}")
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(**kwargs)")
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} = kwargs[:#{_.as}] || #{obj.klass}.new(**kwargs)")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ree
4
- VERSION = "1.0.40"
4
+ VERSION = "1.0.41"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.40
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov