Skip to content
Browse files

updated docs & contribute script for new/missing dependencies

  • Loading branch information...
1 parent 615629a commit 22d1c3f3c1307177898ff2aa610cf00d945dc30d @wardbekker wardbekker committed
Showing with 33 additions and 4 deletions.
  1. +4 −0 README.textile
  2. +1 −4 Rakefile
  3. +20 −0 contribute.rb
  4. +8 −0 spec/lib/thinking_sphinx/active_record/delta_spec.rb
View
4 README.textile
@@ -30,6 +30,10 @@ Alternatively, install the ginger gem directly from the freelancing-god github r
sudo gem sources -a http://gems.github.com
sudo gem install freelancing-god-ginger
+
+Then install the cucumber, yard, jeweler and rspec gems. Make sure you have a git install version 1.6.0.0 or higher, otherwise the jeweler gem won't install.
+
+ sudo gem install cucumber yard jeweler rspec
Then set up your database:
View
5 Rakefile
@@ -1,6 +1,3 @@
require 'rubygems'
-
require 'tasks/distribution'
-require 'tasks/testing'
-
-require 'thinking_sphinx/tasks'
+require 'tasks/testing'
View
20 contribute.rb
@@ -40,6 +40,10 @@ def dependencies
Dependencies::Sphinx,
Dependencies::Mysql,
Dependencies::AR,
+ Dependencies::Rspec,
+ Dependencies::Cucumber,
+ Dependencies::Yard,
+ Dependencies::Jeweler,
Dependencies::Ginger,
Dependencies::NotAMock
]
@@ -346,6 +350,22 @@ module Dependencies
class Mysql < ContributeHelper::Gem
name(defined?(JRUBY_VERSION) ? 'jdbc-mysql' : 'mysql')
end
+
+ class Rspec < ContributeHelper::Gem
+ name 'rspec'
+ end
+
+ class Cucumber < ContributeHelper::Gem
+ name 'cucumber'
+ end
+
+ class Yard < ContributeHelper::Gem
+ name 'yard'
+ end
+
+ class Jeweler < ContributeHelper::Gem
+ name 'jeweler'
+ end
class AR < ContributeHelper::Gem
name 'activerecord'
View
8 spec/lib/thinking_sphinx/active_record/delta_spec.rb
@@ -18,6 +18,14 @@
@beta.should have_received(:toggle_delta)
end
+
+ it "should call the toggle_delta on associated instances" do
+
+ #if parent changes the first name, all childs should also toggle the delta
+ # @parent = Parent.
+
+
+ end
describe "suspended_delta method" do
before :each do

0 comments on commit 22d1c3f

Please sign in to comment.
Something went wrong with that request. Please try again.