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 CHANGED
@@ -17,3 +17,5 @@ pkg
17
17
  # ignore Gemfile.lock because it is rewritten by the tests
18
18
  Gemfile.lock
19
19
 
20
+ # textmate temp files
21
+ ._*
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
@@ -1,4 +1,4 @@
1
- # wherex
1
+ # wherex [![Build Status](http://travis-ci.org/smathy/wherex.png)](http://travis-ci.org/smathy/wherex)
2
2
 
3
3
  Regexp support to ActiveRecord finders.
4
4
 
@@ -23,7 +23,7 @@ module Wherex
23
23
  rescue NameError => e
24
24
  end
25
25
 
26
- if defined? ::ActiveRecord::ConnectionAdapters::SQLiteAdapter
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
@@ -1,3 +1,3 @@
1
1
  module Wherex
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.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-04-11 00:00:00 Z
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.7.2
111
+ rubygems_version: 1.8.3
112
112
  signing_key:
113
113
  specification_version: 3
114
114
  summary: Regexp for ActiveRecord finders