omega 1.0.2 → 1.0.3

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: ba00c4efede1218f0e0407ad37359769a6deb641
4
- data.tar.gz: c80a6092e5677dc846b80a0f588fe8ef3ec0d6cf
3
+ metadata.gz: 14cca23065b103366088fb0e1a58166d7989cd3c
4
+ data.tar.gz: 2aa60f03a11c65d022a8ad903577f19d12d52dc1
5
5
  SHA512:
6
- metadata.gz: a5d5e6699ead2f29eab8285d9c4693cd781125456a4e7c6ee0daab2faf9105ab0393af1b76497e1ef9d28a2432fc7e4975b1155a05c42464370220fcf262e1be
7
- data.tar.gz: 3348e3edf2ce5527842c7a963950692171b4329ab76e0ba243eb704c2d26949c2429a62018f827939e26b815e051d10868c6b22e8bb352091f035e1f0d42356e
6
+ metadata.gz: ecb8d329541b0a789108c70a13d68257da257897f3a3c78e0c26441c43efa4e9997678d436c98a0bc75f16127332767a37ce1b4b022cf2b048aef7fef8cdbe80
7
+ data.tar.gz: 0a914d599f2b72360fef892bfcbb88b88cd6a8795de6b9f0451b653d7fbe42c66672f0f639395bc7b8f761eb9a95251c9f161fbf684de6ff3dfa94cd3e136b19
@@ -1,4 +1,3 @@
1
1
  require 'omega/math'
2
2
  require 'omega/memoize'
3
- require 'omega/meta'
4
3
  require 'omega/descendants'
@@ -17,13 +17,11 @@ class Module
17
17
  end
18
18
 
19
19
  def cmemoize n, *m
20
- meta = (class << self; self; end)
21
- meta.memoize n, *m
20
+ singleton_class.memoize n, *m
22
21
  end
23
22
  end
24
23
 
25
24
  # Let's make "main:Object" methods memoizable
26
25
  def memoize n, *m
27
- meta = (class << self; self; end)
28
- meta.memoize n, *m
26
+ singleton_class.memoize n, *m
29
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omega
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nax
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '1.0'
55
55
  description: |-
56
56
  Omega is a powerful set of extensions to the basic ruby standard.
57
- Things like efficient memoization, meta-helpers, easy class tree traversal andadvanced math are included.
57
+ Things like efficient memoization, meta-helpers, easy class tree traversal and advanced math are included.
58
58
  email: max.bacoux@gmail.com
59
59
  executables: []
60
60
  extensions: []
@@ -64,8 +64,7 @@ files:
64
64
  - lib/omega/descendants.rb
65
65
  - lib/omega/math.rb
66
66
  - lib/omega/memoize.rb
67
- - lib/omega/meta.rb
68
- homepage: http://rubygems.org/gems/omega
67
+ homepage: https://rubygems.org/gems/omega
69
68
  licenses:
70
69
  - MIT
71
70
  metadata: {}
@@ -77,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
76
  requirements:
78
77
  - - ">="
79
78
  - !ruby/object:Gem::Version
80
- version: '0'
79
+ version: 1.9.2
81
80
  required_rubygems_version: !ruby/object:Gem::Requirement
82
81
  requirements:
83
82
  - - ">="
@@ -1,6 +0,0 @@
1
- class Object
2
- def metaclass
3
- meta = (class << self; self; end)
4
- meta
5
- end
6
- end