jordi-find_by_sql_file 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'find_by_sql_file'
3
- s.version = '0.9.2'
3
+ s.version = '0.9.3'
4
4
  s.date = '2008-10-03'
5
5
 
6
6
  s.author = 'Jordi Bunster'
@@ -25,6 +25,8 @@ Gem::Specification.new do |s|
25
25
  lib/bunster
26
26
  lib/bunster/erb_jacket.rb
27
27
  lib/bunster/find_by_sql_file.rb
28
+ lib/find_by_sql_file.rb
29
+ lib/jordi-find_by_sql_file.rb
28
30
  rails
29
31
  rails/init.rb ]
30
32
 
data/init.rb CHANGED
@@ -1 +1 @@
1
- require File.join(File.dirname(__FILE__), 'lib', 'find_by_sql_file')
1
+ require 'lib/find_by_sql_file'
@@ -0,0 +1,8 @@
1
+ require 'bunster/find_by_sql_file'
2
+
3
+ class << ActiveRecord::Base
4
+ include Bunster::FindBySqlFile
5
+
6
+ alias_method_chain :find_by_sql, :sql_file
7
+ alias_method_chain :count_by_sql, :sql_file
8
+ end
@@ -0,0 +1 @@
1
+ require 'find_by_sql_file'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jordi-find_by_sql_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Bunster
@@ -32,6 +32,8 @@ files:
32
32
  - lib/bunster
33
33
  - lib/bunster/erb_jacket.rb
34
34
  - lib/bunster/find_by_sql_file.rb
35
+ - lib/find_by_sql_file.rb
36
+ - lib/jordi-find_by_sql_file.rb
35
37
  - rails
36
38
  - rails/init.rb
37
39
  has_rdoc: true