Permalink
Browse files

Replace Jeweler with Bundler

  • Loading branch information...
1 parent c397915 commit b04ea0e87786f645ea619e5ffacad4f7652cde34 @jimryan jimryan committed Mar 6, 2012
Showing with 38 additions and 232 deletions.
  1. +3 −54 .gitignore
  2. +2 −14 Gemfile
  3. +0 −48 Gemfile.lock
  4. +6 −55 Rakefile
  5. +0 −1 VERSION
  6. +22 −59 cloudprint.gemspec
  7. +1 −0 lib/cloudprint.rb
  8. +3 −0 lib/cloudprint/version.rb
  9. +1 −1 test/helper.rb
View
@@ -1,55 +1,4 @@
-# rcov generated
-coverage
-
-# rdoc generated
-rdoc
-
-# yard generated
-doc
-.yardoc
-
-# bundler
+*.gem
.bundle
-
-# jeweler generated
-pkg
-
-# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
-#
-# * Create a file at ~/.gitignore
-# * Include files you want ignored
-# * Run: git config --global core.excludesfile ~/.gitignore
-#
-# After doing this, these files will be ignored in all your git projects,
-# saving you from having to 'pollute' every project you touch with them
-#
-# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
-#
-# For MacOS:
-#
-.DS_Store
-
-# For TextMate
-#*.tmproj
-#tmtags
-
-# For emacs:
-#*~
-#\#*
-#.\#*
-
-# For vim:
-#*.swp
-tags
-
-# For redcar:
-#.redcar
-
-# For rubinius:
-#*.rbc
-
-# For RubyMine
-.idea
-
-# For rvm
-.rvmrc
+Gemfile.lock
+pkg/*
View
16 Gemfile
@@ -1,16 +1,4 @@
source "http://rubygems.org"
-gem "oauth2", "~> 0.4.0"
-gem "json"
-group :development do
- gem "bundler", "~> 1.0.0"
- gem "jeweler", "~> 1.6.4"
-end
-
-group :test do
- gem "test-unit", ">= 0"
- # gem "net-http-spy"
- gem "rcov", ">= 0"
- gem "mocha", ">= 0"
- gem "ruby-debug"
-end
+# Specify your gem's dependencies in cloudprint.gemspec
+gemspec
View
@@ -1,48 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- addressable (2.2.7)
- columnize (0.3.6)
- faraday (0.6.1)
- addressable (~> 2.2.4)
- multipart-post (~> 1.1.0)
- rack (>= 1.1.0, < 2)
- git (1.2.5)
- jeweler (1.6.4)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- json (1.6.5)
- linecache (0.46)
- rbx-require-relative (> 0.0.4)
- metaclass (0.0.1)
- mocha (0.10.4)
- metaclass (~> 0.0.1)
- multi_json (1.1.0)
- multipart-post (1.1.5)
- oauth2 (0.4.1)
- faraday (~> 0.6.1)
- multi_json (>= 0.0.5)
- rack (1.4.1)
- rake (0.9.2.2)
- rbx-require-relative (0.0.5)
- rcov (1.0.0)
- ruby-debug (0.10.4)
- columnize (>= 0.1)
- ruby-debug-base (~> 0.10.4.0)
- ruby-debug-base (0.10.4)
- linecache (>= 0.3)
- test-unit (2.4.7)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- bundler (~> 1.0.0)
- jeweler (~> 1.6.4)
- json
- mocha
- oauth2 (~> 0.4.0)
- rcov
- ruby-debug
- test-unit
View
@@ -1,57 +1,8 @@
-# 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 = "cloudprint"
- gem.homepage = "http://github.com/minciue/cloudprint"
- #noinspection RubyResolve
- gem.license = "MIT"
- gem.summary = %Q{This library provides a ruby-esque interface to Google Cloud Print.}
- gem.description = %Q{This library provides a ruby-esque interface to Google Cloud Print.\ncloudprint is a work in progress. I'll be adding documentation once all the basic GCP functionality is supported.}
- gem.email = "eugen@lesseverything.com"
- #noinspection RubyResolve
- gem.authors = ["Eugen Minciu"]
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
-
+require 'bundler/gem_tasks'
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 = "cloudprint #{version}"
- #noinspection RubyResolve
- rdoc.rdoc_files.include('README*')
- #noinspection RubyResolve
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/*_test.rb'
+ test.verbose = true
+end
View
@@ -1 +0,0 @@
-0.0.2
View
@@ -1,66 +1,29 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "cloudprint/version"
Gem::Specification.new do |s|
- s.name = %q{cloudprint}
- s.version = "0.0.2"
+ s.name = "cloudprint"
+ s.version = Cloudprint::VERSION
+ s.authors = ["Eugen Minciu"]
+ s.email = ["eugen@lesseverything.com"]
+ s.homepage = "http://github.com/minciue/cloudprint"
+ s.licenses = ["MIT"]
+ s.summary = "This library provides a ruby-esque interface to Google Cloud Print."
+ s.description = "This library provides a ruby-esque interface to Google Cloud Print.
+cloudprint is a work in progress. I'll be adding documentation once all the basic GCP functionality is supported."
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Eugen Minciu"]
- s.date = %q{2012-03-04}
- s.description = %q{This library provides a ruby-esque interface to Google Cloud Print.
-cloudprint is a work in progress. I'll be adding documentation once all the basic GCP functionality is supported.}
- s.email = %q{eugen@lesseverything.com}
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "cloudprint.gemspec",
- "lib/cloudprint.rb",
- "lib/cloudprint/connection.rb",
- "lib/cloudprint/print_job.rb",
- "lib/cloudprint/printer.rb",
- "test/cloudprint_test.rb",
- "test/connection_test.rb",
- "test/helper.rb",
- "test/print_job_test.rb",
- "test/printer_test.rb"
- ]
- s.homepage = %q{http://github.com/minciue/cloudprint}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.4.2}
- s.summary = %q{This library provides a ruby-esque interface to Google Cloud Print.}
+ s.add_dependency 'oauth2', '~> 0.5.2'
+ s.add_dependency 'json'
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ %w{test-unit mocha rake}.each do |dep|
+ s.add_development_dependency dep
+ end
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<oauth2>, ["~> 0.4.0"])
- s.add_runtime_dependency(%q<json>, [">= 0"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
- else
- s.add_dependency(%q<oauth2>, ["~> 0.4.0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- end
- else
- s.add_dependency(%q<oauth2>, ["~> 0.4.0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- end
-end
+ s.rubyforge_project = "cloudprint"
+ 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"]
+end
View
@@ -3,6 +3,7 @@
require "oauth2"
require "json"
+require "cloudprint/version"
require "cloudprint/printer"
require "cloudprint/connection"
require "cloudprint/print_job"
@@ -0,0 +1,3 @@
+module Cloudprint
+ VERSION = "0.0.2"
+end
View
@@ -1,5 +1,5 @@
require "cloudprint"
-Bundler.require(:test)
+require 'mocha'
class Test::Unit::TestCase
def any_connection

0 comments on commit b04ea0e

Please sign in to comment.