From 3e0594e534802f35a3dce003b61b5030b1f00640 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 19 Jan 2009 16:11:58 -0800 Subject: [PATCH] drop couchdir binary --- Rakefile | 4 +--- bin/couchdir | 20 -------------------- couchrest.gemspec | 4 +--- lib/couchrest.rb | 2 +- 4 files changed, 3 insertions(+), 27 deletions(-) delete mode 100755 bin/couchdir diff --git a/Rakefile b/Rakefile index 72d8ac3..be8989e 100644 --- a/Rakefile +++ b/Rakefile @@ -25,12 +25,10 @@ spec = Gem::Specification.new do |s| s.has_rdoc = true s.authors = ["J. Chris Anderson"] s.files = %w( LICENSE README.md Rakefile THANKS.md ) + - Dir["{bin,examples,lib,spec,utils}/**/*"] - + Dir["{examples,lib,spec,utils}/**/*"] - Dir["spec/tmp"] s.extra_rdoc_files = %w( README.md LICENSE THANKS.md ) s.require_path = "lib" - s.bindir = 'bin' - s.executables << 'couchdir' s.add_dependency("json", ">= 1.1.2") s.add_dependency("rest-client", ">= 0.5") s.add_dependency("mime-types", ">= 1.15") diff --git a/bin/couchdir b/bin/couchdir deleted file mode 100755 index c65d671..0000000 --- a/bin/couchdir +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env ruby - -unless ARGV.length >= 2 - puts "usage: couchdir path/to/directory db-name [docid]" - exit -end - -require 'rubygems' -require 'couchrest' - -dirname = ARGV[0] -dbname = ARGV[1] -docid = ARGV[2] - -puts "Create attachments for the files in #{dirname} in database #{dbname}." - -fm = CouchRest::FileManager.new(dbname) -fm.loud = true -puts "Pushing views from directory #{dirname} to database #{fm.db}" -fm.push_directory(dirname, docid) diff --git a/couchrest.gemspec b/couchrest.gemspec index e1ae518..47010be 100644 --- a/couchrest.gemspec +++ b/couchrest.gemspec @@ -5,12 +5,10 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["J. Chris Anderson"] s.date = %q{2008-11-22} - s.default_executable = %q{couchdir} s.description = %q{CouchRest provides a simple interface on top of CouchDB's RESTful HTTP API, as well as including some utility scripts for managing views and attachments.} s.email = %q{jchris@apache.org} - s.executables = ["couchdir"] s.extra_rdoc_files = ["README.md", "LICENSE", "THANKS.md"] - s.files = ["LICENSE", "README.md", "Rakefile", "THANKS.md", "bin/couchdir", "examples/model", "examples/model/example.rb", "examples/word_count", "examples/word_count/markov", "examples/word_count/views", "examples/word_count/views/books", "examples/word_count/views/books/chunked-map.js", "examples/word_count/views/books/united-map.js", "examples/word_count/views/markov", "examples/word_count/views/markov/chain-map.js", "examples/word_count/views/markov/chain-reduce.js", "examples/word_count/views/word_count", "examples/word_count/views/word_count/count-map.js", "examples/word_count/views/word_count/count-reduce.js", "examples/word_count/word_count.rb", "examples/word_count/word_count_query.rb", "examples/word_count/word_count_views.rb", "lib/couchrest", "lib/couchrest/commands", "lib/couchrest/commands/generate.rb", "lib/couchrest/commands/push.rb", "lib/couchrest/core", "lib/couchrest/core/database.rb", "lib/couchrest/core/design.rb", "lib/couchrest/core/document.rb", "lib/couchrest/core/model.rb", "lib/couchrest/core/server.rb", "lib/couchrest/core/view.rb", "lib/couchrest/helper", "lib/couchrest/helper/pager.rb", "lib/couchrest/helper/streamer.rb", "lib/couchrest/monkeypatches.rb", "lib/couchrest.rb", "spec/couchrest", "spec/couchrest/core", "spec/couchrest/core/couchrest_spec.rb", "spec/couchrest/core/database_spec.rb", "spec/couchrest/core/design_spec.rb", "spec/couchrest/core/document_spec.rb", "spec/couchrest/core/model_spec.rb", "spec/couchrest/helpers", "spec/couchrest/helpers/pager_spec.rb", "spec/couchrest/helpers/streamer_spec.rb", "spec/fixtures", "spec/fixtures/attachments", "spec/fixtures/attachments/couchdb.png", "spec/fixtures/attachments/README", "spec/fixtures/attachments/test.html", "spec/fixtures/views", "spec/fixtures/views/lib.js", "spec/fixtures/views/test_view", "spec/fixtures/views/test_view/lib.js", "spec/fixtures/views/test_view/only-map.js", "spec/fixtures/views/test_view/test-map.js", "spec/fixtures/views/test_view/test-reduce.js", "spec/spec.opts", "spec/spec_helper.rb", "utils/remap.rb", "utils/subset.rb"] + s.files = ["LICENSE", "README.md", "Rakefile", "THANKS.md", "examples/model", "examples/model/example.rb", "examples/word_count", "examples/word_count/markov", "examples/word_count/views", "examples/word_count/views/books", "examples/word_count/views/books/chunked-map.js", "examples/word_count/views/books/united-map.js", "examples/word_count/views/markov", "examples/word_count/views/markov/chain-map.js", "examples/word_count/views/markov/chain-reduce.js", "examples/word_count/views/word_count", "examples/word_count/views/word_count/count-map.js", "examples/word_count/views/word_count/count-reduce.js", "examples/word_count/word_count.rb", "examples/word_count/word_count_query.rb", "examples/word_count/word_count_views.rb", "lib/couchrest", "lib/couchrest/commands", "lib/couchrest/commands/generate.rb", "lib/couchrest/commands/push.rb", "lib/couchrest/core", "lib/couchrest/core/database.rb", "lib/couchrest/core/design.rb", "lib/couchrest/core/document.rb", "lib/couchrest/core/model.rb", "lib/couchrest/core/server.rb", "lib/couchrest/core/view.rb", "lib/couchrest/helper", "lib/couchrest/helper/pager.rb", "lib/couchrest/helper/streamer.rb", "lib/couchrest/monkeypatches.rb", "lib/couchrest.rb", "spec/couchrest", "spec/couchrest/core", "spec/couchrest/core/couchrest_spec.rb", "spec/couchrest/core/database_spec.rb", "spec/couchrest/core/design_spec.rb", "spec/couchrest/core/document_spec.rb", "spec/couchrest/core/model_spec.rb", "spec/couchrest/helpers", "spec/couchrest/helpers/pager_spec.rb", "spec/couchrest/helpers/streamer_spec.rb", "spec/fixtures", "spec/fixtures/attachments", "spec/fixtures/attachments/couchdb.png", "spec/fixtures/attachments/README", "spec/fixtures/attachments/test.html", "spec/fixtures/views", "spec/fixtures/views/lib.js", "spec/fixtures/views/test_view", "spec/fixtures/views/test_view/lib.js", "spec/fixtures/views/test_view/only-map.js", "spec/fixtures/views/test_view/test-map.js", "spec/fixtures/views/test_view/test-reduce.js", "spec/spec.opts", "spec/spec_helper.rb", "utils/remap.rb", "utils/subset.rb"] s.has_rdoc = true s.homepage = %q{http://github.com/jchris/couchrest} s.require_paths = ["lib"] diff --git a/lib/couchrest.rb b/lib/couchrest.rb index fc0ca50..ee534c2 100644 --- a/lib/couchrest.rb +++ b/lib/couchrest.rb @@ -25,7 +25,7 @@ require 'couchrest/monkeypatches' # = CouchDB, close to the metal module CouchRest - VERSION = '0.12.3' + VERSION = '0.12.4' autoload :Server, 'couchrest/core/server' autoload :Database, 'couchrest/core/database'