Permalink
Browse files

Initial Commit. Thor and Bundle configured.

  • Loading branch information...
0 parents commit 70fdac380ef6f1f8a51e6ef35633eac6dc4c0d47 Felipe committed Mar 10, 2010
Showing with 117 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 Gemfile
  3. +22 −0 LICENSE
  4. +4 −0 README
  5. +68 −0 Thorfile
  6. +3 −0 lib/couch_rails/version.rb
  7. +8 −0 spec/couch_rails_spec.rb
  8. +1 −0 spec/spec.opts
@@ -0,0 +1,2 @@
+.bundle/
+.idea/
@@ -0,0 +1,9 @@
+source :gemcutter
+source "http://gems.github.com"
+
+gem "thor"
+gem "activemodel"
+gem "activesupport"
+gem "couchrest"
+gem "jeweler"
+gem "rspec"
22 LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2010 Sam Pohlenz
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 README
@@ -0,0 +1,4 @@
+CouchRails is a Object Document Mapper for CouchDB that implements the new Rails 3 ActiveModel.
+It uses CouchRest.
+
+This project is under MIT License
@@ -0,0 +1,68 @@
+# enconding: utf-8
+require File.join(File.dirname(__FILE__), "lib", "couch_rails", "version")
+require 'rubygems'
+require 'thor/rake_compat'
+require 'spec/rake/spectask'
+begin
+ require 'rdoc/task'
+rescue LoadError
+end
+
+GEM_NAME = 'couchrails'
+EXTRA_RDOC_FILES = ["README", "LICENSE", "CHANGELOG.rdoc", "VERSION", "Thorfile"]
+
+class Default < Thor
+ include Thor::RakeCompat
+
+ default_task :spec
+
+ Spec::Rake::SpecTask.new(:spec) do |t|
+ t.libs << 'lib'
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ end
+
+ Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.libs << 'lib'
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+ t.rcov_dir = "rcov"
+ end
+
+ if defined?(RDoc)
+ RDoc::Task.new do |rdoc|
+ rdoc.main = "README"
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.title = GEM_NAME
+ rdoc.rdoc_files.include(*EXTRA_RDOC_FILES)
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.options << '--line-numbers' << '--inline-source'
+ end
+ end
+
+ begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |g|
+ g.name = GEM_NAME
+ g.version = CouchRails::VERSION
+ g.summary = "A Object Document Mapper for Rails 3 that implements ActiveModel"
+ g.description = "A Object Document Mapper for Rails 3 that implements ActiveModel. It is based on CouchRest"
+ g.email = "couchrails@fratech.net"
+ g.homepage = "http://github.com/felipero/couchrails"
+ g.authors = ["Felipe Rodrigues"]
+ g.test_files.include 'spec/**/*'
+ g.has_rdoc = false
+ g.extra_rdoc_files = EXTRA_RDOC_FILES
+ g.require_path = 'lib'
+ g.files = g.extra_rdoc_files + Dir.glob("{bin,lib}/**/*")
+# g.bindir = "bin"
+# g.executables = %w( couchrest )
+# g.test_files.exclude 'spec/sandbox/**/*'
+ end
+
+ Jeweler::GemcutterTasks.new
+ rescue LoadError
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
+ end
+end
@@ -0,0 +1,3 @@
+class CouchRails
+ VERSION = "0.1"
+end
@@ -0,0 +1,8 @@
+require "spec"
+
+describe "CouchRails" do
+
+ it "should do something" do
+ true.should == false
+ end
+end
@@ -0,0 +1 @@
+--color

0 comments on commit 70fdac3

Please sign in to comment.