brendan-entrails 1.0.2 → 1.0.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.
- data/History.txt +5 -0
- data/entrails.gemspec +2 -2
- data/init.rb +0 -1
- data/lib/entrails.rb +6 -7
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 1.0.3 / 2008-06-21
|
2
|
+
|
3
|
+
* Removed the need to all Entrails.apply after load. Now it just automatically extends the base classes if
|
4
|
+
they exist. If you want to run a single piece of Entrails, just require it before the Rails initializer.
|
5
|
+
|
1
6
|
=== 1.0.2 / 2008-06-20
|
2
7
|
|
3
8
|
* Fixed the bug. Now its usable. I need to document though. This really should be version 0.x.x Oh well!
|
data/entrails.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{entrails}
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.3"
|
4
4
|
|
5
5
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Brendan Baldwin"]
|
9
|
-
s.date = "2008-06-
|
9
|
+
s.date = "2008-06-21"
|
10
10
|
s.default_executable = %q{entrails}
|
11
11
|
s.description = "This is a collection of extensions to Rails internals that I've found to be absolutely indispensible since I implimented them. The real action is happening in the following two files at the moment: http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/better_conditions.rb http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/find_by_association.rb"
|
12
12
|
s.email = ["brendan@usergenic.com"]
|
data/init.rb
CHANGED
data/lib/entrails.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
module Entrails
|
2
|
-
VERSION='1.0.
|
2
|
+
VERSION='1.0.3'
|
3
3
|
AUTHORS=["Brendan Baldwin"]
|
4
4
|
EMAIL=["brendan@usergenic.com"]
|
5
5
|
DESCRIPTION=%q{This is a collection of extensions to Rails internals that I've found to be absolutely indispensible since I implimented them. The real action is happening in the following two files at the moment: http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/better_conditions.rb http://github.com/brendan/entrails/tree/master/lib/entrails/active_record/find_by_association.rb}
|
6
6
|
FOLDER=File.expand_path(File.join(File.dirname(__FILE__),'..'))
|
7
7
|
MANIFEST=Dir.glob(File.join(FOLDER,'**','*')).map{|path|path[FOLDER.size+1..-1]}
|
8
8
|
HOMEPAGE="http://github.com/brendan/entrails"
|
9
|
-
class << self
|
10
|
-
def apply
|
11
|
-
::ActiveRecord::Base.extend ::Entrails::ActiveRecord::BetterConditions
|
12
|
-
::ActiveRecord::Base.extend ::Entrails::ActiveRecord::FindByAssociation
|
13
|
-
end
|
14
|
-
end
|
15
9
|
end
|
16
10
|
|
17
11
|
require 'entrails/active_record'
|
12
|
+
|
13
|
+
if defined?(ActiveRecord::Base)
|
14
|
+
ActiveRecord::Base.extend Entrails::ActiveRecord::BetterConditions
|
15
|
+
ActiveRecord::Base.extend Entrails::ActiveRecord::FindByAssociation
|
16
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brendan-entrails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendan Baldwin
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-21 00:00:00 -07:00
|
13
13
|
default_executable: entrails
|
14
14
|
dependencies: []
|
15
15
|
|