rethinkdb 1.12.0.0 → 1.12.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/func.rb +4 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eba1925eeec3a40cbebb6209d1f659b7880ac82f
4
- data.tar.gz: a84db592ff134e93e9505fb1bc1e84a147643aab
3
+ metadata.gz: 94cbbfd6084015f53bb7b98e617ee23d9691061f
4
+ data.tar.gz: 1a531e1561597a134713b8c590766859221414f8
5
5
  SHA512:
6
- metadata.gz: 2a31d54964b3086feac437eb843bedbc83cc3c4cdf7999128775b121576488ad6f06c5f03c45397b92d243c6e0000b866fad7d7f5797995f370420eb9d2391f2
7
- data.tar.gz: a67cf797dd62f616e0992b913b028b8c8ef919388f90ae54301b1a4ba5730b6a66f9d135cd660368df82137b29af437278ddc6c557806b25fbe10f223d635ac3
6
+ metadata.gz: 81dd7d1989956cef8cc14388c6c67fb0b6f767ec81db25a0ef68450baffc84460c0039d316c273a6014e8b773d0d1c0120aa08f09403ddaa80045a29167d9d10
7
+ data.tar.gz: 0dff66cd45bb2e41b52eb956755410c8285abd47fd3d020accf2519ca02fe4f14fd72e6f5f3dc59eedeb38594c8c9cfa34f244cda01a27c4b01d337dee6fa404
data/lib/func.rb CHANGED
@@ -58,7 +58,7 @@ module RethinkDB
58
58
  termtypes = Term::TermType.constants.map{ |c| c.to_sym }
59
59
  termtypes.each {|termtype|
60
60
 
61
- method = define_method(termtype.downcase){|*a, &b|
61
+ method_body = proc { |*a, &b|
62
62
  bitop = [:"|", :"&"].include?(__method__)
63
63
 
64
64
  if [:<, :<=, :>, :>=, :+, :-, :*, :/, :%].include?(__method__)
@@ -100,8 +100,10 @@ module RethinkDB
100
100
  return RQL.new(t, bitop)
101
101
  }
102
102
 
103
+ define_method(termtype.downcase, &method_body)
104
+
103
105
  [*@@method_aliases[termtype.downcase]].each{|method_alias|
104
- define_method method_alias, method
106
+ define_method method_alias, &method_body
105
107
  }
106
108
  }
107
109
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rethinkdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0.0
4
+ version: 1.12.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RethinkDB Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-26 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -62,9 +62,9 @@ files:
62
62
  - lib/ql2.pb.rb
63
63
  - lib/rethinkdb.rb
64
64
  - lib/rpp.rb
65
- - lib/func.rb
66
65
  - lib/net.rb
67
66
  - lib/shim.rb
67
+ - lib/func.rb
68
68
  homepage: http://rethinkdb.com
69
69
  licenses:
70
70
  - Apache-2