rggen 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rggen/core_extensions/forwardable.rb +23 -0
- data/lib/rggen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2587afe35c81233ad40e7b9e5aabf23b0c1fb16e
|
4
|
+
data.tar.gz: 53b684c32ded344767638a0fae8d5b40009ffacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4cf2349effee3d5540a3b7c3d5ede666a9b09643ef4cf5925002e02a0b601bdf4a678c9f3828213e17f69c95f82981ae82de169a2cccaf37ff89063660b0e44
|
7
|
+
data.tar.gz: c0fcc9a323fa098ec31cc2b924f58ac8bde2cb230b207828e0d4ddf92cdf779cb1437f08941ccff970163387bd3d9e0c920d9a58853fa4ed079610f827cf997c
|
@@ -23,4 +23,27 @@ module SingleForwardable
|
|
23
23
|
def_object_delegator(target, method)
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
27
|
+
if ['2.2.5', '2.3.1'].include?(RUBY_VERSION)
|
28
|
+
# https://bugs.ruby-lang.org/issues/12478
|
29
|
+
def def_single_delegator(accessor, method, ali = method)
|
30
|
+
accessor = accessor.to_s
|
31
|
+
if method_defined?(accessor) || private_method_defined?(accessor)
|
32
|
+
accessor = "#{accessor}()"
|
33
|
+
end if self.class === Module
|
34
|
+
|
35
|
+
line_no = __LINE__; str = %{
|
36
|
+
def #{ali}(*args, &block)
|
37
|
+
begin
|
38
|
+
#{accessor}.__send__(:#{method}, *args, &block)
|
39
|
+
rescue ::Exception
|
40
|
+
$@.delete_if{|s| ::Forwardable::FILE_REGEXP =~ s} unless ::Forwardable::debug
|
41
|
+
::Kernel::raise
|
42
|
+
end
|
43
|
+
end
|
44
|
+
}
|
45
|
+
|
46
|
+
instance_eval(str, __FILE__, line_no)
|
47
|
+
end
|
48
|
+
end
|
26
49
|
end
|
data/lib/rggen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rggen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taichi Ishitani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: baby_erubis
|
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
310
|
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
|
-
rubygems_version: 2.
|
313
|
+
rubygems_version: 2.6.8
|
314
314
|
signing_key:
|
315
315
|
specification_version: 4
|
316
316
|
summary: Code generation tool for control registers in a SoC design.
|