oedipus 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -202,7 +202,6 @@ static VALUE odp_cast_value(MYSQL_FIELD f, char * v, unsigned long len) {
202
202
 
203
203
  case MYSQL_TYPE_DECIMAL:
204
204
  case MYSQL_TYPE_NEWDECIMAL:
205
- rb_require("bigdecimal");
206
205
  return rb_funcall(rb_path2class("BigDecimal"),
207
206
  rb_intern("new"),
208
207
  1,
@@ -226,6 +225,8 @@ static VALUE odp_cast_value(MYSQL_FIELD f, char * v, unsigned long len) {
226
225
  /* -- Extension initialization -- */
227
226
 
228
227
  void Init_oedipus(void) {
228
+ rb_require("bigdecimal");
229
+
229
230
  VALUE mOedipus = rb_define_module("Oedipus");
230
231
  VALUE cMysql = rb_define_class_under(mOedipus, "Mysql", rb_cObject);
231
232
 
@@ -23,7 +23,7 @@ module Oedipus
23
23
  #
24
24
  # Note that single quotes are added to strings.
25
25
  def quote(v)
26
- require "bigdecimal"
26
+ require "bigdecimal" unless defined? BigDecimal
27
27
  case v
28
28
  when BigDecimal, Rational, Complex
29
29
  v.to_f
@@ -8,5 +8,5 @@
8
8
  ##
9
9
 
10
10
  module Oedipus
11
- VERSION = "0.0.6"
11
+ VERSION = "0.0.7"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oedipus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &20757600 !ruby/object:Gem::Requirement
16
+ requirement: &13736340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *20757600
24
+ version_requirements: *13736340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake-compiler
27
- requirement: &20756700 !ruby/object:Gem::Requirement
27
+ requirement: &13735540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *20756700
35
+ version_requirements: *13735540
36
36
  description: ! "== Sphinx 2 Comes to Ruby\n\nOedipus brings full support for Sphinx
37
37
  2 to Ruby:\n\n - real-time indexes (insert, replace, update, delete)\n - faceted
38
38
  search (variations on a base query)\n - multi-queries (multiple queries executed
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: -1569263709563515069
112
+ hash: -3725303257856725509
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  none: false
115
115
  requirements:
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  segments:
120
120
  - 0
121
- hash: -1569263709563515069
121
+ hash: -3725303257856725509
122
122
  requirements: []
123
123
  rubyforge_project: oedipus
124
124
  rubygems_version: 1.8.11