Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to bundler for managing gem.

Paired with Alex Bugosh
  • Loading branch information...
commit 78954a949cd61ec9aae46fe3711e10be2cc30f39 1 parent c477059
@eee-c authored
View
5 .gitignore
@@ -1,3 +1,4 @@
-pkg
-couch_docs-*.gem
+pkg/*
+*.gem
+.bundle
.rvmrc
View
30 Rakefile
@@ -1,23 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "couch_docs"
- gemspec.summary = "Manage CouchDB views and documents."
- gemspec.description = "Provides a simple means for working with CouchDB documents on the filesystem. It can dump CouchDB documents and design documents in discrete chunks. Conversely it can read JSON and .js files from the filesystem to be pushed to a CouchDB database."
- gemspec.email = "eee.c@eeecooks.com"
- gemspec.homepage = "http://github.com/eee-c/couch_docs"
- gemspec.authors = ["Chris Strom"]
- gemspec.add_development_dependency "rspec", ">= 1.2.9"
- gemspec.add_dependency "rest-client", "1.1.0"
- gemspec.add_dependency "json", "1.2.0"
- gemspec.add_dependency "directory_watcher", "1.3.1"
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
@@ -25,14 +7,6 @@ Spec::Rake::SpecTask.new(:spec) do |spec|
spec.spec_files = FileList['spec/**/*_spec.rb']
end
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
-end
-
-task :spec => :check_dependencies
-
task :default => :spec
require 'rake/rdoctask'
View
59 couch_docs.gemspec
@@ -1,48 +1,27 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "couch_docs/version"
Gem::Specification.new do |s|
- s.name = %q{couch_docs}
- s.version = "1.2.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Chris Strom"]
- s.date = %q{2010-04-21}
- s.default_executable = %q{couch-docs}
+ s.name = "couch_docs"
+ s.version = CouchDocs::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Chris Strom"]
+ s.email = ["chris@eeecooks.com"]
+ s.homepage = "http://github.com/eee-c/couch_docs"
+ s.summary = %q{Manage CouchDB views and documents}
s.description = %q{Manage CouchDB views and documents.}
- s.email = %q{chris@eeecooks.com}
- s.executables = ["couch-docs"]
- s.extra_rdoc_files = ["History.txt", "README.rdoc", "bin/couch-docs"]
- s.files = [".gitignore", "History.txt", "README.rdoc", "Rakefile", "bin/couch-docs", "couch_docs-1.1.0.gem", "couch_docs-1.1.1.gem", "couch_docs-1.2.0.gem", "couch_docs.gemspec", "fixtures/_design/__lib/foo.js", "fixtures/_design/a/b/c.js", "fixtures/_design/a/b/d.js", "fixtures/_design/x/z.js", "fixtures/bar.json", "fixtures/foo.json", "lib/couch_docs.rb", "lib/couch_docs/command_line.rb", "lib/couch_docs/design_directory.rb", "lib/couch_docs/document_directory.rb", "lib/couch_docs/store.rb", "spec/couch_docs_spec.rb", "spec/spec_helper.rb", "test/test_couch_docs.rb"]
- s.homepage = %q{http://github.com/eee-c/couch_docs}
- s.rdoc_options = ["--main", "README.rdoc"]
+
+ s.rubyforge_project = "couch_docs"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.rubyforge_project = %q{couch_docs}
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{Manage CouchDB views and documents}
- s.test_files = ["test/test_couch_docs.rb"]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.add_development_dependency "rspec", ["~> 1.3.0"]
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rest-client>, ["~> 1.1.0"])
- s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
- s.add_runtime_dependency(%q<directory_watcher>, [">= 1.3.1"])
- s.add_development_dependency(%q<bones>, [">= 2.5.0"])
- s.add_development_dependency(%q<rspec>, [">= 0"])
- else
- s.add_dependency(%q<rest-client>, ["~> 1.1.0"])
- s.add_dependency(%q<json>, [">= 1.2.0"])
- s.add_dependency(%q<directory_watcher>, [">= 1.3.1"])
- s.add_dependency(%q<bones>, [">= 2.5.0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- end
- else
- s.add_dependency(%q<rest-client>, ["~> 1.1.0"])
- s.add_dependency(%q<json>, [">= 1.2.0"])
- s.add_dependency(%q<directory_watcher>, [">= 1.3.1"])
- s.add_dependency(%q<bones>, [">= 2.5.0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- end
+ s.add_runtime_dependency(%q<rest-client>, ["~> 1.1.0"])
+ s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
+ s.add_runtime_dependency(%q<directory_watcher>, [">= 1.3.1"])
end
View
1  lib/couch_docs.rb
@@ -3,7 +3,6 @@
module CouchDocs
# :stopdoc:
- VERSION = '1.2.1'
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
# :startdoc:
View
3  spec/spec_helper.rb
@@ -1,6 +1,3 @@
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-
-require 'rubygems'
require 'couch_docs'
require 'spec'
require 'spec/autorun'
Please sign in to comment.
Something went wrong with that request. Please try again.