ree 1.0.36 → 1.0.37

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: 40269b8b520f835a14d0b155cfb25408dfa0ec06bcdb48aaac552e96283cf76b
4
- data.tar.gz: 58f6c405a3ab08def9dc2899a94c07cdf8cf0d7cf0fe051cfad6a13e77d81fbf
3
+ metadata.gz: 5d501b79e7ddc962cae38fd84b12afe374275742acd074dc88596226e857b36b
4
+ data.tar.gz: 12f3f11d8e463facc2a0843865ab3e83bbd909e817bbe393142f4000b2ac0d24
5
5
  SHA512:
6
- metadata.gz: 7b0dc9c0d912356c0bed577496d4af90714142d9774cfa3c093fc66f7937e3c04936ca8daed5ec3d796d9880db744f7ac11d7d1a91e33110a9959428e8ae02a1
7
- data.tar.gz: 236477089e9ca29534fec178dd1d33181c1f8482c18fe8bddecd821787e55d69eacf8f51ee952a7070842ddb474d120f0760956d4749021e4c25557978fc3dc2
6
+ metadata.gz: cf7fb8c65cdb57adc82bf645800e80e04d60be0f855d182276199b77afd566fad8d2465b74b01f0c1313165abf080b9b9a7e0ff36739fbb089712993d1829214
7
+ data.tar.gz: 8d6a0861d463fbd37731ddae4a7d603e93e04c3028d9e8af2717e31959067bb3e0328fd5a3112f61eb001ac186f34428d510101ebd0053fd8b4b3daa2a100323
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree (1.0.36)
4
+ ree (1.0.37)
5
5
  commander (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -11,19 +11,28 @@ module Ree::RSpecLinkDSL
11
11
 
12
12
  define_method as do |*args, **kwargs, &proc|
13
13
  if obj.object?
14
- obj.klass.new
14
+ if obj.with_caller?
15
+ obj.klass.new.set_caller(self)
16
+ else
17
+ obj.klass.new
18
+ end
15
19
  else
16
- obj.klass.new.call(*args, **kwargs, &proc)
20
+ if obj.with_caller?
21
+ obj.klass.new.set_caller(self).call(*args, **kwargs, &proc)
22
+ else
23
+ obj.klass.new.call(*args, **kwargs, &proc)
24
+ end
17
25
  end
18
26
  end
19
27
  elsif obj_name.is_a?(String)
20
28
  const_list = link_file(from, obj_name, import_proc)
29
+
21
30
  const_list.each do |const|
22
31
  Object.const_set(const.name, self.const_get(const.name))
23
32
  end
24
33
  else
25
34
  raise Ree::Error.new("Invalid link DSL usage. Args should be Hash or String")
26
- end
35
+ end
27
36
  end
28
37
 
29
38
  private
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.36"
4
+ VERSION = "1.0.37"
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.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov