arel 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,19 @@ module Arel
12
12
  yield(self)
13
13
  end
14
14
 
15
+ # TODO remove this when ActiveSupport beta1 is out.
16
+ # Returns the object's singleton class.
17
+ def singleton_class
18
+ class << self
19
+ self
20
+ end
21
+ end unless respond_to?(:singleton_class)
22
+
23
+ # class_eval on an object acts like singleton_class_eval.
24
+ def class_eval(*args, &block)
25
+ singleton_class.class_eval(*args, &block)
26
+ end
27
+
15
28
  Object.send(:include, self)
16
29
  end
17
30
  end
@@ -1,3 +1,3 @@
1
1
  module Arel
2
- VERSION = "0.3.2" unless defined?(Arel::VERSION)
2
+ VERSION = "0.3.3" unless defined?(Arel::VERSION)
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bryan Helmkamp
@@ -30,8 +30,8 @@ dependencies:
30
30
  - 3
31
31
  - 0
32
32
  - 0
33
- - beta1
34
- version: 3.0.0.beta1
33
+ - beta
34
+ version: 3.0.0.beta
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: |-