Skip to content
Browse files

Gemify

  • Loading branch information...
1 parent 229923e commit e48de9798e2d6cfc5e149e9539ac0d678c783c4d @tylercunnion committed Sep 12, 2011
Showing with 131 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +10 −0 Gemfile
  3. +30 −0 Gemfile.lock
  4. +20 −0 LICENSE.txt
  5. +18 −0 README.rdoc
  6. +52 −0 Rakefile
View
1 .gitignore
@@ -0,0 +1 @@
+/pkg
View
10 Gemfile
@@ -0,0 +1,10 @@
+source "http://rubygems.org"
+
+gem "json"
+
+group :development do
+ gem "rspec"
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+ gem "rcov", ">= 0"
+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
+ json (1.5.4)
+ rake (0.9.2)
+ rcov (0.9.10)
+ 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.0)
+ jeweler (~> 1.6.4)
+ json
+ rcov
+ rspec
View
20 LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Tyler Cunnion
+
+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
18 README.rdoc
@@ -0,0 +1,18 @@
+= crunchbase
+
+Library for pulling data from the CrunchBase API.
+
+== Usage
+
+ require 'crunchbase'
+ steve = Crunchbase::Person.get("steve-jobs")
+ facebook = Crunchbase::Company.get("facebook")
+
+
+== Copyright
+
+Copyright (c) 2011 Tyler Cunnion. See LICENSE.txt for
+further details.
+
+I am not affiliated with AOL, Crunchbase, or anyone really.
+
View
52 Rakefile
@@ -0,0 +1,52 @@
+# encoding: utf-8
+
+require 'rubygems'
+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 is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "crunchbase"
+ gem.homepage = "http://github.com/tylercunnion/crunchbase"
+ gem.license = "MIT"
+ gem.summary = %Q{Ruby wrapper for CrunchBase API}
+ gem.email = "tyler.cunnion@gmail.com"
+ gem.authors = ["Tyler Cunnion"]
+ # dependencies defined in Gemfile
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+require 'rcov/rcovtask'
+Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ test.rcov_opts << '--exclude "gems/*"'
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "crunchbase #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end

0 comments on commit e48de97

Please sign in to comment.
Something went wrong with that request. Please try again.