diff --git a/ext/recommendify.c b/ext/recommendify.c index 8abc15c..f64e112 100644 --- a/ext/recommendify.c +++ b/ext/recommendify.c @@ -24,7 +24,7 @@ int main(int argc, char **argv){ char* cur_batch; char *iikey; - int batch_size = 200; /* FIXPAUL: make option */ + int batch_size = 100; /* FIXPAUL: make option */ int maxItems = 50; /* FIXPAUL: make option */ struct { @@ -99,8 +99,8 @@ int main(int argc, char **argv){ freeReplyObject(reply); - if(itemCount == 0){ - printf("exit: item count is zero\n"); + if(itemCount < 2){ + printf("exit: item count is zero or one\n"); return 0; } diff --git a/recommendify.gemspec b/recommendify.gemspec index f6b5ee9..bffe726 100644 --- a/recommendify.gemspec +++ b/recommendify.gemspec @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = "recommendify" - s.version = "0.3.6" + s.version = "0.3.7" s.date = Date.today.to_s s.platform = Gem::Platform::RUBY s.authors = ["Paul Asmuth"]