Permalink
Browse files

Create initial gem files.

  • Loading branch information...
1 parent 00e3937 commit 49d6ec81d5467852516c596e6430539b55a5d572 @benmanns committed Sep 16, 2011
Showing with 213 additions and 0 deletions.
  1. +4 −0 .document
  2. +5 −0 .gitignore
  3. +1 −0 .rspec
  4. +1 −0 .rvmrc
  5. +9 −0 Gemfile
  6. +30 −0 Gemfile.lock
  7. +20 −0 LICENSE.txt
  8. +17 −0 README.rdoc
  9. +46 −0 Rakefile
  10. +1 −0 VERSION
  11. +64 −0 cleverbot.gemspec
  12. +2 −0 lib/cleverbot.rb
  13. +4 −0 spec/cleverbot_spec.rb
  14. +9 −0 spec/spec_helper.rb
View
4 .document
@@ -0,0 +1,4 @@
+bin/*
+lib/**/*.rb
+LICENSE.txt
+README.rdoc
View
5 .gitignore
@@ -0,0 +1,5 @@
+.bundle
+coverage
+doc
+pkg
+rdoc
View
1 .rspec
@@ -0,0 +1 @@
+--color
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.2@cleverbot
View
9 Gemfile
@@ -0,0 +1,9 @@
+source :rubygems
+
+group :development do
+ gem 'bundler', '~> 1.0'
+ gem 'jeweler', '~> 1.6'
+ gem 'rcov', '~> 0.9'
+ gem 'rdoc', '~> 3.9'
+ gem 'rspec', '~> 2.3'
+end
View
30 Gemfile.lock
@@ -0,0 +1,30 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ git (1.2.5)
+ jeweler (1.6.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rake (0.9.2)
+ rcov (0.9.10)
+ rdoc (3.9.4)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0)
+ jeweler (~> 1.6)
+ rcov (~> 0.9)
+ rdoc (~> 3.9)
+ rspec (~> 2.3)
View
20 LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Benjamin Manns
+
+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.
View
17 README.rdoc
@@ -0,0 +1,17 @@
+= cleverbot
+
+Ruby wrapper for Cleverbot.
+
+== Contributing to cleverbot
+
+* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
+* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
+* Fork the project
+* Start a feature/bugfix branch
+* Commit and push until you are happy with your contribution
+* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
+* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
+
+== Copyright
+
+Copyright (c) 2011 Benjamin Manns. See LICENSE.txt for further details.
View
46 Rakefile
@@ -0,0 +1,46 @@
+# encoding: utf-8
+
+require 'bundler'
+begin
+ Bundler.setup :default, :development
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts 'Run `bundle install` to install missing gems'
+ exit e.status_code
+end
+require 'rake'
+
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ gem.name = 'cleverbot'
+ gem.homepage = 'https://github.com/benmanns/cleverbot'
+ gem.license = 'MIT'
+ gem.summary = 'Ruby wrapper for Cleverbot.'
+ gem.description = 'Ruby wrapper for Cleverbot.'
+ gem.email = 'benmanns@gmail.com'
+ gem.authors = 'Benjamin Manns'
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new :spec do |spec|
+ spec.pattern = FileList[File.join('spec', '**', '*_spec.rb')]
+end
+
+RSpec::Core::RakeTask.new :rcov do |spec|
+ spec.pattern = File.join('spec', '**', '*_spec.rb')
+ spec.rcov = true
+end
+
+task :default => :spec
+
+require 'rdoc/task'
+RDoc::Task.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ''
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "cleverbot #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
+end
View
1 VERSION
@@ -0,0 +1 @@
+0.0.1
View
64 cleverbot.gemspec
@@ -0,0 +1,64 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{cleverbot}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Benjamin Manns"]
+ s.date = %q{2011-09-14}
+ s.description = %q{Ruby wrapper for Cleverbot.}
+ s.email = %q{benmanns@gmail.com}
+ s.extra_rdoc_files = [
+ "LICENSE.txt",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".document",
+ ".rspec",
+ ".rvmrc",
+ "Gemfile",
+ "Gemfile.lock",
+ "LICENSE.txt",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "cleverbot.gemspec",
+ "lib/cleverbot.rb",
+ "spec/cleverbot_spec.rb",
+ "spec/spec_helper.rb"
+ ]
+ s.homepage = %q{https://github.com/benmanns/cleverbot}
+ s.licenses = ["MIT"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.6.2}
+ s.summary = %q{Ruby wrapper for Cleverbot.}
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
+ s.add_development_dependency(%q<rcov>, ["~> 0.9"])
+ s.add_development_dependency(%q<rdoc>, ["~> 3.9"])
+ s.add_development_dependency(%q<rspec>, ["~> 2.3"])
+ else
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.6"])
+ s.add_dependency(%q<rcov>, ["~> 0.9"])
+ s.add_dependency(%q<rdoc>, ["~> 3.9"])
+ s.add_dependency(%q<rspec>, ["~> 2.3"])
+ end
+ else
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.6"])
+ s.add_dependency(%q<rcov>, ["~> 0.9"])
+ s.add_dependency(%q<rdoc>, ["~> 3.9"])
+ s.add_dependency(%q<rspec>, ["~> 2.3"])
+ end
+end
+
View
2 lib/cleverbot.rb
@@ -0,0 +1,2 @@
+module Cleverbot
+end
View
4 spec/cleverbot_spec.rb
@@ -0,0 +1,4 @@
+require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
+
+describe Cleverbot do
+end
View
9 spec/spec_helper.rb
@@ -0,0 +1,9 @@
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'rspec'
+require 'cleverbot'
+
+Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f }
+
+RSpec.configure do |config|
+end

0 comments on commit 49d6ec8

Please sign in to comment.