wherex 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +2 -1
- data/README.md +1 -1
- data/lib/wherex/connection.rb +1 -1
- data/lib/wherex/version.rb +1 -1
- metadata +5 -5
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -8,7 +8,7 @@ case ENV["RAILS_DB"]
|
|
8
8
|
when "postgres"
|
9
9
|
gem 'pg'
|
10
10
|
when "mysql"
|
11
|
-
gem 'mysql2'
|
11
|
+
gem 'mysql2', '~>0.2.11'
|
12
12
|
else
|
13
13
|
gem 'sqlite3'
|
14
14
|
end
|
@@ -24,5 +24,6 @@ end
|
|
24
24
|
group :test do
|
25
25
|
gem 'redgreen'
|
26
26
|
gem 'turn'
|
27
|
+
gem 'rake', '~>0.8.3'
|
27
28
|
end
|
28
29
|
|
data/README.md
CHANGED
data/lib/wherex/connection.rb
CHANGED
@@ -23,7 +23,7 @@ module Wherex
|
|
23
23
|
rescue NameError => e
|
24
24
|
end
|
25
25
|
|
26
|
-
if
|
26
|
+
if ::ActiveRecord::Base.connection.raw_connection.respond_to? :create_function
|
27
27
|
::ActiveRecord::Base.connection.raw_connection.create_function( "regexp", 2 ) do |context, pattern, string|
|
28
28
|
if string.present?
|
29
29
|
context.result = 1 if string.match pattern
|
data/lib/wherex/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wherex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason King
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arel
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements: []
|
109
109
|
|
110
110
|
rubyforge_project: wherex
|
111
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.8.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 3
|
114
114
|
summary: Regexp for ActiveRecord finders
|