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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ba0218ce7f598b273e2c24a9ddfb965b53cfbb0
4
- data.tar.gz: 8f8595953d40b2818c11535f6d17e181c64ee37d
3
+ metadata.gz: 2587afe35c81233ad40e7b9e5aabf23b0c1fb16e
4
+ data.tar.gz: 53b684c32ded344767638a0fae8d5b40009ffacf
5
5
  SHA512:
6
- metadata.gz: 6cd72549ff84a9901c866890b6d685fbc528619e898fb012043e71dc7b3dc9a45c36e332ccfb29790c005caa928294c45ee6c0649f5c477425694163793510ae
7
- data.tar.gz: 53d5e50d624edc590be59916889603e12552a2ffc876d80b6780616cdb1278ca70d2ba0910520735e82cd11b077f599b96870b1732daf44baeac24d5ada1e591
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
@@ -1,6 +1,6 @@
1
1
  module RgGen
2
2
  MAJOR = 0
3
3
  MINOR = 4
4
- TEENY = 3
4
+ TEENY = 4
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{TEENY}".freeze
6
6
  end
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.3
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-08-23 00:00:00.000000000 Z
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.4.5.1
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.