Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

its a gem AND plugin now :D

  • Loading branch information...
commit cb7b77a08a82c62216f46be14febfb1c0ddbc7d5 1 parent c136018
grosser authored
Showing with 24 additions and 3 deletions.
  1. +3 −0  .gitignore
  2. +17 −1 Rakefile
  3. +1 −1  init.rb
  4. +3 −1 lib/ar_merge.rb
View
3  .gitignore
@@ -1 +1,4 @@
.svn
+pkg
+doc
+Manifest
View
18 Rakefile
@@ -9,4 +9,20 @@ task :spec do |t|
options = "--colour --format progress --loadby --reverse"
files = FileList['spec/**/*_spec.rb']
system("spec #{options} #{files}")
-end
+end
+
+require 'rubygems'
+require 'rake'
+require 'echoe'
+
+Echoe.new('ar_merge', '0.1.0') do |p|
+ p.description = "Simply and securely merge AciveRecord`s."
+ p.url = "http://github.com/grosser/ar_merge"
+ p.author = "Michael Grosser"
+ p.email = "grosser.michael@gmail.com"
+ p.ignore_pattern = ["tmp/*", "script/*"]
+ p.development_dependencies = []
+end
+
+Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
+
View
2  init.rb
@@ -1 +1 @@
-ActiveRecord::Base.send(:include,AR_Merge)
+require 'ar_merge'
View
4 lib/ar_merge.rb
@@ -50,4 +50,6 @@ def merge_duplicates!(records,options)
end.reject(&:nil?)
end
end
-end
+end
+
+ActiveRecord::Base.send(:include,AR_Merge)
Please sign in to comment.
Something went wrong with that request. Please try again.