Permalink
Browse files

Merge pull request #17 from kmalakoff/master

I added a new flag to config.js called {"not_design": true} to allow non-design documents to be autopushed.
  • Loading branch information...
2 parents 34096e8 + 60c751d commit 26c18d9ea15cbf8a346db18fb3c1f2d500d0634a @quirkey committed Jul 2, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 Gemfile.lock
  2. +1 −1 lib/soca/pusher.rb
View
@@ -19,8 +19,8 @@ GEM
git (>= 1.2.5)
rake
jim (0.3.1)
- downlow (~> 0.1.4)
downlow (~> 0.1.3)
+ downlow (~> 0.1.4)
fakeweb (>= 1.2.8)
fssm
fssm (~> 0.2.0)
@@ -31,8 +31,8 @@ GEM
rake
shoulda
test-unit
- thor (~> 0.14.4)
thor
+ thor (~> 0.14.4)
version_sorter (~> 1.1.0)
version_sorter (~> 1.1.0)
yajl-ruby
View
@@ -56,7 +56,7 @@ def db_url
def push_url
raise "no app id specified in config" unless config['id']
- "#{db_url}/_design/#{config['id']}"
+ config['not_design'] ? "#{db_url}/#{config['id']}" : "#{db_url}/_design/#{config['id']}"
end
def app_url

0 comments on commit 26c18d9

Please sign in to comment.