Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
Replace Jeweler with Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
jimryan committed Mar 6, 2012
1 parent c397915 commit b04ea0e
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 232 deletions.
57 changes: 3 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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/*
16 changes: 2 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
48 changes: 0 additions & 48 deletions Gemfile.lock

This file was deleted.

61 changes: 6 additions & 55 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

81 changes: 22 additions & 59 deletions cloudprint.gemspec
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lib/cloudprint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "oauth2"
require "json"

require "cloudprint/version"
require "cloudprint/printer"
require "cloudprint/connection"
require "cloudprint/print_job"
Expand Down
3 changes: 3 additions & 0 deletions lib/cloudprint/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Cloudprint
VERSION = "0.0.2"
end
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "cloudprint"
Bundler.require(:test)
require 'mocha'

class Test::Unit::TestCase
def any_connection
Expand Down

0 comments on commit b04ea0e

Please sign in to comment.